Cells: Cell and Feature Names

View source: R/generics.R

CellsR Documentation

Cell and Feature Names

Description

Get the cell and feature names of an object

Usage

Cells(x, ...)

Features(x, ...)

## Default S3 method:
Cells(x, ...)

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

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

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

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

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

Value

Cell: A vector of cell names

Features: A vector of feature names

See Also

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

Examples

Cells(x = pbmc_small)


SeuratObject documentation built on May 29, 2024, 12:31 p.m.