R/quantile_normalization.R

Defines functions quantile_normalization

Documented in quantile_normalization

quantile_normalization <- function(x)
{
  # x : expression profile
  Rownames <- rownames(x)
  Colnames <- colnames(x)
  y <- rowMeans(apply(x, 2, sort))
  qnorm <- apply(x, 2, function(x){quantile(y, ecdf(x)(x), type = 1)})
  dimnames(qnorm) <- list(Rownames, Colnames)
  qnorm
}

Try the survtype package in your browser

Any scripts or data that you put into this service are public.

survtype documentation built on Nov. 8, 2020, 7:24 p.m.