This is a test version of Biostars. For the public version, visit https://www.biostars.org.
convert from plink format into 012 format

Hello

I have a .ped file in plink and would like to convert it into the 012 format (0 hom ancestral), 1 het, 2 dom derived. Is there any way to achieve this with an option in plink?

snp

2 answers

plink --file [.ped/.map fileset prefix] --recodeA --out [output prefix]

Very helpful!

Use --recodeA

See Additive and dominance components

Log in to answer this question.