Apparently, when counting the reads, sambamba filters out reads that are unaligned but that have their mate paired AND where the aligned mate starting alignment position corresponds to one starting position in the bed file +1.
Is this a bug in sambamba (or in samtools) or is there a way to circumvent the issue?
Dear all,
I discovered a discrepancy when counting the reads between samtools and sambamba
samtools view -c -L file.bed file.bam
andsambamba view -c -L file.bed file.bam
Apparently, when counting the reads, sambamba filters out reads that are unaligned but that have their mate paired AND where the aligned mate starting alignment position corresponds to one starting position in the bed file +1.
Is this a bug in sambamba (or in samtools) or is there a way to circumvent the issue?
samtools 1.7 sambamba 0.6.7-pre1