Skip to content

Fix raw-column sort direction and the gene_tpm help example; add --version (5.114.0) - #619

Merged
iskandr merged 5 commits into
masterfrom
fix/easy-cli-issues-nov18
Nov 22, 2026
Merged

iskandr merged 5 commits into
masterfrom
fix/easy-cli-issues-nov18

Conversation

@iskandr

@iskandr iskandr commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Closes #612
Closes #571
Closes #572

Part of #574 (only the --version bullet; that issue stays open).

One PR because every change needs the same version bump and changelog entry; each issue is its own commit.

What changed

Verification

  • New tests: every --gene-expression example in the help text is loaded against tests/data/salmon_quant.sf, joined, and filtered with gene_tpm >= 20; --sort-by percentile_rank and column(affinity) under auto rank the strong binder first and agree with affinity.rank; an unrelated column (gene_tpm) still sorts descending; explicit desc still wins; main(["--version"]) exits 0 with the installed version.
  • Locally only ruff check topiary/ tests/ was run (passes). The full ./lint.sh (mypy) and ./test.sh could not be run locally: the development machine's disk filled up while installing the dependency set, so the test environment is incomplete. This PR relies on CI for mypy and the test suite.

https://claude.ai/code/session_01JHJhwjJyLksFkmysWFgmhP

@coveralls

coveralls commented Nov 19, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 93.918% (+0.02%) from 93.9% — fix/easy-cli-issues-nov18 into master

@iskandr

iskandr commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

Review

Nice set of CLI/ranking fixes:

  • Deriving LOWER_IS_BETTER_COLUMNS dynamically from _CONTEXT_KEYWORDS (and intentionally omitting ambiguous value) ensures any future peptide-scope rank column inherits ascending auto sorting automatically.
  • Good fix to the --gene-expression {name}_{column} prefix example and helpful test verifying every help example against salmon_quant.sf.
  • Note from the PR body that local tests couldn't run due to disk space—checked GitHub Actions and all CI checks (Python 3.11–3.14 packaging, isovar-integration, weirdo-integration, and vaxrank-candidate-workflow) are green.

@iskandr
iskandr force-pushed the fix/easy-cli-issues-nov18 branch from 44ef13c to 0ceef58 Compare November 21, 2026 23:22
The leading name in an expression spec is a column prefix, so the
documented gene_tpm:quant.sf:Name:TPM produced gene_tpm_tpm while the
--filter-by hints use gene_tpm. Show gene:quant.sf:Name:TPM, state the
{name}_{column} rule, and test that every help example composes with
the documented filter. Closes #571.

Claude-Session: https://claude.ai/code/session_01JHJhwjJyLksFkmysWFgmhP
…auto

--sort-by percentile_rank is a bare column reference, which auto sorted
descending (worst binder first) although the help promises percentile
ranks sort ascending. Columns in the public LOWER_IS_BETTER_COLUMNS set
now sort ascending like the DSL keys reading the same numbers.
Closes #572.

Claude-Session: https://claude.ai/code/session_01JHJhwjJyLksFkmysWFgmhP
Review of the first pass: the lower-is-better set listed two of six
peptide scopes, so self_mimic_percentile_rank and friends still sorted
descending while self_mimic.affinity.rank sorted ascending. Derive the
rank columns from the scope keywords, test each member and the
bare-column/scoped-field pairs together, export the set from the top
level, and say plainly that bare affinity / wt_affinity are DSL keys
and that the expression-name prefix rule has two exceptions.

Claude-Session: https://claude.ai/code/session_01JHJhwjJyLksFkmysWFgmhP
The result-sort door pinned the old descending order for a bare
percentile_rank column, which is the behaviour #572 reports as a bug.

Claude-Session: https://claude.ai/code/session_01JHJhwjJyLksFkmysWFgmhP
@iskandr
iskandr force-pushed the fix/easy-cli-issues-nov18 branch from 0ceef58 to 8ec38ad Compare November 22, 2026 00:36
@iskandr
iskandr merged commit a18f5ae into master Nov 22, 2026
20 checks passed
@iskandr
iskandr deleted the fix/easy-cli-issues-nov18 branch November 22, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants