View source: R/functions-utils.R
rla | R Documentation |
rla
calculates the relative log abundances (RLA, see reference) on a
numeric
vector.Calculate relative log abundances
rla
calculates the relative log abundances (RLA, see reference) on a
numeric
vector.
rowRla
calculates row-wise RLAs.
rla(x, group, log.transform = TRUE)
rowRla(x, group, log.transform = TRUE)
x |
|
group |
|
log.transform |
|
The RLA is defines as the (log) abundance of an analyte relative to the median across all abundances of the same group.
numeric
of the same length than x
(for rla
) or matrix
with
the same dimensions than x
(for rowRla
).
Johannes Rainer
De Livera AM, Dias DA, De Souza D, Rupasinghe T, Pyke J, Tull D, Roessner U, McConville M, Speed TP. Normalizing and integrating metabolomics data. Anal Chem 2012 Dec 18;84(24):10768-76.
x <- c(3, 4, 5, 1, 2, 3, 7, 8, 9)
grp <- c(1, 1, 1, 2, 2, 2, 3, 3, 3)
rla(x, grp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.