Question: Is it useful to define and export a setAs('BSgenome', 'GRanges')
0
gravatar for Aditya
11 days 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 • 68 views
ADD COMMENTlink modified 11 days ago by Michael Lawrence11k • written 11 days ago by Aditya120
Answer: Is it useful to define and export a setAs('BSgenome', 'GRanges')
1
gravatar for Michael Lawrence
11 days 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 11 days ago by Michael Lawrence11k

Thank you Michael .

ADD REPLYlink modified 11 days ago • written 11 days 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: 227 users visited in the last hour