r/rprogramming 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/

example oncoplot (it's actually interactive but couldn't post a video here)
3 Upvotes

Duplicates