Hi everyone,
There is a question that why samtools depth count is different with samtools tview count.
For example , I use "samtools depth -q 0 -Q 0 my.bam > my.depth" to get the depth of the sites,however the depth is smaller than I see through samtools tview.(I guess this different generated by secondary map.)
Is there a way that can get the same depth with samtools tview?
See here: Does Samtools Tview Hide Pcr And Optical Duplicates?
And not to my knowledge, no - use another genome browser :(
Thanks,we can use pysam to get the same count.