PhageMine: Bacteriophage Genome Annotation and Comparative Genomics
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.0. 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.0 --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.
-
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.
-
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.
-
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.
-
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.
Older exports could replace computational product names with hypothetical protein. Current exports preserve supported computational annotations; update PhageMine and regenerate old packages to apply this correction. Unsupported and mock annotations remain hypothetical.
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, andreport.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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phagemine-1.4.0.tar.gz | 907.0 kB | With provenance | Details for phagemine-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phagemine-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for phagemine-1.4.0-py3-none-any.whl |
Total release size: 1.2 MB
Release files / phagemine-1.4.0.tar.gz
| Download URL | phagemine-1.4.0.tar.gz |
|---|---|
| Size | 907.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef194c66b58735a3f7d1f0c1140001be58ac616b998871b13663887d59bc4d10
|
|
BLAKE2b-256 checksum How to use checksums |
7f5b9fa448a1f699ffe1d899f9954fde5d4397bf45011a84b8c2e84b577e60a8
|
| 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 13, 2026.
Transparency logRelease files / phagemine-1.4.0-py3-none-any.whl
| Download URL | phagemine-1.4.0-py3-none-any.whl |
|---|---|
| Size | 287.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d125a697ea331db23410112106de4e171902ac87788fe6fae01929a7bba9551
|
|
BLAKE2b-256 checksum How to use checksums |
7838a9ca7804845159b26d3c40210b114dd04b17c636b70dffd02a203f289a99
|
| 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 13, 2026.
Transparency logSecurity for phagemine 1.4.0
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.
Attestation for phagemine-1.4.0.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 13, 2026.
Transparency logA 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.