Question: Is it useful to define and export a setAs('BSgenome', 'GRanges')
0
gravatar for Aditya
6 weeks ago by
Aditya120
Germany
Aditya120 wrote:

Lori nicely explained how a BSgenome can be converted into a GenomicRanges::GRanges object.

Would it be useful to turn this into an exported S4 method in GenomicRanges or BSgenome?

methods::setAs( "BSgenome", 
                "GRanges", 
                function(from)  as(GenomeInfoDb::seqinfo(from), 'GRanges')
bsgenome genomicranges • 84 views
ADD COMMENTlink modified 6 weeks ago by Michael Lawrence11k • written 6 weeks ago by Aditya120
Answer: Is it useful to define and export a setAs('BSgenome', 'GRanges')
1
gravatar for Michael Lawrence
6 weeks ago by
United States
Michael Lawrence11k wrote:

It depends on how obvious the conversion is. Sometimes, probably including this time, it's best to be explicit. Others may have a different opinion though.

ADD COMMENTlink written 6 weeks ago by Michael Lawrence11k

Thank you Michael .

ADD REPLYlink modified 6 weeks ago • written 6 weeks ago by Aditya120
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: 192 users visited in the last hour