-
Notifications
You must be signed in to change notification settings - Fork 1
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
downloading P expansum model #1
Comments
Hi, Even though Cobraby is rising warnings on the SId not being valid and "discouraged" uses in the sbml format, it should still read the models correctly by translating the ids (mainly "-" being transformed to "42", "+" to "43" and "." to "46") |
Ok |
You should now be able to use the files in the "xml_cobraCompliantIds" folder without any warnings. |
tnx when Im trying to read the model in cobrapy I get only 8 reaction Pexpansum.summary()
|
model = read_sbml_model("Pexpansum.xml")
print(len(model.reactions))
2614 There is 2614 reactions in this model. To know how to use cobrapy, please refer to https://cobrapy.readthedocs.io/en/latest/ |
The number of the reaction is correct, but the secrition in the summary showed nothing. |
I think the cobra-compliant SBML files appear to have lost their compartments within each metabolite ID. Then, when imported and re-saved by cobra, the compartments are considered "unused" and removed entirely by cobra.io.write_sbml_model. I tried reading in the original SBMLs and re-saving with the argument "f_replace={}", but the compartments are still removed by cobra even when the metabolite IDs are left alone. |
Hi,
I'm trying to download the Pexpansum model and read it using cobrapy.
I'm getting an error on cobrapy that the sbml model is not valid.
do your models works with cobrapy?
The text was updated successfully, but these errors were encountered: