Entering edit mode
10.9 years ago
shamrocktuesday
▴
30
I have a genotype matrix (700 000 rows of SNPs and 2000 columns of samples). It's coded as 0/1/2 or NA. I want to convert this into plink format ped and map files. What's the best way to do this?
Thanks for the help!
It looks like:
Sample1 Sample2 Sample3 Sample N
SNP1 0 1 0 2
SNP2 0 NA 0 0
SNP3 0 0 0 0
SNP4 0 NA 0 0
SNP5 0 1 0 2
SNP6 0 NA 0 0
SNP7 2 1 0 2
SNP8 NA NA NA NA
Can you show us sample of the file?
zx8754 is right an example is a must.
can you tell me, How can i do it in R? I have a genotype matrix (near 3000 animal with 50 000 SNP in columns). It's coded as 0/1/2 or NA. I want to convert this into plink format in form allelic format for example 0 to 0 0, 1 to 1 1 and 2 to 2 2. this is a format for PLINK for quaity control my data, What's the best way to do this in R?