Learn R Programming

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

R package growthrates

Estimate Growth Rates from Experimental Data

The population growth rate is the main indicator of population fitness. This R package provides a collection of methods to determine growth rates from experimental data, in particular from batch experiments and microwell plate reader trials.

News

  • Simplified handling of log-transformed parametric models (v. 0.8.1).
  • Release of version 0.7.1 to CRAN.
  • Several small changes and improvements.
  • Added predict-methods
  • Presentation at the useR!2017 conference in Brussels

Overview

The package contains basically three methods:

  • fit a linear regression to a subset of data with the steepest log-linear increase (a method, similar to Hall et al., 2014),

  • fit parametric nonlinear models to the complete data set, where the model functions can be given either in closed form or as numerically solved (system of) differential equation(s),

  • use maximum of the 1st derivative of a smoothing spline with log-transformed y-values (similar to Kahm et al., 2010).

The package can fit data sets of single experiments or complete series containing multiple data sets. Included are functions for extracting estimates and for plotting. The package supports growth models given as numerically solved differential equations. Multi-core computation is used to speed up fitting of parametric models.

Download and Installation of the release version (recommended)

Install package from within R or RStudio like any other package, or with:

install.packages("growthrates")

Development version

Install with package devtools:

install.packages("devtools")
library(devtools)
install_github("tpetzoldt/growthrates")

Introduction to the main functions

Writing user defined functions

References

Hall, B. G., H. Acar, A. Nandipati, and M. Barlow. 2014. Growth Rates Made Easy. Mol. Biol. Evol. 31: 232-38. https://dx.doi.org/10.1093/molbev/mst187

Kahm, Matthias, Guido Hasenbrink, Hella Lichtenberg-Frate, Jost Ludwig, and Maik Kschischo. 2010. grofit: Fitting Biological Growth Curves with R. Journal of Statistical Software 33 (7): 1-21. https://dx.doi.org/10.18637/jss.v033.i07

R Core Team. 2015. R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing. https://www.R-project.org/

Soetaert, Karline, and Thomas Petzoldt. 2010. Inverse Modelling, Sensitivity and Monte Carlo Analysis in R Using Package FME. Journal of Statistical Software 33 (3): 1-28. https://dx.doi.org/10.18637/jss.v033.i03

Soetaert, Karline, Thomas Petzoldt, and R. Woodrow Setzer. 2010. Solving Differential Equations in R: Package deSolve. Journal of Statistical Software 33 (9): 1-25. https://dx.doi.org/10.18637/jss.v033.i09

Original author

tpetzoldt

Copy Link

Version

Install

install.packages('growthrates')

Monthly Downloads

513

Version

0.8.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Thomas Petzoldt

Last Published

December 18th, 2019

Functions in growthrates (0.8.1)

fit_spline

Fit Exponential Growth Model with Smoothing Spline
all_growthmodels

Fit Nonlinear Growth Models to Data Frame
grow_logistic

Logistic Growth Model
grow_huang

Growth Model According to Huang
names.growthmodel

Get Names Attributes of Growth Models
grow_gompertz

Growth Model According to Gompertz
multisplit

Split Data Frame into Multiple Groups
grow_gompertz2

Growth Model According to Gompertz
grow_richards

Growth Model According to Richards
ode_twostep

Twostep Growth Model
plot

Plot Model Fits
predict,growthrates_fit-method

Model Predictions for growthrates Fits
rsquared

Additional Generic Functions
grow_baranyi

The Baranyi and Roberts Growth Model
function_growthmodel-class

Union Class of Growth Model or Function
growthrates-package

growthrates
parse_formula_nonlin

Simple Formula Interface for Grouped Nonlinear Functions
parse_formula

Simple Formula Interface
growthrates_fit-class

S4 Classes of Package growthrates
growthmodel-class

Class of Growth Model Functions
growthmodel

Create a User-defined Parametric Growth Model
lm_window

Fit Exponential Growth Model with a Heuristic Linear Method
ode_genlogistic

Generalized Logistic Growth Model
grow_exponential

Exponential Growth Model
rsquared,growthrates_fit-method

Accessor Methods of Package growthrates.
fit_growthmodel

Fit Nonlinear Parametric Growth Model
antibiotic

Plate Reader Data of Bacterial Growth
cost

Cost Function for Nonlinear Fits
extcoef_logistic

Extended Set of Coefficients of a Logistic Growth Model
all_easylinear

Easy Growth Rates Fit to data Frame
bactgrowth

Plate Reader Data of Bacterial Growth
fit_easylinear

Fit Exponential Growth Model with a Heuristic Linear Method
all_splines

Fit Exponential Growth Model with Smoothing Spline
[,multiple_fits,ANY,missing-method

Extract or Replace Parts of a 'multiple_fits' Object