fl.control {QurvE} | R Documentation |
Create a fl.control
object.
Description
A fl.control
object is required to perform various computations on fluorescence data stored within grodata
objects (created with read_data
or parse_data
). A fl.control
object is created automatically as part of fl.workflow
.
Usage
fl.control(
fit.opt = c("l", "s"),
x_type = c("growth", "time"),
norm_fl = TRUE,
t0 = 0,
tmax = NA,
min.growth = NA,
max.growth = NA,
log.x.lin = FALSE,
log.x.spline = FALSE,
log.y.lin = FALSE,
log.y.spline = FALSE,
lin.h = NULL,
lin.R2 = 0.97,
lin.RSD = 0.05,
lin.dY = 0.05,
dr.parameter = "max_slope.spline",
dr.method = c("model", "spline"),
dr.have.atleast = 5,
smooth.dr = NULL,
log.x.dr = FALSE,
log.y.dr = FALSE,
nboot.dr = 0,
biphasic = FALSE,
interactive = FALSE,
nboot.fl = 0,
smooth.fl = 0.75,
growth.thresh = 1.5,
suppress.messages = FALSE,
neg.nan.act = FALSE,
clean.bootstrap = TRUE
)
Arguments
fit.opt |
(Character or vector of strings) Indicates whether the program should perform a linear regression ( |
x_type |
(Character) Which data type shall be used as independent variable? Options are |
norm_fl |
(Logical) use normalized (to growth) fluorescence data in fits. Has an effect only when |
t0 |
(Numeric) Minimum time value considered for linear and spline fits (if |
tmax |
(Numeric) Maximum time value considered for linear and spline fits (if |
min.growth |
(Numeric) Indicate whether only values above a certain threshold should be considered for linear regressions or spline fits (if |
max.growth |
(Numeric) Indicate whether only growth values below a certain threshold should be considered for linear regressions or spline fits (if |
log.x.lin |
(Logical) Indicates whether ln(x+1) should be applied to the independent variable for linear fits. Default: |
log.x.spline |
(Logical) Indicates whether ln(x+1) should be applied to the independent variable for spline fits. Default: |
log.y.lin |
(Logical) Indicates whether ln(y/y0) should be applied to the fluorescence data for linear fits. Default: |
log.y.spline |
(Logical) Indicates whether ln(y/y0) should be applied to the fluorescence data for spline fits. Default: |
lin.h |
(Numeric) Manually define the size of the sliding window used in |
lin.R2 |
(Numeric) R2 threshold for |
lin.RSD |
(Numeric) Relative standard deviation (RSD) threshold for the calculated slope in |
lin.dY |
(Numeric) Threshold for the minimum fraction of growth increase a linear regression window should cover. Default: 0.05 (5%). |
dr.parameter |
(Character or numeric) The response parameter in the output table to be used for creating a dose response curve. See |
dr.method |
(Character) Perform either a smooth spline fit on response parameter vs. concentration data ( |
dr.have.atleast |
(Numeric) Minimum number of different values for the response parameter one should have for estimating a dose response curve. Note: All fit procedures require at least six unique values. Default: |
smooth.dr |
(Numeric) Smoothing parameter used in the spline fit by smooth.spline during dose response curve estimation. Usually (not necessesary) in (0; 1]. See |
log.x.dr |
(Logical) Indicates whether |
log.y.dr |
(Logical) Indicates whether |
nboot.dr |
(Numeric) Defines the number of bootstrap samples for EC50 estimation. Use |
biphasic |
(Logical) Shall |
interactive |
(Logical) Controls whether the fit for each sample and method is controlled manually by the user. If |
nboot.fl |
(Numeric) Number of bootstrap samples used for nonparametric curve fitting with |
smooth.fl |
(Numeric) Parameter describing the smoothness of the spline fit; usually (not necessary) within (0;1]. |
growth.thresh |
(Numeric) Define a threshold for growth. Only if any growth value in a sample is greater than |
suppress.messages |
(Logical) Indicates whether messages (information about current fluorescence curve, EC50 values etc.) should be displayed ( |
neg.nan.act |
(Logical) Indicates whether the program should stop when negative fluorescence values or NA values appear ( |
clean.bootstrap |
(Logical) Determines if negative values which occur during bootstrap should be removed ( |
Value
Generates a list with all arguments described above as entries.
References
Meyer, A.J., Segall-Shapiro, T.H., Glassey, E. et al. Escherichia coli “Marionette” strains with 12 highly optimized small-molecule sensors. Nat Chem Biol 15, 196–204 (2019). DOI: 10.1038/s41589-018-0168-3
Examples
# default option
control_default <- fl.control()
# user defined
control_manual <- fl.control(fit.opt = c('s'),
smooth.fl = 0.6,
x_type = 'time',
t0 = 2)