pick_best_cluster_modularity {immunaut} | R Documentation |
This function selects the best cluster from a list of clustering results based on the highest modularity score.
pick_best_cluster_modularity(tsne_clust)
tsne_clust |
A list of clustering results where each element contains clustering information, including the modularity score. |
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.
Returns the clustering result with the highest modularity score.