Hi all!
I am trying to do KEGG enrichment with enrichKEGG
, I was wondering if I need to specify universe
argument. Could you please help me with it?
- In the documentation, it says "universe: background genes. If missing, the all genes listed in the database (eg TERM2GENE
table) will be used as background." However,
enrichKEGG
doesn't takeTERM2GENE
argument. If theuniverse
is not specified, what will be used as the universe?
It returns unused argument (TERM2GENE = Transcriptome)
If I specify TERM2GENE
.
- Should I use the KEGG column from the "KEGG Orthology to Genes mapping" as the
universe
?
enr_results <- enrichKEGG(DEG$KEGG, organism='ko', universe = Transcriptome$KEGG, pvalueCutoff = 0.05, pAdjustMethod = "BH", qvalueCutoff = 0.05, minGSSize = 5)
Here are what my files look like:
KEGG to DEG mappings
> head(DEG) KEGG Gene 1 K17277 FS_gene_3 2 K14700 FS_gene_11 3 K14701 FS_gene_11
KEGG to whole transcriptome mappings
head(Transcriptome) KEGG Gene 1 K02727 FS_gene_1 2 K17277 FS_gene_3 3 K17307 FS_gene_10
Thanks a lot!
enrichKEGG
automatically uses all genes present in the KEGG gene sets as universe.See also my post here: clusterProfiler for KEGG enrichment (non-model species) Over-Representation Analysis (for an illustration of this), and the answer of Erqiang Hu below.