diff --git a/src/COBREXA.jl b/src/COBREXA.jl index 7e54f7876..9719c4b56 100644 --- a/src/COBREXA.jl +++ b/src/COBREXA.jl @@ -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") diff --git a/src/frontend/mmdf.jl b/src/frontend/mmdf.jl index 49951538d..43659792e 100644 --- a/src/frontend/mmdf.jl +++ b/src/frontend/mmdf.jl @@ -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