Closed jestlin15 closed 3 months ago
If you check the help page of enrichGO
(type: ?enrichGO
), you will see that the default value for the ontology argument is the Molecular Function sub-category (ont = "MF"
). Thus, if you don't specify yourselves the value of ont
, then ont=MF
.
Yet, by setting ont = "ALL"
you will include the terms of all 3 GO sub-categories (also Biological Process [BP] and Cellular Compartment [CC}) in your analysis, and therefore your results do differ.
Hi may I please ask about the reason for the difference in results when stating ont="ALL" vs not stating it when performing compareCluster?
`compareGO <- compareCluster(geneCluster = gene_lists_sorted_names, fun = "enrichGO", OrgDb= org.Hs.eg.db, pvalueCutoff=0.01, qvalueCutoff=0.05)
compareGO<- simplify(compareGO, cutoff = 0.7, by = "p.adjust", select_fun = min, measure = "Wang", semData = NULL ) dotplot1 = dotplot(compareGO, label_format = 100 ,showCategory= 40, font.size=8, title = "GO")`
vs
`compareGO_ALL <- compareCluster(geneCluster = gene_lists_sorted_names, fun = "enrichGO", ont = "ALL", OrgDb= org.Hs.eg.db, pvalueCutoff=0.01, qvalueCutoff=0.05)
compareGO_ALL<- simplify(compareGO_ALL, cutoff = 0.7, by = "p.adjust", select_fun = min, measure = "Wang", semData = NULL ) dotplot2 = dotplot(compareGO_ALL, label_format = 100 ,showCategory= 40, font.size=8, title = "GO_ALL")`
dotplot1: preview.pdf dotplot2: preview.pdf