Skip to contents

Package

dMod2 dMod2-package
dMod2: Parameter Estimation in Dynamical Models

Reaction networks and equations

Reactions, compartments, equation vectors, conserved quantities and steady states.

as.eqnlist() is.eqnlist() eqnlist()
Generate or Coerce to an Equation List
addReaction()
Add Reaction to an Equation List
assignCompartment()
Assign States to Compartments
setCompartmentVolume()
Set Compartment Volumes
getReactions()
Generate a Table of Reactions from an Equation List
getFluxes()
Generate List of Fluxes from Equation List
plotFluxes()
Plot Fluxes Given a List of Flux Equations
print(<eqnlist>)
Print or Pander Equation List
as.data.frame(<eqnlist>)
Coerce Equation List into a Data Frame
subset(<eqnlist>)
Subset of an Equation List
write.eqnlist()
Write Equation List into a CSV File
is.eqnvec() eqnvec()
Generate Equation Vector Object
as.eqnvec()
Coerce to an Equation Vector
format(<eqnvec>)
Format Equation Vector with Spaces
print(<eqnvec>)
Print Equation Vector
summary(<eqnvec>)
Summary of an Equation Vector
conservedQuantities()
Conserved Quantities of an Equation List
customTotals()
Set or Reset User-Defined Conserved Quantities
steadyStates()
Analytical Steady States
log10Transform()
Transform an ODE to log10 Coordinates
eventlist() addEvent()
Eventlist
as.eventlist()
Coerce to Eventlist
getSymbols()
Symbols in Expressions
replaceSymbols()
Replace Symbols in Expressions
resolveRecurrence()
Substitute Earlier Entries into Later Ones

Prediction

Compiled ODE models and the prediction functions built on them.

odemodel()
Compiled ODE Model
Xs()
Prediction Function of an ODE Model with Sensitivities
Xf()
Prediction Function of an ODE Model without Sensitivities
Xd()
Prediction Function Interpolating Parameters
Xt()
Prediction Function Returning Time
prdfn()
Prediction Function
predict(<prdfn>)
Model Predictions
prdframe()
Prediction Frame
as.prdlist() prdlist()
Prediction List
compile()
Compile Model-Related C/C++ Code
loadDLL()
Load Shared Objects for dMod Objects
getLocalDLLs()
Loaded Shared Objects in the Working Directory
modelname() `modelname<-`()
Get and Set Modelname
controls() `controls<-`()
List, Get and Set Controls

Observation and parameter functions

The function objects composed as g * x * p: observation functions, parameter transformations, concatenation and direct sum.

Y()
Observation Function
obsfn()
Observation Function
P()
Parameter Transformation
Pexpl()
Explicit Parameter Transformation
Pimpl()
Implicit Parameter Transformation
parfn()
Parameter Transformation Function
define() insert() branch()
Construct and Modify Parameter Transformations
repar()
Reparameterization
print(<parfn>)
Print Parameter Transformations
Id()
Identity Function
`*`(<fn>)
Concatenation of Functions
`+`(<fn>)
Direct Sum of Functions
dModfn
Calling dMod Functions

Data

as.datalist() `names<-`(<datalist>) is.datalist() c(<datalist>) datalist()
Generate a Datalist Object
`+`(<datalist>)
Direct Sum of Datasets
as.data.frame(<datalist>) as.data.frame(<prdlist>)
Coerce to a Data Frame
covariates()
Access the Covariates in the Data
lbind()
Bind a Named List of Data Frames into One Data Frame
combine()
Combine Data Frames or Matrices by Rows
reduceReplicates()
Reduce Replicates to Mean and Standard Error
coordTransform()
Coordinate Transformation for Data Frames

Structural identifiability

Symmetries of ODE models by the Python package symident.

symmetryDetection()
Structural Non-Identifiabilities of an ODE Model
symmetryReduction()
Remove Detected Symmetries by Reparameterization
discreteSymmetries()
Discrete Symmetries
reconstControl()
Settings of the Observability Engine

