Skip to content

Commit

Permalink
fix mmdf
Browse files Browse the repository at this point in the history
  • Loading branch information
exaexa committed Jan 29, 2024
1 parent 0957b8a commit 89adb73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/COBREXA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ include("builders/fbc.jl")
include("builders/interface.jl")
include("builders/knockouts.jl")
include("builders/loopless.jl")
include("builders/mmdf.jl")
include("builders/objectives.jl")
include("builders/scale.jl")
include("builders/unsigned.jl")
Expand Down
11 changes: 8 additions & 3 deletions src/frontend/mmdf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,18 @@ function max_min_driving_force_analysis(
end *
:concentration_ratio_constraints^C.ConstraintTree(
Symbol(cid) => difference_constraint(
m.log_metabolite_concentrations[Symbol(m1)],
m.log_metabolite_concentrations[Symbol(m2)],
constraints.log_concentrations[Symbol(m1)],
constraints.log_concentrations[Symbol(m2)],
log(ratio),
) for (cid, (m1, m2, ratio)) in concentration_ratios
)

optimized_constraints(m; objective = m.max_min_driving_force.value, optimizer, settings)
optimized_constraints(
constraints;
objective = constraints.max_min_driving_force.value,
optimizer,
settings,
)
end

export max_min_driving_force_analysis

0 comments on commit 89adb73

Please sign in to comment.