Fix reference

Open
#2,125 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c, shell

Research direction

Start by reproducing the two supplied bcftools +fixref commands with the referenced BCF, FASTA, and VCF inputs, then inspect the reported BGZF offset and input files. Done means identifying whether the failure is a tool defect or an input-file problem and documenting the supported correction.

Written by the indexing model from the issue text.

Description

needs-feedback

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

Dominant language
C
Stars
891
Forks
277
Avg merge
2d 23h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from samtools/bcftools

All issues in samtools/bcftools

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.