R: Get cell names grouped by identity class

CellsByIdentities {SeuratObject} | R Documentation

## Get cell names grouped by identity class

### Description

Get cell names grouped by identity class

### Usage

    CellsByIdentities(object, idents = NULL, cells = NULL, return.null = FALSE)

### Arguments

`object` | A Seurat object
`idents` | A vector of identity class levels to limit resulting list to; defaults to all identity class levels
`cells` | A vector of cells to grouping to
`return.null` | If no cells are request, return a `NULL`; by default, throws an error

### Value

A named list where names are identity classes and values are vectors of cells belonging to that class

### Examples

    CellsByIdentities(object = pbmc_small)

[Package SeuratObject version 4.0.3 Index]