Learn R Programming

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

dMod (version 0.3.1)

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.3.1

License

GPL (>= 2)

Maintainer

Daniel Kaschek

Last Published

May 18th, 2016

Functions in dMod (0.3.1)

dot

Symbolic time derivative of equation vector given an equation list
getDerivs

Extract the derivatives of an object
funC0

Evaluation of algebraic expressions defined by characters
fitErrorModel

Fit an error model
Xs

Model prediction function for ODE models.
P

Generate a parameter transformation function
attrs

Select attributes.
createExample

Open a unit test template.
parvec

Parameter vector
Pexpl

Parameter transformation
plot.parlist

Plot a parameter list.
datapointL2

L2 objective function for validation data point
lsdMod

Print list of dMod objects in .GlobalEnv
as.data.frame.eqnlist

Coerce equation list into a data frame
mstrust

Non-Linear Optimization, multi start
exmpextr

Extract an example from a unit test file.
format.eqnvec

Encode equation vector in format with sufficient spaces
parfn

Parameter transformation function
plotArray

Plot an array of model predictions for a list of parameters
print.parfn

Pretty printing parameter transformations
+.fn

Direct sum of functions
constraintL2

Soft L2 constraint on parameters
conservedQuantities

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

Model prediction function from data.frame
forcingsSymb

Return some useful forcing functions as strings
prdfn

Prediction function
loadTemplate

Load a template file in the editor
extractExamples

Extract example from unit tests.
obsfn

Observation function
combine

Combine several data.frames by rowbind
load.parlist

Construct fitlist from temporary files.
objlist

Generate objective list
as.parframe

Coerce object to a parameter frame
Pimpl

Parameter transformation (implicit)
python.version.request

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

Get the Python version to which rPython is linked
getReactions

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

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

Elide character vector
as.eqnvec

Coerce to an equation vector
normL2

L2 norm between data and model prediction
resolveRecurrence

Place top elements into bottom elemens
prdframe

Prediction frame
res

Compare data and model prediction by computing residuals
getConditions

Extract the conditions of an object
mssample

Generate sample for multi-start fit
plot.datalist

Plot a list data points
datalist

Generate a datalist object
plotPrediction

Plot a list of model predictions
Y

Observation functions.
as.objlist

Generate objective list from numeric vector
subset.eqnlist

subset of an equation list
getParameters

Extract the parameters of an object
odemodel

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

Profile-likelihood (PL) computation
eqnvec

Generate equation vector object
plotCombined

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

Compare two objects and return differences
as.parvec.parframe

Select a parameter vector from a parameter frame.
long2wide

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

Plot a list data points
expand.grid.alt

Alternative version of expand.grid
wide2long.matrix

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

Named repititions
write.eqnlist

Write equation list into a csv file
runbg

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

Compute the negative log-likelihood
plotFluxes

Plot Fluxes given a list of flux Equations
wide2long.data.frame

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

Objective frame
theme_dMod

Standard plotting theme of dMod
print.eqnvec

Print equation vector
getCoefficients

Get coefficients from a character
python.version.sys

Check which Python versions are installed on the system
stat.parlist

Gather statistics of a fitlist
eqnlist

Generate eqnlist object
getFluxes

Generate list of fluxes from equation list
ggopen

Open last plot in external pdf viewer
coordTransform

Coordinate transformation for data frames
detectFreeCores

Detect number of free cores (on UNIX)
*.fn

Concatenation of functions
print.parvec

Pretty printing for a parameter vector
symmetryDetection

Search for symmetries in the loaded model
priorL2

L2 objective function for prior value
Xt

Generate a prediction function that returns times
+.objfn

Direct sum of objective functions
plotPaths

Profile likelihood: plot of the parameter paths.
addReaction

Add reaction to reaction table
steadyStates

Calculate analytical steady states
controls

List, get and set controls for different functions
progressBar

Progress bar
scale_color_dMod

Standard dMod color palette
blockdiagSymb

Embed two matrices into one blockdiagonal matrix
wide2long.list

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

Print object and its "default" attributes only.
print.eqnlist

Print or pander equation list
parlist

Parameter list
scale_fill_dMod

Standard dMod color scheme
parframe

Generate a paramter frame
+.objlist

Add two lists element by element
reduceReplicates

Reduce replicated measurements to mean and standard deviation
plotPars

Plot parameter values for a fitlist
plotValues

Plotting objective values of a collection of fits
plotProfile

Profile likelihood plot
summary.eqnvec

Summary of an equation vector
Xf

Model prediction function for ODE models without sensitivities.
+.datalist

Direct sum of datasets
strpad

Pad string to desired width
rref

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

Submatrix of a matrix returning ALWAYS a matrix
wrss

Compute the weighted residual sum of squares
wide2long

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

Find integer-null space of matrix A
prdlist

Prediction list