Export model to SBML

exportSBML(ensemble, modelI, outputFolder)

Exports a model generated by GRASP to SBML.

This is done by creating a sbiomodel using the SimBiology Toolbox, which is then exported to SBML.

However, because each ODE must be divided by the respective’s metabolite reference concentration, the ODEs also have to be specified explicitly in the SBML file (besides the rate laws for each reaction). This generates warnings in Copasi and on the SBML online validator, but the simulation results are correct both in Copasi and Tellurium.

Generation of the rate laws/ODEs is done by parsing and simplifying the catalytic rate files generated by GRASP. The allosteric part is generated from scratch.

USAGE:

exportSBML(ensemble, modelI)

INPUT:

ensemble (struct): model ensemble, see buildEnsemble for fields description modelI (int): index of the model to be exported in the ensemble outputFolder (char): path to folder where output files will be written

OUTPUT:

None