AnabelSMRuggiero / sbmltoodepy

A tool for creating Python implementations of SBML models.
BSD 3-Clause "New" or "Revised" License
13 stars 4 forks source link

handle events in SBML files #9

Open mayalenE opened 2 years ago

mayalenE commented 2 years ago

Hello,

The current code is not handling events when parsing SBML files and generating the corresponding python scripts.

An example SBML file with events can be downloaded at this link: https://www.ebi.ac.uk/biomodels/model/download/BIOMD0000000007.2?filename=BIOMD0000000007_url.xml

The curated dynamics are suppose to look like this: image

But with sbmltoodepy it looks like this: image :point_right: because the events are not implemented we can see that the mass is not divided and the last period get incorrect

I've tried to do it myself but I do not obtain the correct dynamics yet so I'm probably missing something here, I will do a pull issue soon with my current code. It would be great if we could iterate on that :)

Thank you very much,

Mayalen