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!
Thank you so muh for the detailed explanation!
My organisim is a non-model organism and it doesn't exist on KEGG organism list. Would you suggest using
enricher
instead ofenrichKEGG
? That way I could provide a customed universe.I will definitely use the gene with a non NA p-value to start as the universe! Thank you for the suggestion!