enrichplot icon indicating copy to clipboard operation
enrichplot copied to clipboard

Generalize plotting functions to allow use on external results

Open khughitt opened this issue 4 years ago • 3 comments

Greetings!

Is there any chance you could add an method to apply enrichPlot methods to results generated via external tools?

clusterProfiler and other packages created by your lab already support a number of useful over-representation / GSEA methods, however, there are a very large number of alternative methods and new ones coming out on a regular basis (fgsea, is one I've been using a lot for it's performance and flexibility w.r.t. annotations). It would be great if there were a way to use to nice plotting methods you have developed here on results from some of those methods.

One possible approach might be to split each move most of the plotting functionality for each method into a private method. Two alternative methods could then sit on top of those -- one that maintains the current interface so that code can continue working as-is, and an alternative version of each method that can be used on results from arbitrary methods, so long as the user provides the needed information.

Another possible approach would be to provide one or more public constructors for the enrichResults class, so that typical results from other methods could be easily used to construct an enrichResult instance, which could then be used with the existing plotting functionality.

Thanks for all of your work on these useful packages!

khughitt avatar Nov 25 '19 00:11 khughitt

Hello,

I second the request for these plotting tools to be able to use input from fgsea.

Thanks,

Brian

BrianLohman avatar Apr 22 '20 14:04 BrianLohman

Me too! but I would also like to input a dataframe of my own GO list similar to the output of an enrichResult for generating a cnetplot.

I like the visualization of the cnetplot but I have some GO terms that I got from g:Profiler that I would like to use for this plot.

Thanks, Desiree

dwill023 avatar May 14 '20 00:05 dwill023

Hello

I am interested in generalization of the plotting too. I would be very happy if I could use enrichplot to do the vizualization of my data

Thank you

Emilie

ederisoud avatar Jun 20 '20 08:06 ederisoud