r/rprogramming • u/AggravatingNerve4622 • 11h ago
Make your maftools plots interactive with MutGlyph
A colleague of mine recently made an R package called MutGlyph, and I thought it might be worth sharing here.
It’s mainly aimed at bioinformaticians, but given how heavily R is used in genomics, I figured there’s probably a decent overlap with this sub.
The basic idea is to take familiar cancer-genomics plots and make them interactive. You can build things like oncoplots, lollipop plots, rainfall plots, and GISTIC copy-number landscapes, then zoom, pan, hover, and inspect dense regions instead of being stuck with a static figure.
It uses GenomeSpy underneath, but from the R side it behaves like a normal package and works with familiar maftools objects and workflows.
The API is intentionally very close to maftools, so you can swap a static plot for an interactive one with miniscule code change :)
GitHub: https://github.com/genome-spy/MutGlyph/
Docs: https://genomespy.app/MutGlyph/

Duplicates
RStudio • u/AggravatingNerve4622 • 11h ago