Cluster {countland}R 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)

[Package countland version 0.1.2 Index]