How is it possible to override the constructor of the GRanges class?
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.
• 79 views
•
link
0 answers
No answers yet.
Log in to answer this question.
I would like to recommend to ask this on Bioconductor support as you did: https://support.bioconductor.org/p/116003/
Hello Shaurya Jauhari!
It appears that your post has been cross-posted to another site: https://support.bioconductor.org/p/116003/
This is typically not recommended as it runs the risk of annoying people in both communities.