View source: R/backgroundCorrection.R
backgroundCorrection | R Documentation |
Correct ratios of read counts per sliding window for background.
backgroundCorrection(ratios, degree = 3, ...)
ratios |
A vector of numeric. It is log2-transformed ratios, CPMRatios or OddRatios of counts for each window. |
degree |
Degree of polynomial. default 3. |
... |
parameters could be passed to baseline.modpolyfit. |
This function implements the backgound correction methods of
algorithm for polynomial fitting. See details via
baseline.modpolyfit
. This function expects
the trendency of decreasing of the ratios from 5' end to 3' end.
A vector of numeric. It is the background corrected log2-transformed ratios, CPMRatios or OddRatios.
x <- runif(200)
background <- rep(c(20:1)/100, each=10)
backgroundCorrection(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.