plink: vcf to ped

341 views
Skip to first unread message

Xinhui Wang

unread,
Feb 17, 2015, 4:00:43 AM2/17/15
to plink2...@googlegroups.com
I used plink.9 to convert vcf document to ped document with following scripts
./plik  --make-ped  --vcf -***.vcf  --out test
./pliink --bfile test -recode
It is really work for a single vaf file. However, I would liek to work on a list a vcf documents (about 200 samples and each vcf is from one sample).
Do we have a command to run on all  these samples together and get a ped file includeing all samples?
 

Xinhui Wang

unread,
Feb 17, 2015, 4:03:48 AM2/17/15
to plink2...@googlegroups.com
one thing to add: I only want to foces in a region of sequenece.

freeseek

unread,
Feb 17, 2015, 10:53:49 AM2/17/15
to plink2...@googlegroups.com
I think you should consider bcftools to first merge the VCF files together. Plink is not meant to work with VCF files. However, merging VCF files has some significant drawbacks that need to be understood first, as regular VCF files do not encode information to differentiate between missing genotype calls and homozygous reference genotype calls.

huana R

unread,
Mar 15, 2015, 3:14:58 AM3/15/15
to plink2...@googlegroups.com
hi, you could try TASSEL. They have a function to transfer VCF to plink data format.

freeseek

unread,
Mar 15, 2015, 9:36:50 AM3/15/15
to plink2...@googlegroups.com
Plink works fine importing VCFs (and it is very fast!) and if you need to retain the information at multi-allelic sites you can follow the instructions on this post: http://bit.ly/1sgOcuP
Reply all
Reply to author
Forward
0 new messages