Skip to content

sensitivity.parameters

Tools and helpers to handle parameters for sensitivity analysis.

ParameterType

Bases: StrEnum

Types of model parameters.

SensitivityParameter

Bases: BaseModel

Parameter for SensitivityAnalysis.

parameters_set_bounds staticmethod

parameters_set_bounds(parameters, bounds)

Set bounds for sensitivity analysis.

parameters_to_df staticmethod

parameters_to_df(parameters, sort=True)

Create parameter table from parameters.

parameter_to_latex classmethod

parameter_to_latex(tex_path, parameters)

Latex parameter table.

parameters_from_sbml staticmethod

parameters_from_sbml(
    sbml_path,
    exclude_ids=None,
    exclude_na=True,
    exclude_zero=True,
)

Retrieve parameters from SBML model for the sensitivity analysis.

Constant parameters, constant compartments and constant species are returned.

:sbml_path: Path to the SBML file. :param exclude_ids: ids to exclude, :param exclude_na: whether to exclude NA values :return: dict[id, name]