powered by
Change the cell names in all the different parts of a Seurat object. Can be useful before combining multiple objects.
RenameCells(object, add.cell.id = NULL, new.names = NULL, for.merge = FALSE)
Seurat object
prefix to add cell names
vector of new cell names
Only rename slots needed for merging Seurat objects. Currently only renames the raw.data and meta.data slots.
Seurat object with new cell names
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.
add.cell.id
new.names
# 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