Problems with bcf concat
1
0
Entering edit mode
15 months ago

Hello!

I have multiple VCFs files for the same sample. I used the commad

bcftools concat -a -Oz -o concat.vcf.gz 242487_vs_242482.bcftools.vcf.gz 242487_vs_242482.freebayes.vcf.gz

But i have the next error

Checking the headers and starting positions of 2 files
[W::hts_idx_load3] The index file is older than the data file: 242487_vs_242482.bcftools.vcf.gz.tbi
[W::hts_idx_load3] The index file is older than the data file: 242487_vs_242482.freebayes.vcf.gz.tbi
Different number of samples in 242487_vs_242482.freebayes.vcf.gz. Perhaps "bcftools merge" is what you are looking for?

I don't know how to resolve it. Thank you for your help

bcftools VCF • 678 views
ADD COMMENT
0
Entering edit mode
15 months ago

bcftools concat is for merging files with the SAME SAMPLES but with different positions (eg: vcf chunk for chr1, vcf chunck for chr2, vcf chunck for chr3, ...)

bcftools merge is for merging files with the DIFFERENT SAMPLES for the same regions (eg: vcf for sample1, vcf for sample2, vcf for sample3 ...)

as the error message said, may be you want 'bcftools merge'

ADD COMMENT

Login before adding your answer.

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