Closed lbwfff closed 8 months ago
This is because in the dotplot
only significant gene sets are plotted; and the significance in both your analyses are based on the value of p.adjust
.
In your first code chunk, in which you called the gseKEGG
function, you did NOT specify the argument pAdjustMethod
, only pvalueCutoff = 0.05
. Since by default pAdjustMethod = "BH"
, significance is thus based on Benjamini-Hochberg adjusted p-values (i.e. column p.adjust
), and thus not the 'raw' p-values (column pvalue
). Note that the qvalue
is another, related metric!
As you can see, in your enrichKEGG
result there is only 1 gene set that has a value of p.adjust
that is smaller than 0.05! Namely: 0.007217305
.
The same applies to your enrichGO
analysis; you set indeed the argument pAdjustMethod = "BH"
, and as cutoff value pvalueCutoff = 0.05
. Only 1 gene set has p.adjust
<0.05, namely 0.04818641
.
So: either set the argument pAdjustMethod
to "none"
, or increase the value of the argument pvalueCutoff
.
From ?enrichKEGG
: pAdjustMethod -- one of "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none"
.
Ok I see, I had previously thought that dotplot was only relevant to kk.negative@result results, thank you!
Hi, enrichplot developer.
I'm having an issue with clusterProfiler enrichment analysis and visualising it using enrichplot, the dotplot only shows the most enriched one term and I'm not sure why this is the case. Here is my code:
Here are the enrichment results:
GO enrichment similarly shows only one term, Here is the GO enrichment code:
The GO enrichment results are a bit more significant than the KEGG results (I'm not sure if it's because these term are not significant enough)
This is the dotplot output
Why is this happening and how can I fix it
Thanks, LeeLee