TopCells: Find cells with highest scores for a given dimensional...

Description Usage Arguments Value Examples

View source: R/objects.R

Description

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

Usage

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

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

Value

Returns a vector of cells

Examples

1
2
3
4
5
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)

ibseq/scs-analysis documentation built on Feb. 27, 2021, 12:35 a.m.