cfr_quantileNorm.Rd
A function to apply quantile normalization. It is build on preprocessCore::normalize.quantiles function, but keeps the dimnames as is.
cfr_quantileNorm(mat)
mat | a numeric matrix with the expression values, where columns are the samples and rows are probesets, transcripts, or genes. |
---|
quantile normalized expression values as a matrix
myexp <- sapply( 1:10, function(i){ rnorm(n = 10000, mean = sample(1:3, 1), sd = sample(c(1, 3), 1)) }) myexp_qn <- cfr_quantileNorm(myexp) par(mfrow = c(1,2)) boxplot(myexp, main = 'Before QN') boxplot(myexp_qn, main = 'After QN')