6

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!

Timur Shtatland
  • 12,024
  • 2
  • 30
  • 47
NeverBe
  • 107
  • 1
  • 1
  • 7

2 Answers2

7

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
Ophiothrix
  • 791
  • 1
  • 8
  • 11
6

I convert my vcf files to PLINK formats (ped, fam, map) using VCFtools: https://vcftools.github.io/man_latest.html

My commands look like this:

vcftools --vcf my_data.vcf --out my_data --plink
zx8754
  • 52,746
  • 12
  • 114
  • 209