Closed mephenor closed 2 years ago
@zakandrewking Could you please check this chemical formula in model iJB785?
which metabolite is that in?
{ "id":"bm_pro_c", "name":"Protein component of biomass", "compartment":"c", "charge":0, "formula":"H70.5616C44.9625O13.1713S0.2669N12.1054R-1.0" },
there's no formula for it here:
I think we removed those decimal formulae
The formula is still present in https://github.com/SBRG/bigg_models_data/blob/master/models/iJB785.json .
The other issue seems to be related to the Java 9 module system. With Java 8 COBRAparser works normally
Json parser is still failing on models. See for instance also example:
java -jar ./target/ModelPolisher-noDB-1.7.jar --input="./examples/bigg/e_coli_core.json" --output="./examples/bigg/e_coli_core_json_polished.xml" --annotate-with-bigg=true --host=0.0.0.0 --port=1310 --user=postgres --passwd=postgres --dbname=bigg
I will have a look at that
Both parsers are now fixed in the refactoring branch, with the JSONParser now using the schema from cobrapy to create the respective objects using Jackson. Formulae are parsed using FBC and those containing non integers are currently not supported and thus dropped. Should they be added to notes instead?
As long as we are still waiting for the next FBC specification to be finalized, we should indeed keep such information (that could become valuable later on) - for now let's put it to the notes.
Unparseable formulae in JSONParser are now added to the species notes.
just added a test to confirm iJB785 is parsed without error and the formula mentioned above is retained
closing and moving to tested