This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Calculate the b allele frequency from a VCF file

Hello,

I have to calculate the b-allele frequency from a vcf file. But I have some problems to understand some genotypes.

For example :

1/1:17:283,34,24:2,15:69,68
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

vcf frequency

What's the GT FORMAT? That information would help a lot in figuring out what the genotype value you've given us means.

1 answer

The same question:Computing B-Allele Frequency From Bam Or Vcf Related To Exome Samples

as far as I can see , the AD = 2,15 , so the BAF=2/(2+15)

Log in to answer this question.