Entering edit mode
6.7 years ago
peiqi1122
•
0
I was wondering if there is a way to return byte ranges instead of a slice with samtools view
on a bam file?
In other words, with samtools view -bh foo.bam 1:10-100
,
it returns a pair of ints (start_byte_pos, end_byte_pos)
for the resulting query, or a list of such pairs if the data are not located contiguously in the foo.bam
.