Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
COBREXA.jl
Manage
Activity
Members
Plan
External wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LCSB-BioCore
COBREXA.jl
Commits
f13cfe0e
Unverified
Commit
f13cfe0e
authored
3 years ago
by
Miroslav Kratochvil
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #347 from LCSB-BioCore/mk-doc-fixes
documentation fixes and formatting, ...
parents
c04fc12b
b1e98f28
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/src/tutorials/2_analysis.md
+5
-4
5 additions, 4 deletions
docs/src/tutorials/2_analysis.md
src/reconstruction/community.jl
+6
-5
6 additions, 5 deletions
src/reconstruction/community.jl
src/reconstruction/modifications/generic.jl
+1
-1
1 addition, 1 deletion
src/reconstruction/modifications/generic.jl
with
12 additions
and
10 deletions
docs/src/tutorials/2_analysis.md
+
5
−
4
View file @
f13cfe0e
...
...
@@ -7,7 +7,8 @@ exploring the biological models. The currently supported methods include
-
Flux balance analysis (FBA), in function
[
`flux_balance_analysis`
](
@ref
)
-
Flux variability analysis (FVA), in
[
`flux_variability_analysis`
](
@ref
)
-
Flux sampling by hit-and-run algorithm, in
[
`hit_and_run`
](
@ref
)
-
Flux sampling by linearized hit-and-run algorithm, in
[
`affine_hit_and_run`
](
@ref
)
-
Parsimonious flux balance analysis (pFBA), in
[
`parsimonious_flux_balance_analysis`
](
@ref
)
...
...
@@ -149,15 +150,15 @@ Otherwise, the function behaves just like [`flux_balance_analysis`](@ref):
## Flux sampling
For the
[
`hit_and_run`
](
@ref
)
, you need a previously optimized and constrained
For the
[
`
affine_
hit_and_run`
](
@ref
)
, you need a previously optimized and constrained
model from another analysis function, such as
[
`flux_balance_analysis`
](
@ref
)
,
or created by
[
`make_optimization_model`
](
@ref
)
. You may need to carefully
choose the number of iterations and sample sizes to match your model; see the
documentation of
[
`hit_and_run`
](
@ref
)
for details.
documentation of
[
`
affine_
hit_and_run`
](
@ref
)
for details.
As an example, you can run the sampling for 100 thousand iterations with:
```
hit_and_run(100_000, make_optimization_model(m, GLPK.Optimizer))
affine_
hit_and_run(100_000, make_optimization_model(m, GLPK.Optimizer))
```
You should receive a matching flux sample with the (default) 1000 samples in a
...
...
This diff is collapsed.
Click to expand it.
src/reconstruction/community.jl
+
6
−
5
View file @
f13cfe0e
...
...
@@ -70,11 +70,12 @@ end
Add `model` to `community`, which is a pre-existing community model with
`exchange_rxn_ids` and `exchange_met_ids`. The `model_name` is appended to
each reaction and metabolite, see [`join`](@ref). If `biomass_id` is specified
then a biomass metabolite for `model` is also added to the resulting model. The
column corresponding to the `biomass_id` reaction then produces this new biomass
metabolite with unit coefficient. Note, `exchange_rxn_ids` and
`exchange_met_ids` must already exist in the `community` model.
each reaction and metabolite, see [`join_with_exchanges`](@ref). If
`biomass_id` is specified then a biomass metabolite for `model` is also added
to the resulting model. The column corresponding to the `biomass_id` reaction
then produces this new biomass metabolite with unit coefficient. Note,
`exchange_rxn_ids` and `exchange_met_ids` must already exist in the `community`
model.
# Example
```
...
...
This diff is collapsed.
Click to expand it.
src/reconstruction/modifications/generic.jl
+
1
−
1
View file @
f13cfe0e
...
...
@@ -20,7 +20,7 @@ with_removed_metabolites(args...; kwargs...) =
with_added_reactions(args...; kwargs...)
Specifies a model variant with reactions added. Forwards the arguments to
[`add_
R
eactions`](@ref). Intended to be used with [`screen`](@ref).
[`add_
r
eactions`](@ref). Intended to be used with [`screen`](@ref).
"""
with_added_reactions
(
args
...
;
kwargs
...
)
=
m
->
add_reactions
(
m
,
args
...
;
kwargs
...
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment