Genotypes conversion (Affymetrix chip)
1
1
Entering edit mode
8.6 years ago

Hi all, I am have one file with genotype info from many individuals, for example (file 1)

SNP1     1       1       1       1       1       1       0       1       0       1
SNP2     2       2       2       2       2       1       1       2       2       1

I have another file with the information of alleles of each SNP, as example (map file):

SNP_ID   Chr     Pos             Alele_A/Alele_B
SNP1     17      306961          T/C
SNP2     1       72709827        A/G

How can I to convert file 1 to their respective genotypes (from file 2)?

Important information:

  • -1= no call
  • 0=AA (homozygous for the reference allele)
  • 1=AB
  • 2=BB (homozygous for the alternative allele)

Thanks

Clarissa

SNP chip genotype • 3.0k views
ADD COMMENT
0
Entering edit mode

You can either use plink --recode option or use awk or sed (Example : sed 's/1/AB/g' inputfilename > outputfilename).

ADD REPLY
1
Entering edit mode
8.6 years ago

The code is:

  • -1= no call
  • 0=AA (homozygous for the reference allele)
  • 1=AB
  • 2=BB (homozygous for the alternative allele)
ADD COMMENT
0
Entering edit mode

Gotta love it when folks answer their own questions--really helpful for the rest of the community!

ADD REPLY
0
Entering edit mode

So sorry it was my first question here. I wanted to add some important info, but the correct is to edit the question. Can I delete my reply?

ADD REPLY

Login before adding your answer.

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