Open eugenibc opened 1 year ago
Hi, actually I have a lot of info on that since I had to prep them for the MICOM database release. Unfortunately it looks like something went wrong when the authors prepped the SBML models. A large fraction of them have some slight issues. In particular I found the following cases:
.xml
. Looks like you hit case 1. For now there is not much one can do. For MICOM we converted all the .mat models to SBML with cobrapy to get around that.
However, the Matlab models work just fine and you can read those with cobra.io.load_mat_model
.
Thanks a lot for your reply and explanations, and congratulations by the way for the great job you do around MICOM!
Hi! I can confirm the issue with several AGORA2 models (version 2.01).
In addition to the three points mentioned by @cdiener, some SBML parsers may fail to read specific models with brackets "("/ or ")" in the chemical formula of metabolites. E.g. in the model sbml Bacteroides_ovatus_CL03T12C18.xml
.
Encountered '(' when expecting a capital letter. The chemicalFormula 'C10H14N5O7P(C5H8O5PR)n(C5H8O5PR)n' has incorrect syntax.
Hi, I'm trying to build a micom database with AGORA2 models (micom.workflows.build_database) and i'm facing issues with 1746 of the 7302 models. This is one of the reconstructions that failed to be read: https://www.vmh.life/files/reconstructions/AGORA2/version2.01/sbml_files/individual_reconstructions/Acinetobacter_pittii_ANC_4050.xml
And this is the error I get when i run the cobra.io.sbml.validate_sbml_model on the file:
I would like to know if there is something that could be done to solve this issue or if anyone has a suggestion about how to proceed Thanks in advance Eugeni Belda