clusterProfiler icon indicating copy to clipboard operation
clusterProfiler copied to clipboard

EnrichKegg still shows all pvalues even after specifying a specific pvalue cutoff

Open NeginValizadegan opened this issue 2 years ago • 3 comments

Although I use pvalueCutoff, the results still show pvalues larger than 0.1. Why is that?

kk2 <- enrichKEGG(gene = dedup_ids_gene$ENTREZID, universe=dedup_ids_bg$ENTREZID, keyType = "ncbi-geneid", organism = kegg_organism, pvalueCutoff = 0.1, pAdjustMethod = "fdr", use_internal_data = FALSE)

Screen Shot 2023-04-30 at 12 28 06 PM

NeginValizadegan avatar Apr 30 '23 17:04 NeginValizadegan

I am experiencing this same issue for all the enrichment functions. I am currently just filtering the p.adjust column manually, but surely this is not intended?

nmclark2 avatar May 05 '23 15:05 nmclark2

Please provide the kk2 object, and see the result of as.data.frame(kk2).

huerqiang avatar May 06 '23 03:05 huerqiang

Hello, the as.data.frame() call works to appropriately filter the data matrix for me. To me, this was not clear from the current documentation. Thank you for the explanation.

nmclark2 avatar May 08 '23 12:05 nmclark2