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

Clair3 doesn't work with hs38DH.fa because HLA contigs contain colons #203

Closed
ymcki opened this issue Jun 13, 2023 · 2 comments
Closed

Clair3 doesn't work with hs38DH.fa because HLA contigs contain colons #203

ymcki opened this issue Jun 13, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ymcki
Copy link

ymcki commented Jun 13, 2023

I am running ONT's wf-human-variation nextflow pipeline. I found that it crashes when clair3 processes the HLA contigs in the hs38DH genome. Based on my understanding, the problem seems to be caused by the names of HLA contigs containing colons.

Is there a newer version of clair3 that works with the HLA contigs of hs38DH.fa?

Error messages:

export REF_PATH=ref_cache/%2s/%2s/%s
python $(which clair3.py) CallVariantsFromCffi --chkpnt_fn model/pileup --bam_fn pod5.pass.cram --call_fn pileup_HLA-DRB110:01:01_1.vcf --ref_fn hs38DH.fa --ctgName HLA-DRB110:01:01 --chunk_id 1 --chunk_num 1 --platform ont --fast_mode False --snp_min_af 0.08 --indel_min_af 0.15 --minMQ 5 --minCoverage 2 --call_snp_only False --gvcf false --temp_file_dir gvcf_tmp_path --pileup

Command exit status:
1

Command output:
(empty)

Command error:
INFO: Environment variable SINGULARITYENV_TMPDIR is set, but APPTAINERENV_TMPDIR is preferred
INFO: Environment variable SINGULARITYENV_NXF_DEBUG is set, but APPTAINERENV_NXF_DEBUG is preferred
INFO: underlay of /etc/localtime required more than 50 (78) bind mounts
Calling variants ...
Traceback (most recent call last):
File "/home/epi2melabs/conda/bin/clair3.py", line 105, in
main()
File "/home/epi2melabs/conda/bin/clair3.py", line 99, in main
submodule.main()
File "/home/epi2melabs/conda/bin/clair3/CallVariantsFromCffi.py", line 351, in main
Run(args)
File "/home/epi2melabs/conda/bin/clair3/CallVariantsFromCffi.py", line 62, in Run
call_variants_from_cffi(args=args, output_config=output_config, output_utilities=output_utilities)
File "/home/epi2melabs/conda/bin/clair3/CallVariantsFromCffi.py", line 156, in call_variants_from_cffi
batch_output_method(position, alt_info_list, Y, output_config, output_utilities)
File "/home/epi2melabs/conda/bin/clair3/CallVariants.py", line 1092, in batch_output
output_with(
File "/home/epi2melabs/conda/bin/clair3/CallVariants.py", line 1119, in output_with
chromosome, position, reference_sequence = chr_pos_seq.rstrip().split(':')
ValueError: too many values to unpack (expected 3)

@aquaskyline aquaskyline added the enhancement New feature or request label Jun 13, 2023
@aquaskyline
Copy link
Member

A fix is scheduled in the next version.

@zhengzhenxian
Copy link
Collaborator

@ymcki, the colons issue is fixed in v1.0.3.

As you are using the ONT NextFlow pipeline, you might wait for an updated version soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants