Configuration of a simulation. Contains description of the modules used for the simulation, selected Parameter Values (PV) and Initial Conditions (IC), and molecule calculation methods.
Active bindings
individualA building block of type "Individual" used in the configuration. Can be
NULLif no Individual should be applied.expressionProfilesA list of building blocks of type "Expression Profile" used in the configuration. Only one profile per protein is allowed.
modulesA named list of
MoBiModuleobjects from which to create the simulation. The order of modules defines the order in which the modules will be combined to a simulation! When setting the modules, the selection of Initial Conditions and Parameter Values is reset to the first available ones in the modules.selectedInitialConditionsA named list with names being the names of the modules, and the values the names of Initial Conditions Building Blocks
selectedParameterValuesA named list with names being the names of the modules, and the values the names of Parameter Values Building Blocks If the modules for which the PV selection is provided are not in the configuration, throw an error.
partitionCoefficientOverridesA named list of partition coefficient method overrides. Names are molecule names, values are the full calculation method names. Read-only; use
setPartitionCoefficientMethods()to modify.cellularPermeabilityOverridesA named list of cellular permeability method overrides. Names are molecule names, values are the full calculation method names. Read-only; use
setCellularPermeabilityMethods()to modify.settingsA
SimulationSettingsobject defining the simulation settings. If no settings are provided, default settings will be used upon simulation creation. Individual properties within theSimulationSettingsobject are read-only, but the entire settings object can be replaced with anotherSimulationSettingsinstance (or set toNULLto use defaults). Setting the solver settings, output intervals, and output selections must be done after creating the simulation from the configuration.
Methods
Method new()
Initialize a new instance of the class
Usage
SimulationConfiguration$new(
modules,
individual = NULL,
expressionProfiles = NULL,
selectedInitialConditions = NULL,
selectedParameterValues = NULL,
settings = NULL
)Arguments
modulesA list of
MoBiModuleobjects from which to create in simulation. The order of modules defines the order in which the modules will be combined to a simulation!individualOptional, an individual building block
expressionProfilesOptional, a list of expression profiles to apply to the simulation.
selectedInitialConditionsBy default, the first Initial Conditions (IC) building block (BB) of each module will be selected. If a module has multiple IC BBs, it is possible to specify which IC BB to apply by providing a named list, where the name should be the name of the module and the value the name of the IC BB. By explicitly setting the value for a specific module to
NULL, no IC BB from the specified module will be applied. If the list contains a module name that is not part of the provided modules, it will be ignored.selectedParameterValuesBy default, the first Parameter Values (PV) building block (BB) of each module will be selected. If a module has multiple PV BBs, it is possible to specify which PV BB to apply by providing a named list, where the name should be the name of the module and the value the name of the PV BB. By explicitly setting the value for a specific module to
NULL, no PV BB from the specified module will be applied. If the list contains a module name that is not part of the provided modules, it will be ignored.settingsOptional, a
SimulationSettingsobject defining the simulation settings. If no settings are provided, default settings will be used upon simulation creation.
Method setPartitionCoefficientMethods()
Sets the method used for calculation of partition coefficients. This method can be used to specify the partition coefficient method for each molecule used in the modules. If not specified, the method set in the Molecules Building Block of the last module in which the molecule is present will be used.
Arguments
moleculeNameThe name of the molecule for which to set the partition coefficient method.
methodNameThe name of the method to use for calculation of partition coefficients for the specified molecule. Should be one of the
PartitionCoefficientMethodsenum values. UseNULLto remove an existing override.
Method setCellularPermeabilityMethods()
Sets the method used for calculation of cellular permeabilities. This method can be used to specify the cellular permeability method for each molecule used in the modules. If not specified, the method set in the Molecules Building Block of the last module in which the molecule is present will be used.
Arguments
moleculeNameThe name of the molecule for which to set the cellular permeability method.
methodNameThe name of the method to use for calculation of cellular permeabilities for the specified molecule. Should be one of the
CellularPermeabilityMethodsenum values. UseNULLto remove an existing override.
Method print()
Print the object to the console