Skip to content

physiome.cases

Case construction for a model of the Physiome Model Repository.

Every model runs the same generic timecourse. The repository has no expected results, so the libopencor simulation of the CellML model is what the later stages are compared with (sbml2cellml.physiome.runner).

The variables of a case are the SBML ids cellml2sbml gives the variables of the model, one per equivalence set of the CellML model (sbml2cellml.variables.VariableIds). columns maps the names libopencor gives them, with and without the component, to those ids, so that the result of the CellML simulation and the result of the SBML simulation hold the same columns.

PhysiomeCase dataclass

PhysiomeCase(case, cellml_path, columns)

A case of the check: the CellML model and how to read its results.

constructs

constructs(model, analyser_model)

CellML constructs a model uses, as component tags of a Case.

Parameters:

Name Type Description Default
model Model

the CellML model, with its imports flattened.

required
analyser_model Any

its analyser model.

required

Returns:

Type Description
tuple[str, ...]

The construct tags, e.g. ("Components", "Resets").

physiome_case

physiome_case(exposure, cellml_path)

Build the generic timecourse case of a model of the repository.

Parameters:

Name Type Description Default
exposure Exposure

the exposure the model belongs to.

required
cellml_path Path

path of the CellML file in the cloned workspace.

required

Returns:

Type Description
PhysiomeCase

The case, with expected=None; settings.variables are the SBML

PhysiomeCase

ids of the variables of the model without the variable of

PhysiomeCase

integration.

Raises:

Type Description
PhysiomeError

if the model cannot be read, has unresolved imports, cannot be analysed or has no variables.