Skip to content

Crash upon no variants found #35

@SergeWielhouwer

Description

@SergeWielhouwer

Hi,

Thank you for developing ClairS-TO.

I’m currently encountering an issue where the pipeline crashes without a clear error message. It appears to happen when no variants are reported during intermediate steps. I'm running ClairS-TO on some rAAV samples, while I realize the tool isn’t specifically designed for this use case, I’ve successfully applied it to other small genomes before. Clair3 also ran well on this dataset, but since I suspect low-frequency variants in a small subpopulation (i.e., not at 50% or 100% VAF), I wanted to try somatic variant calling.

To adapt the pipeline, I disabled phasing and non-somatic tagging from the panel of normals, and included all contigs.

Here’s the command used within our Snakemake pipeline:

The command I use to run in our Snakemake pipeline is:
mkdir -p TEMP/106306-001-001/clairs_to_tmp TEMP/106306-001-001/clairs_to_home variants/106306-001-001/clairs_to && singularity exec -B /mnt --home TEMP/106306-001-001/clairs_to_home:/home --env TMPDIR=$PWD/TEMP/106306-001-001/clairs_to_tmp /mnt/shared/tools/ClairS-TO-0.3.0/container/clairs-to-0.3.0.sif /opt/bin/run_clairs_to --tumor_bam_fn alignments/106306-001-001.bam --ref_fn /mnt/flashblade01/scratch/106306/references/samples001_003.fasta --threads 64 --platform "ont_r10_dorado_sup_5khz_ssrs" --include_all_ctgs --disable_nonsomatic_tagging --disable_intermediate_phasing --output_dir variants/106306-001-001/clairs_to 2>>logs/clair_somatic_tumor_only_snp_indel.106306-001-001.log && rm -rf "TEMP/106306-001-001/clairs_to_tmp" "TEMP/106306-001-001/clairs_to_home

The error I get is:

Traceback (most recent call last):
File "/opt/bin/clairs_to.py", line 110, in
main()
File "/opt/bin/clairs_to.py", line 104, in main
submodule.main()
File "/opt/bin/src/postprocess_vcf.py", line 259, in main
merge_vcf(args)
File "/opt/bin/src/postprocess_vcf.py", line 111, in merge_vcf
pileup_vcf_reader.read_vcf()
File "/opt/bin/shared/vcf.py", line 242, in read_vcf
if columns[0][0] == "#":
IndexError: list index out of range

run_clairs_to.log

It seems the script attempts to process an empty or malformed VCF file. Possibly this happens when no variants are detected at an intermediate step.

Let me know if you need more information. I am on version 0.3.0.

Best regards,
Serge

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions