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

Error while opening BGZF compressed FASTA reference file #163

Open
dennishendriksen opened this issue Jan 24, 2023 · 2 comments
Open

Error while opening BGZF compressed FASTA reference file #163

dennishendriksen opened this issue Jan 24, 2023 · 2 comments
Assignees
Labels
dependency Issues related to Clair3's dependencies

Comments

@dennishendriksen
Copy link

Running clair3 without --longphase_for_phasing results in an error when using a bgzipped reference indexed with samtools:

apptainer exec clair3-v0.1-r12.sif \
/opt/bin/run_clair3.sh \
--bam_fn=test.cram \
--ref_fn=GCA_000001405.15_GRCh38_no_alt_analysis_set.fna.gz \
--platform="ilmn" \
--model_path="/opt/models/ilmn" \
--output="./output"

Error:

[INFO] 3/7 Phase VCF file using Whatshap
This is WhatsHap 1.4 running under Python 3.9.0
ERROR: whatshap error: Error while opening FASTA reference file: Compressed FASTA is only supported in BGZF format. Use the samtools bgzip utility (instead of gzip) to compress your FASTA.

Note that the reference is actually bgzipped with the bgzip utility even though the error states that the format is not bgzip.

Possibly related issues:

Currently we are working around the issue by using an uncompressed reference.

@aquaskyline aquaskyline added the bug Something isn't working label Jan 24, 2023
@zhengzhenxian
Copy link
Collaborator

Hi,

We confirmed it was a bug from WhatsHap. Sadly, we could not do more before WhatsHap fixed it. We suggest you use LongPhase, which performed comparably to WhatsHap with ≥20x long-reads.

@aquaskyline aquaskyline added enhancement New feature or request and removed bug Something isn't working labels Mar 6, 2023
@aquaskyline
Copy link
Member

Scheduled to integrate a newer WhatsHap version that fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency Issues related to Clair3's dependencies
Projects
None yet
Development

No branches or pull requests

3 participants