Skip to contents

AverageSampleModuleZscore apply the function calc_avg_module_zscore to a pseudobulklist.

Usage

AverageSampleModuleZscore(
  average.metacell.list,
  module.list,
  use.module.subset = TRUE,
  modules.subset.by.celltype = modules.test
)

Arguments

average.metacell.list

poorly named argument - the object created by PseudobulkList either an average or summed pseudobulk data

module.list

list of modules as named list each element is a vector of gene names

use.module.subset

TRUE or FALSE - calc a different set of modules for each celltype use with modules.subset.by.celltype

modules.subset.by.celltype

modules.subset.by.celltype is a list of modules to test with length = celltypes.vector and n modules = unique to subset

Value

returns a dataframe of module scores for each celltype

Examples

if (FALSE) {
# av  = object returned by PseudobulkList
av.zscore = AverageSampleModuleZscore(
 average.metacell.list = av,
 module.list = btm,
 use.module.subset = FALSE,
 )
}