Hi I run a samtools command to get a vcf file to find snp in a given area. But the result in vcf file doesn't make sense to me.
My command:
samtools mpileup -C50 -r chr21:start-end -Buf ref.fa 1.bam 2.bam 3.bam 4.bam 5.bam 6.bam 7.bam 8.bam 9.bam 10.bam 11.bam 12.bam 13.bam 14.bam | bcftools view -bvcg - > var.raw.bcf
bcftools view var.raw.bcf > var.flt.vcf
The last line in vcf is:
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT 1 2 3 4 5 5 7 8 9 10 11 12 13 14
chr21 41801273 . A T 39.4 . DP=26;AF1=0.195;CI95=0.07143,0.3929;DP4=9,5,2,1;MQ=49;FQ=40.3;PV4=1,1,1.7e-12,1 GT:PL:GQ 0/0:0,0,0:5 0/0:0,12,101:16 0/1:27,3,0:7 0/1:65,6,0:5 0/0:0,6,59:10 0/0:0,9,71:13 0/0:0,0,0:5 0/0:0,3,29:7 0/0:0,6,51:10 0/0:0,6,53:10 0/0:0,0,0:5 0/0:0,0,0:5 0/0:0,0,0:5 0/0:0,0,0:5
Why ID column and REF column are nothing, I don't understand it. Anything wrong in command or data preparation? Thanks.
samtools is notorious for ignoring additional files - i don't think anything but 1.bam is being processed here