Hello,
When using the enrichGo does the gene universe need to be a gene list or can it be a named list with logfc?
Currently I am doing this:
genes <- names(gene_list)[abs(gene_list)> 0.9]
go_enrich <- enrichGO(gene = genes,
universe = names(gene_list),
OrgDb = org.Hs.eg.db,
keyType="SYMBOL",
ont = "ALL",
pAdjustMethod = "fdr",
pvalueCutoff = 0.05,
readable = TRUE)
I am asking this question because I did an entire analysis with the universe being gene_list and not names(gene_list) and it worked and gave me very good results. Then I understood that this was an error and that should be the names(list) resulting in very few significant pathways...
With this I ask why does enrichGo not give an error when you pass gene_list? Does it have a special mode where it takes logfc values into consideration when doing the ORA analysis? Are just names the correct form?
Best Regards!