How to extract a subset of samples from plink .bed files
0
0
Entering edit mode
2.7 years ago
Raju • 0

Hello. I am trying to extract data from .bed file using the following command:

~/data/df$ plink --bed Obesity_Send.bed --bim Obesity_Send.bim --fam Obesity_Send.fam --keep-fam ii.txt --make-bed --out ii

Here is the plink log from problematic run.

PLINK v1.90b6.25 64-bit (5 Mar 2022) Options in effect: --bed Obesity_Send.bed --bim Obesity_Send.bim --fam Obesity_Send.fam --keep-fam ii.txt --make-bed --out ii

Hostname: cohort-700-l-0 Working directory: /home/jovyan/data/df Start time: Thu Mar 31 11:12:41 2022

Random number seed: 1648725161 30153 MB RAM detected; reserving 15076 MB for main workspace.

2655566 variants loaded from .bim file.

522 people (123 males, 399 females) loaded from .fam.

291 phenotype values loaded from .fam.

Error: Failed to open ii.txt.

End time: Thu Mar 31 11:12:42 2022

please help, since I'm new to plink

plink • 807 views
ADD COMMENT
0
Entering edit mode

Failed to open ii.txt probably means ii.txt isn't the current directory.

ADD REPLY
0
Entering edit mode

got it, i created ii.txt file and run the command then this error throwing:

enter image description here

log :

PLINK v1.90b6.25 64-bit (5 Mar 2022) Options in effect: --bed Obesity_Send.bed --bim Obesity_Send.bim --fam Obesity_Send.fam --keep-fam ii.txt --make-bed --out ii

Hostname: cohort-700-l-0 Working directory: /home/jovyan/data/df Start time: Thu Mar 31 11:53:41 2022

Random number seed: 1648727621 30153 MB RAM detected; reserving 15076 MB for main workspace.

2655566 variants loaded from .bim file.

522 people (123 males, 399 females) loaded from .fam.

291 phenotype values loaded from .fam.

Error: No people remaining after --keep-fam.

End time: Thu Mar 31 11:53:41 2022

ADD REPLY
0
Entering edit mode

Actually i need to extract sample id's, how to do so?

ADD REPLY

Login before adding your answer.

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