Skip to content
Ilya Popov edited this page Jun 5, 2026 · 13 revisions

KEGGaNOG Usage Guide

INSTALLATION

conda create -n kegganog pip -y
conda activate kegganog
pip install kegganog

HELP

! KEGGaNOG -h
Usage: KEGGaNOG [OPTIONS]                                                      
                                                                                
 KEGGaNOG: Link eggNOG-mapper and KEGG-Decoder for pathway visualization.       
                                                                                
โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ --input      -i         TEXT                    Path to eggNOG-mapper annotation file. โ”‚
โ”‚ --output     -o         TEXT                    Output folder to saveresults.          โ”‚
โ”‚ --multi      -M                                 Run KEGGaNOG in multi-sample cohort    โ”‚
โ”‚                                                 profile mode.                          โ”‚
โ”‚ --overwrite  -overwrite                         Overwrite the output directory if it   โ”‚
โ”‚                                                 already exists.                        โ”‚
โ”‚ --dpi        -dpi       INTEGER                 DPI resolution mapping index for the   โ”‚
โ”‚                                                 output image visualization.            โ”‚
โ”‚                                                 [default: 300]                         โ”‚
โ”‚ --color      -c         [Blues|Greens|Reds|     Target seaborn color map palette       โ”‚
โ”‚                         Purples|Greys|Oranges]  matrix rule.                           โ”‚
โ”‚                                                 [default: Blues]                       โ”‚
โ”‚ --name       -n         TEXT                    Sample identity text string for        โ”‚
โ”‚                                                 axis labeling.                         โ”‚
โ”‚                                                 [default: SAMPLE]                      โ”‚
โ”‚ --group      -g                                 Group the pathway matrix heatmap rows  โ”‚
โ”‚                                                 based on predefined functional         โ”‚
โ”‚                                                 categories.                            โ”‚
โ”‚ --web                                           Launch the interactive local web UI    โ”‚
โ”‚                                                 dashboard at http://localhost:8000.    โ”‚
โ”‚ --version    -V                                 Show version and exit.                 โ”‚
โ”‚ --help       -h                                 Show this message and exit.            โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

USAGE EXAMPLE

Single MODE

As the demo data for this usage guide eggNOG-mapper output of Lpb. plantarum IS-10506 is used
It is a probiotic from I am better than I look: genome based safety assessment of the probiotic Lactiplantibacillus plantarum IS-10506 study

First, download the demo data

Input

! wget https://github.com/iliapopov17/KEGGaNOG/raw/refs/heads/dev/demo_data.zip && \
    unzip demo_data.zip && rm -rf demo_data.zip

Then run KEGGaNOG

Input

! KEGGaNOG -i demo_data/LaPla/LaPla.emapper.annotations -o LaPla

By the key -i the input (eggNOG-mapper output file) must be provided By the key -o the path to output directory (it will be created if it does not exist) must be provided

The resulted figure:

heatmap_figure

The dpi of the resulted heatmap can be adjusted by using -dpi key
300 dpi is used by default

The color of the heatmap can be adjusted by using -c key
'Blues' are used by default

The sample name can be adjusted by using -n key
'SAMPLE' is the default sample name
It supports regular expressions, so to make some words in italics (e.g.: Lpb. plantarum IS-10506) please use $\it{Lpb. plantarum}$ IS-10506

This is not recommended while using CLI functionality of KEGGaNOG โ€” using regular expressions for sample naming can be more helpful in Heatmap API

Grouping

Alternatively, all the pathways can be grouped by their functions using -g key โ€” gaps between groups will be added on the heatmap

Input

! KEGGaNOG -i demo_data/LaPla/LaPla.emapper.annotations -o LaPla_grouped -c Greens -g -n 'Lpb. plantarum IS-10506'

The resulted figure:

heatmap_figure

Multi MODE

As the demo data for this usage guide eggNOG-mapper output of:

  • Acidilobus saccharovorans 345-15 โ€” AciSa
  • Bacillus subtilis subsp. subtilis str. 168 โ€” BaSu
  • Bacteroides thetaiotaomicron VPI-5482 โ€” BaThe
  • Clostridium acetobutylicum ATCC 824 โ€” CloAce
  • Lactiplantibacillus plantarum strain IS-10506 โ€” LaPla
  • Meiothermus ruber DSM 1279 โ€” MeRu
  • Pseudomonas putida KT2440 โ€” PsePu
  • Sorangium cellulosum So0157-2 โ€” SoCe
  • Staphylococcus carnosus subsp. carnosus TM300 โ€” StaCa
  • Thermotoga maritima MSB8 โ€” TheMa

are used

The demo has been already downloaded (if not โ€” run the code below)

Input

! wget https://github.com/iliapopov17/KEGGaNOG/raw/refs/heads/dev/demo_data.zip && \
    unzip demo_data.zip && rm -rf demo_data.zip

Create a list file for KEGGaNOG -M input

Input

! ls demo_data/*/*.emapper.annotations > demo_data/listFile.txt

Then run KEGGaNOG

Input

! KEGGaNOG -M -i demo_data/listFile.txt -o multi

By the key -i the input (eggNOG-mapper output file) must be provided
By the key -o the path to output directory (it will be created if it does not exist) must be provided

The resulted figure:

heatmap_figure

The dpi of the resulted heatmap can be adjusted by using --dpi key
300 dpi is used by default

The color of the heatmap can be adjusted by using -c key
'Blues' are used by default

The order of samples in multi-sample heatmap can be adjusted by using Heatmap API

Grouping

Alternatively, all the pathways can be grouped by their functions using -g key โ€” gaps between groups will be added on the heatmap

Input

! KEGGaNOG -M -i demo_data/listFile.txt -o multi_grouped_color -c Greens -g

The resulted figure:

heatmap_figure

Clone this wiki locally