Question: Read MAP and PED files in PLINK
0
gravatar for ft821525
5 months ago by
ft8215250
ft8215250 wrote:

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


plink gwas • 507 views
ADD COMMENTlink modified 5 months ago by Wietje150 • written 5 months ago by ft8215250

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

ADD REPLYlink written 5 months ago by Gabriel R.2.5k

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 REPLYlink written 5 months ago by ft8215250
1
gravatar for Wietje
5 months ago by
Wietje150
Wietje150 wrote:

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

ADD COMMENTlink written 5 months ago by Wietje150

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 REPLYlink modified 5 months ago • written 5 months ago by ft8215250

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 REPLYlink modified 5 months ago • written 5 months ago by Wietje150

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

ADD REPLYlink written 5 months ago by ft8215250
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: 1227 users visited in the last hour