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
2ad630fc
Unverified
Commit
2ad630fc
authored
Aug 31, 2021
by
Miroslav Kratochvil
Committed by
GitHub
Aug 31, 2021
Browse files
Merge pull request #448 from LCSB-BioCore/mk-sanitize-fva
slightly improve the objective value handling at FVA
parents
1a9348ef
bc4bd821
Pipeline
#46298
passed with stages
in 52 minutes and 57 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/analysis/flux_variability_analysis.jl
View file @
2ad630fc
...
...
@@ -5,7 +5,8 @@
optimizer;
modifications = [],
workers = [myid()],
bounds = z -> (z,z),
optimal_objective_value = nothing,
bounds = z -> (z, Inf),
ret = objective_value,
)::Matrix{Float64}
...
...
@@ -30,7 +31,11 @@ first and second pair to remove the limit. Use [`gamma_bounds`](@ref) and
`optimizer` must be set to a `JuMP`-compatible optimizer. The computation of
the individual optimization problems is transparently distributed to `workers`
(see `Distributed.workers()`).
(see `Distributed.workers()`). The value of Z₀ can be optionally supplied in
argument `optimal_objective_value`, which prevents this function from calling
the non-parallelizable FBA. Separating the single-threaded FBA and
multithreaded variability computation can be used to improve resource
allocation efficiency in many common use-cases.
`ret` is a function used to extract results from optimized JuMP models of the
individual reactions. By default, it calls and returns the value of
...
...
@@ -55,7 +60,8 @@ function flux_variability_analysis(
optimizer
;
modifications
=
[],
workers
=
[
myid
()],
bounds
=
z
->
(
z
,
z
),
optimal_objective_value
=
nothing
,
bounds
=
z
->
(
z
,
Inf
),
ret
=
objective_value
,
)
if
any
(
reactions
.<
1
)
||
any
(
reactions
.>
n_reactions
(
model
))
...
...
@@ -63,9 +69,10 @@ function flux_variability_analysis(
end
Z
=
bounds
(
isnothing
(
optimal_objective_value
)
?
objective_value
(
flux_balance_analysis
(
model
,
optimizer
;
modifications
=
modifications
),
),
)
:
optimal_objective_value
,
)
return
screen_optmodel_modifications
(
...
...
cylon-x
🤖
@cylon-x
mentioned in commit
b1586aa2
·
Aug 31, 2021
mentioned in commit
b1586aa2
mentioned in commit b1586aa2b135627a6b4e7eeef34130fca5bc4c26
Toggle commit list
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