interpolation¶
Create files for interpolation of datasets.
https://github.com/allyhume/SBMLDataTools https://github.com/allyhume/SBMLDataTools.git
TODO: fix composition with existing models TODO: support coupling with existing models via comp The functionality is very useful, but only if this can be applied to existing models in a simple manner.
Interpolator
¶
Interpolation
¶
Create SBML model which interpolates the given data.
The second to last components are interpolated against the first component.
Initialize Interpolation.
validate_data
¶
Validate the input data.
- The data is expected to have at least 2 columns.
- The data is expected to have at least three data rows.
- The first column should be in ascending order.
:return: :rtype:
from_csv
staticmethod
¶
Interpolation object from csv file.
write_sbml_to_file
¶
Write the SBML file.
:param sbml_out: Path to SBML file :return:
create_interpolators
staticmethod
¶
Create all interpolators for the given data set.
The columns 1, ... (Ncol-1) are interpolated against column 0.
add_interpolator_to_model
staticmethod
¶
Add interpolator to model.
The parameters, formulas and rules have to be added to the SBML model.
:param interpolator: :param model: Model :return: