Seurat (version 2.3.4)

RenameCells: Rename cells

Description

Change the cell names in all the different parts of a Seurat object. Can be useful before combining multiple objects.

Usage

RenameCells(object, add.cell.id = NULL, new.names = NULL,
  for.merge = FALSE)

Arguments

object

Seurat object

add.cell.id

prefix to add cell names

new.names

vector of new cell names

for.merge

Only rename slots needed for merging Seurat objects. Currently only renames the raw.data and meta.data slots.

Value

Seurat object with new cell names

Details

If add.cell.id is set a prefix is added to existing cell names. If new.names is set these will be used to replace existing names.

Examples

Run this code
# NOT RUN {
head(pbmc_small@cell.names)
pbmc_small <- RenameCells(pbmc_small, add.cell.id = "Test")
head(pbmc_small@cell.names)

# }

Run the code above in your browser using DataLab