Learn R Programming

⚠️There's a newer version (1.0.2) of this package.Take me there.

dMod (version 0.4)

Dynamic Modeling and Parameter Estimation in ODE Models

Description

The framework provides functions to generate ODEs of reaction networks, parameter transformations, observation functions, residual functions, etc. The framework follows the paradigm that derivative information should be used for optimization whenever possible. Therefore, all major functions produce and can handle expressions for symbolic derivatives.

Copy Link

Version

Install

install.packages('dMod')

Monthly Downloads

232

Version

0.4

License

GPL (>= 2)

Maintainer

Daniel Kaschek

Last Published

September 8th, 2017

Functions in dMod (0.4)

Pimpl

Parameter transformation (implicit)
Xd

Model prediction function from data.frame
addReaction

Add reaction to reaction table
as.data.frame.datalist

Coerce to a Data Frame
Xf

Model prediction function for ODE models without sensitivities.
Xs

Model prediction function for ODE models.
P

Generate a parameter transformation function
Pexpl

Parameter transformation
Xt

Generate a prediction function that returns times
Y

Observation functions.
compare

Compare two objects and return differences
compile

Compile one or more prdfn, obsfn or parfn objects
controls

List, get and set controls for different functions
coordTransform

Coordinate transformation for data frames
as.objlist

Generate objective list from numeric vector
as.parframe

Coerce object to a parameter frame
datalist

Generate a datalist object
datapointL2

L2 objective function for validation data point
funC0

Evaluation of algebraic expressions defined by characters
as.data.frame.eqnlist

Coerce equation list into a data frame
as.eqnvec

Coerce to an equation vector
confint.parframe

Profile uncertainty extraction
conservedQuantities

Determine conserved quantites by finding the kernel of the stoichiometric matrix
blockdiagSymb

Embed two matrices into one blockdiagonal matrix
combine

Combine several data.frames by rowbind
constraintExp2

Compute a differentiable box prior
expand.grid.alt

Alternative version of expand.grid
fitErrorModel

Fit an error model
ggopen

Open last plot in external pdf viewer
%.*%

Multiplication of objective functions with scalars
long2wide

Translate long to wide format (inverse of wide2long.matrix)
lsdMod

Print list of dMod objects in .GlobalEnv
plot.parlist

Plot a parameter list.
getCoefficients

Get coefficients from a character
getFluxes

Generate list of fluxes from equation list
getLocalDLLs

Determine loaded DLLs available in working directory
mname

Get modelname from single object (used internally)
modelname

Get and set modelname
constraintL2

Soft L2 constraint on parameters
forcingsSymb

Return some useful forcing functions as strings
load.parlist

Construct fitlist from temporary files.
loadDLL

Load shared object for a dMod object
as.parvec.parframe

Select a parameter vector from a parameter frame.
attrs

Select attributes.
detectFreeCores

Detect number of free cores (on UNIX)
dot

Symbolic time derivative of equation vector given an equation list
format.eqnvec

Encode equation vector in format with sufficient spaces
getConditions

Extract the conditions of an object
getDerivs

Extract the derivatives of an object
getParameters

Extract the parameters of an object
getReactions

Generate a table of reactions (data.frame) from an equation list
nll

Compute the negative log-likelihood
normL2

L2 norm between data and model prediction
objlist

Generate objective list
odemodel

Generate the model objects for use in Xs (models with sensitivities)
parfn

Parameter transformation function
+.datalist

Direct sum of datasets
+.fn

Direct sum of functions
print.eqnlist

Print or pander equation list
mssample

Generate sample for multi-start fit
mstrust

Non-Linear Optimization, multi start
parframe

Generate a paramter frame
parlist

Parameter list
print.eqnvec

Print equation vector
python.version.sys

Check which Python versions are installed on the system
reduceReplicates

Reduce replicated measurements to mean and standard deviation
plotData

Plot a list data points
plotFluxes

Plot Fluxes given a list of flux Equations
prdfn

Prediction function
prdframe

Prediction frame
print0

Print object and its "default" attributes only.
priorL2

L2 objective function for prior value
res

Compare data and model prediction by computing residuals
resolveRecurrence

Place top elements into bottom elemens
trustL1

Non-Linear Optimization
wide2long

Translate wide output format (e.g. from ode) into long format
runbgInstall

Remote install dMod to a ssh-reachable host
runbg_bwfor

Run an R expression on the bwForCluster
summary.eqnvec

Summary of an equation vector
symmetryDetection

Search for symmetries in the loaded model
wide2long.data.frame

Translate wide output format (e.g. from ode) into long format
plotCombined

Plot a list of model predictions and a list of data points in a combined plot
plotPars

Plot parameter values for a fitlist
plotPaths

Profile likelihood: plot of the parameter paths.
print.parfn

Pretty printing parameter transformations
print.parvec

Pretty printing for a parameter vector
eqnlist

Generate eqnlist object
eqnvec

Generate equation vector object
jakstat

Time-course data for the JAK-STAT cell signaling pathway
lbind

Bind named list of data.frames into one data.frame
nullZ

Find integer-null space of matrix A
obsfn

Observation function
plotResiduals

Plot residuals for a fitlist
plotValues

Plotting objective values of a collection of fits
prdlist

Prediction list
predict.prdfn

Model Predictions
objframe

Objective frame
parvec

Parameter vector
plot.datalist

Plot a list data points
plotPrediction

Plot a list of model predictions
profile

Profile-likelihood (PL) computation
progressBar

Progress bar
rref

Transform matrix A into reduced row echelon form this function is written along the lines of the rref-matlab function.
plotProfile

Profile likelihood plot
+.objfn

Direct sum of objective functions
+.objlist

Add two lists element by element
repWithNames

Named repititions
repar

Reparameterization
runbg

Run an R expression in the background (only on UNIX)
submatrix

Submatrix of a matrix returning ALWAYS a matrix
subset.eqnlist

subset of an equation list
wrss

Compute the weighted residual sum of squares
python.version.request

Check if rPython comes with the correct Python version
python.version.rpython

Get the Python version to which rPython is linked
stat.parlist

Gather statistics of a fitlist
steadyStates

Calculate analytical steady states
theme_dMod

Standard plotting theme of dMod
*.fn

Concatenation of functions
wide2long.matrix

Translate wide output format (e.g. from ode) into long format
write.eqnlist

Write equation list into a csv file
scale_color_dMod

Standard dMod color palette
scale_fill_dMod

Standard dMod color scheme
strelide

Elide character vector
strpad

Pad string to desired width
wide2long.list

Translate wide output format (e.g. from ode) into long format