Skip to main content

PhageMine: Bacteriophage Genome Annotation and Comparative Genomics

CI install with bioconda DOI License: MIT

PhageMine is an open-source bioinformatics pipeline for bacteriophage genome annotation, functional evidence integration and comparative genomics. It combines phage-focused gene prediction with protein sequence and profile searches, links functional assignments to their supporting evidence, and produces annotated sequences, evidence tables and an HTML report.

PhageMine uses PHANOTATE for protein-coding gene prediction; PHROGs, VOGDB, Pfam and Swiss-Prot for functional evidence; and INPHARED references for comparative genomic context. It is designed for researchers working in phage genomics, bacteriophage genome annotation, viral genomics and related bioinformatics workflows.

Project website: PhageMine.

What it does

  • Predicts protein-coding genes with PHANOTATE.
  • Uses PHROGs, VOGDB, Pfam and Swiss-Prot to assess protein function.
  • Reports supporting evidence, conflicting assignments and unknown functions.
  • Processes individual genomes or genome collections.
  • Groups related proteins into families and compares genomes with INPHARED references.
  • Exports GFF3, protein FASTA and GenBank preparation files.

Install

The current stable release is v1.4.1. Python 3.10 or later is required.

Install from Bioconda, which brings the external analysis tools with it:

conda create --name phagemine --channel conda-forge --channel bioconda phagemine
conda activate phagemine
phagemine doctor

Or from PyPI, with the external tools installed separately:

pip install phagemine

To install from source instead:

git clone --branch v1.4.1 --depth 1 https://github.com/emmannaemeka/PhageMine.git
cd PhageMine
conda env create --file environment.yml
conda activate phagemine
python -m pip install .
phagemine doctor

Install the databases before running functional annotation:

phagemine databases install --all

This installs PHROGs, Swiss-Prot, Pfam and VOGDB, plus PMFDB and INPHARED comparative references. Prepared databases require additional disk space beyond the download sizes.

See the installation guide for platform requirements and troubleshooting. The GUI is included in the normal installation:

phagemine-gui

Your default browser opens when the local server is ready. Keep the terminal open while using the interface. See the GUI guide.

Install on Windows with WSL

You can use PhageMine on a Windows computer through WSL, which runs Ubuntu underneath. The GUI opens in your normal Windows browser. The full pipeline is not currently supported on native Windows; run the installation and analysis commands inside Ubuntu, not PowerShell or Windows Command Prompt.

  1. Open PowerShell as Administrator and install Ubuntu through WSL:

    wsl --install -d Ubuntu
    

    Restart Windows if prompted, then open Ubuntu from the Start menu and create your Linux username and password. See Microsoft's WSL installation guide.

  2. In the Ubuntu terminal, install Git and Miniforge. Skip the Miniforge download and installation if Conda is already installed inside Ubuntu:

    sudo apt update
    sudo apt install -y git curl ca-certificates
    curl -fL "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-$(uname -m).sh" -o /tmp/miniforge.sh
    bash /tmp/miniforge.sh -b -p "$HOME/miniforge3"
    source "$HOME/miniforge3/etc/profile.d/conda.sh"
    conda init bash
    

    Use Linux Conda inside Ubuntu, even if you already have Conda on Windows. The installer above selects your Linux CPU architecture; availability of PhageMine's external packages still depends on that architecture.

  3. Install the current GitHub version and its dependencies inside Ubuntu:

    cd ~
    git clone https://github.com/emmannaemeka/PhageMine.git
    cd PhageMine
    conda env create --file environment.yml
    conda activate phagemine
    python -m pip install .
    phagemine doctor
    phagemine databases install --all
    phagemine doctor --deep
    

    Ensure the required tools and evidence resources report ready before using them. Database preparation needs additional disk space beyond the downloads; keep at least 15–20 GiB free for the complete setup.

  4. Start the GUI from the same Ubuntu terminal:

    phagemine-gui
    

    If WSL does not open your Windows browser automatically, open http://localhost:8501 manually. Use the port printed by the launcher if it selects a different one. Keep the Ubuntu terminal open while using the GUI; press Ctrl+C to stop it.

For later sessions, open Ubuntu and run conda activate phagemine, followed by phagemine-gui. Windows files are accessible under /mnt/c/; keeping large analysis inputs and results in your Ubuntu home directory avoids cross-filesystem I/O overhead. WSL-specific end-to-end testing is not part of the current CI matrix.

Annotate a genome

Supply a single-genome nucleotide FASTA file:

phagemine run genome.fasta --output results/genome --threads 8

Open results/genome/report.html to browse the results. The output directory also contains annotation.tsv, genes.gff3, proteins.faa and supporting evidence files.

To check the installation with the bundled example:

phagemine run examples/demo_phage.fasta --output results/example

Installed databases are detected automatically. Without them, the example checks gene prediction and report generation; functional evidence is unavailable.

Run phagemine --help for all commands and phagemine run --help for annotation options.

Reading the results

Product names describe the function supported by the available evidence. Proteins without a supported function remain hypothetical or are identified as conserved proteins of unknown function. Gene symbols, protein products and locus identifiers are reported separately.

PhageMine is research software. Functional predictions require review, and confidence labels describe evidence strength rather than calibrated probabilities. See the limitations for interpretation.

For coding-capacity, short-CDS, alternative-code evidence and optional annotated reference checks, see the annotation reliability guide.

Citation and support

Citation information is available in CITATION.cff and the archived release.

Report bugs or request features through GitHub Issues. PhageMine is distributed under the MIT licence.

GenBank flat-file output

Each generated submission package includes genbank_submission/genome.gbk, with the genome sequence, gene/CDS features, supported product names and protein translations. It is generated without table2asn and refreshed when RNA annotations are attached. Submission readiness still depends on the separate validation report.

Important outputs

  • genbank_submission/genome.gbk: annotated GenBank sequence with gene/CDS features, supported products and translations.
  • final_gene_models.tsv: final coordinates, strands, CDS sequences and translations for consistency checks.
  • annotation.tsv, functional_classification.tsv, genes.gff3, proteins.faa, cds.fna, and report.html: annotation tables, sequences and review report.

To export a known topology, supply "topology": "linear" or "topology": "circular" in --metadata. Use source evidence for this value; unknown topology remains unknown. Full accession IDs are retained even when a compact LOCUS label is required.

Metadata

Release files for phagemine 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phagemine 1.4.1
File Size Uploaded Provenance Actions
phagemine-1.4.1.tar.gz 965.8 kB With provenance Details for phagemine-1.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for phagemine 1.4.1
File Interpreter ABI Platform Actions
phagemine-1.4.1-py3-none-any.whl Python 3 none any Details for phagemine-1.4.1-py3-none-any.whl

Total release size: 1.3 MB

Release files / phagemine-1.4.1.tar.gz

Download URL phagemine-1.4.1.tar.gz
Size 965.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3c868248b52069cac85a4e606359e75de657c1445797d34d0ebb0454756841ad
BLAKE2b-256 checksum
How to use checksums
ef39b1eacf40207013bab65b7383c8ef1a3e617e11a10dab207a2d1bd4e374eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / phagemine-1.4.1-py3-none-any.whl

Download URL phagemine-1.4.1-py3-none-any.whl
Size 329.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aca837b1d883f44d730b7e963f149b765be5ac8166ba2fdd05260a7ce429dfea
BLAKE2b-256 checksum
How to use checksums
89d2c8b833b51a25342c9a64210b6fc4b68e8580cd34d15be52d51e4dba3762b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for phagemine 1.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for phagemine-1.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page