-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
23 changes: 23 additions & 0 deletions
23
docs/src/examples/04-minimization-of-metabolic-adjustment.jl
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
# # Minimization of metabolic adjustment | ||
|
||
# TODO MOMA citation | ||
|
||
import Downloads: download | ||
|
||
!isfile("e_coli_core.json") && | ||
download("http://bigg.ucsd.edu/static/models/e_coli_core.json", "e_coli_core.json") | ||
|
||
using COBREXA | ||
import AbstractFBCModels.CanonicalModel as CM | ||
import JSONFBCModels | ||
import Clarabel | ||
|
||
# TODO this might do the convert immediately as with the old cobrexa... | ||
# probably better have an actual output-type argument tho rather than force the | ||
# guessing. | ||
model = convert(CM.Model, load_model("e_coli_core.json")) | ||
|
||
reference_fluxes = parsimonious_flux_balance(model, Clarabel.Optimizer).fluxes | ||
|
||
# TODO MOMA from here |
This file contains 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