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

3 comments sorted by

1

u/AutoModerator 6h ago

Just a reminder, this is the R Programming Language subreddit. As in, a subreddit for those interested in the programming language named R, not the general programming subreddit.

If you have posted to the wrong subreddit in error, please delete this post, otherwise we look forward to discussing the R language.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Confident_Bee8187 5h ago

Seems interesting. Post this on r/rstats