Question: Converting Tped To Ped
gravatar for Click downvote
6.7 years ago by
Click downvote690 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.9k views
ADD COMMENTlink modified 4.7 years ago by Simo30 • written 6.7 years ago by Click downvote690
gravatar for Matt Shirley
6.7 years ago by
Matt Shirley9.3k
Cambridge, MA
Matt Shirley9.3k wrote:

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

ADD COMMENTlink written 6.7 years ago by Matt Shirley9.3k
gravatar for Simo
4.7 years ago by
Simo30 wrote:


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:

ADD COMMENTlink written 4.7 years ago by Simo30
gravatar for Licp.4
4.7 years ago by
Licp.40 wrote:


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,


ADD COMMENTlink modified 7 months ago by RamRS27k • written 4.7 years ago by Licp.40

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 modified 7 months ago by RamRS27k • written 4.7 years ago by Tky1000
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 750 users visited in the last hour