Skip to content

Error when no genes with mutations #6

Description

@FerriolCalvet

When running OncoDriveCLUSTL within deepCSA, we found this error related to the cases where there are no genes with enough mutations to compute clustering.

Probably the ideal behaviour would be to not fail when there are no genes available, just not output anything.

2026-05-21 13:38:50,611 [43] INFO     root: Initializing OncodriveCLUSTL...
2026-05-21 13:38:50,611 [43] WARNING  root:
Running with default simulating, smoothing and clustering OncodriveCLUSTL parameters. Default parameters may not be optimal for your data.
Please, read Supplementary Methods to perform model selection for your data.
2026-05-21 13:38:50,612 [43] INFO     root: Computing missense mut probabilities using mutabilities...
2026-05-21 13:38:50,612 [43] WARNING  root:
Signatures will be calculated as mutation frequencies: # mutated ref>alt k-mer counts / # total substitutions
Please, read Supplementary Methods to perform a more accurate signatures calculation
2026-05-21 13:38:50,612 [43] INFO     root: Parsing genomic regions and mutations...
2026-05-21 13:38:50,613 [43] INFO     root: Regions parsed
2026-05-21 13:38:50,614 [43] INFO     root: Mutations parsed
2026-05-21 13:38:50,614 [43] INFO     root: Validated elements in genomic regions: 1
2026-05-21 13:38:50,614 [43] INFO     root: Validated elements with mutations: 1
2026-05-21 13:38:50,614 [43] INFO     root: Total substitution mutations: 1
2026-05-21 13:38:50,616 [43] CRITICAL root: Traceback (most recent call last):
  File "/usr/local/bin/oncodriveclustl", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/oncodriveclustl/main.py", line 285, in main
    raise excep.UserInputError('No element found with enough mutations to perform analysis')
oncodriveclustl.utils.exceptions.UserInputError: No element found with enough mutations to perform analysis

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions