growthcurve: Wrapper function for generating QFA generalised logistic...

Description Usage Arguments Value

View source: R/qfa.R


Checks that there are enough observations above the detection threshold to fit the model (if not, returns parameters equivalent to a dead colony). Then, generates bounds on parameter values appropriate for QFA (including Colonyzer image analysis). Carries out least squares fitting of model to data, switching between global optimisation ( or local optimisation from a sensible starting point ( If the experiment has been stopped before the culture reaches stationary phase, a second round of optimisation is carried out, with a more tightly bound K parameter, in order to improve the estimation of r. Regardless of whether local or global optimisation were selected, if a suspicious combination of high r and low K is selected for a culture, global optimisation in a search space corresponding to a sick culture is attempted. If a lower squared error is generated, the corresponding parameter values are proposed for the current culture. As one final check, if a completely dead culture (parameter values K=g, r=0) fits the data better than the best found so far, that set of parameters are returned for the current culture.





A data frame containing a numeric Expt.Time column (time since culture inoculation, typically in days) and a numeric Growth column (typically cell density estimates estimated from a timeseries of culture photographs, quantified by software such as Colonyzer:


Either a numeric value representing an initial guess at the inoculum density (cell density estimate at t=0) or NULL. If inocguess is set to NULL, then the initial guess for the inoculum density will be estimated from the observed dataset where possible.


Boolean specifying whether inoculum density parameter g should be constrained to lie within a narrow region around inocguess. Default TRUE.


Boolean specifying whether curve fitting algorithm should search for inoculum density parameter g across a wide search space. Default FALSE.


Minimimum cell density that is reliably detectable by this combination of plate, imager and image analysis software. Default 0.


Lowest allowable value of K (stationary phase cell density) allowable for a culture which is not classed as dead or missing. Default 0.


Carry out log transformation of data before curve fit (allows fitting model to growth curve observations on the log scale)


Boolean indicating whether to use the asymmetric generalised logistic model (TRUE) or the simpler, original logistic model (FALSE)


Boolean indicating whether to also use parameters corresponding to a sick, slow growing strain as initial guess (TRUE), and compare objective function values.


A list of generalised logistic model parameters (K, r, g, v) which give the best fit to the observed data in obsdat, together with objval, the objective value (squared error).

qfa documentation built on May 31, 2017, 3:46 a.m.

Related to growthcurve in qfa...