Hello I am new to python and Cobra, i would be grateful if you can provide me with steps to open an XML file from the computer and/or from online database, i tried the commands on Cobra documentation but i can't apply it. #1357
Answered
by
cdiener
Rahmaabubakr
asked this question in
Q&A
-
Checklist
Question |
Beta Was this translation helpful? Give feedback.
Answered by
cdiener
Sep 20, 2023
Replies: 1 comment 5 replies
-
Can you describe what code you ran exactly and what errors you are getting? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perfect, thanks for providing that information. The documentation is a bit confusing there, apologies for that. The first part of the code uses the GitHub repo structure to show all the included test files but this won't work on a normal installation, so those files won't be in the expected location and causes the errors you are seeing.
For a minimal example, the following will be enough:
This will load two of the models you can play around with.
load_model
can also be used to directly open models from reference databases such as BIGG or Biomodels.The other
read_*
andload_
functi…