You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear Guangchuang,
Big fan of all the R suites your group develop!
I have a question regarding the universal gene list used in the enricher function for the Over Representation Analysis.
Test enrichment overall all the GSEA Hallmark genesets and didn't supply a background universe gene list. My understanding is that the program will generate a "universal" list using the TMER2GENE list.
library(clusterProfiler)
library(msigdbr)
genesets = msigdbr(species = "Homo sapiens", category = "H")
h = genesets %>% dplyr::select(gs_name, gene_symbol)
# randomly select some genes as input
set.seed(1)
sel_genes = sample(h$gene_symbol,20)
# test on all hallmark genesets
egmt.h <- enricher(sel_genes, TERM2GENE=h, pvalueCutoff = 1,qvalueCutoff=0.05,maxGSSize = 3000)
egmt.h@result$BgRatio[1]
However, when I try to test enrichment overall a selected GSEA Hallmark geneset with a universe gene list manually created from hallmark genesets, it reported the following error.
# test only HALLMARK_ADIPOGENESIS gene set.
egmt.h.single <- enricher(sel_genes, TERM2GENE=h[h$gs_name=="HALLMARK_ADIPOGENESIS",],pvalueCutoff = 1,qvalueCutoff=0.05,maxGSSize = 3000,universe = unique(h$gene_symbol))
# with the following error.
--> No gene can be mapped....
--> Expected input gene ID: CAVIN1,LAMA4,NDUFA5,GPD2,SLC27A1,CAT
--> return NULL...
So I checked the code for this function and found that the universe gene list is not used as background gene for the statistical test. Please correct me if I'm wrong.
Dear Guangchuang,
Big fan of all the R suites your group develop!
I have a question regarding the universal gene list used in the
enricher
function for the Over Representation Analysis.Test enrichment overall all the GSEA Hallmark genesets and didn't supply a background universe gene list. My understanding is that the program will generate a "universal" list using the TMER2GENE list.
However, when I try to test enrichment overall a selected GSEA Hallmark geneset with a universe gene list manually created from hallmark genesets, it reported the following error.
So I checked the code for this function and found that the universe gene list is not used as background gene for the statistical test. Please correct me if I'm wrong.
Thank you for your help!
Jin
DOSE/R/enricher_internal.R
Line 60 in 20c57bc
The text was updated successfully, but these errors were encountered: