Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reference #2125

Open
sonalipechlivanis opened this issue Mar 15, 2024 · 2 comments
Open

Fix reference #2125

sonalipechlivanis opened this issue Mar 15, 2024 · 2 comments

Comments

@sonalipechlivanis
Copy link

Hi,

I want to fix my data with the reference data using bcftools. However, I am getting the following error "[E::bgzf_read_block] Failed to read BGZF block data at offset 33357268 expected 7939 bytes; hread returned 538" when I run the following commands

./bcftools +fixref /path/mydatabcf -Ob -o /path/mydata-RefFixed.bcf -- -d -f $REF/human_g1k_v37.fasta.gz -i $REF/All_20170710.vcf.gz

./bcftools +fixref /path/mydata-RefFixed.bcf -- -f $REF/human_g1k_v37.fasta.gz

Could you please help me with this error?

Thank you very much.

Best,
Sonali

@pd3
Copy link
Member

pd3 commented Mar 18, 2024

The error message suggests that the BCF is corrupted. Do commands like this work on the file?

bcftools index your.bcf
bcftools view -Ou -o /dev/null your.bcf

command work on this file? I suspect it will not, and then the next thing to check is how the file was produced

@sonalipechlivanis
Copy link
Author

Thank you very much for the feedback. I will try to re-install the bcftools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants