Is it useful to define and export a setAs('BSgenome', 'GRanges')
1
0
Entering edit mode
Aditya ▴ 160
@aditya-7667
Last seen 21 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 • 923 views
ADD COMMENT
1
Entering edit mode
@michael-lawrence-3846
Last seen 2.3 years 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: 927 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