Agent skill · Data & Analytics

bio-data-visualization-oncoprint-mutation-matrices

Build OncoPrint and co-mutation matrix plots from somatic-variant cohorts using ComplexHeatmap, maftools, and comut.py with alteration-type stacking, sample ordering by mutational burden, mutual-exclusivity overlays, and clinical annotation tracks. Use when visualizing per-sample mutation patterns across recurrent driver genes, comparing alteration classes, or identifying mutually-exclusive / co-occurring driver pairs.

BioTender-maxgithub.com/BioTender-maxGitHub ↗
claude-codeNOASSERTION
Install
npx skills add BioTender-max/awesome-bio-agent-skills --skill oncoprint-mutation-matrices --agent claude-code

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

Facts
Files in the skill folder: 3
SKILL.md size: 14 KB
Bundled scripts: none
Path: skills/bioskills/oncoprint-mutation-matrices/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.

From the SKILL.md

## Version Compatibility Reference examples tested with: ComplexHeatmap 2.18+, maftools 2.18+, comut 0.0.3+, MAFtools requires R 4.0+; comut.py requires pandas 2.0+, 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` If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying. # OncoPrint and Mutation Matrix Plots **"Plot mutations across a cohort"** -> Render a gene-by-sample matrix where each cell stacks colored rectangles encoding alteration class (missense, truncating, splice, copy-gain, copy-loss, fusion). Sort samples by burden, optionally split by clinical group, and overlay co-mutation / mutual-exclusivity annotations. OncoPrint (Cerami 2012 *Cancer Discov* 2:401; canonical at cBioPortal) is the genre-defining visualization. - R: `ComplexHeatmap::oncoPrint`, `maftools::oncoplot` - Python: `comut.CoMut`, `cbioportal`-style implementations ## The Single Most Important Modern Insight -- Cell Stacking Enc

What's inside
Steps it walks through
  1. Version Compatibility
  2. Decision Tree by Cohort and Question
  3. ComplexHeatmap::oncoPrint -- Canonical Implementation
  4. maftools::oncoplot -- Faster Onboarding
  5. Mutual Exclusivity and Co-Occurrence
  6. comut.py -- Python Equivalent
  7. Per-Method Failure Modes
  8. Alterations flattened to a single class
  9. Sample sort by gene 1 frequency only
  10. Showing only mutated samples (removeemptycolumns = TRUE)
  11. Hypermutators dominate visual
  12. Mutex/co-occurrence p-values overinterpreted on small cohorts
  13. Small-Cohort Regime (N = 20-50)
  14. Reconciliation: When Implementations Differ
Ships with 2 files
  • examples/oncoprint_phd.R
  • usage-guide.md
More from awesome-bio-agent-skills
All skills →
About this skill
What does the bio-data-visualization-oncoprint-mutation-matrices skill do?

Build OncoPrint and co-mutation matrix plots from somatic-variant cohorts using ComplexHeatmap, maftools, and comut.py with alteration-type stacking, sample ordering by mutational burden, mutual-exclusivity overlays, and clinical annotation tracks. Use when visualizing per-sample mutation patterns across recurrent driver genes, comparing alteration classes, or identifying mutually-exclusive / co-occurring driver pairs.

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill oncoprint-mutation-matrices --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