louvain_clustering: Obtain clustering cluster labels through louvain method.

View source: R/SpatialPCA_utilties.R

louvain_clusteringR Documentation

Obtain clustering cluster labels through louvain method.

Description

This function performs louvain clustering on input low dimensional components.

Usage

louvain_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 KNN graph construction in louvain clustering.

Value

The cluster labels.


shangll123/SpatialPCA documentation built on April 17, 2024, 3:15 a.m.