From 2c247e96c67ea4ad422e590ad531eac7e7d6763a Mon Sep 17 00:00:00 2001 From: "St. Elmo Wilken" Date: Wed, 20 Dec 2023 11:00:39 +0100 Subject: [PATCH] start example --- docs/src/examples/08-community-models.jl | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docs/src/examples/08-community-models.jl diff --git a/docs/src/examples/08-community-models.jl b/docs/src/examples/08-community-models.jl new file mode 100644 index 000000000..0b434d2aa --- /dev/null +++ b/docs/src/examples/08-community-models.jl @@ -0,0 +1,25 @@ +# # 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 if it is not already present. + +import Downloads: download + +!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: + +import JSONFBCModels +import Tulip + +model = load_model("e_coli_core.json") + +# Enzyme constrained models require parameters that are usually not used by +# conventional constraint based models. These include reaction specific turnover +# numbers, molar masses of enzymes, and capacity bounds. + +import AbstractFBCModels as A