#' Quantile Normalization of Expression (RNAseq) data
#'
#' Just a simple wrapper for preprocessCore() which fixes the problem of removed colnames and row.names
#' during execution
#'
#' @param x Matrix to be quantile normalized
#'
#' @export
#'
quantNorm <- function(x) {
rns <- row.names(x)
samps <- colnames(x)
outq <- preprocessCore::normalize.quantiles(base::as.matrix(x))
row.names(outq) <- rns
colnames(outq) <- samps
return(outq)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.