Likelihood and prior

Likelihoods of the data, priors and constraints, sums of objectives.

normL2()
L2 Norm Between Data and Model Prediction
normT()
Student-t likelihood between data and model prediction
res()
Residuals Between Data and Model Prediction
datapointL2()
L2 Objective of a Validation Data Point
constraintL2()
Soft L2 Constraint on Parameters
constraintStability()
Stability of the steady state of Pimpl() as a constraint
constraintL1()
Soft L1 Constraint on Parameters
constraintCauchy()
Soft Cauchy Constraint on Parameters
constraintChisq()
Soft Chi-Squared Constraint on Positive Parameters
constraintExponential()
Soft Exponential Constraint on Positive Parameters
constraintGamma()
Soft Gamma Constraint on Positive Parameters
constraintRayleigh()
Soft Rayleigh Constraint on Positive Parameters
objlist()
Objective List
as.objlist()
Zero Objective List
`+`(<objfn>)
Direct Sum of Objective Functions
`+`(<objlist>)
Add Two Objective Lists
`%.*%`
Multiplication of Objective Functions with Scalars
objframe()
Objective Frame
vcov(<objlist>) vcov(<trustfit>)
Variance-Covariance Matrix of a Fit
reml()
Estimate the Error Model by Restricted Maximum Likelihood
remlLeverage()
Leverage of the Data Points in the Mean Model
fitErrorModel()
Fit an Error Model to Replicate Data

Optimization and profiles

trust() trustL1()
Non-Linear Optimization by a Trust-Region Method
mstrust()
Non-Linear Optimization, Multi-Start
msParframe()
Reproducible Random Starting Points
as.parlist() print(<parlist>) summary(<parlist>) c(<parlist>) parlist()
Parameter List
load.parlist()
Load Fits Written by mstrust
plot(<parlist>)
Plot a Parameter List
is.parframe() `[`(<parframe>) subset(<parframe>) rbind(<parframe>) parframe()
Generate a Parameter Frame
as.parframe()
Coerce to a Parameter Frame
as.parvec(<parframe>) as.parvec(<parlist>)
Select a Parameter Vector from a Parameter Frame
unique(<parframe>)
Rows of a Parameter Frame with Unique Values
as.parvec() parvec()
Parameter Vector
print(<parvec>)
Print Parameter Vectors
c(<parvec>)
Concatenate Parameter Vectors
`[`(<parvec>)
Subset a Parameter Vector
profile(<objfn>) profile(<function>)
Profile Likelihood
profileThreshold()
Threshold for a Profile Likelihood
confint(<parframe>)
Confidence Intervals from Profiles
plotProfile()
Profile Likelihood Plot
plotPaths()
Profile Likelihood: Plot of the Parameter Paths
plotPathsMulti()
Profile Likelihood: Plot All Parameter Paths of One Profile Together
plotProfilesAndPaths()
Profile Likelihood: Plot Profiles Along with Their Parameter Paths
plotArray()
Plot an Array of Trajectories Along the Profile of a Parameter
plotValues()
Plot Objective Values of a Collection of Fits
plotPars()
Plot Parameter Values of a Collection of Fits
plotPairs()
Pair Plot of Parameter Samples
plotResiduals()
Plot Residuals of a Collection of Fits
plotTrace()
Convergence Trace of an Iterative Fit

Mixed effects

Random effects on parameter transformations, fits by marginal likelihood and their diagnostics.

