Schematex
phylo·Hierarchical clustering (cophenetic height)·bioinformatics, education·complexity 2/3·since v0.1.0

Gene expression clusters (cut into flat groups)

A hierarchical-clustering dendrogram of gene-expression samples, sliced at a chosen height so the continuous tree collapses into distinctly colored flat clusters with a dashed threshold line.

For the computational biologist

Open in Playground →
phylogenetic·§ Newick / NHX
↘ preview
100%
Dendrogram: Gene expression clusters Dendrogram with 5 taxa, dendrogram mode, rectangular layout, cut at 4 into 2 clusters Gene expression clusters A B C D E 0 1 2 3 4 5 cluster distance cut = 4
UTF-8 · LF · 4 lines · 133 chars✓ parsed·2.6 ms·5.6 KB SVG

What this shows

The same tree the phylo engine draws for evolution, read instead as the output of hierarchical agglomerative clustering (Sokal & Michener 1958 — the form scipy.cluster.hierarchy.dendrogram produces). Each internal node sits at its merge height: the cophenetic distance at which its two child clusters fuse. Leaves align on a common baseline, branches are rectangular elbows, and a height axis lets you read off exactly how far apart any two leaves are before they first share a cluster — (A, B) join low and tight, while (D, E) only merge with the rest near the top.

The cut 4 line is what makes this actionable. It slices the tree at height 4: every subtree that fuses below that line becomes one flat cluster, each painted a distinct color, with a dashed threshold line drawn across the chart. This is the dendrogram counterpart of choosing k clusters in fcluster — turning a continuous similarity tree into the discrete groups you actually act on.

Phylogenetic tree syntax