Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get new delta G values after adding metabolomics data #43

Closed
sulheim opened this issue Jul 1, 2020 · 1 comment
Closed

Get new delta G values after adding metabolomics data #43

sulheim opened this issue Jul 1, 2020 · 1 comment

Comments

@sulheim
Copy link

sulheim commented Jul 1, 2020

How can I get the effective delta G of each reaction after the log concentration of all metabolites have been included?

@realLCSB
Copy link
Collaborator

realLCSB commented Jul 1, 2020

Good day Sulheim,

You can access the Gibbs free energy of each reaction through the following commands:

solution = model.optimize()
solution.raw.loc[model.delta_g.get_by_id(my_reaction_name).name]
# -- OR, after the model has been optimized and no changes have been made to it --
model.delta_g.get_by_id(my_reaction_name).primal

Note that the may model.delta_g works is the same as model.reactions. So if you're interested in PGI for instance, you can type model.delta_g.PGI.

Finally, I would like to stress that the Gibbs free energy value you will get is only one solution, you should perform a variability analysis (with your physiology constrained) to have an idea of the feasible range for the value.

Hope it helps,
Cheers,
Pierre

@realLCSB realLCSB closed this as completed Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants