Add measure of cell complexity/novelty (log10PerUMI) for data QC.

Add_Cell_Complexity_Seurat(
  seurat_object,
  meta_col_name = "log10GenesPerUMI",
  assay = "RNA",
  overwrite = FALSE
)

Arguments

seurat_object

object name.

meta_col_name

name to use for new meta data column. Default is "log10GenesPerUMI".

assay

assay to use in calculation. Default is "RNA". Note This should only be changed if storing corrected and uncorrected assays in same object (e.g. outputs of both Cell Ranger and Cell Bender).

overwrite

Logical. Whether to overwrite existing an meta.data column. Default is FALSE meaning that function will abort if column with name provided to meta_col_name is present in meta.data slot.

Value

A Seurat Object

Examples

library(Seurat)
pbmc_small <- Add_Cell_Complexity_Seurat(seurat_object = pbmc_small)