plotReverseCumulatives(object, values = "raw",
fitInRange = c(10,1000), onePlot = FALSE)
CAGEset
object
"raw"
to plot reverse cumulatives of raw CAGE tag counts or "normalized"
to plot normalized tag count values.
values = "raw"
, otherwise ignored. See Details.
values
parameter. The file contains plots of reverse cumulative number of CAGE tags per CTSS for each CAGE dataset within CAGEset object. Alpha values of fitted power-laws and suggested referent power-law distribution are reported on the plot in case values = "raw"
.
fitInRange
parameter. The fitted distribution is defined by y = -1 * alpha * x + beta
on the log-log scale, and the value of alpha
for each sample is shown on the plot. In addition, a suggested referent power-law distribution to which all samples should be normalized is drawn on the plot and corresponding parameters (slope alpha and total number of tags T) are denoted on the plot. Referent distribution is chosen so that its slope (alpha) is the median of slopes fitted to individual samples and its total number of tags (T) is the power of 10 nearest to the median number of tags of individual samples. Resulting plots are helpful in deciding whether power-law normalization is appropriate for given samples and reported alpha
values aid in choosing optimal alpha
value for referent power-law distribution to which all samples will be normalized. For details about normalization see normalizeTagCount
function.
normalizeTagCount
load(system.file("data", "exampleCAGEset.RData", package="CAGEr"))
plotReverseCumulatives(exampleCAGEset, values = "raw",
fitInRange = c(10,500), onePlot = TRUE)
Run the code above in your browser using DataLab