AF column in VCF file
1
0
Entering edit mode
2.2 years ago
Eliza ▴ 40

Hi , I'm new to genetics . I have a VCF file and for each sample I need to identify if it is heterozygous or homozygous. For example, if AF=0.5 is it herto or homo?

Thank you

VCF AF heterozygous • 837 views
ADD COMMENT
3
Entering edit mode
2.2 years ago
iraun 6.2k

AF stands for "Allele frequency". 0.5 means heterozygous. Another way of checking the zygosity is the GT field, standing for genotype. There you will see things like 1/1 = Homozygous for the alternative allele (the variant); 0/1 = heterozygous; 0/0 = homozygous for the reference allele (no variant).

ADD COMMENT
0
Entering edit mode

Than you for your answer . As I understand you can encode hetro as 1 and homozygous as 2 . And if the SNP is not present then the it is encoded as 0 .I was wondering if this genotype encoding is based on minor if major allele? Since I want to preform a SKAT test and I have to build a genotype matrix: numeric genotype matrix with each row as a different individual and each column as a separate gene/snp. Each genotype should be coded as 0, 1, 2, and 9 for AA, Aa, aa, and missing, where A is a major allele and a is a minor allele. So if I base my encoding on the AF field and say that 0.5 is hetro is it ok ?

ADD REPLY

Login before adding your answer.

Traffic: 2079 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6