whichCells: Retrieve cells in specified clusters

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

Given a Seurat object and the names of specific clusters (corresponding to identities in seurat@ident), return the names of cells in those clusters.

Usage

1
whichCells(seurat, clusters)

Arguments

seurat

Seurat object

clusters

Vector specifying clusters for which cells should be retrieved. Elements should correspond to levels in seurat@ident.

Value

Character vector of cell names

Author(s)

Selin Jessa

Examples

1
whichCells(pbmc, clusters = c(0, 1))

fungenomics/cytobox documentation built on Feb. 13, 2020, 10:51 a.m.