Skip to contents

If an initial condition for the combination <container, molecule> already exists in the IC-BB, the value will be kept AS IS.

Usage

extendInitialConditionsBB(
  initialConditionsBuildingBlock,
  spatialStructureModule,
  moleculesModule,
  moleculeNames = NULL
)

Arguments

initialConditionsBuildingBlock

A BuildingBlock object of type Initial Conditions.

spatialStructureModule

A module with a spatial structure building block. Entries will be created for the selected molecules in all physical containers of the spatial structure.

moleculesModule

A module with a molecules building block. The entries will be created for all molecules from this building block, or for a subset of molecules defined in the moleculeNames argument.

moleculeNames

Optional list of molecule names. If provided, only the molecules with these names will be added to the initialConditionsBuildingBlock. If a specified molecule is not present in the provided molecules BB, it will be ignored.

Value

Paths of entries added to the building block.

Examples

if (FALSE) { # \dontrun{
project <- loadMoBiProject("path/to/project.mbp3")
module <- project$getModules("TestModule")[[1]]
icBB <- module$getInitialConditionsBBs()[[1]]

newPaths <- extendInitialConditionsBB(
  initialConditionsBuildingBlock = icBB,
  spatialStructureModule = module,
  moleculesModule = module,
  moleculeNames = c("CYP3A4", "UGT2B7")
)
} # }