When calling SNPs with samtools, I need to know which one is Hetero or Homozygote.
I tried the following code, but I have to look at the 1/1 and it doesn't give me the allele count or Percent:
$ samtools mpileup -ugf fasta.fa aln.bam | bcftools view -bvcg - > var.raw.bcf
$ bcftools view var.raw.bcf | vcfutils.pl varFilter -D1000000 > var.flt.vcf
I'd like to output a file that has 8 columns such as the picture below:
Is there any way to output a file with 8 columns like that one?