Hello everyone! I'm encountering an issue where both "bcftools view" and "bcftools call" are unable to open the .bcf file when using the following code. Does anyone have any suggestions or advice? Thank you!
My codes:
bcftools mpileup -O u -f ~/data/GRCz11/Danio_rerio.GRCz11.dna.toplevel.fa zebrafishAligned.sortedByCoord.out.bam > zebrafish_bcftools.bcf
bcftools call -mv -O v zebrafish_bcftools.bcf -o res.vcf
The error:
Failed to open zebrafish_bcftools.bcf: unknown file type.
The bcftools version is 1.9; however, I was able to use "bcftools view" after converting the MGP mouse VCF file to BCF format.
bcftools view test.vcf -O b -o A1.bcf.gz
what is the output of
file zebrafish_bcftools.bcf
?zebrafish_bcftools.bcf: data
; instead ofBinary Call Format (BCF) version 2.2
(just like A1.bcf)