Entering edit mode
2.9 years ago
kk.mahsa
▴
150
In a multi-sample VCF file, How can we count the number of major and minor alleles for an SNP in all samples? Should we use the "AF" to identify major or minor alleles? Is the number of each allele given in the "AD" under the FORMAT field?
Can you post an example of the vcf file you're working on?
In a vcf file, you should have the genotype which you can use to filter/count the alleles.
This is an example of my main file (two SNP)