netmap.downstream.gene_clustering.plot_scatter_plot

netmap.downstream.gene_clustering.plot_scatter_plot(df)[source]

Plot a scatter of cophenetic distance vs Pearson correlation for cutoff inspection.

Renders a single-panel scatter plot of the full (unfiltered) cophenetic/ correlation pairs to help identify the cophenet_threshold value where the linear relationship breaks down before calling compute_regression().

Parameters:

df (pd.DataFrame) – DataFrame with columns 'cophenet' and 'corr' as returned by get_hierarchical_clustering().

Returns:

Displays the figure via plt.show().

Return type:

None