I'm currently trying to infer the read depth in an area of interest from a bwa alignment sam file on an illumina run.
I am using the samtools pileup tool to get the per base coverage, and it seems to be working great. the problem is that I seem to get different read coverage when I perform the pileup on the original bwa sam file (that includes unmapped and non uniquely mapped reads) and when I perform the pileup on the same sam file only filtered for uniquely mapped reads.
The coverage is slightly higher when I use the unfiltered sam file, but if it includes non relevant reads, maybe I should stick to the uniquely mapped reads.
Your opinion?
Thanks.
a very nice tool, looks promising.