scsilhouette.viz module

Visualization functions for silhouette analysis.

This module provides plotting functions for silhouette scores, distributions, and summary statistics.

scsilhouette.viz.plot_silhouette_summary(silhouette_score_path: str, silhouette_score_col: str, cluster_header: str, organ: str, first_author: str, journal: str, year: str, dataset_version_id: str, embedding_key: str = '', fscore_path: str | None = None, sort_by: str = 'median', doi: str = '', collection_name: str = '', dataset_title: str = '', collection_url: str = '', explorer_url: str = '', h5ad_url: str = '')[source]

Generate silhouette summary boxplot with optional F-scores

scsilhouette.viz.plot_2D_projection(h5ad_path: str, cluster_header: str, embedding_key: str, organ: str, first_author: str, journal: str, year: str, dataset_version_id)[source]

Generate embedding 2D_projection colored by cluster

scsilhouette.viz.plot_distribution(cluster_summary_path: str, cluster_header: str, organ: str, first_author: str, journal: str, year: str, embedding: str, dataset_version_id: str)[source]

Generate distribution plots of cluster sizes vs silhouette