pick_best_cluster_modularity: Pick Best Cluster by Modularity

View source: R/functions.R

pick_best_cluster_modularityR Documentation

Pick Best Cluster by Modularity

Description

This function selects the best cluster from a list of clustering results based on the highest modularity score.

Usage

pick_best_cluster_modularity(tsne_clust)

Arguments

tsne_clust

A list of clustering results where each element contains clustering information, including the modularity score.

Details

The function iterates over a list of clustering results (tsne_clust) and selects the cluster with the highest modularity score. If no clusters are valid or the tsne_clust list is empty, the function will stop and return an error.

Value

Returns the clustering result with the highest modularity score.


immunaut documentation built on April 12, 2025, 1:22 a.m.