This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How tp Extract SNPs values

Hello

I have two files MaleSNPsList.txt (in which I have a list of SNPs) and MaleSNPsValues.ped (in which I have SNPs values extracted for SNPs). I need to have a data file that looks like this

enter image description here.

In place of tree18, I need snp id i.e rs4558857 which is in list,

enter image description here

and in place of 01-256 I need sample id i.e 6 which is values.ped file

enter image description here

please help

plink

Use --extract mySNPs.txt to subset the SNPs. Then drop columns 2-6 from ped file, and get SNP names from map file for columns.

0 answers

No answers yet.

Log in to answer this question.