Learn R Programming

phateR (version 1.0.0)

cluster_phate: 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

Run this code
# NOT RUN {
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)
}
# }

Run the code above in your browser using DataLab