flFit {QurvE} | R Documentation |
Perform a fluorescence curve analysis on all samples in the provided dataset.
Description
flFit
performs all computational fluorescence fitting operations based on the user input.
Usage
flFit(
fl_data,
time = NULL,
growth = NULL,
control = fl.control(),
parallelize = TRUE,
...
)
Arguments
fl_data |
Either...
|
time |
(optional) A matrix containing time values for each sample. |
growth |
(optional) A dataframe containing growth values for each sample and sample identifiers in the first three columns. |
control |
A |
parallelize |
Run linear fits and bootstrapping operations in parallel using all but one available processor cores |
... |
Further arguments passed to the shiny app. |
Details
Common response parameters used in dose-response analysis:
Linear fit:
- max_slope.linfit: Fluorescence increase rate
- lambda.linfit: Lag time
- dY.linfit: Maximum Fluorescence - Minimum Fluorescence
- A.linfit: Maximum fluorescence
Spline fit:
- max_slope.spline: Fluorescence increase rate
- lambda.spline: Lag time
- dY.spline: Maximum Fluorescence - Minimum Fluorescence
- A.spline: Maximum fluorescence
- integral.spline: Integral
Parametric fit:
- max_slope.model: Fluorescence increase rate
- lambda.model: Lag time
- dY.model: Maximum Fluorescence - Minimum Fluorescence
- A.model: Maximum fluorescence
- integral.model: Integral'
Value
An flFit
object that contains all fluorescence fitting results, compatible with
various plotting functions of the QurvE package.
raw.x |
Raw x matrix passed to the function as |
raw.fl |
Raw growth dataframe passed to the function as |
flTable |
Table with fluorescence parameters and related statistics for each fluorescence curve evaluation performed by the function. This table, which is also returned by the generic |
flFittedLinear |
List of all |
flFittedSplines |
List of all |
flBootSplines |
List of all |
control |
Object of class |
See Also
Other workflows:
growth.gcFit()
,
growth.workflow()
Other fluorescence fitting functions:
flBootSpline()
,
flFitSpline()
Other dose-response analysis functions:
growth.drBootSpline()
,
growth.drFitSpline()
,
growth.gcFit()
,
growth.workflow()
Examples
# load example dataset
input <- read_data(data.growth = system.file("lac_promoters_growth.txt", package = "QurvE"),
data.fl = system.file("lac_promoters_fluorescence.txt", package = "QurvE"),
csvsep = "\t",
csvsep.fl = "\t" )
# Define fit controls
control <- fl.control(fit.opt = "s",
x_type = "time", norm_fl = TRUE,
dr.parameter = "max_slope.spline",
dr.method = "model",
suppress.messages = TRUE)
# Run curve fitting workflow
res <- flFit(fl_data = input$norm.fluorescence,
time = input$time,
control = control,
parallelize = FALSE)
summary(res)