Seurat (version 2.3.4)

SetAllIdent: Switch identity class definition to another variable

Description

Switch identity class definition to another variable

Usage

SetAllIdent(object, id = NULL)

Arguments

object

Seurat object

id

Variable to switch identity class to (for example, 'DBclust.ident', the output of density clustering) Default is orig.ident - the original annotation pulled from the cell name.

Value

A Seurat object where object@ident has been appropriately modified

Examples

Run this code
# NOT RUN {
head(x = pbmc_small@ident)
pbmc_small <- SetAllIdent(object = pbmc_small, id = 'orig.ident')
head(x = pbmc_small@ident)

# }

Run the code above in your browser using DataLab