Question: vcftools keep only indels not working
0
gravatar for t86dan
16 months ago by
t86dan0
t86dan0 wrote:

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 • 1.0k views
ADD COMMENTlink modified 16 months ago by Pierre Lindenbaum118k • written 16 months ago by t86dan0
0
gravatar for Pierre Lindenbaum
16 months ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum118k wrote:

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 COMMENTlink written 16 months ago by Pierre Lindenbaum118k

Okay, thanks!

How can I change that though?

ADD REPLYlink written 16 months ago by t86dan0

as mentioned by @pierre lindenbaum by

sed

ADD REPLYlink written 16 months ago by mittu1602150
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 930 users visited in the last hour