vcftools keep only indels not working
1
0
Entering edit mode
7.0 years ago
t86dan ▴ 30

Hi, I am trying to filter a vcf file so that I only get indels from it. I am using vcftools with the following command:

vcftools --vcf NIST_RTG_PlatGen_merged_highconfidence_v0.2_Allannotate.vcf --max-alleles 2 --min-alleles 2 --keep-only-indels --recode --recode-INFO-all --out indels

I get the following error:

Error: Flag Type must have 0 entries: ID=isPolymorphic,Number=1,Type=Flag,Description="Sites that are polymorphic in the CEPH1493 pedigree

First time I see this kind of error, I have been filtering vcf files without problems until now. Any idea why vcftools it not filtering this particular vcf?

Thanks!

software error • 3.5k views
ADD COMMENT
0
Entering edit mode
7.0 years ago

The error is raised here: https://github.com/vcftools/vcftools/blob/master/src/cpp/header.cpp#L141

in your VCF header you should have:

##INFO=<ID=isPolymorphic,Number=0,Type=Flag,Description="Sites...

instead of

##INFO=<ID=isPolymorphic,Number=1,Type=Flag,Description="Sites...

use sed to fix this.

ADD COMMENT
0
Entering edit mode

Okay, thanks!

How can I change that though?

ADD REPLY
0
Entering edit mode

as mentioned by @pierre lindenbaum by

sed

ADD REPLY

Login before adding your answer.

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