randomEffects() print(<randomeffects>)
Random effects of a parameter transformation
normal() spikeSlab() dirichletProcess()
Distributions of random effects
em()
Mixed-effects fit by marginal maximum likelihood
msem()
Multistart mixed-effects fit
print(<em>)
Print a mixed-effects fit
summary(<em>) print(<summary.em>)
Summarize a mixed-effects fit
coef(<em>)
Estimates of a mixed-effects fit
vcov(<em>)
Covariance of the estimates of a mixed-effects fit
confint(<em>)
Confidence intervals of a mixed-effects fit
logLik(<em>)
Log-likelihood of a mixed-effects fit
anova(<em>) anova(<alignment>)
Compare nested mixed-effects fits
predict(<em>)
Predictions of a mixed-effects fit
residuals(<em>)
Residuals of a mixed-effects fit
simulate(<em>)
Simulate data from a mixed-effects fit
plot(<em>)
Observed vs predicted scatter (DV vs IPRED and DV vs PRED)
plotCombined(<em>)
Data and predictions of a mixed-effects fit
plotResiduals(<em>)
Residual diagnostics of a mixed-effects fit
plotRandomEffects()
Random-effect distribution diagnostics
plotVPC()
Visual predictive check

Alignment

Measurements on unknown scales aligned to common values.

align()
Fit an alignment model
alignmentModel() print(<alignmentmodel>)
Alignment model of replicate measurements
as.datalist(<alignment>)
Aligned values as dMod2 data
simulate(<alignment>)
Simulate readings from an alignment
plotAligned() plotScaled() plotResiduals(<alignment>)
Diagnostic plots of an alignment

PEtab and SBML

importPEtab()
Import a PEtab Problem
exportPEtab()
Export a dMod Problem to PEtab
exportPEtabObject()
Export an Imported PEtab Problem
readPEtabTables()
Read the Tables of a PEtab Problem
readPEtabYaml()
Read a PEtab YAML File
print(<petabproblem>)
Print a PEtab Problem
importSbml()
Import an SBML Model
exportSbml()
Export an Equation List to SBML

Distributed computing

distributedComputing()
Run R Code as Tasks on Other Processes, Machines or a SLURM Cluster
localNode() sshNodes() slurmCluster()
Where distributedComputing() Runs Tasks
slurmTemplate()
Job script templates of SLURM clusters
dMod2Jobs()
Jobs of distributedComputing()
detectFreeCores()
Detect Number of Free Cores

Plots and colors

plot(<datalist>) plotData()
Plot Observed Data
plotPrediction()
Plot a List of Model Predictions
plotCombined() plot(<prdlist>) plot(<prdframe>)
Plot Model Predictions and Data in One Plot
theme_dMod2()
Standard Plotting Theme of dMod2
scale_color_dMod2() scale_fill_dMod2()
Discrete dMod2 Color Scales
scale_color_dMod2_c() scale_fill_dMod2_c() scale_color_dMod2_div() scale_fill_dMod2_div()
Continuous dMod2 Color Scales
dMod2_colors
Seed Colors of the dMod2 Palette
dMod2_colors_cb
Colorblind-Safe Seed Colors
dMod2_palette()
Generate Distinct Colors from a dMod2 Palette
dMod2_palettes()
Overview of the dMod2 Palettes
dMod2_gradient dMod2_gradient_cb dMod2_divergent dMod2_divergent_cb
Continuous dMod2 Color Ramps

Data sets

bachmann
Time-Course Data for JAK2-STAT5 Signaling in CFU-E Cells
badata
Time-Course Data for the Bile Acid Demonstration Model
boehm
Time-Course Data for STAT5 Dimerization in BaF3-EpoR Cells
jakstat
Time-Course Data for the JAK-STAT Signaling Pathway
kok
Time-Course Data for IFN-alpha Signaling in Huh7.5 Cells
warfarin
Warfarin Pharmacokinetics and Pharmacodynamics
mavoglurant
Mavoglurant Pharmacokinetics

Accessors and linear algebra

getConditions()
Extract the Conditions of an Object
getDerivs()
Extract the First Derivatives of an Object
getDerivs2()
Extract the Second Derivatives of an Object
getEquations()
Extract the Equations of an Object
getObservables()
Extract the Observables of an Object
getParameters()
Extract the Parameters of an Object
attrs()
Select Attributes