Learn R Programming

Seurat (version 5.0.3)

TopCells: Find cells with highest scores for a given dimensional reduction technique

Description

Return a list of genes with the strongest contribution to a set of components

Usage

TopCells(object, dim = 1, ncells = 20, balanced = FALSE, ...)

Value

Returns a vector of cells

Arguments

object

DimReduc object

dim

Dimension to use

ncells

Number of cells to return

balanced

Return an equal number of cells with both + and - scores.

...

Extra parameters passed to Embeddings

Examples

Run this code
data("pbmc_small")
pbmc_small
head(TopCells(object = pbmc_small[["pca"]]))
# Can specify which dimension and how many cells to return
TopCells(object = pbmc_small[["pca"]], dim = 2, ncells = 5)

Run the code above in your browser using DataLab