Calculate relative log abundances rla calculates the relative log abundances (RLA, see reference) on a numeric vector. rowRla performs row-wise RLA calculations on a numeric matrix.
Calculate relative log abundances
rla calculates the relative log abundances (RLA, see reference) on a
numeric vector. rowRla performs row-wise RLA calculations on a numeric
matrix.
rla(
x,
f = rep_len(1, length(x)),
transform = c("log2", "log10", "identity"),
na.rm = TRUE
)
rowRla(x, f = rep_len(1, ncol(x)), transform = c("log2", "log10", "identity"))x |
|
f |
|
transform |
|
na.rm |
|
The RLA is defined as the (log2) abundance of an analyte relative
to the median across all abundances of that analyte in samples of the
same group. The grouping of values can be defined with parameter f.
numeric with the relative log abundances (in log2 scale) with 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)
x <- rbind(c(324, 4542, 3422, 3232, 5432, 6535, 3321, 1121),
c(12, 3341, 3034, 6540, 34, 4532, 56, 1221))
grp <- c("a", "b", "b", "b", "a", "b", "a", "b")
## row-wise RLA values
rowRla(x, grp)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.