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
30ad20fb
Unverified
Commit
30ad20fb
authored
Oct 13, 2021
by
St. Elmo
Browse files
small changes to readme
parent
f6d84a8c
Pipeline
#48294
passed with stages
in 9 minutes and 13 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
30ad20fb
...
@@ -118,22 +118,21 @@ Dict{String,Float64} with 95 entries:
...
@@ -118,22 +118,21 @@ Dict{String,Float64} with 95 entries:
#### Model variant processing
#### Model variant processing
The main feature of COBREXA.jl is the ability to easily specify and process
The main feature of COBREXA.jl is the ability to easily specify and process
many analyses
at once,
in parallel.
L
et's see how the organism would perform if
many analyses in parallel.
To demonstrate, l
et's see how the organism would perform if
some reactions were disabled:
some reactions were disabled
independently
:
```
julia
```
julia
# convert to a model type that is e
asy
to modify
# convert to a model type that is e
fficient
to modify
m
=
convert
(
StandardModel
,
m
)
m
=
convert
(
StandardModel
,
m
)
# find the model objective value if oxygen and carbon dioxide transports are disabled
# find the model objective value if oxygen or carbon dioxide transports are disabled
screen
(
m
,
screen
(
m
,
# the base model
# this specifies how to generate the desired model variants
variants
=
[
# this specifies how to generate the desired model variants
variants
=
[
[],
# one with no modifications, i.e. the base case
[],
# one with no modifications
[
with_changed_bound
(
"O2t"
,
lower
=
0.0
,
upper
=
0.0
)],
# disable oxygen
[
with_changed_bound
(
"O2t"
,
lower
=
0.0
,
upper
=
0.0
)],
# disable oxygen
[
with_changed_bound
(
"CO2t"
,
lower
=
0.0
,
upper
=
0.0
)],
# disable CO2
[
with_changed_bound
(
"CO2t"
,
lower
=
0.0
,
upper
=
0.0
)],
# disable CO2
[
with_changed_bound
(
"O2t"
,
lower
=
0.0
,
upper
=
0.0
),
[
with_changed_bound
(
"O2t"
,
lower
=
0.0
,
upper
=
0.0
),
with_changed_bound
(
"CO2t"
,
lower
=
0.0
,
upper
=
0.0
)],
# disable both
with_changed_bound
(
"CO2t"
,
lower
=
0.0
,
upper
=
0.0
)],
# disable both
],
],
# this specifies what to do with the model variants (received as the argument `x`)
# this specifies what to do with the model variants (received as the argument `x`)
analysis
=
x
->
analysis
=
x
->
...
@@ -151,8 +150,10 @@ biomass production much harder:
...
@@ -151,8 +150,10 @@ biomass production much harder:
```
```
Most importantly, such analyses can be easily specified by automatically
Most importantly, such analyses can be easily specified by automatically
generating long lists of the modifications to apply to the model, and
generating long lists of modifications to be applied to the model, and
parallelized:
parallelized.
Knocking out each reaction in the model is efficiently accomplished:
```
julia
```
julia
# load the task distribution package, add several worker nodes, and load
# load the task distribution package, add several worker nodes, and load
...
...
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