LoslegenKostenlos loslegen

GenomicRanges accessors

In the previous exercise, you created a GRanges object from a data frame containing the basic information. You will discover that GRanges can store much more!

Use the accessor method to explore the GRanges object, myGR. You can extract characteristics from a GRanges object such as chromosome names, the number of sequences, the names of each sequence, information about strand, score, length, and more.

The following are basic accessors for GRanges:

seqnames(gr)
ranges(gr)
mcols(gr)
genome(gr)
seqinfo(gr)

For a complete list of accessors, you can check methods(class = "GRanges").

Diese Übung ist Teil des Kurses

Introduction to Bioconductor in R

Kurs anzeigen

Anleitung zur Übung

  • Get the sequence information for myGR.
  • Check the metadata using mcols().

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Load GenomicRanges
library(___)

# Print the seqinfo of myGR
___

# Check the metadata
___
Code bearbeiten und ausführen