CellCycleScoring: Score cell cycle phases

Description Usage Arguments Value See Also Examples

View source: R/utilities.R

Description

Score cell cycle phases

Usage

1
CellCycleScoring(object, s.features, g2m.features, set.ident = FALSE, ...)

Arguments

object

A Seurat object

s.features

A vector of features associated with S phase

g2m.features

A vector of features associated with G2M phase

set.ident

If true, sets identity to phase assignments

...

Arguments to be passed to AddModuleScore Stashes old identities in 'old.ident'

Value

A Seurat object with the following columns added to object meta data: S.Score, G2M.Score, and Phase

See Also

AddModuleScore

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# pbmc_small doesn't have any cell-cycle genes
# To run CellCycleScoring, please use a dataset with cell-cycle genes
# An example is available at http://satijalab.org/seurat/cell_cycle_vignette.html
pbmc_small <- CellCycleScoring(
  object = pbmc_small,
  g2m.features = cc.genes$g2m.genes,
  s.features = cc.genes$s.genes
)
head(x = pbmc_small@meta.data)

## End(Not run)

lambdamoses/SeuratBasics documentation built on May 6, 2020, 9:32 a.m.