Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert vcf file to ped file using plink?

I am trying to convert a .vcf file to a .ped file using plink. I have read some manuals and posts online, but it seems that no one specifically mentions how to convert vcf to ped.

I am hoping that there may be some experts here who have experience with plink to convert vcf to ped. I would appreciate it if you could share the knowledge. Moreover, if there is another way (non-plink) of doing that, please do share it.

Thank you!

like image 726
NeverBe Avatar asked Dec 24 '22 01:12

NeverBe


1 Answers

Plink provides its own functionality for converting vcf (and other format) files to plink-compatible ones. The command you're looking for is recode and the actual command would look like this:

plink --vcf myfile.vcf.gz --recode --out myfile
like image 128
Ophiothrix Avatar answered Jan 29 '23 01:01

Ophiothrix