simplify function on enricher output of ClusterProfiler
1
0
Entering edit mode
5.7 years ago
gusf • 0

Hello,

I am trying to use the function "simplify" from "clusterProfiler" to summarize the output of enrichment analysis, but apparently it only works with the output of "enrichGO" function. Would it be possible to use "simplify" with the output of "enricher"? I want to perform generic enrichment and it would be great if there is a way to take advantage of that.

When I call the function on a enricher output I get the following error:

Error in .local(x, ...) : simplify only applied to output from enrichGO...

So I don't get why it doesn't work since both "enricher" and "enrichGO" outputs are of the same class "enrichResult" and the dataframe looks the same.

Thanks

clusterProfiler • 4.1k views
ADD COMMENT
0
Entering edit mode
3.6 years ago
JorgeVallejo ▴ 20

A round about the problem of simplify() only working with enrichGO() results seems to be using a slim version of GO (getting less redundant GO terms) as an input for enricher().

Source:
https://guangchuangyu.github.io/2015/10/use-simplify-to-remove-redundancy-of-enriched-go-terms/

ADD COMMENT

Login before adding your answer.

Traffic: 1341 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6