netmap.downstream.gene_clusteringΒΆ

Gene co-expression clustering via hierarchical linkage on the GRN attribution matrix.

Functions

add_clusters_to_adata

Cut the dendrogram and annotate adata.var with flat cluster assignments.

compute_regression

Fit a quantile regression to determine an automatic dendrogram cut distance.

get_hierarchical_clustering

Perform hierarchical clustering of genes by pairwise correlation.

plot_regression_and_dendrogram

Plot the hierarchical clustering dendrogram alongside the quantile regression fit.

plot_scatter_plot

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