PLINK vcf to binary files error: Unused command line option: --vcf
1
1
Entering edit mode
5.0 years ago
jon.klonowski ▴ 150

I am trying to make bim bam bed files from a vcf file but i keep getting an cryptic error:

plink --vcf filename.vcf.gz --recode --out test_out

* Unused command line option: --vcf
*
Unused command line option: filename.vcf.gz

I tried just using --file and that throws an error I dont know what it means..... i thought maybe it give me that error because i didnt specify I am giving it a vcf.

plink --file finename.vcf.gz --recode --out test

ERROR: A problem with line 1 in [ filename.vcf.gz.ped ] Expecting 5 + 2 * 456042 = 912089 columns, but found 6

I am guessing I need to use the --file flag and put all the genotypes.... how would I put the genotypes from a vcf into a ped file? The samples are all unrelated affected patients so I created my own PED file by: fam id, sample id = sample number mother, father, sex = 0 phenotpe = 2

plink vcf genomics • 4.7k views
ADD COMMENT
0
Entering edit mode

Where's the command you're running? All I see is the input and directed output.

ADD REPLY
1
Entering edit mode
5.0 years ago

--vcf requires plink 1.9; you appear to be using plink 1.07.

ADD COMMENT
0
Entering edit mode

No idea how I had plink1.07. meh. thank you so much

ADD REPLY
0
Entering edit mode

I am trying to get bed/bim/fam files for structure analysis. I have plink 1.07 which does not work for conversion of VCF to plink bed format. After reading your comment, I downloaded plink2, however, it does not work. I tried to uninstall plink 1.07 but I also could not do that. I am new on command line. I searched but I could not find a way to do that. I was wondering if you have any idea to uninstall older version and install new version of plink?

ADD REPLY
0
Entering edit mode

oh i know why, becuase http://zzz.bwh.harvard.edu/plink/download.shtml is the first thing that comes up on google... not sure why the old version is the first on the search.

ADD REPLY

Login before adding your answer.

Traffic: 1944 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