Closed mcrusch closed 3 years ago
My suggestion would be to use sambamba to pull the reads during the splitting step, e.g. sambamba view -F "ref_name =~ /\*/ and unmapped and mate_is_unmapped"
. Then just pass an additional bam to the merge step at the end.
Closing now that #10 is merged.
Unmapped read pairs (with empty reference name) are not being included in the final BAM. Presumably, this was introduced with the FASTQ extraction optimization, since no-reference reads are not extracted there.