View source: R/normalizeIntensity-functions.R
scaleCols | R Documentation |
Function to scale a matrix of intensity data along the columns (samples).
scaleCols(
x,
type = c("div.sum", "div.mean", "div.median", "div.mad"),
restrict = FALSE,
rescale = FALSE
)
x |
A matrix-like object. |
type |
A scaling method to use. |
restrict |
A logical specifying whether only features that are common to all samples are used in the calculation of scaling factors. |
rescale |
A logical specifying whether the normalized intensities are re-scaled by multiplying the median of normalization factors to make look similar to the original scale. |
Sample intensities are divided by the column sums ("div.sum"), means ("div.mean"), medians ("div.median"), or median absolute deviations ("div.mad").
A matrix of the same dimension as x
containing the scaled
intensities.
See normalizeIntensity that provides a SummarizedExperiment-friendly wrapper for this function.
data(faahko_se)
m <- assay(faahko_se, "knn")
scaleCols(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.