Skip to content

read_yaml_model: flip usage and pool reactions by the sign of the pool coefficient - #192

Merged
edkerk merged 2 commits into
developfrom
fix/legacy-flip-objective
Nov 1, 2026
Merged

edkerk merged 2 commits into
developfrom
fix/legacy-flip-objective

Conversation

@edkerk

@edkerk edkerk commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

The reader turns a usage_prot_* reaction forward when its prot_pool coefficient is positive and prot_pool_exchange when it is negative, the GECKO 3 direction, as GECKO's upgradeEcModel does. It changed the reactions with a negative lower bound, so a GECKO 4 reaction with a negative lower bound was turned, and the objective coefficient of a turned reaction kept its sign, which reversed the objective. The coefficient now changes sign with the flux. Tests cover a GECKO 3 reaction with an objective coefficient and a forward reaction with a negative lower bound.

@edkerk
edkerk merged commit 8de47dc into develop Nov 1, 2026
10 checks passed
@edkerk
edkerk deleted the fix/legacy-flip-objective branch November 1, 2026 14:22
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