-
Notifications
You must be signed in to change notification settings - Fork 0
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
Nondefault settings #3
base: main
Are you sure you want to change the base?
Conversation
Avoids local file paths
kinetic_params=None, | ||
biomass_reaction="Biomass_Ecoli_core", | ||
substrate_update_reactions=None, | ||
biomass_identifier="biomass", # TODO: How do we differentiate between biomass between models? Do we need to change the biomass identifier to be unique for each model? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good question. I did not make this compatible with multi-species dFBA yet, so this one assumes one model. so let's put this on the TODOs. Should be pretty easy.
kinetic_params = {"glucose": (0.5, 1), "acetate": (0.5, 2)} | ||
# TODO: Look for the biomass reaction in the model, so it doesn't have to be specified | ||
# if biomass_reaction is None: | ||
# biomass_reaction = get_biomass_reaction(model_file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. There's plenty of room for more automated extraction of relevant information with different COBRA functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hgscott Great comments on the code. Let's go through these when we meet. Many of them point to the lack of multi-species/multi-model dFBA. I plan to follow roughly the same pattern used in the pure Python version: https://github.com/eagmon/notebook_tests/blob/main/comets.ipynb
Closes #2.
Here I wanted to extend the functions to work with any model and metabolites other than just glucose, acetate, and biomass, to make it easier to extend simulations to multi-species.
I was a little unsure of the best way to do this.
I added the arguments for
dfba_config
toget_single_dfba_spec
so that a user runningget_single_dfba_spec
can change theconfig
section of the dfba config returned byget_single_dfba_spec
.I added an example of this to
demo/particle_comets.ipynb
that runs the full genome-scale model of E. coli, and keeps track of Glucose, Acetate, CO2, and Biomass.