Question: How can I convert .ped file to bed+bim+fam file using plink 1.9?
1
gravatar for sofie_carolina
6 months ago by
Hyderabad
sofie_carolina20 wrote:

I have a ped file for 50 samples. Also, I have map file for the same. How to make use of ped and map files to generate bed, bim and fam files ?

I tried running using plink,

./plink_1.9_linux_160914 --file input_files/50_samples.ped --make-bed --out 50_samples_try --noweb
PLINK v1.90b2i 64-bit (8 Sep 2014)         https://www.cog-genomics.org/plink2
(C) 2005-2014 Shaun Purcell, Christopher Chang   GNU General Public License v3
Logging to 50_samples_try.log.
Note: --noweb has no effect since no web check is implemented yet.
15741 MB RAM detected; reserving 7870 MB for main workspace.
Error: Failed to open input_files/50_samples.ped.map. (--file expects a
filename *prefix*; '.ped' and '.map' are automatically appended.)

Please help

ped plink next-gen snp gene • 674 views
ADD COMMENTlink modified 6 months ago by genomax73k • written 6 months ago by sofie_carolina20
2
gravatar for Nandini
6 months ago by
Nandini830
London
Nandini830 wrote:

Have you read the manual ?

The error you get "--file expects a filename prefix; '.ped' and '.map' are automatically appended." is self explanatory.

Please remove the prefix '.ped'

The command should be

plink --file 50_samples --make-bed --out 50_samples_try
ADD COMMENTlink modified 6 months ago • written 6 months ago by Nandini830

Thanks, But now am getting different error.

./plink_1.9_linux_160914 --file 50_samples --make-bed --out 50_samples_try

PLINK v1.90b2i 64-bit (8 Sep 2014)         https://www.cog-genomics.org/plink2
(C) 2005-2014 Shaun Purcell, Christopher Chang   GNU General Public License v3
Logging to 50_samples_try.log.
15741 MB RAM detected; reserving 7870 MB for main workspace.
Error: Failed to open 50_samples.map.
ADD REPLYlink modified 6 months ago by genomax73k • written 6 months ago by sofie_carolina20

Thanks Nandini Issue resolved :).

ADD REPLYlink modified 6 months ago • written 6 months ago by sofie_carolina20

Don't forget to follow up on your threads.

If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one if they work.
Upvote|Bookmark|Accept

Please do the same for your previous posts as well.

ADD REPLYlink written 6 months ago by genomax73k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1030 users visited in the last hour