How to use clusterProfiler package to do GO and KEGG enrichment Analysis with the Annotation results of eggnog-mapper Software
This article will explain in detail how to use the clusterProfiler package to do GO and KEGG enrichment analysis using eggnog-mapper software annotation results. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
The first step is to use eggnog-mapper to annotate conda activate emapper.
Python emapper.py-I orgdb_example/GCF_000002945.1_ASM294v2_protein.faa-- output orgdb_example/out-m diamond-- cpu 8
Download the comment results locally, manually delete the first three lines with a pound sign, remove the pound sign at the beginning of the fourth line, and remove the line with the pound sign at the end of the file.
Using R language to sort out the annotation results into the input format required by the enricher function GO enrichment library (stringr)
Library (dplyr)
Egg