I have to calculate the b-allele frequency from a vcf file. But I have some problems to understand some genotypes.
For example :
AD = 2,15
How can i calculate the BAF ? ( number of reads of the alternatif allele/ number of reads)
I don't know if 17/17 (=1) it's correct or not ?
And if the genotype is 0/0, the baf is equal to 0 ?
Thanks for advance