Hi,
I run bwa-mem with same sample, different number of thread.
and then, output file(sam) is different.
my bwa version is 0.7.13,
I see the bwa notice (https://github.com/lh3/bwa/blob/master/NEWS.md)
Release 0.7.13 (23 Feburary 2016)
Fixed a potential bug in the multithreading mode. It may occur when mapping is much faster than file reading, which should almost never happen in practice.
Why they are still different?
thread running data(samtools flagstat)
150380122 + 0 in total (QC-passed reads + QC-failed reads)
0 + 0 secondary
145716 + 0 supplementary
0 + 0 duplicates
150143022 + 0 mapped (99.84% : N/A)
150234406 + 0 paired in sequencing
75117203 + 0 read1
75117203 + 0 read2
148053330 + 0 properly paired (98.55% : N/A)
149791510 + 0 with itself and mate mapped
205796 + 0 singletons (0.14% : N/A)
1519238 + 0 with mate mapped to a different chr
1330739 + 0 with mate mapped to a different chr (mapQ>=5)
no-thread running data(samtools flagstat)
150380124 + 0 in total (QC-passed reads + QC-failed reads)
0 + 0 secondary
145718 + 0 supplementary
0 + 0 duplicates
150143026 + 0 mapped (99.84% : N/A)
150234406 + 0 paired in sequencing
75117203 + 0 read1
75117203 + 0 read2
148053228 + 0 properly paired (98.55% : N/A)
149791516 + 0 with itself and mate mapped
205792 + 0 singletons (0.14% : N/A)
1519274 + 0 with mate mapped to a different chr
1330758 + 0 with mate mapped to a different chr (mapQ>=5)
bwa
mem
sequencing
alignment