Convert an Initial Conditions Building Block to a data frame.
Source:R/utilities-building-block.R
initialConditionsBBToDataFrame.RdConvert an Initial Conditions Building Block to a data frame.
Value
A data frame with the following columns:
Container Path: Full path to the container where the molecule is located.Molecule Name: Name of the molecule.Is Present: Boolean indicating if the molecule is present.Value: Initial value of the molecule. For values that are defined by a formula, the return value can beNaN.Unit: Unit of the initial value.Scale Divisor: Scale divisor for the initial value.Neg. Values Allowed: Boolean indicating if negative values are allowed.
Examples
sim <- loadSimulation(system.file(
"extdata",
"simple.pkml",
package = "ospsuite"
))
module <- sim$configuration$modules[[1]]
icBB <- module$getInitialConditionsBBs()[[1]]
df <- initialConditionsBBToDataFrame(icBB)