getGlobalMeans: Get the global means of a matrix

View source: R/getGlobalMeans.R

getGlobalMeansR Documentation

Get the global means of a matrix

Description

Get the global means of a matrix

Usage

getGlobalMeans(obj, targets = NULL, assay = c("atac", "rna", "array"))

Arguments

obj

Input SummarizedExperiment object

targets

Column names or indices to indicate which samples to shrink towards

assay

What type of assay the data are from

Value

A vector of global or targeted means

Examples

data("k562_scrna_chr14", package = "compartmap")
scrna.global.means <- getGlobalMeans(k562_scrna_chr14, assay = "rna")


biobenkj/compartmap documentation built on Oct. 18, 2023, 11:11 a.m.