R/normalize.R

Defines functions normalize

Documented in normalize

#' Normalizes and returns data
#'
#' @param data data
#' @param method method to use (default = "pqn", "none")
#'
#' @return
#' @export
#'
#'
normalize <- function(data, method = "pqn") {

  #
  if (method == "none") return(data)

  #
  else if (method == "pqn") return(pqn(data))

  #
  else stop("Normalization method not found.")

}
nicohuttmann/pOmics documentation built on Sept. 21, 2022, 9:28 a.m.