Plink extract SNPs from .ped file using ID
1
0
Entering edit mode
8.7 years ago
deepue ▴ 160

Hi,

I have a .ped file containing data from 3 groups of population. I have checked the documentation of the PLINK for extracting the subset of data from the PLINK files, but couldn't find the way to extract data based on ID(s). Could you please provide an idea on how to achieve this?

plink gwas SNP • 5.6k views
ADD COMMENT
1
Entering edit mode
ADD COMMENT
0
Entering edit mode

I tried the below command but it didn't work. Did I miss anything?

plink --file combined_maternal --extract ../pop1_IDs.txt --make-bed --out ../pop1
ADD REPLY
0
Entering edit mode

You should use --keep, not --extract. From the linked page:

--keep accepts a space/tab-delimited text file with family IDs in the first column and within-family IDs in the second column, and removes all unlisted samples from the current analysis.

ADD REPLY

Login before adding your answer.

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