Is it useful to define and export a setAs('BSgenome', 'GRanges')
1
0
Entering edit mode
Aditya ▴ 120
@aditya-7667
Last seen 6 months ago
Germany

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 • 325 views
ADD COMMENT
1
Entering edit mode
@michael-lawrence-3846
Last seen 7 weeks ago
United States

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 COMMENT
0
Entering edit mode

Thank you Michael .

ADD REPLY

Login before adding your answer.

Traffic: 446 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6