How to make a summary plot like below?
2
0
Entering edit mode
4 months ago
Jianlan • 0

I tried to create a similar one using 'ggplot' and combine all of them into one plot, but it takes very long time. Is there an easier way to combine the oncoplot, different clinical information and side legends together?

Also, what is the best way to create the oncoplot clustered by groups and sort based one some value? Like the image below, it was build based on subtypes and sorted by mutations rate I guess. The link is below: https://www.researchgate.net/figure/The-mutational-landscape-of-33-cancer-genes-in-Chinese-breast-tumors-n305-Genomic_fig1_332730584 enter image description here

cancer classes Oncoplots • 542 views
ADD COMMENT
0
Entering edit mode

might be GenVisR, not sure if that is a perfect match but it looks fairly similar How to create a mutation landscape (waterfall) plot with GenVisR

ADD REPLY
4
Entering edit mode
4 months ago
MatthewP ★ 1.0k

Try maftools.

ADD COMMENT
3
Entering edit mode
4 months ago
sbstevenlee ▴ 200

If you are familiar with Python, you may want to check out the fuc package I wrote:

Application Programming Interface (API):

import matplotlib.pyplot as plt
>>> from fuc import common, pymaf
>>> common.load_dataset('tcga-laml')
>>> f = '~/fuc-data/tcga-laml/tcga_laml.maf.gz'
>>> mf = pymaf.MafFrame.from_file(f)
>>> mf.plot_oncoplot()

enter image description here

If you want to create a customized oncoplot like the one shown below, see this tutorial.

enter image description here

Finally, you can also use command line interface (CLI) as well:

$ fuc maf_oncoplt input.maf output.pdf
ADD COMMENT

Login before adding your answer.

Traffic: 1683 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6