Using 1000 Genomes Vcf To Plink Conversion Script To Convert My Own Vcf Files?
1
2
Entering edit mode
11.1 years ago

I have a vcf file I'd like to convert from vcf to ped. Luckily, 1000 genomes has a perl script that can be used to do this:

http://www.1000genomes.org/vcf-ped-converter#API%20Script

Problem is, that script requires a -sample_panel_file, but I have no such thing. The VCF I have is from one population only and it is not from one of those in 1000 genomes. Does this mean I can't use this script to convert my own vcf file or what?

Or if I find the ids of the people in the vcf, can I just roll my own -sample_panel_file by making a file like

id1, population_name_i_made_up
id2, population_name_i_made_up
...

All advice appreciated.

Ps. I know vcftools has a vcf to ped converter but it does not play well with ubuntu thanks to ulim. I also know GATK has a tool to do this conversion, which I am attempting to get to work atm. If you know any other ways to convert vcf to ped (no matter how circuitous, please do tell me!)

1000genomes vcf ped • 6.3k views
ADD COMMENT
1
Entering edit mode

PSEQ reads in VCF and can output plink format.

ADD REPLY
0
Entering edit mode

No, it only creates tped files (which vcftools also does swimmingly.) But upvote since I was too vague in the title.

ADD REPLY
1
Entering edit mode

Use the new plink, people: https://www.cog-genomics.org/plink2/

ADD REPLY
2
Entering edit mode
11.1 years ago
Neilfws 49k

You can try the R package SNPRelate:

I say "should" since I have not tried the second function (I know that the first works fine).

ADD COMMENT

Login before adding your answer.

Traffic: 1635 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6