getGlobalMeans {compartmap} | R Documentation |
Get the global means of a matrix
getGlobalMeans(obj, targets = NULL, assay = c("atac", "rna"))
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 |
A vector of global or targeted means
data("k562_scrna_chr14", package = "compartmap") scrna.global.means <- getGlobalMeans(k562_scrna_chr14, assay = "rna")