How does PLINK --recode12 code SNPs from ACTG to 1 and 2 in .ped files?
2
2
Entering edit mode
6.7 years ago
V.S ▴ 20

I used PLINK --recode12 to transfer my ACTG ped file to 1 2 ped file. But I don't know how PLINK did this recoding, specifically, when should a SNP like A A transferred to 1 1 or 2 2, and also how are the heterozygous ones like A T are coded.

Any help is really appreciated!!

SNP genome • 6.7k views
ADD COMMENT
5
Entering edit mode
6.7 years ago

Usually the minor allele is coded as 1 and the major allele is coded as 2.

ADD COMMENT
0
Entering edit mode

Thank you chrchang523 !

ADD REPLY
3
Entering edit mode
4.2 years ago
Shicheng Guo ★ 9.4k

--reference-allele and --recode12 together will be helpful to understand the recoding. Here reference allele will be recoded to 1, the alternative will be 2

plink --bfile input --reference-allele MyReferenceAllele.txt --recode12 --out output

In addition, --reference-allele and --recodeA together will generate additive data for further analysis with R

plink --bfile input  --reference-allele MyReferenceAllele.txt --recodeA --out output
ADD COMMENT

Login before adding your answer.

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