-
Hi everyone, I am encountering an issue with CobraPy's pFBA function. The reported objective flux from Example script model = cobra.io.sbml.read_sbml_model(path_to_sbml_model)
model.objective = original_model.reactions.get_by_id('Biomass')
solution = model.optimize()
p_solution = pfba(model)
l_solution = loopless_solution(model)
print("Objective Flux (normal):", solution.objective_value)
print("Biomass Flux (normal):", solution.fluxes["Biomass"])
print("Objective Flux (pfba):", p_solution.objective_value)
print("Biomass Flux (pfba):", p_solution.fluxes["Biomass"])
print("Objective Flux (loopless):", p_solution.objective_value)
print("Biomass Flux (loopless):", p_solution.fluxes["Biomass"]) Output
My Question: Why is objective flux != biomass flux when using If any additional information or code is needed to better understand the problem, please let me know. Thank you for your time and assistance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
In pfba the objective is the sum of absolute fluxes, so that is what is returned. For the loopless solution that is a known bug and should be fixed when #1341 is merged. |
Beta Was this translation helpful? Give feedback.
In pfba the objective is the sum of absolute fluxes, so that is what is returned.
For the loopless solution that is a known bug and should be fixed when #1341 is merged.