from cobra.io import load_model model = load_model("textbook") model.medium
ChenCongZ opened this issue · 4 comments
ChenCongZ commented
Checklist
- I searched the documentation.
- I looked through similar issues on GitHub.
- I looked up "How to do ... in cobrapy" on a search engine.
Question
Hi,
from cobra.io import load_model
model = load_model("textbook")
model.medium
Is it the output file of the model? What is "textbook" in the code file format? for example sbml or json format.
ChenCongZ commented
ChenCongZ commented
cdiener commented
Hi, load_model
is used to load models directly from repositories. For loading an SBML model you can use:
from cobra.io import read_sbml_model
model = read_sbml_model("YOUR_MODEL_PATH")