R/scater_logNormCounts.R

Defines functions scater_logNormCounts

Documented in scater_logNormCounts

#' scater_logNormCounts
#' Uses \link{logNormCounts} to log normalize input data
#' @param inSCE Input SingleCellExperiment object
#' @param logAssayName New assay name for log normalized data
#' @param useAssay Input assay 
#' @return inSCE Updated SingleCellExperiment object that contains the new log normalized data
#' @export
#' @author Irzam Sarfraz
#' @examples
#' data(sce_chcl, package = "scds")
#' sce_chcl <- scater_logNormCounts(sce_chcl,"logcounts", "counts")
scater_logNormCounts <- function(inSCE, logAssayName = "ScaterLogNormCounts", useAssay = "counts"){
  inSCE <- scater::logNormCounts(
    x = inSCE, 
    name = logAssayName,
    exprs_values = useAssay)
  return(inSCE)
}

Try the singleCellTK package in your browser

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

singleCellTK documentation built on Nov. 8, 2020, 5:21 p.m.