How to represent genotypes of form 1|1
1
0
Entering edit mode
4.2 years ago
AHW ▴ 90

I have a VCF file and the genotypes look like

1|0     1|0     0|1     1|0     0|1     0|1     0|1 0|0

In my other file, I have genotypes like AA, AB and BB

I was wondering if I can represent them in an equivalent form.

1|0     1|0     1|1     1|0     0|1    0|0
AB      AB      AA      AB      BA     BB

Are both the same thing?

genome vcf • 985 views
ADD COMMENT
1
Entering edit mode
4.2 years ago
Yean ▴ 140

The allele values are 0 for the reference allele (what is in the REF field), 1 for the first allele listed in ALT, 2 for the second allele list in ALT and so on

Reference

ADD COMMENT
0
Entering edit mode

Thanks!. I have SNP calls, so how can I convert them in genotypes such as AA, AB, and BB.

ADD REPLY
0
Entering edit mode

You can convert your genotype file into PED/MAP format by plink

For example

plink1.9 --vcf your.vcf --recode --out example
ADD REPLY
0
Entering edit mode

Thanks, it is not giving me anything like AA, AB, BB. It gives me two output files (.map, .ped), but not the information I am looking for. For example for SNP rs10001 G T, I would like to have something rs10001 G T, AB.

ADD REPLY

Login before adding your answer.

Traffic: 2616 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