How to make a summary plot like below?
4
1
Entering edit mode
3.4 years ago
Jianlan ▴ 10

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 • 8.0k 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
5
Entering edit mode
3.4 years ago
MatthewP ★ 1.4k

Try maftools.

ADD COMMENT
3
Entering edit mode
3.4 years ago
sbstevenlee ▴ 480

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
1
Entering edit mode
2.5 years ago
Ahmed Alhendi ▴ 240

I would try the Oncoprint annotation using Complex heatmap here https://jokergoo.github.io/ComplexHeatmap-reference/book/oncoprint.html

ADD COMMENT
1
Entering edit mode
2.5 years ago

As mentioned by @Ahmed A complex heat map is very useful for customised oncoplot.

I used it for complex visualization, enter image description here https://www.medrxiv.org/content/10.1101/2022.01.10.22269035v2.full-text

ADD COMMENT

Login before adding your answer.

Traffic: 1997 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