walktrap_clustering: Obtain clustering cluster labels through walktrap method.

View source: R/SpatialPCA_utilties.R

walktrap_clusteringR Documentation

Obtain clustering cluster labels through walktrap method.

Description

This function performs walktrap clustering on input low dimensional components.

Usage

walktrap_clustering(clusternum, latent_dat, knearest = 100)

Arguments

clusternum

The desired number of clusters the user wants to obtain.

latent_dat

A d by n matrix of low dimensional components, d is number of PCs, n is number of spots.

knearest

An integers, number of nearest neighbors for SNN graph construction in walktrap clustering.

Value

The cluster labels.


shangll123/SpatialPCA documentation built on June 1, 2025, 6:03 p.m.