Learn R Programming

SeuratObject (version 4.0.1)

CellsByIdentities: 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

Run this code
# NOT RUN {
CellsByIdentities(object = pbmc_small)

# }

Run the code above in your browser using DataLab