maftools icon indicating copy to clipboard operation
maftools copied to clipboard

repel for plotOncodrive

Open AlexanderPic opened this issue 2 years ago • 1 comments

Dear maftools-team, would it be possible to implement a repel argument in the plotOncodrive function for an easier visualisation?

Thanks a lot for this package and your help! Best, Alexander

AlexanderPic avatar Jun 01 '22 11:06 AlexanderPic

Hi,

Plots are generated with base graphics and it is not very flexible for labeling. However, you can take the results from oncodrive and plot it with ggplot.

Using example dataset:

laml.maf <- system.file("extdata", "tcga_laml.maf.gz", package = "maftools")
laml <- read.maf(maf = laml.maf)
laml.sig <- oncodrive(maf = laml, AACol = 'Protein_Change', minMut = 5)

ggplot(data = laml.sig, aes(x = muts_in_clusters, y = -log10(fdr), label = Hugo_Symbol))+geom_point()+ggrepel::geom_text_repel()

PoisonAlien avatar Jun 02 '22 03:06 PoisonAlien

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Aug 21 '23 01:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Sep 04 '23 01:09 github-actions[bot]