Learn R Programming

Seurat (version 5.0.3)

RegroupIdents: Regroup idents based on meta.data info

Description

For cells in each ident, set a new identity based on the most common value of a specified metadata column.

Usage

RegroupIdents(object, metadata)

Value

A Seurat object with the active idents regrouped

Arguments

object

Seurat object

metadata

Name of metadata column

Examples

Run this code
data("pbmc_small")
pbmc_small <- RegroupIdents(pbmc_small, metadata = "groups")

Run the code above in your browser using DataLab