R/quantNorm.R

Defines functions quantNorm

Documented in quantNorm

#' 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)
}
genejockey33000/typGumbo documentation built on July 20, 2023, 11:45 p.m.