Calculate cell-level mitochondrial content based on mapped transcripts and store in Seurat "percent.mt' metadata field.

getMitoContent(so, gNames = NULL, assay = NULL, omit.na = T)

Arguments

so

Seurat Object

gNames

Named gene vector; entries are gene symbols, names are Ensembl.

assay

assay to use.

omit.na

Logical specifying whether to omit NA entries (present when unfiltered 10x dataset is used). Default is True.

Value

Seurat Object (with updated metadata)