Add LP/MILP/topological gap-filling algorithms#663
Merged
Conversation
Implement fastGapFill/swiftGapFill (gapFillFastLP via gapFillFastCore and gapFillSwiftCore), the Kumar 2007 growth-floor MILP with directionality reversal (gapFillMILP), and Meneco-style topological pre-screening (gapFillTopological). Wire them into fillGaps via an 'algorithm' name-value option. Subroutine filenames are prefixed gapFill* to avoid COBRA Toolbox collisions. Extend tGapfilling with coverage for all new paths.
Function test results224 tests 198 ✅ 37s ⏱️ Results for commit f61c028. |
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.
Summary
Adds three new gap-filling strategies alongside the existing reference-model MILP in
fillGaps, plus the supporting subroutines and tests.gapFillFastLP, viagapFillFastCoreandgapFillSwiftCore) — LP-relaxation connectivity gap-filling (Thiele et al. 2014; SWIFTCORE single-LP variant, Tefagh & Boyd 2020). No MILP solver required.gapFillMILP) — Kumar et al. 2007 global growth-floor MILP, with directionality-reversal repair (Big-M coupling) in addition to database-reaction addition.gapFillTopological) — Meneco-inspired BFS metabolite-producibility scope; identifies unreachable metabolites and prunes the candidate reaction set with no solver call.fillGapsgains analgorithmname-value option ('reference'default,'fastLP','swiftLP','gapfillMILP','topological') that dispatches to these while preserving the existing output signature.Naming
New subroutine filenames are prefixed
gapFill*to avoid clashes with COBRA Toolbox function names (fastcore.m,swiftcore.m, etc.).Testing
tGapfillingextended with coverage for every new path. Full suite run on MATLAB R2024b: 21/21 passing (MILP-dependent tests exercised with an available MILP solver; LP/topological paths on GLPK).