Extend a Parameter Values Building Block (BB) with protein expression parameters for selected protein molecules in selected organs.
Source:R/utilities-building-block.R
addProteinExpressionToParameterValuesBB.RdFor each protein in moleculeNames, parameters defining the protein expression
(e.g. "Relative expression", "Fraction expressed ...", and "Initial concentration"
entries) are added to the parameterValuesBuildingBlock for every physical
container under each path in organPaths. Default values are taken from the
reference expression profile supplied for that molecule. Existing entries are
not overwritten.
Usage
addProteinExpressionToParameterValuesBB(
parameterValuesBuildingBlock,
spatialStructureModule,
moleculesModule,
moleculeNames = NULL,
referenceExpressionProfiles = NULL,
organPaths = NULL
)Arguments
- parameterValuesBuildingBlock
A
BuildingBlockobject of typeParameter Values. The entries will be added to this building block.- spatialStructureModule
A
MoBiModulecontaining aSpatial Structurebuilding block. Expression parameters are created for containers defined by this spatial structure.- moleculesModule
A
MoBiModulecontaining aMoleculesbuilding block. Must contain the proteins named inmoleculeNames.- moleculeNames
Character vector of protein molecule names for which expression parameters should be added. If
NULL(default), all proteins (i.e. molecules of typeEnzyme,Transporter, orBinding Partner) defined in the Molecules building block ofmoleculesModuleare used.- referenceExpressionProfiles
A single
BuildingBlockof typeExpression Profile, a list of such building blocks, orNULL. The matching profile for each molecule inmoleculeNamesis identified by the profile'sMoleculeNameproperty. For every molecule inmoleculeNameswithout a supplied profile (or when this argument isNULL), a default profile is created viacreateExpressionProfileBuildingBlock()for species"Human", using the molecule's protein type to choose the profile category (Enzyme -> Metabolizing Enzyme, Transporter -> Transport Protein, Binding Partner -> Protein Binding Partner). Profiles whoseMoleculeNameis not inmoleculeNamesare ignored. Duplicate profiles (two entries with the sameMoleculeName) raise an error.- organPaths
Character vector of organ paths under which expression parameters are created (e.g.
"Organism|Kidney"). Each path must resolve to an existing organ in the spatial structure. The parameters are added for all physical containers under these paths. IfNULL(default), expression parameters are created for every organ in the spatial structure.
Examples
if (FALSE) { # \dontrun{
project <- loadMoBiProject("path/to/project.mbp3")
module <- project$getModules("TestModule")[[1]]
pvBB <- module$getParameterValuesBBs()[[1]]
profile <- project$getExpressionProfiles("CYP3A4|Human|Healthy")[[1]]
# Use a supplied reference profile and target one organ.
newPaths <- addProteinExpressionToParameterValuesBB(
parameterValuesBuildingBlock = pvBB,
spatialStructureModule = module,
moleculesModule = module,
moleculeNames = "CYP3A4",
referenceExpressionProfiles = profile,
organPaths = "Organism|Kidney"
)
# Auto-resolve protein names from the Molecules BB and create default
# `Human` profiles for any molecule without a supplied reference profile.
newPaths <- addProteinExpressionToParameterValuesBB(
parameterValuesBuildingBlock = pvBB,
spatialStructureModule = module,
moleculesModule = module
)
} # }