Learn R Programming

Seurat (version 2.1.0)

CellCycleScoring: Score cell cycle phases

Description

Score cell cycle phases

Usage

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

Arguments

object

A Seurat object

g2m.genes

A vector of genes associated with G2M phase

s.genes

A vector of genes associated with S phases

set.ident

If true, sets identity to phase assignments 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

Run this code
# 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.genes = cc.genes$g2m.genes,
  s.genes = cc.genes$s.genes
)
head(x = pbmc_small@meta.data)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab