spectralClustering: spectralClustering

Description Usage Arguments Value Examples

View source: R/clustering.R

Description

A function to perform spectral clustering

Usage

1
spectralClustering(affinity, K = 20, delta = 1e-05)

Arguments

affinity

An affinity matrix

K

number of clusters

delta

delta

Value

A list indicates the spectral clustering results

Examples

1
2
3
4
data(sce_control_subset, package = "CiteFuse")
sce_control_subset <- CiteFuse(sce_control_subset)
SNF_W <- S4Vectors::metadata(sce_control_subset)[["SNF_W"]]
SNF_W_clust <- spectralClustering(SNF_W, K = 5)

CiteFuse documentation built on April 14, 2021, 6 p.m.