A function to perform spectral clustering
spectralClustering(affinity, K = 20, delta = 1e-05)
affinity | An affinity matrix |
---|---|
K | number of clusters |
delta | delta |
A list indicates the spectral clustering results
#> Calculating affinity matrix #> Performing SNFSNF_W <- S4Vectors::metadata(sce_control_subset)[["SNF_W"]] SNF_W_clust <- spectralClustering(SNF_W, K = 5)#> Computing Spectral Clustering