R/geo_batch_detection.R

Defines functions geo_batch_detection

Documented in geo_batch_detection

#' @title geo_batch_detection
#'
#' @description Helper function to detect batches
#'
#' @param mergeset A matrix of merged expression sets (rows = genes,
#'   columns = samples).
#' @param batch Takes the results from \code{create_batch()} as input.
#'
geo_batch_detection <- function(mergeset,
                                batch) {
  outdat <-
    gPCA::gPCA.batchdetect(x = t(mergeset),
                           batch = batch,
                           center = FALSE)
  return(outdat)
}
miracum/clearly-sigident.preproc documentation built on June 28, 2022, 3:17 p.m.