Thank you for your response. Here is the adjusted code I ran:
$bcftools mpileup -Ou -f sacCer3.fa -q 10 -d 250 A7_sorted.bam | bcftools call -Ou -m --ploidy 1 | bcftools norm -f sacCer3.fa -Oz -o A7pl.vcf.gz
$bcftools view -H C2pl.vcf.gz chrI:26973
chrI 26973 . A G 18.4764 . DP=32;VDB=1.56112e-05;SGB=-0.69312;MQ0F=0;AC=1;AN=1;DP4=0,0,32,0;MQ=11 GT:PL 1:48,0
It appears the variant is now being called with the revised code - thank you! However, the issue I am having is that I am trying to compare two bam files to identify unique variants. When I run the following command to compare variants:
$bcftools isec -n-1 -c none C2n.vcf.gz A7n.vcf.gz -Oz -p var/
many of the sites on this list appear to be calling differences where there don't appear to be any (as viewed in IGV). It seems this is because one of the vcf files will generate two calls. As an example, for position chrI:1469, calling file 1:
$bcftools view -H A7pl.vcf.gz chrI:1469
chrI 1469 . C . 284.59 . DP=202;MQ0F=0;AN=1;DP4=107,91,0,0;MQ=26 GT 0
whereas calling file 2:
$bcftools view -H C2pl.vcf.gz chrI:1469
chrI 1469 . C . 284.59 . DP=185;MQ0F=0;AN=1;DP4=101,81,0,0;MQ=25 GT 0
chrI 1469 . C . 29.597 . INDEL;IDV=12;IMF=0.0648649;DP=185;SGB=-0.379885;RPBZ=2.5594;MQBZ=-5.13732;MQSBZ=-2.0529;BQBZ=-3.44995;SCBZ=1.04845;MQ0F=0;AN=1;DP4=99,71,0,1;MQ=26 GT 0
Given many more reads support the reference (DP4=99,71,0,1), why does bcftools generate this potential variant? Is there a way to screen these lower quality calls out before running my comparison?
Thank you