seqnames versus chrom
1
0
Entering edit mode
@felixernst-13698
Last seen 4.2 years ago

Dear all,

I can retrieve the chromosome names stored in a GRanges object either using GenomeInfoDb::seqnames() or rtracklayer::chrom(). This deviates from the use of the other accessor functions, such as BiocGenerics::start(), BiocGenerics::end(), etc

Is there a reason for this split up? Is there a best practice, which function (seqnames or chrom) to use?

Thanks for the suggestions.

Cheers,

Felix

 

 

BiocGen rtracklayer genomeinfodb • 1.1k views
ADD COMMENT
1
Entering edit mode
@michael-lawrence-3846
Last seen 2.4 years ago
United States

Stick with seqnames(). The chrom() accessor is from before GRanges existed. Should probably be deprecated.

ADD COMMENT

Login before adding your answer.

Traffic: 855 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