Question: How is it possible to override the constructor of the GRanges class?
0
gravatar for Shaurya Jauhari
6 months ago by
China
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.

Best,

Shaurya.

genomicranges granges • 160 views
ADD COMMENTlink written 6 months ago by Shaurya Jauhari0

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

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

Help
Access

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