Skip to content

Apply evotune trust tiers to fuzzy-matched kcats - #55

Merged
edkerk merged 1 commit into
developfrom
fix/evotune-source-tier-matching
Sep 20, 2026
Merged

edkerk merged 1 commit into
developfrom
fix/evotune-source-tier-matching

Conversation

@edkerk

@edkerk edkerk commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator

classify_kcat_source compared the whole ec.source string against each source_groups entry. geckopy writes "brenda (wc=0, origin=1)" where MATLAB writes "brenda", so every fuzzy database match missed its group and fell through to unlabelled, taking sigma0_log_default rather than its tier width.

On the full_ecModel tutorial that is 3497 of 4671 kcats: the source tiers configured in model_adapter.toml were, in practice, applied only to custom values and to sources written without the bracketed detail.

Matching now ignores the bracketed fuzzy-match detail. A source_groups entry that lists the full string still matches it, so a project can still single out, say, wildcarded matches.

This changes tuning results on any model whose kcats came from the fuzzy matcher. On ecYeastGEM the tunable set widths go from a flat 0.3 to 0.2/0.3/0.1 across brenda/unlabelled/custom.

Found while building a separate kcat-evidence feature, which is why it is split out: it stands on its own and should not wait on that work.

classify_kcat_source compared the whole ec.source string against each
source_groups entry. geckopy writes "brenda (wc=0, origin=1)" where
MATLAB writes "brenda", so every fuzzy database match missed its group
and fell through to unlabelled, taking sigma0_log_default rather than
the tier's width: 3497 of ecYeastGEM's 4671 kcats, which is the whole
point of having tiers.

Matching now ignores the bracketed fuzzy-match detail. A source_groups
entry that lists the full string still matches it, so a project can
still single out, say, wildcarded matches.

This changes tuning results on any model whose kcats came from the fuzzy
matcher.
@edkerk
edkerk merged commit dda36d9 into develop Sep 20, 2026
5 checks passed
@edkerk
edkerk deleted the fix/evotune-source-tier-matching branch September 20, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant