VCFtools error
0
0
Entering edit mode
2.5 years ago
Sammy ▴ 30

Hiya,

I ran vcftools --vcf file.vcf --freq and vcftools --vcf file.vcf --plink and I get the same error:

> VCFtools - 0.1.15
(C) Adam Auton and Anthony Marcketta 2009
Parameters as interpreted:
    --vcf file.vcf
    --freq
Error:VCF version must be v4.0, v4.1 or v4.2:
You are using version VCFv4.2 ##fileformat=VCFv4.2 ##fileformat=VCFv4.2

It looks strange to me, I don't understand what's the issue, is it the the VCF in front of v4.2 (in ##fileformat=VCFv4.2) that causes the confusion?

Thanks!

vcf vcftools • 1.4k views
ADD COMMENT
0
Entering edit mode

vcftools is very old and no longer under development. If you want to estimate allele frequencies, plink2 is the best choice, and it natively reads vcfs without needing conversion.

ADD REPLY
0
Entering edit mode

Thanks, the output from plink returned something like:

chr | rs code | ref allele | alt allele | MAF |no. alleles

which is great! But some rs codes are . and don't know what variants it's referring to. Looking for alternative ways to get the MAFs with the positions as well so I can identify them! Also looking for options in plink. Thanks!

Plink2 returns AF now and I need MAF, trying to work around that.

ADD REPLY
0
Entering edit mode

Why did you delete your post, Sammy?

ADD REPLY
0
Entering edit mode

It seemed irrelevant :)

ADD REPLY
0
Entering edit mode

You had the question and received feedback, adding knowledge to the community. It is not irrelevant, it is a record of learning.

ADD REPLY
0
Entering edit mode

Got it, thanks!

ADD REPLY

Login before adding your answer.

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