Agent skill · Data & Analytics

bio-data-visualization-dimensionality-reduction-plots

Produce and interpret PCA, t-SNE, UMAP, and PHATE plots for high-dimensional omics data with rigor about which method preserves what (variance, local structure, manifold, transitions), hyperparameter sensitivity, and the well-documented limits of 2D embeddings. Covers PCA biplot/scree/loadings, t-SNE PCA initialization (Kobak-Berens 2019), UMAP n_neighbors/min_dist trade-offs, and the Chari-Pachter 2023 critique. Use when visualizing high-dimensional data — bulk PCA, single-cell embeddings, multi-omics integration projections.

BioTender-maxgithub.com/BioTender-maxGitHub ↗
claude-codeships scriptsNOASSERTION
Install
npx skills add BioTender-max/awesome-bio-agent-skills --skill dimensionality-reduction-plots --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 19 KB
Bundled scripts: yes
Path: skills/bioskills/dimensionality-reduction-plots/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 135
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Produces and interprets PCA, t-SNE, UMAP, and PHATE plots for high-dimensional omics data, with emphasis on what each method preserves (variance, local structure, manifold, transitions), hyperparameter sensitivity, and the limits of 2D embeddings. Includes PCA biplot/scree/loadings, t-SNE PCA initialization (Kobak-Berens 2019), UMAP n_neighbors/min_dist trade-offs, and the Chari-Pachter 2023 critique. Applies to bulk PCA, single-cell embeddings, and multi-omics integration projections. Uses the primary tool: scanpy.

How it works

Guides choosing a projection method based on the plot's reveal: variance explained (PCA), local neighborhood structure (t-SNE), manifold approximation with some global structure (UMAP), or continuous transitions (PHATE). Encourages setting hyperparameters deliberately and communicating the projection's limits. Describes algorithmic taxonomy and provides examples in Python and R for PCA, t-SNE, UMAP, and PHATE, including relevant parameters (e.g., PCA/UMAP/t-SNE parameters) and warnings about embedding distortions. Emphasizes modern t-SNE improvements via PCA initialization and high learning rate, and UMAP defaults with seed control. Includes explicit failure modes and fixes (e.g., misinterpreting UMAP distances, seed reproducibility, perplexity handling, PCA scaling) and practical fixes for plotting, save paths, and DPI considerations. Reporting all hyperparameters used is recommended, along with explicit interpretation limits.

When to use it

Use when visualizing high-dimensional data such as bulk PCA, single-cell embeddings, or multi-omics projections to understand variance, local structure, or transitions, while avoiding over-interpretation of 2D distances and preserving awareness of embedding limitations. Triggered when selecting a projection method and tuning hyperparameters for accurate interpretation and reproducibility.

What it can touch

The skill references and prescribes usage patterns for Python tools (e.g., sklearn.decomposition.PCA, openTSNE, umap-learn, phate, scanpy.tl.umap / scanpy.tl.tsne / scanpy.tl.pca) and R counterparts (e.g., prcomp, PCAtools::pca, Seurat::RunPCA / RunUMAP / RunTSNE, phateR). It requires/uses the tool claude-code as declared. It instructs to report hyperparameters (perplexity, n_neighbors, min_dist, random_state) and to verify versions if compatibility concerns arise.

Caveats

Notes include the well-documented limits of 2D embeddings (Chari-Pachter 2023; Kobak-Berens 2019), dependency on proper scaling and normalization for PCA, seed requirements for reproducibility, and potential misinterpretation of distances in UMAP/t-SNE. It emphasizes that distances between clusters in 2D plots may be meaningless and that loadings are PCA-specific while UMAP/t-SNE coordinates do not provide linear interpretability for gene loadings. The license is NOASSERTION; the skill ships executable scripts and uses the primary tool scanpy.

From the SKILL.md

## Version Compatibility Reference examples tested with: scanpy 1.10+, anndata 0.10+, scikit-learn 1.4+, umap-learn 0.5+, openTSNE 1.0+, phate 1.0+, ggplot2 3.5+, PCAtools 2.16+, matplotlib 3.8+. Before using code patterns, verify installed versions match. If versions differ: - Python: `pip show <package>` then `help(module.function)` to check signatures - R: `packageVersion('<pkg>')` then `?function_name` to 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. # Dimensionality-Reduction Plots **"Make a PCA / UMAP / t-SNE plot"** -> Choose a projection method aligned with what the plot must reveal — variance explained (PCA), local neighborhood structure (t-SNE), manifold approximation with some global structure (UMAP), or continuous transitions (PHATE). Set hyperparameters deliberately. Communicate the projection's limits and refuse to over-interpret 2D distances. - Python: `sklearn.decomposition.PCA`, `openTSNE`, `umap-learn`, `phate`, `scanpy.tl.umap` / `scanpy.tl.tsne` / `scanpy.tl.pca` - R: `prcomp`, `PCAtools::pca`, `Seurat::RunPCA` / `RunUMAP` / `RunTSNE

What's inside
Steps it walks through
  1. Version Compatibility
  2. The Single Most Important Modern Insight -- 2D Embeddings Distort
  3. Algorithmic Taxonomy
  4. Decision Tree by Scenario
  5. PCA -- The Underused Workhorse
  6. t-SNE -- Kobak-Berens Modern Defaults
  7. UMAP -- Modern Defaults and the Random-Seed Trap
  8. PHATE -- For Continuous Trajectories
  9. Per-Method Failure Modes
  10. Over-interpreting UMAP distances
  11. t-SNE / UMAP without random seed
  12. Perplexity too low for the data
  13. PCA without scaling
  14. UMAP cluster shapes "interpreted" as biological signal
Ships with 2 files
  • examples/embedding_phd.py
  • usage-guide.md
More from awesome-bio-agent-skills
All skills →
About this skill
What does the bio-data-visualization-dimensionality-reduction-plots skill do?

Produce and interpret PCA, t-SNE, UMAP, and PHATE plots for high-dimensional omics data with rigor about which method preserves what (variance, local structure, manifold, transitions), hyperparameter sensitivity, and the well-documented limits of 2D embeddings. Covers PCA biplot/scree/loadings, t-SNE PCA initialization (Kobak-Berens 2019), UMAP n_neighbors/min_dist trade-offs, and the Chari-Pachter 2023 critique. Use when visualizing high-dimensional data — bulk PCA, single-cell embeddings, multi-omics integration projections.

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill dimensionality-reduction-plots --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going