Session Ready
Exercise

GenomicRanges accessors

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

Use the GRanges object called myGR to investigate more of it using accessors methods. You can check the GRanges object's characteristics such as the name of each chromosome, the number of sequences, the names of each sequence, information about strand, score, and length, and more.

The following are some of the 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").

Use the object myGR for this exercise.

Instructions
100 XP
  • Get sequence information from myGR.
  • Now check the metadata using mcols().