Closed vals closed 8 years ago
Whenever a batch of 1,000 reads had 0 mappings, pop_back() caused a segmentation fault, probably because the string is empty.
Additionally, when this happens a new empty line was output for each group of empty reads, causing samtools to fail.
(By the way, having no read among 1,000 to map anywhere is a very rare event.)
Thanks @vals --- there's all kinds of good corner cases that show up with single-cell data. Thanks for the bug report and the fix!
Whenever a batch of 1,000 reads had 0 mappings, pop_back() caused a segmentation fault, probably because the string is empty.
Additionally, when this happens a new empty line was output for each group of empty reads, causing samtools to fail.
(By the way, having no read among 1,000 to map anywhere is a very rare event.)