Question: How is it possible to override the constructor of the GRanges class?
gravatar for Shaurya Jauhari
10 months ago by
Shaurya Jauhari0 wrote:

The GRanges class from Bioconductor provides for a optimized way to store sequence information and also extends the usage by accommodating further information if required, i.e. via mcols. But the restriction here is addition in terms of column-only format. What if I am looking to extend the profile of the GRanges object by including a character attribute. eg.

temp <- GRanges(seqnames= . . . , ranges = . . .)

temp$name <- "ABC"

Here I want to have a character variable (accessible from the object), name that holds some textual information. Would it be possible by overriding the constructor of GRanges or am I going too far with this.

Thanks in advance.



genomicranges granges • 215 views
ADD COMMENTlink written 10 months ago by Shaurya Jauhari0

Maybe you are looking for metadata(temp)$name <- "ABC"?

ADD REPLYlink written 10 months ago by Michael Lawrence11k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 186 users visited in the last hour