normalizeMedianAbsValues: Normalize Columns of a Matrix to have the Median Absolute...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/norm.R

Description

Performs scale normalization of an M-value matrix or an A-value matrix across a series of arrays. Users do not normally need to call these functions directly - use normalizeBetweenArrays instead.

Usage

1
2

Arguments

x

numeric matrix

Details

If x is a matrix of log-ratios of expression (M-values) then normalizeMedianAbsValues is very similar to scaling to equalize the median absolute deviation (MAD) as in Yang et al (2001, 2002). Here the median-absolute value is used for preference to as to not re-center the M-values.

normalizeMedianAbsValues is also used to scale the A-values when scale-normalization is applied to an MAList object.

Value

A numeric matrix of the same size as that input which has been scaled so that each column has the same median value (for normalizeMedianValues) or median-absolute value (for normalizeMedianAbsValues).

Author(s)

Gordon Smyth

See Also

An overview of LIMMA functions for normalization is given in 05.Normalization.

Examples

1
2
M <- cbind(Array1=rnorm(10),Array2=2*rnorm(10))
normalizeMedianAbsValues(M)

Example output

          Array1        Array2
 [1,]  1.2947866  2.0617648997
 [2,] -1.2913844  0.4139565531
 [3,]  0.8523282 -1.5826944996
 [4,]  2.4866680 -1.5439147766
 [5,] -0.4492796 -0.9512867835
 [6,]  1.3500338  1.0422561943
 [7,] -2.0387101 -0.6295432089
 [8,] -0.6538705  2.2463546096
 [9,]  1.4189593 -1.6508832678
[10,] -1.1278923 -0.0009230889

limma documentation built on Nov. 8, 2020, 8:28 p.m.