Hi All,
I've been attempting to run qualimap and samtools depth on my WGS bam file in order to calculate both mean coverage and Stdev of my whole genome data (Illumina paired-end reads).
For qualimap, I've been running:
$ qualimap bamqc -bam [input.bam] -c
$ samtools depth [input.bam] | awk '{sum+=$3; sumsq+=$3*$3} END { print "Average = ",sum/NR; print "Stdev = ",sqrt(sumsq/NR - (sum/NR)**2)}'
Here are the results:
Coverage Coverage Stdev Stdev
(qualimap) (samtools) (qualimap) (samtools)
11.03 11.44 115.05 24.59
It seems that there is a major difference between the two tools in regards to the Stdev.
I'd appreciate your thoughts about this.
Thanks!
Sagi