Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
COBREXA.jl
Commits
8c31743a
Unverified
Commit
8c31743a
authored
Apr 29, 2021
by
St. Elmo
Browse files
simplified example
parent
3590f27d
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
8c31743a
...
...
@@ -73,45 +73,18 @@ With the package installed and tested, let's perform simple flux balance analysi
using
COBREXA
using
Tulip
if
!
isfile
(
"e_coli_core.
json
"
)
download
(
"http://bigg.ucsd.edu/static/models/e_coli_core.
json
"
,
"e_coli_core.
json
"
)
if
!
isfile
(
"e_coli_core.
xml
"
)
download
(
"http://bigg.ucsd.edu/static/models/e_coli_core.
xml
"
,
"e_coli_core.
xml
"
)
end
model
=
load_model
(
StandardModel
,
modelpath
)
model
=
load_model
(
"e_coli_core.xml"
)
sol
=
flux_balance_analysis_dict
(
model
,
Tulip
.
Optimizer
;
modifications
=
[
change_objective
(
"BIOMASS_Ecoli_core_w_GAM"
),
change_constraint
(
"EX_glc__D_e"
,
-
12
,
-
12
),
change_solver_attribute
(
"IPM_IterationsLimit"
,
110
),
],
)
sol
=
flux_balance_analysis_dict
(
model
,
Tulip
.
Optimizer
)
sol
[
"BIOMASS_Ecoli_core_w_GAM"
]
#
1.05
7
sol
[
"BIOMASS_Ecoli_core_w_GAM"
]
#
0.8
7
```
While this is pleasing,
`COBREXA`
was designed for exa-scale analysis. Let's construct a community model
and unleash some of the power contained in
`COBREXA`
.
```
julia
community_model
=
join
(
repeat
(
model
,
1000
))
# TODO: make this work
sol
=
flux_balance_analysis_dict
(
model
,
Tulip
.
Optimizer
;
modifications
=
[
change_objective
(
"BIOMASS_Ecoli_core_w_GAM"
),
change_constraint
(
"EX_glc__D_e"
,
-
12
,
-
12
),
change_solver_attribute
(
"IPM_IterationsLimit"
,
110
),
],
)
sol
[
"BIOMASS_Ecoli_core_w_GAM"
]
# 1.057
```
More funcionality is described in the documention, e.g. model construction and analysis in pure Julia.
More functionality is described in the documentation, e.g. model construction and exa-scale analysis in pure Julia.
## Acknowledgements
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment