Merge VCF files using bcftools merge
1
0
Entering edit mode
9.1 years ago

Dear All,

I am using bcftools to combine 3 VCF files with following command:

bcftools merge -m snps -O v -o merged.vcf a.vcf.gz b.vcf.gz c.vcf.gz

but got these kind of error information:

[E::get_intv] failed to parse TBX_VCF, was wrong -p [type] used?
The offending line was: "##fileformat=VCFv4.2"
[E::get_intv] failed to parse TBX_VCF, was wrong -p [type] used?
The offending line was: "##fileformat=VCFv4.2"
[E::get_intv] failed to parse TBX_VCF, was wrong -p [type] used?
The offending line was: "##fileformat=VCFv4.2"

I don't know what does this mean and how to solve the problem. Can anybody help me out? Thank you in advance.

next-gen • 6.0k views
ADD COMMENT
0
Entering edit mode

Are the index file .tbi present?

ADD REPLY
0
Entering edit mode
9.1 years ago
ebrown1955 ▴ 320

Check your version of bcftools. It may be outdated, as VCF 4.2 is relatively new.

ADD COMMENT

Login before adding your answer.

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