Cluster: Perform spectral clustering on dot products.

View source: R/countland_cluster.R

ClusterR Documentation

Perform spectral clustering on dot products.

Description

Perform spectral clustering on dot products.

Usage

Cluster(C, n_clusters, n_components = NULL)

Arguments

C

countland object

n_clusters

number of clusters, integer

n_components

number of components from spectral embedding to use (default NULL, will be set to n_clusters), integer

Value

countland object with slot cluster_labels

Examples

gold_path <- system.file("testdata", package = "countland", mustWork = TRUE)
gold.data <- Seurat::Read10X(data.dir = gold_path)
C <- countland(gold.data)
C <- Dot(C)
C <- Embed(C,n_components=5)
C <- Cluster(C,n_clusters=3)

countland documentation built on May 29, 2024, 7:13 a.m.

Related to Cluster in countland...