Skip to content

fix: outputs and metabolite merging in replaceMets - #756

Merged
edkerk merged 2 commits into
developfrom
fix/replaceMets-outputs-develop
Sep 30, 2026
Merged

edkerk merged 2 commits into
developfrom
fix/replaceMets-outputs-develop

Conversation

@edkerk

@edkerk edkerk commented Sep 30, 2026

Copy link
Copy Markdown
Member

Same changes as #755, which was merged into main instead of develop.

  • replaceMets: removedRxns and idxDuplRxns were declared as outputs but never assigned, so requesting them raised an error.
  • replaceMets: idxDuplRxns did not index removedRxns in the input model.
  • replaceMets: a reaction containing both the replaced and the replacement metabolite did not have its stoichiometries summed.
  • replaceMets: replacement indices were not remapped after metabolite deletion, and the replacement metabolite could be deleted when merging by name.

Each fix has a regression test.

@edkerk edkerk changed the title Fix outputs and metabolite merging in replaceMets fix: outputs and metabolite merging in replaceMets Sep 30, 2026
@edkerk
edkerk merged commit 2156ff1 into develop Sep 30, 2026
1 check failed
@edkerk
edkerk deleted the fix/replaceMets-outputs-develop branch September 30, 2026 19:05
@edkerk edkerk mentioned this pull request Oct 7, 2026
1 of 2 tasks
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