fix: continuous repairing model leaks - #69
Merged
Conversation
Tune with master
The function evaluates whether a model is properly balanced, such that mass and energy cannot be created from nothing, or in unrealistic amounts. This is not meant to be an exhaustive evaluation of a model's balance status, but a quick check of some key features.
The Excel document can be used by RAVEN's checkTasks or parseTaskList functions to evaluate each of the metabolic tasks defined in the document for a given model. metabolicTasks_LeakCheck.xls contains 17 metabolic tasks that test for things such as generation of carbon and oxygen from nothing, phosphorylation of ADP (to ATP) with no inputs, and realistic ATP generation per glucose consumed. This task list can therefore replace the existing "checkEnergyMassLeaks" function, as it is a more exhaustive and straightforward evaluation.
ID numbers are added to each task so that they can be more easily referenced.
Each model change made in repairModelLeaks now references a specific metabolic task ID number(s) (corresponding to ID numbers in the metabolicTasks_LeakCheck.xls task file) which the change is supposed to address.
No longer used.
- Gather together deleted/constrained reactions in this centralized file for easy manipulation in the future
- Since the reaction constraining and bound/coefficient adjustment form an integrated work, only the overall implementation can achieve all the metabolic tasks listed in `metabolicTasks_LeakCheck.xls`.
- The script documentation is modified by adding the information about reaction constraining, which is an indispensable part for coherent repairing of mass/energy leaks in the model.
JonathanRob
approved these changes
Nov 23, 2018
JonathanRob
left a comment
Collaborator
There was a problem hiding this comment.
This looks good, and is a big improvement over the original implementation, in my opinion.
edkerk
added a commit
that referenced
this pull request
Jul 14, 2026
Install raven-toolbox from fix/ftinit-raven-parity (PR #69) so the gene essentiality workflow picks up the corrected task-essential-reaction discovery, which now matches RAVEN's checkTasks (397 essential reactions on Human-GEM v2.0.0 instead of 259). Revert to the default branch after that PR merges.
edkerk
added a commit
that referenced
this pull request
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main improvements in this PR:
metabolicTasks_LeakCheck.xlsfor evaluating the performance of fixing mass/energy leaks in the model, and add ID number to each taskrepairModelLeaks.mby referencing specific metabolic task ID number(s) to the corresponding section that supposed to address the issue. Note that only overall implementation of the changes in this script can achieve those targeted metabolic tasksI hereby confirm that I have:
develas a target branch