Learn R Programming

SeuratObject (version 5.0.2)

Cells: Cell and Feature Names

Description

Get the cell and feature names of an object

Usage

Cells(x, ...)

Features(x, ...)

# S3 method for default Cells(x, ...)

# S3 method for Assay5 Cells(x, layer = NULL, simplify = TRUE, ...)

# S3 method for Assay5 Features(x, layer = NULL, simplify = TRUE, ...)

# S3 method for DimReduc Cells(x, ...)

# S3 method for Neighbor Cells(x, ...)

Value

Cell: A vector of cell names

Features: A vector of feature names

Arguments

x

An object

...

Arguments passed to other methods

layer

Layer to pull cells/features for; defaults to default layer; if NA, returns all cells for the assay

simplify

Simplify the cell/feature names into a single vector; if FALSE, separates each cell/feature names by layer

See Also

dimnames.Assay(), dimnames.Assay5(), dimnames.Seurat()

Examples

Run this code
Cells(x = pbmc_small)

Run the code above in your browser using DataLab