This is a test version of Biostars. For the public version, visit https://www.biostars.org.
simplify function on enricher output of ClusterProfiler

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

1 answer

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/

Log in to answer this question.