Additive and dominance components for .ped file
1
0
Entering edit mode
2.6 years ago
Raju • 0

I have list of SNPs and I'm trying to extract values for list of SNPs using below plink command:

plink --bfile Obesity_Send --extract MaleSNPsList.txt --recode --out MaleSNPsValues --noweb

which results .ped file, using --recodeAD I would like get Additive and dominance components for .ped file . For example, consider the following PED file, which has two SNPs:

 1 1 0 0 1  1  1 1  G G
 1 2 0 0 2  1  0 0  A G
 1 3 0 0 1  1  1 1  A G
 1 4 0 0 2  1  2 1  A A

Using the --recodeAD option generates the file plink-recode.raw:

     FID IID PAT MAT SEX PHENOTYPE snp1_2 snp1_HET snp2_G snp2_HET
 1 1 0 0 1 1  0  0   2 0
 1 2 0 0 2 1  NA NA  1 1
 1 3 0 0 1 1  0  0   1 1
 1 4 0 0 2 1  1  1   0 0

Desired Output:

     FID IID PAT MAT SEX PHENOTYPE snp1_2 snp1_HET snp2_G snp2_HET
 1 1 0 0 1 1  0  0   G G
 1 2 0 0 2 1  NA NA  A G
 1 3 0 0 1 1  0  0   A G
 1 4 0 0 2 1  1  1   A A

Any Suggestions & best methods much appreciated. I'm new to Plink please help

plink • 617 views
ADD COMMENT
0
Entering edit mode
2.6 years ago

That .ped file is basically nonsense. You need to decide on a consistent method of encoding your alleles (probably replacing the “1”/“2” allele codes in your first variant with something more descriptive) before we can usefully talk about conversion to other formats.

ADD COMMENT

Login before adding your answer.

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