Question: Converting Tped To Ped
2
gravatar for Click downvote
6.0 years ago by
Germany
Click downvote670 wrote:

Right now I'm using the commands

convert_tped_to_bed="plink --noweb --tfile  ${TEMP_DIR}${BASENAME} --make-bed --out  ${TEMP_DIR}${BASENAME}"

convert_bed_to_ped="plink --noweb --bfile  ${TEMP_DIR}${BASENAME} --recode --tab --out ${PLINK_DIR}"

to convert tped files to ped files. Is there a way to go directly from tped to ped? --make-ped does not work.

plink ped • 9.1k views
ADD COMMENTlink modified 4.0 years ago by Simo30 • written 6.0 years ago by Click downvote670
4
gravatar for Matt Shirley
6.0 years ago by
Matt Shirley9.1k
Cambridge, MA
Matt Shirley9.1k wrote:

I think you're making this more difficult than it needs to be: plink --tfile file.tped --recode

ADD COMMENTlink written 6.0 years ago by Matt Shirley9.1k
1
gravatar for Simo
4.0 years ago by
Simo30
Italy
Simo30 wrote:

Hi,

the .tped file should be associated to a .tfam file (same name, different extension. i.e. FILE.tped and FILE.tfam), in this way you could avoid to type the extension of the file, and write just FILE.

Plink will go through both the files in order to elaborate what you need.

Plink website is very exhaustive, but have a look to this one too, if it helps: https://www.cog-genomics.org/plink2/formats

ADD COMMENTlink written 4.0 years ago by Simo30
0
gravatar for Licp.4
4.0 years ago by
Licp.40
Spain
Licp.40 wrote:

Hi, 

I have also a huge tped file, and when I try to use the command plink --tfile file.tped --recode, the software returns me an error telling me that the file that I am using as input but with extension .tfam doesn't exists. This is true, but in the previous command it does not appear so I don't know where is the problem. 

Hope someone can help me,

 

Thanks.

 

 

ADD COMMENTlink written 4.0 years ago by Licp.40
1

To read a transposed fileset, use the command

plink --tfile mydata

which implies mydata.tped and mydata.tfam exists; alternatively, if the files are differently named, they can be individually, fully specified:

plink --tped mydata.tped --tfam pedinfo.txt

HINT You can generate transposed filesets with the --transpose option, described in the data management section

 

ADD REPLYlink written 4.0 years ago by Tky990
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: 1995 users visited in the last hour