I am using samtools mpileup to call variants from my bam file. However, there are situation where for example there is G in reference sequence and there is ten times T in the reads - as I can see in IGV browser
However, in mpileup there is G just six times instead of ten:
contig 555 G 6 TttTtt 811657
I can understand this, maybe quality of reads/bases was not sufficient to get into mpileup.
Finally, this variant is missing from vcf file and I want it there.
I have tried this command: samtools mpileup -uf reference.fasta aln.bam | bcftools view -p 0.75 -cgv - | /usr/share/samtools/vcfutils.pl varFilter >aln.vcf
and than modifications like adding -B or -E parameters with no success. What can I do to force samtools call my variant?
Thank you very much.
EDIT: OK, I might figure it out. Mapping quality of those reads is 0. But if there are hundreads of reads with mapping quality 0, I can trust the variant they suggests, can not I?
Thanks for your answer. I have been thinking about it; what If I have duplicated gene with two forms differing only in one narrow part of alignment, then everything else would also have a mapping quality MQ=0, right? So this is one biological explanation, where MQ=0 is actually OK?