CalculateModuleScoreAvg: CalculateModuleScoreAvg

Description Usage Arguments Value

View source: R/Classification_SGS.R

Description

Instead of the status quo score of Seurat AddModuleScore which is 1 score 1 gene, this function takes a list of genes and computes per set, the average of the individual scores.

Usage

1
2
3
4
5
6
7
8
9
CalculateModuleScoreAvg(
  seuratObj,
  genes.list = NULL,
  genes.pool = NULL,
  n.bin = 25,
  ctrl.size = 100,
  assay = NULL,
  seed.use = 1
)

Arguments

seuratObj,

A Seurat object.

genes.list,

A charater vector of genes to score

genes.pool,

Gene list to base as the pool; NULL = all.

n.bin,

number of bins to evaluate score across; default 25.

ctrl.size,

control gene set size.

assay,

The seurat assay to use. Defaults to the result of DefaultAssay()

seed.use,

random seed

Value

A dataframe with CellBarcode and Score for this gene set


bimberlabinternal/OOSAP documentation built on Jan. 19, 2021, 2:47 a.m.