Skip to content

Make every benchmark mode run - #122

Merged
neksa merged 2 commits into
mainfrom
fix/benchmark-subcommand
Sep 10, 2026
Merged

neksa merged 2 commits into
mainfrom
fix/benchmark-subcommand

Conversation

@neksa

@neksa neksa commented Sep 10, 2026

Copy link
Copy Markdown
Owner

mutagene benchmark is in --help and failed in all five modes.

  • pairwise: signature set cast to int before a lookup keyed on strings
  • multiple: used i, signature_names, W from the pairwise branch → NameError; --root/--signatures ignored for a hardcoded path
  • three library calls had drifted: write_decomposition (lost args, now takes a mapping), decompose_mutational_profile_counts (lost debug), and _get_stats, whose plain-vector branch set only h then read two unbound names

_ds modes now report missing Rscript up front. --replicates/--processes added so the generators are testable.

6 tests covering all five modes. Closes #114.

The subcommand was shipped in --help and failed in all five modes.

Pairwise modes cast the signature set to an int before a lookup keyed on
strings, so a valid set was reported as missing from a list that visibly
contained it. Multiple modes used i, signature_names and W, which are only
assigned in the pairwise branch, so they raised NameError; multiple_gen was a
bare pass that then ran the aggregation anyway. --root and --signatures were
accepted and then ignored by the multiple modes, which wrote to a hardcoded
data/benchmark/multiple.

Three library calls had drifted: write_decomposition lost the arguments the
benchmark passed and now takes a mapping keyed by sample,
decompose_mutational_profile_counts lost debug, and _get_stats had a branch for
a plain exposure vector that set only h and then read two names it never bound,
so it raised UnboundLocalError every time that documented path was taken.

The deconstructSigs modes now say Rscript is missing instead of failing inside a
worker, and --replicates and --processes make the generators testable.

Closes #114
@neksa neksa added the patch Patch version bump (0.0.X) label Sep 10, 2026
@neksa
neksa merged commit 74e666a into main Sep 10, 2026
11 checks passed
@neksa
neksa deleted the fix/benchmark-subcommand branch September 10, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Patch version bump (0.0.X)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

benchmark subcommand cannot run in any mode

1 participant