plink1.9 fails to open a phenotype txt file

244 views
Skip to first unread message

CD

unread,
May 29, 2020, 7:31:05 PM5/29/20
to plink2-users
Hello,

With plink 1.9, I run the following command :

plink --file Data --pheno pheno.txt --pheno-name LPSIL6 --covar covar.txt --linear

There is no problem for plink to read the files Data.ped and Data.map but he fails to open the txt file pheno.txt. (Error: Failed to open pheno.txt)
I don't understand because pheno.txt is in the working directory. Moreover this file is written in the correct format (FID, IID, Pheno1, Pheno2, etc ... with tab delimiters)
I should specify that this txt comes from a R dataframe, written into a txt file with the command write.table. It has already the "-9" instead of the "NA".

This is the first time I encounter this problem, so any suggestion would be helpful.

Thank you in advance. 

Christopher Chang

unread,
May 30, 2020, 10:26:59 AM5/30/20
to plink2-users
What happens when you run "head pheno.txt" from the same directory you tried to run plink from?

CD

unread,
May 30, 2020, 11:29:32 AM5/30/20
to plink2-users
I'm sorry but I work with windows so I do not really have this head option.

Christopher Chang

unread,
May 30, 2020, 11:37:02 AM5/30/20
to plink2-users
Then run "type pheno.txt | more".

CD

unread,
May 30, 2020, 11:45:34 AM5/30/20
to plink2-users
Oh that's interesting because I get "the specified file was not found" (which is also coherent with the plink error). However that's just super weird because the file is just there, as you can see on the screen.

Christopher Chang

unread,
May 30, 2020, 11:51:15 AM5/30/20
to plink2-users
I'd double-check that there isn't e.g. a trailing space in the filename.

CD

unread,
May 30, 2020, 12:06:03 PM5/30/20
to plink2-users
I checked again and there is no trailing space. Well, I guess that's not a plink issue. Thank you for your help.
Reply all
Reply to author
Forward
0 new messages