Seurat (version 2.3.4)

RenameIdent: Rename one identity class to another

Description

Can also be used to join identity classes together (for example, to merge clusters).

Usage

RenameIdent(object, old.ident.name = NULL, new.ident.name = NULL)

Arguments

object

Seurat object

old.ident.name

The old identity class (to be renamed)

new.ident.name

The new name to apply

Value

A Seurat object where object@ident has been appropriately modified

Examples

Run this code
# NOT RUN {
head(x = pbmc_small@ident)
pbmc_small <- RenameIdent(
  object = pbmc_small,
  old.ident.name = 0,
  new.ident.name = 'cluster_0'
)
head(x = pbmc_small@ident)

# }

Run the code above in your browser using DataCamp Workspace