amici.petab.sbml_import
Functions
|
Create AMICI model from PEtab problem |
|
Log some model quantities |
|
Turn a SBML species into parameters and replace species references inside the model instance. |
- amici.petab.sbml_import.import_model_sbml(sbml_model=None, petab_problem=None, model_name=None, model_output_dir=None, verbose=True, allow_reinit_fixpar_initcond=True, validate=True, non_estimated_parameters_as_constants=True, output_parameter_defaults=None, discard_sbml_annotations=False, **kwargs)[source]
Create AMICI model from PEtab problem
- Parameters:
sbml_model (
typing.Union
[str
,pathlib.Path
,libsbml.Model
]) – PEtab SBML model or SBML file name. Deprecated, passpetab_problem
instead.petab_problem (
petab.v1.problem.Problem
) – PEtab problem.model_name (
str
|None
) – Name of the generated model. If model file name was provided, this defaults to the file name without extension, otherwise the SBML model ID will be used.model_output_dir (
str
|pathlib.Path
|None
) – Directory to write the model code to. Will be created if doesn’t exist. Defaults to current directory.allow_reinit_fixpar_initcond (
bool
) – Seeamici.de_export.ODEExporter
. Must be enabled if initial states are to be reset after preequilibration.validate (
bool
) – Whether to validate the PEtab problemnon_estimated_parameters_as_constants – Whether parameters marked as non-estimated in PEtab should be considered constant in AMICI. Setting this to
True
will reduce model size and simulation times. If sensitivities with respect to those parameters are required, this should be set toFalse
.output_parameter_defaults (
dict
[str
,float
] |None
) – Optional default parameter values for output parameters introduced in the PEtab observables table, in particular for placeholder parameters. dictionary mapping parameter IDs to default values.discard_sbml_annotations (
bool
) – Discard information contained in AMICI SBML annotations (debug).kwargs – Additional keyword arguments to be passed to
amici.sbml_import.SbmlImporter.sbml2amici()
.
- Return type:
- Returns:
The created
amici.sbml_import.SbmlImporter
instance.