cluster_phate {phateR}R Documentation

KMeans on the PHATE potential Clustering on the PHATE operator as introduced in Moon et al. This is similar to spectral clustering.

Description

KMeans on the PHATE potential Clustering on the PHATE operator as introduced in Moon et al. This is similar to spectral clustering.

Usage

cluster_phate(phate, k = 8, seed = NULL)

Arguments

phate

phate() output

k

Number of clusters (default: 8)

seed

Random seed for kmeans (default: NULL)

Value

clusters Integer vector of cluster assignments

Examples

if (reticulate::py_module_available("phate")) {

# Load data
# data(tree.data)
# We use a smaller tree to make examples run faster
data(tree.data.small)

# Run PHATE
phate.tree <- phate(tree.data.small$data)

# Clustering
cluster_phate(phate.tree)
}

[Package phateR version 1.0.7 Index]