The goal of ipolygrowth is to calculate bacterial growth curve parameters using fourth degree polynomial functions. Functions are available for a single biological sample or multiple samples.
The package can be installed from CRAN with:
install.packages("ipolygrowth")
or the development version from GitHub with:
# install.packages("devtools")
::install_github("https://github.com/kivanvan/ipolygrowth", upgrade = F, quiet = T) devtools
The example data comes from the growthrates
package.
This is a basic example which shows you how to use the single sample
function:
library(ipolygrowth)
library(dplyr)
# example data comes from the growthrates package (available on CRAN)
<- growthrates::bactgrowth
data
# subset data to a single biological sample
<- data %>% dplyr::filter(strain == "D", conc == 0)
df.singlesample
# calculate growth curve parameters using ipolygrowth function
<- ipg_singlesample(data = df.singlesample, time.name = "time", y.name = "value") out.singlesample
The output is a list, including a table of growth parameter estimates, the polynomial model, a table of beta coefficients, and a table of fitted values. Growth parameters include peak growth rate, peak growth time, doubling time (at the peak growth), lag time, max y, and max y time. View the results by calling each list element like:
$estimates
out.singlesample#> peak growth rate peak growth time doubling time lag time max y
#> 1 0.005474298 3.636922 126.6185 0.1231345 0.1073791
#> max y time
#> 1 30
For more instructions, please refer to the vignette.