Cluster Heatmap
@genomics/cluster-heatmap
Expression heatmap with row and column dendrograms.
Preview
17 genes × 12 samples · row z-score
correlation distance · average linkage
cluster 1cluster 2cluster 3
Toggle to input order: the same values, with the block structure invisible.
About
An unclustered heatmap is a picture of the sample sheet. Clustering makes it a figure: reorder genes so co-regulated ones are adjacent, reorder samples so replicates land together, and the block structure that is the result appears — along with the quality check nothing else does, since a sample clustering with the wrong condition is a mislabel you can see in one glance. Composes rather than forks: it clusters, permutes the matrix, hands it to expression-heatmap unchanged, and owns only the trees. Cut the row tree into k clusters for a color strip beside the rows.
Usage
import { ClusterHeatmap } from "@/components/ui/cluster-heatmap"
<ClusterHeatmap matrix={matrix} cluster="both" rowClusters={3} />Source:
components/ui/cluster-heatmap.tsx