Closed QixingWei closed 5 months ago
Please provide the cobrapy version information.
I tried cobra 0.13.3 and 0.17.0, they show the same results.
At some point annotations were lists but now they are dicts and have been for quite a while. Is it possible for you to install the latest cobrapy version and load that model from SBML again? Or do you need to load the old JSON?
I loaded an old version .json model. The model cannot be read by new version cobrapy, it can olny be read at 0.17.1 or 0.13.3.
I understand. I'm asking if that model stored in JSON is somehow special and only available that way or if an SBML version of that model exists that you can load in the latest cobrapy version?
I got the file from my previous co-worker. The situation is I can read and save e_coli_core(json or xml) in any version. But for this file, I can only read it(json format) in 0.13.3 or 0.17.1 and I cannot save it in xml format.
This is related to https://github.com/opencobra/cobrapy/issues/1012. You would need to go through your JSON and fix the annotations. There is an example notebook here that fixes the BIGG universal model but it would depend a bit on how your annotations actually look like. Do you have an example for some [reaction,metabolite].annotation
outputs?
Closing due to lack of activity.
Checklist
AttributeError Traceback (most recent call last)