View source: R/head2tailratio.R
head2tailratio | R Documentation |
head2tailratio
is a function to calculate the ratio of the head and the
tail of a quantitative PCR amplification curve. In this test, only the head
(first six cycles) and the tail (last six cycles) form the region of interest
(ROI).
head2tailratio(y, normalize = FALSE, slope_normalizer = FALSE, verbose = FALSE)
y |
is the cycle dependent fluorescence amplitude (y-axis). |
normalize |
is a logical parameter, which indicates if the amplification curve. |
slope_normalizer |
is a logical parameter, which indicates if the head2tailratio should be normalized to the slope of the ROI. |
verbose |
is a logical parameter, which indicates if all the values, parameters and coefficients of the analysis should be shown. |
gives a numeric
(S3 class, type of double
) as output for the head to tail ratio
Stefan Roediger, Michal Burdukiewcz
# calculate head to tail ratio on amplification curve data
library(qpcR)
res_head2tailratio <- sapply(2:ncol(competimer), function(i) {
head2tailratio(y=competimer[, i], normalize=TRUE, slope_normalizer=TRUE)
})
res_head2tailratio_cluster <- kmeans(res_head2tailratio, 3)$cluster
matplot(competimer[, 1], competimer[, -1], xlab="Cycle", ylab="RFU",
main="competimer data set", type="l", lty=1, col=res_head2tailratio_cluster, lwd=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.