odefac¶
Convert SBML models to ODE systems for various programming languages.
This allows easy integration with existing workflows by rendering respective code templates.
Currently supported code generation: - python: scipy - R: desolve - R: dmod
The following SBML core constructs are currently NOT supported: - ConversionFactors - FunctionDefinitions - InitialAssignments - Events - Piecewise functions - Dynamical changing compartments - Species with AssignmentRules
SBML2ODE
¶
SBML to ODE converter.
Writes out python or R ODE files which can be solved with standard integrators like scipy odeint or R desolve.
Init with SBMLDocument.
:param doc: SBMLDocument
dependency_graph
staticmethod
¶
Create dependency graph from given dictionary.
:param y: { variable: astnode } dictionary :param filtered_ids: ids which are defined elsewhere and not part of dependency tree :return:
to_julia
¶
Write ODEs to julia.
Generated files can be used as an input for DifferentialEquations.jl https://docs.sciml.ai/DiffEqDocs/stable/
to_custom_template
¶
Write ODEs to custom template.