Learn R Programming

SeuratObject (version 5.0.2)

RenameCells-StdAssay: Rename cells

Description

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

Usage

# S3 method for StdAssay
RenameCells(object, new.names = NULL, ...)

Value

An object with new cell names

Arguments

object

An object

new.names

vector of new cell names

...

Arguments passed to other methods

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.