How to compute gsea overlap of gene set with R
1
0
Entering edit mode
6 months ago
Picasa ▴ 650

Hi

I would like to compute the overlap of my genes with gene sets, such as MSigDB C8, similar to how it is done on this page:

https://www.gsea-msigdb.org/gsea/msigdb/human/annotate.jsp

In R, I usually use:

library(clusterProfiler)
enricher(my_gene, TERM2GENE = msigdb_C8)

However, I got different results than what is shown on the website. Is there any other R package that I can use?

gsea overlap • 414 views
ADD COMMENT
0
Entering edit mode
6 months ago
Nat.Nataren ▴ 100

The clusterProfiler enricher() function has a number of arguments you can adjust, perhaps check that you are setting arguments such as pvalueCutoff the same as the threshold used by MSigDB' online GSEA tool. Then you may see better agreement.

    enricher(
gene,
pvalueCutoff = 0.05,
pAdjustMethod = "BH",
universe = NULL,
minGSSize = 10,
maxGSSize = 500,
qvalueCutoff = 0.2,
gson = NULL,
TERM2GENE,
TERM2NAME = NA
)

Documentation that describes the various arguments for clusterProfiler functions is available here. Another R option is the package fgsea.

ADD COMMENT

Login before adding your answer.

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