bfctools merge [E::hts_open_format] Failed to open file
1
0
Entering edit mode
3.6 years ago
andemexoax • 0

I am having an issue when trying to perform bcftools merge. I get these errors with the first file in the list,

[E::hts_hopen] Failed to open file filename1.bcf.csi
[E::hts_open_format] Failed to open file filename1.bcf.csi
Failed to open filename1.bcf.csi Exec format error

I take .bcf files and index them with bcftools index ... using htsfile I find my files are indeed "CSI version 1 compressed index data", of "BCF version 2.2 compressed variant calling data", originally from files of "VCF file version 4.2 variant calling text" I am using "BCFtools Version: 1.9 (using htslib 1.9)"

This is my script:

bcftools merge --missing-to-ref --file-list /vol_c/scripts/file_list.txt --merge all --threads 14 --output all58_samples.vcf
SNP • 3.0k views
ADD COMMENT
0
Entering edit mode
23 days ago
j.f.akers • 0

I think the program is trying to open a .vcf.gz.csi file rather than the actual data which is the .vcf.gz file, the csi file is not data, just a table of contents that points to data in the actual .vcf.gz file. Make sure that the vcf.gz and vcf.gz.csi data is in the same directory, and that the script is taking as input: data, not indices of the data.

ADD COMMENT

Login before adding your answer.

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