gseaplot2 from enrichplot for gene set enrichment analysis comparing two datasets
1
0
Entering edit mode
Cen • 0
@5b5268ee
Last seen 12 months ago
United States

clusterProfiler implemented GSEA plot that mimic broad Institute's GSEA software in gseaplot2. Does anyone knows how to use gseaplot2 to compare two datasets? In GSEA you can do this by providing a gene set that contains the top genes from the first dataset and use GSEA to analyze that gene set against the second gene set.

Thank you in advance for your help!

enrichplot GSEA clusterProfiler • 2.1k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 11 hours ago
United States

The default for clusterProfiler is to use fgsea from the eponymous package. Which would be simple to use directly (see ?fgsea).

ADD COMMENT
0
Entering edit mode

Thanks for your comment. I was able to use fgsea for comparing two datasets but I liked the plot generated by gseaplot2.

I tried to input the object returned by fgsea to gseaplot2 but it doesn't like it.

This is the command to generate plot enrichment in fgsea which in this case, I can change the 175th entry in examplePathways to my second dataset.

data(examplePathways)
data(exampleRanks)
fgseaRes1 <- fgsea(examplePathways[[175]], exampleRanks)
plotEnrichment(examplePathways[[175]],exampleRanks)

But, the question is how to do similar thing and get plot enrichment using gseaplot2 ?

ADD REPLY
0
Entering edit mode

Hi Jemes, did you find a way to do so, I am struggling with the same issue

ADD REPLY

Login before adding your answer.

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