RegroupIdents: Regroup idents based on meta.data info

View source: R/utilities.R

RegroupIdentsR Documentation

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)

Arguments

object

Seurat object

metadata

Name of metadata column

Value

A Seurat object with the active idents regrouped

Examples

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


satijalab/seurat documentation built on March 20, 2024, 8:41 p.m.