quantileNormalize: Quantile normalize a matrix

Description Usage Arguments Details Value Note See Also Examples

Description

Quantile normalize a matrix.

Usage

1
quantileNormalize(x, margin = 2)

Arguments

x

A numeric matrix.

margin

Margin over which to normalize (1 = rows, 2 = columns).

Details

Quantile normalization gives all columns (or rows, if margin=1) the same distribution.

Value

A numeric matrix of the same dimension as the input.

Note

Tied values within each column are placed in random order.

margin should be 2 for “standard” microarray matrices in which rows = genes.

See Also

normalize.quantiles in the affy package, normalizeQuantiles in the limma package.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  ## Not run: 
  library(affy)
  library(affydata)
  data(Dilution)
  d <- exprs(rma(Dilution))

  par(mfrow = c(1,2))
  plotDensity(d, main = '4 arrays: before...')
  plotDensity(quantileNormalize(d), 
    main = 'and after quantile normalization')

  
## End(Not run)

aroneklund/bias documentation built on May 10, 2019, 1:46 p.m.