bio-data-visualization-heatmaps-clustering
Installation
SKILL.md
Version Compatibility
Reference examples tested with: ggplot2 3.5+, matplotlib 3.8+, pandas 2.2+, scanpy 1.10+, scipy 1.12+, seaborn 0.13+
Before using code patterns, verify installed versions match. If versions differ:
- Python:
pip show <package>thenhelp(module.function)to check signatures - R:
packageVersion('<pkg>')then?function_nameto verify parameters
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
Heatmaps and Clustering
"Create a clustered heatmap" → Visualize expression matrices or distance matrices with hierarchical clustering dendrograms.
- R:
pheatmap::pheatmap(mat),ComplexHeatmap::Heatmap(mat) - Python:
seaborn.clustermap(df),scanpy.pl.heatmap(adata)