Closed GoogleCodeExporter closed 8 years ago
[deleted comment]
I can't reproduce this on rev 81ec15fe64a3
samfile.fetch('chr2') correctly fetche reads aligned against chr2 in my
(sorted, indexed) bam file.
I wouldn't suppose this has anything to do with '0 based indexing', chromosomes
within a bam are basically in arbitrary order, and you need to use
bamfile.references
to see which one they are actually aligned to.
What does bamfile.references[list(samfile.fetch('chr2'))[0].rname] say,
vasishtreeddy?
Plesae also controst with issue:25
Original comment by finkerna...@mathematik.uni-marburg.de
on 14 Jun 2010 at 1:42
I think I messed up there, it's the same as issue:25. Sorry about the
confusion. samfile.fetch behaves as expected, but the rname is decremented by 1.
Original comment by vasishtr...@gmail.com
on 14 Jun 2010 at 2:40
thanks. I admit, the chromosome access can be improved.
Original comment by andreas....@gmail.com
on 18 Jul 2010 at 6:17
Original issue reported on code.google.com by
vasishtr...@gmail.com
on 7 Jun 2010 at 2:56