cluster_spectrum {motifcluster}R Documentation

Get cluster assignments from spectrum using k-means++

Description

Get a vector of cluster assignments from a spectrum, using k-means++ and num_clusts clusters.

Usage

cluster_spectrum(spectrum, num_clusts)

Arguments

spectrum

A list containing $vects; the matrix of eigenvectors to pass to k-means++.

num_clusts

The number of clusters to find.

Value

A length-nrow(spectrum$vects) vector of integers from 1 to num_clusts, representing cluster assignments.


[Package motifcluster version 0.2.3 Index]