mlrGroup: Function to do mlr normalization for a matrix group

Description Usage Arguments Value References See Also Examples

View source: R/mlrGroup.R

Description

Do mlr normalization separately for each set of replicates first, then normalize the resulting matrix

Usage

1
mlrGroup(mat, Group)

Arguments

mat

Data matrix with replicates as columns

Group

Factor of length ncol(mat)

Value

Resulting normalized matrix of the same size as the initial one

References

*Find reference to mlr paper*

See Also

mlrrep, mlr

Examples

1
2
3
4
5
6
res = mlrGroup(iris[,-5], Group=as.factor(c("Sepal", "Sepal", "Petal", "Petal")))

layout(matrix(1:3, nrow=1))
boxplot(log(iris[,-5]), main="Log only")
boxplot(log(medianNorm(iris[,-5])), main="Median")
boxplot(log(res[[1]]), main="MLR")

SwathXtend documentation built on Nov. 8, 2020, 6:42 p.m.