Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
stelmo committed Dec 10, 2023
1 parent e8fa205 commit 3839a73
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions docs/src/examples/04-enzyme-models.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# # Enzyme constrained models

using COBREXA

# Here we will construct an enzyme constrained variant of the *E. coli* "core"
# model. We will need the model, which we can download using
# [`download_model`](@ref):
# model. We will need the model, which we can download if it is not already present.

using COBREXA
import Downloads: download

download_model(
"http://bigg.ucsd.edu/static/models/e_coli_core.json",
"e_coli_core.json",
"7bedec10576cfe935b19218dc881f3fb14f890a1871448fc19a9b4ee15b448d8",
)
!isfile("e_coli_core.json") &&
download("http://bigg.ucsd.edu/static/models/e_coli_core.json", "e_coli_core.json")

# Additionally to COBREXA and the model format package, we will need a solver
# -- let's use Tulip here:
Expand All @@ -20,14 +18,10 @@ import Tulip

model = load_model("e_coli_core.json")

import JSONFBCModels as M
import AbstractFBCModels as A
import COBREXA as X
import ConstraintTrees as C
import JuMP as J
import Gurobi as G
# Enzyme constrained models require parameters not usually used by conventional
# constraint based models. These include reaction specific turnover numbers

model = A.load(M.JSONFBCModel, "e_coli_core.json")
import AbstractFBCModels as A

reaction_isozymes = Dict{String,Dict{String,X.Isozyme}}()
for rid in A.reactions(model)
Expand Down

0 comments on commit 3839a73

Please sign in to comment.