Read MAP and PED files in PLINK
0
0
Entering edit mode
6.6 years ago
ft821525 • 0

I want to conduct GWAS analysis using PLINK 1.9. I have created the text files that contain MAP and PED data. However, I could not read the files into PLINK and keep getting errors (attached) I suspect that the problem is the file format, but I have no idea on how can I create MAP/PED files from text file. I searched everywhere for solution but without success. I appreciate if you can help me sort this problem by describing the steps from data.frame in excel to reading the data into PLINK. Thank you!


PLINK erro

PLINK erro


ped file

ped file


My directory

My directory


GWAS PLINK • 8.2k views
ADD COMMENT
2
Entering edit mode

Could you tell us what error message you got exactly and what your code was? That would help with debugging...

ADD REPLY
0
Entering edit mode

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

c:>cd GWAS\plink

c:\GWAS\plink>plink --file hc PLINK v1.90b5.4 64-bit (10 Apr 2018) www.cog-genomics.org/plink/1.9/ (C) 2005-2018 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to plink.log. Options in effect: --file hc

8108 MB RAM detected; reserving 4054 MB for main workspace. Error: Failed to open hc.map.

ADD REPLY
0
Entering edit mode

Could you provide an excerpt from the map file? And most importantly - in your directory screenshot the PED and MAP file are listed as text documents, so apparently something went wrong when saving the file. Did you export directly from Excel? I often exported to Notepad (text editor) first with copy-paste and then saved as "all file types" --> then the ".map" and ".ped" ending actually work.

ADD REPLY
0
Entering edit mode

Many thanks Wietje, the problem was solved by saving the file as you suggested.

ADD REPLY
0
Entering edit mode

Hi, i followed your method and it becomes a rtf file for some reason...Could you explain it in more detail? Thanks!

ADD REPLY
0
Entering edit mode

I am confused, what do you mean "from text file"?

ADD REPLY
0
Entering edit mode

It means that I copied the map and ped data from excel and pasted in text file and saved them with extention of map and ped. The attached is screen shot of the ped data in excel sheet.

ADD REPLY
0
Entering edit mode

hello, i got an error even files were originally created in map and ped format and i can't convert them into plink binary

plink --map coatColor.map --ped coatColor.ped --allow-no-sex --dog --make-bed --out coatColor.binary

could you help?

ADD REPLY
0
Entering edit mode

eshrakaali_p : Please create a new question providing additional information of what you did and the error you are getting.

ADD REPLY

Login before adding your answer.

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