README.md
February 2, 2026 ยท View on GitHub
Large-scale gene neighborhood analyses that feel like magic
๐ฎ Live Demo ยท ๐ Documentation ยท ๐ผ๏ธ Gallery ยท ๐งช Colab
๐งฌ What is Hoodini?
Hoodini is a gene-centric comparative genomics toolkit that fetches public assemblies, extracts gene neighborhoods, runs pairwise protein and nucleotide comparisons, annotates neighborhoods with defense systems and mobile elements, and builds phylogenetic trees โ all with GPU-accelerated interactive visualization.
| ๐ Scales | โก Fast | ๐ฌ Annotations | ๐จ Visualization |
|---|---|---|---|
| 1000s of genomes | Minutes | PADLOC, DefenseFinder, CCTyper | Publication-ready SVG |
โจ Key Features
- ๐ฅ Automated data retrieval โ Fetches assemblies from NCBI using protein or nucleotide accessions
- ๐งฌ Neighborhood extraction โ Configurable genomic windows around target genes
- ๐ Protein clustering โ Groups homologous proteins for synteny comparison
- ๐ Pairwise comparisons โ AAI (amino acid) and ANI (nucleotide) similarities
- ๐ณ Tree construction โ Phylogenetic trees from sequence identity
- ๐ก๏ธ Defense annotations โ PADLOC, DefenseFinder, CCTyper, geNomad
- ๐จ Interactive visualization โ Self-contained HTML with 50+ color palettes
๐ Quick Start
# Single protein query
hoodini run --input WP_012345678.1 --output results
# With protein comparisons and phylogenetic tree
hoodini run --input proteins.txt --output results --prot-links --tree-mode aai_tree
# Full analysis with annotations
hoodini run --input proteins.txt --output results \
--prot-links --tree-mode aai_tree \
--padloc --deffinder --cctyper --genomad \
--num-threads 16
๐ See the Tutorial for a complete walkthrough.
๐ฆ Installation
Hoodini requires Python packages and bioinformatics tools. The recommended methods handle all dependencies.
โ ๏ธ Note: Bioconda and PyPI packages are coming soon. Use the development installation below.
|
Using pixi (recommended)
|
Using mamba/conda
|
Python-only installation (uv/pip)
โ ๏ธ This only installs Python packages. Bioinformatics tools must be in your PATH.
Using uv:
git clone https://github.com/pentamorfico/hoodini.git
cd hoodini
uv sync
uv run hoodini download databases
Using pip:
git clone https://github.com/pentamorfico/hoodini.git
cd hoodini
pip install -e .
hoodini download databases
Docker
โ ๏ธ Docker image available but not fully tested. Please report any issues.
docker volume create hoodini-data
docker run --rm -v hoodini-data:/app/src/hoodini/data \
pentamorfico/hoodini:latest hoodini download databases
docker run --rm -v hoodini-data:/app/src/hoodini/data -v $(pwd):/work \
pentamorfico/hoodini:latest hoodini run --input /work/proteins.txt --output /work/results
๐ See Installation Guide for detailed instructions.
๐ ๏ธ Usage
hoodini run Run the main pipeline
hoodini download Download required databases
Input Options
| Option | Description |
|---|---|
--input ID|FILE | Single accession or file with one per line |
--inputsheet FILE | TSV with accessions and custom metadata |
Neighborhood Extraction
| Option | Description |
|---|---|
--win-mode | win_genes (gene count) or win_nts (nucleotides) |
--win INT | Window size (default: 10 genes or 10000 nt) |
--sorfs | Re-annotate small ORFs |
Comparisons & Trees
| Option | Description |
|---|---|
--prot-links | All-vs-all protein similarities |
--nt-links | Pairwise nucleotide alignments |
--tree-mode | aai_tree or ani_tree |
Annotations
| Option | Description |
|---|---|
--padloc | Defense systems (PADLOC) |
--deffinder | Defense systems (DefenseFinder) |
--cctyper | CRISPR-Cas typing |
--genomad | Mobile genetic elements |
--domains LIST | Domain databases |
๐ Full reference: CLI Documentation
๐ Output
Hoodini generates a hoodini-viz/ folder with:
- Self-contained HTML viewer
- Newick tree
- TSV and Parquet data files
๐ See Outputs Guide for details.
๐ Learn More
| Resource | Description |
|---|---|
| ๐ Documentation | Full documentation |
| ๐ฎ Live Demo | Interactive examples |
| ๐ผ๏ธ Gallery | Real-world examples from publications |
| ๐งช Colab | Run in Google Colab |
| ๐ฆ hoodini-viz | Visualization library (npm) |
๐ Acknowledgments
Hoodini is inspired by excellent tools in the field:
- GCsnap โ Gene context visualization
- FlaGs โ Flanking genes analysis
- Taxonium โ Large trees visualization
- clinker โ Gene cluster comparison
- gggenes โ Gene arrow maps in R
- gggenomes โ Comparative genomics visualization
๐ Citation
[Citation pending publication]
๐ License
MIT License. See LICENSE file.