controlled.mean.score: Compute Controlled Activation Score

Description Usage Arguments Value Examples

View source: R/preprocess.R

Description

Compute mean gene signatures activation scores while controlling for technically similar genes.

Usage

1
2
controlled.mean.score(environment, genes, knn = 10,
  exclude.missing.genes = T, constrain.cell.universe = NA)

Arguments

environment

environment object

genes

gene list upon which to calculate gene signature activate

knn

number of nearest neighbors

exclude.missing.genes

whether to exclude genes with missing values

constrain.cell.universe

binary vector indicating in which subset of cells to calculate the gene signature activation. Default is all cells.

Value

gene signature activation scores per cell

Examples

1
2
3
4
LCMV1 <- setup_LCMV_example()
exhaustion_markers <- c('Pdcd1', 'Cd244', 'Havcr2', 'Ctla4', 'Cd160', 'Lag3',
'Tigit', 'Cd96')
Exhaustion <- controlled.mean.score(LCMV1, exhaustion_markers)

robustSingleCell documentation built on May 2, 2019, 2:11 p.m.