ClassifySGSAndApply: ClassifySGSAndApply

Description Usage Arguments Value

View source: R/Classification_SGS.R

Description

This will classify cells in a seurat object using a variant of Seurat's AddModuleScore and save the results to the seurat object

Usage

1
2
3
4
5
6
7
8
9
ClassifySGSAndApply(
  seuratObj,
  geneList = NULL,
  geneSetName = NULL,
  saveFilePath = NULL,
  doPlot = T,
  positivityThreshold = NULL,
  reduction = NULL
)

Arguments

geneList

A character vector of the genes to test

geneSetName

A name to use for this gene list. This will be used in the header of the dataframe

saveFilePath

If provided, the dataframe will be saved here

doPlot

If true, a QC plot will be created

positivityThreshold

If provided, a boolean column will be added to the dataframe scoring cells as positive or negative, depending on if their score is greater than this threshold

reduction

The reduction (i.e. tsne or umap) that will be used when plotting

Value

The modified seurat object


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