Skip to content

sensitivity_tuning: break ties by the order of the model - #97

Merged
edkerk merged 1 commit into
developfrom
fix/sensitivity-tuning-ties
Nov 20, 2026
Merged

edkerk merged 1 commit into
developfrom
fix/sensitivity-tuning-ties

Conversation

@edkerk

@edkerk edkerk commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

sensitivity_tuning selects the enzyme with the largest usage flux and, of the reactions that consume it, the one with the largest consumption. When two enzymes or two reactions have equal values (within a relative 1e-9), the first in the model is selected, as in sensitivityTuning (CompMetEng/GECKO#37).

The reactions of the enzyme were read from an unordered set, so a tie could select another reaction than MATLAB. On the full_ecModel tutorial, two reactions of P05375 consume the same amount of the enzyme: MATLAB tuned r_2500 and Python tuned r_2508. Both now tune r_2500, and the tuned kcats of the two toolboxes are the same.

@edkerk
edkerk merged commit b2d7cb7 into develop Nov 20, 2026
8 checks passed
@edkerk
edkerk deleted the fix/sensitivity-tuning-ties branch November 20, 2026 20:29
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