# 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