Learn R Programming

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

dMod (version 0.3.2)

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

License

GPL (>= 2)

Maintainer

Daniel Kaschek

Last Published

September 30th, 2016

Functions in dMod (0.3.2)

attrs

Select attributes.
as.data.frame.eqnlist

Coerce equation list into a data frame
as.parvec.parframe

Select a parameter vector from a parameter frame.
compare

Compare two objects and return differences
addReaction

Add reaction to reaction table
blockdiagSymb

Embed two matrices into one blockdiagonal matrix
as.objlist

Generate objective list from numeric vector
as.parframe

Coerce object to a parameter frame
as.eqnvec

Coerce to an equation vector
combine

Combine several data.frames by rowbind
eqnlist

Generate eqnlist object
dot

Symbolic time derivative of equation vector given an equation list
datapointL2

L2 objective function for validation data point
conservedQuantities

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

Detect number of free cores (on UNIX)
constraintL2

Soft L2 constraint on parameters
controls

List, get and set controls for different functions
coordTransform

Coordinate transformation for data frames
createExample

Open a unit test template.
datalist

Generate a datalist object
getCoefficients

Get coefficients from a character
expand.grid.alt

Alternative version of expand.grid
funC0

Evaluation of algebraic expressions defined by characters
format.eqnvec

Encode equation vector in format with sufficient spaces
exmpextr

Extract an example from a unit test file.
eqnvec

Generate equation vector object
fitErrorModel

Fit an error model
extractExamples

Extract example from unit tests.
forcingsSymb

Return some useful forcing functions as strings
getConditions

Extract the conditions of an object
ggopen

Open last plot in external pdf viewer
lbind

Bind named list of data.frames into one data.frame
load.parlist

Construct fitlist from temporary files.
long2wide

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

Print list of dMod objects in .GlobalEnv
getDerivs

Extract the derivatives of an object
getFluxes

Generate list of fluxes from equation list
loadTemplate

Load a template file in the editor
getParameters

Extract the parameters of an object
getReactions

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

L2 norm between data and model prediction
objframe

Objective frame
mstrust

Non-Linear Optimization, multi start
nullZ

Find integer-null space of matrix A
nll

Compute the negative log-likelihood
P

Generate a parameter transformation function
objlist

Generate objective list
odemodel

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

Observation function
mssample

Generate sample for multi-start fit
plotArray

Plot an array of model predictions for a list of parameters
Pexpl

Parameter transformation
plotCombined

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

Parameter transformation (implicit)
parframe

Generate a paramter frame
parfn

Parameter transformation function
plot.datalist

Plot a list data points
plot.parlist

Plot a parameter list.
parlist

Parameter list
parvec

Parameter vector
plotPars

Plot parameter values for a fitlist
+.objfn

Direct sum of objective functions
+.fn

Direct sum of functions
plotPaths

Profile likelihood: plot of the parameter paths.
plotFluxes

Plot Fluxes given a list of flux Equations
plotValues

Plotting objective values of a collection of fits
plotData

Plot a list data points
+.datalist

Direct sum of datasets
plotPrediction

Plot a list of model predictions
plotProfile

Profile likelihood plot
print.eqnlist

Print or pander equation list
resolveRecurrence

Place top elements into bottom elemens
res

Compare data and model prediction by computing residuals
print.eqnvec

Print equation vector
strelide

Elide character vector
steadyStates

Calculate analytical steady states
wide2long.matrix

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

Write equation list into a csv file
python.version.sys

Check which Python versions are installed on the system
quasiSteadyStates

Reduce the ODE system by means of a quasi steady-state assumption
strpad

Pad string to desired width
submatrix

Submatrix of a matrix returning ALWAYS a matrix
wide2long

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

Prediction list
prdframe

Prediction frame
+.objlist

Add two lists element by element
wide2long.list

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

Prediction function
reduceReplicates

Reduce replicated measurements to mean and standard deviation
repWithNames

Named repititions
symmetryDetection

Search for symmetries in the loaded model
Xf

Model prediction function for ODE models without sensitivities.
theme_dMod

Standard plotting theme of dMod
rref

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

Remote install dMod to a ssh-reachable host
print.parfn

Pretty printing parameter transformations
Xs

Model prediction function for ODE models.
print.parvec

Pretty printing for a parameter vector
profile

Profile-likelihood (PL) computation
progressBar

Progress bar
runbg

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

Compute the weighted residual sum of squares
scale_color_dMod

Standard dMod color palette
*.fn

Concatenation of functions
wide2long.data.frame

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

L2 objective function for prior value
print0

Print object and its "default" attributes only.
Xd

Model prediction function from data.frame
python.version.rpython

Get the Python version to which rPython is linked
python.version.request

Check if rPython comes with the correct Python version
scale_fill_dMod

Standard dMod color scheme
summary.eqnvec

Summary of an equation vector
subset.eqnlist

subset of an equation list
stat.parlist

Gather statistics of a fitlist
Xt

Generate a prediction function that returns times
Y

Observation functions.