qc.stats {iCellR} | R Documentation |
This function takes data frame and calculates the number of UMIs, genes per cell and percentage of mitochondrial genes per cell and cell cycle genes.
qc.stats( x = NULL, which.data = "raw.data", mito.genes = "default.genes", s.phase.genes = s.phase, g2m.phase.genes = g2m.phase )
x |
A data frame containing gene counts for cells. |
which.data |
Choose from raw data or main data, default = "raw.data". |
mito.genes |
A character vector of mitochondrial genes names , default is the genes starting with mt. |
s.phase.genes |
A character vector of gene names for S phase, default = s.phase. |
g2m.phase.genes |
A character vector of gene names for G2 and M phase, default = g2m.phase. |
The data frame object
New.demo.obj <- qc.stats(demo.obj) head(New.demo.obj@stats)