This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to create an upset plot with a count of genes per pathway in cluster-profiler?

I'm plotting an upset plot of KEGG enriched pathways using DOSE and clusterprofiler which works fine like this:

kk <- enrichKEGG(gene = gene_ids,
                 organism     = 'hsa',
                 pvalueCutoff = 0.05,
                 pAdjustMethod = 'fdr')

upsetplot(kk)

The plot given looks like this: upset plot

I'm wondering if there's a way to expand this plot on the left to have a bar chart of the number of genes enriched per pathway? So the style of the plot would expand to look like this:

upset2

Is this possible using the upsetplot() function? Or would I need to try plotting the kk data with another package like UpSetR?

enrichment r dose plot gene upset

0 answers

No answers yet.

Log in to answer this question.