Hi all
I have two txt file (file1: genotype.txt and file2: 6first coloum of ped), I used them to make ped with paste file1.txt file2.txt which use it for make a ped. the problem is that when I run plink with :
Options in effect:
--ped scottsheep.ped
--map scottisheep.map
--noweb
it give me this error:
52857 (of 52857) markers to be included from [ scottisheep.map ]
ERROR:
A problem with line 1 in [ scottsheep.ped ]
Expecting 6 + 2 * 52857 = 105720 columns, but found 52864
when I chek the ped file I found that I have successfully added all of the required information columns and just need to split all of my SNP columns which are currently in the following format ("AA") into two separate columns per SNP ("A" "A"). I search it and I know it could be solve in R, But I am new in use R. dose any command for txt file in bash which can split a colom to two coloum .
I am tired to search for this and not found any slouction.
dose any one has any suggestion for me?
Can you confirm exactly what you want to get?
Your data is currently in this format:
You need to get it to this format for input to PLINK:
From where did you obtain your data?
Grazie mille.
Hi Kevin I downloaded the data from https://datadryad.org, and yes I need to do what you wrote. I can do it on R but I want to know can I do it on bash
Are you using Mac or linux?
This works on linux:
I cannot see your exact input, though.
Hi , I use above command but I get this error
awk: program limit exceeded: maximum number of fields size=32767 FILENAME="-" FNR=1 NR=1
I try to install and use gawk , but I use Ubuntu 12.04 I think the package I am looking for doesn't existand. so I am looking Python script to do that dose any body have sloution?
thanks a lot every body, all of them worked
Which solution worked?
Please use
ADD COMMENT
orADD REPLY
to answer to previous reactions, as such this thread remains logically structured and easy to follow. I have now moved your reaction but as you can see it's not optimal. Adding an answer should only be used for providing a solution to the question asked.I have moved comments which provide a (potential) solution to your issue so you can mark them as accepted if they solve your issue.
If an answer was helpful you should upvote it, if the answer resolved your question you should mark it as accepted.