modulescore: Calculate a sample-wise module score given a list of genes

View source: R/analysis.R

modulescoreR Documentation

Calculate a sample-wise module score given a list of genes

Description

this is inspired by Tirosh et al, Science (2016) and the AddModuleScore function in Seurat

Usage

modulescore(gem, genelist, numbins = NULL, numcontrolgenesperbin = NULL)

Arguments

gem

matrix, a gene expresssion matrix with rows=genes and columns=samples

genelist

character vector, genes for which to calculate module score

numbins

integer, how many bins to split the input genelist into, for selection of control genes

numcontrolgenesperbin

integer, how many control genes to select per bin

Value

a vector of numerics, sample-wise module scores


FerrenaAlexander/FerrenaBulkRNAseq documentation built on Oct. 16, 2022, 8:18 a.m.