LRE {qpcR} | R Documentation |
Calculation of qPCR efficiency by the 'linear regression of efficiency' method
Description
The LRE method is based on a linear regression of raw fluorescence versus efficiency, with the final aim to obtain cycle dependent individual efficiencies . A linear model is then fit to a sliding window of defined size(s) and within a defined border. Regression coefficients are calculated for each window, and from the window of maximum regression, parameters such as PCR efficiency and initial template fluorescence are calculated. See 'Details' for more information. This approach is quite similar to the one in
sliwin
, but while sliwin
regresses cycle number versus log(fluorescence), LRE
regresses raw fluorescence versus efficiency. Hence, the former is based on assuming a constant efficiency for all cycles while the latter is based on a per-cycle individual efficiency.
Usage
LRE(object, wsize = 6, basecyc = 1:6, base = 0, border = NULL,
plot = TRUE, verbose = TRUE, ...)
Arguments
object |
an object of class 'pcrfit'. |
wsize |
the size(s) of the sliding window(s), default is |
basecyc |
if |
base |
either |
border |
either |
plot |
if |
verbose |
logical. If |
... |
only used internally for passing the parameter matrix. |
Details
To avoid fits with a high in the baseline region, some border in the data must be defined. In
LRE
, this is by default (base = NULL
) the region in the curve starting at the take-off cycle () as calculated from
takeoff
and ending at the transition region to the upper asymptote (saturation region). The latter is calculated from the first and second derivative maxima: . If the border is to be set by the user,
border
values such as c(-2, 4)
extend these values by and
. The efficiency is calculated by
and regressed against the raw fluorescence values
:
. For the baseline optimization, 100 baseline values
are interpolated in the range of the data:
and subtracted from . For all iterations, the best regression window in terms of
is found and its parameters returned.
Two different initial template fluorescence values
are calculated in
LRE
:
init1
: Using the single maximum efficiency (the intercept of the best fit) and the fluorescence at second derivative maximum
, by
init2
: Using the cycle dependent efficiencies from
to the near-lowest integer (floor) cycle of the second derivative maximum
, and the fluorescence at the floor of the second derivative maximum
, by
This approach corresponds to the paradigm described in Rutledge & Stewart (2008), by using cycle-dependent and decreasing efficiencies to calculate
.
Value
A list with the following components:
eff |
the maximum PCR efficiency |
rsq |
the maximum |
base |
the optimized baseline value. |
window |
the best window found within the |
parMat |
a matrix containing the parameters as above for each iteration. |
init1 |
the initial template fluorescence |
init2 |
the initial template fluorescence |
Author(s)
Andrej-Nikolai Spiess
References
A kinetic-based sigmoidal model for the polymerase chain reaction and its application to high-capacity absolute quantitative real-time PCR.
Rutledge RG & Stewart D.
BMC Biotech (2008), 8: 47.
Examples
## Not run:
## Sliding window of size 5 between take-off point
## and 3 cycles upstream of the upper asymptote
## turning point, one standard deviation baseline optimization.
m1 <- pcrfit(reps, 1, 2, l4)
LRE(m1, wsize = 5, border = c(0, 3), base = 1)
## End(Not run)