Skip to contents

Switches the active clustering to a previously stored solution and refreshes all clustering-dependent downstream slots.

Usage

# S3 method for class 'Seurat'
set_active_clustering(x, ...)

# S3 method for class 'SingleCellExperiment'
set_active_clustering(x, ...)

set_active_clustering(x, ...)

# S3 method for class 'TDRObj'
set_active_clustering(x, .column.name, .verbose = TRUE, ...)

Arguments

x

A TDRObj, Seurat, SingleCellExperiment, or HDF5AnnData (anndataR) object.

...

Additional arguments passed to methods.

.column.name

Character: name of the stored clustering solution to activate.

.verbose

Logical (default TRUE).

Value

Updated object with the selected clustering as active $ids.