Closed da-i closed 2 years ago
Thanks for the detailed issue!
This is odd. Would you be able to share the samtools view -f 256 -b tmp_sub.bam > tmp_sub_sec.bam
bam file? Or even post a few anonymized secondary alignment reads?
If you are willing to exclude secondary alignments, perbase base-depth
does have a -F
flag that can be set to exclude them.
I'm pretty sure the index out of bounds is happening here where we try to get the base in the sequence, but for some reason htslib has no sequence for the secondary alignment?
Closing due to inactive, but please re-open if it's an issue still.
Im trying to run perbase on some ONT data containing repeating DNA segments.
But if I run :
returns the expected output.
Alternatively:
So i think we can conclude that it fails due to secondary alignments.