Skip to main content

install with bioconda

BranchManager

Microbial isolate assessment, marker-gene quality control, taxonomy, novelty analysis and whole-genome sequencing prioritisation.

BranchManager helps research groups manage isolate collections and make more consistent, evidence-based decisions about which isolates should progress to whole-genome sequencing (WGS).

It brings together Sanger chromatogram processing, marker-sequence assembly and QC, reference-based taxonomy, project-baseline comparisons, genome evidence and candidate-selection reports. It is designed to make the evidence behind a recommendation visible and reviewable—not to replace biological judgement.

Important: A sequence with no close database match is not automatically novel. Poor read quality, short alignment coverage, mixed templates, contamination, missing references and unresolved taxonomy can all produce apparently unusual results. BranchManager keeps these evidence types separate and flags cases requiring review.

Explore the interactive dashboard

Open the BranchManager interactive dashboard demo

The demonstration is generated by BranchManager's current write_performance_review_dashboard() reporting function and uses synthetic example records. It exercises the same dashboard sections and browser-side interactions as a real Performance Review report, including project overview, marker QC, taxonomic evidence, novelty comparisons, genome collection assessment, GTDB-based pangenome coverage, phylogeny figures and the searchable isolate explorer. No partner or project data are included.

GitHub README pages cannot run or embed the dashboard's JavaScript directly. The link above opens the full, scrollable dashboard hosted through GitHub Pages. The demo source files are also included in this repository.

What BranchManager does

Area What it provides
Sanger Studio A local browser interface for inspecting AB1/ABI chromatograms, organising reads, reviewing assemblies and processing batches. ZIP archives containing nested folders of chromatograms can be uploaded directly.
Mailroom and Interview Read inventory, sample-map preparation, chromatogram QC and resequencing triage.
Paper Trail Trimming, quality assessment, read orientation, multi-read overlap assembly and consensus generation.
Taxonomic classification Reference-based classification with identity, query coverage, reference coverage, supporting hits, assignment status and conflict reporting.
Novelty and baseline assessment Comparisons against project baselines and configured external references, with explicit evidence and limitations.
Pangenome assessment GTDB-derived taxonomic grouping, genome representation and target-gap reporting where the necessary evidence is available.
Genome evidence Import and integration of genome-derived 16S and genome QC/taxonomy evidence.
Selection and reporting Candidate panels, primary/backup recommendations, quarterly review outputs and interactive HTML reporting.
Project profiles Reusable JSON configuration for collection-specific paths, references, baselines and workflow defaults.

BranchManager supports a staged workflow as well as the integrated assistant command. You can run individual stages when you need to inspect or repeat a particular part of the process.

Installation

BranchManager requires Python 3.12 or newer.

1. Create a Conda environment

Install Miniforge if you do not already have Conda. Then open a terminal (or Anaconda Prompt on Windows):

conda create -n branchmanager python=3.12 -y
conda activate branchmanager

2. Install the core command-line dependencies

The production preflight checks require Biopython, VSEARCH, MAFFT and a tree builder. A convenient Conda installation is:

conda install -c conda-forge biopython vsearch mafft fasttree -y

3. Install BranchManager

After the v1.0.0 release has been published to PyPI:

python -m pip install --upgrade BranchManager

The editable installation is intended for development and testing. It installs the package from the checked-out source tree.

4. Check the installation

branchmanager --version
branchmanager --help

See Installation and dependencies for optional tools, external references and troubleshooting.

Quick start

Open Sanger Studio

conda activate branchmanager
branchmanager sanger-studio

Sanger Studio starts a local web server and opens the interface in your browser. It does not require input or output paths at startup.

You can select individual AB1/ABI files, choose an input directory, load a sample map, or upload a ZIP archive containing chromatograms. ZIP archives can contain nested directories; Sanger Studio searches them for .ab1 and .abi files.

For a full guide, see Sanger Studio.

Run the preflight checks

Before a production analysis, check the installation and project inputs:

branchmanager it-desk -o preflight_check

The checks report the availability of required Python modules and external executables. You can also provide project database, reference and output paths to check those inputs.

Run the integrated workflow

The assistant command is the standard end-to-end route for a partner submission. A typical run uses a sample map, partner metadata, project database, dataset label, reference database and output directory:

branchmanager assistant \
  --sample-map ab1_mapping.tsv \
  --partner-metadata partner_metadata.tsv \
  --db project.db \
  --dataset Batch_01 \
  --ref gtdb_ssu_representatives.fna.gz \
  --threads 8 \
  -o runs/Batch_01

This is an illustrative command, not a complete project configuration. Real runs will usually also specify baseline datasets, chimera-screening references, taxonomy cross-checks, a Most Wanted List (MWL), and other collection-specific settings. Use a project profile to avoid repeating long sets of options.

See Workflows and CLI commands and Project configuration.

The main workflow stages

Command Purpose
mailroom Inventory Sanger reads and prepare a validated read/sample map.
interview Run standalone chromatogram QC and resequencing triage.
onboarding Validate partner metadata and isolate identifiers.
paper-trail Process reads, assess quality and assemble marker sequences.
filing-cabinet Register baseline sequences and construct the reference backbone.
performance-review Classify marker sequences, assess novelty and update project evidence.
quarterly-review Select a budgeted tranche of candidates from the project collection.
status-meeting / records-update Import factual isolate and genome lifecycle information.
annual-report Produce cumulative project reporting.
dashboard Regenerate the interactive HTML dashboard from an existing run output directory.
assistant Orchestrate the main submission-to-assessment workflow.

Other commands support genome evidence imports, focused tree extraction, iTOL annotation, marker review, MALDI metadata and project maintenance.

To regenerate the interactive dashboard from an existing run without repeating the biological analyses:

branchmanager dashboard /path/to/run_output

You can also provide the run's assessment/ directory directly. The command writes performance_review_dashboard.html into the run output directory. See Workflows and CLI commands for input requirements and details. Run branchmanager --help for the command list available in the installed version.

How taxonomy and pangenome grouping work

BranchManager deliberately separates the partner's expected organism group from sequence-derived taxonomic evidence.

  • The partner catalogue's taxon field is used for domain/pathway routing (for example, Bacteria or Archaea).
  • GTDB/reference taxonomy supplies the authoritative lineage used for pangenome grouping.
  • A missing or unresolved GTDB assignment remains unresolved; another classifier is not silently substituted as the pangenome authority.
  • The grouping rank follows the supported GTDB resolution. A reliable genus assignment does not have to be forced to species.
  • Pangenome eligibility also depends on the required reference-genome and tree context. Being routed through the bacterial workflow does not automatically make an isolate pangenome-eligible.

This distinction is important: a partner declaration of bacteria must not merge unrelated bacterial genera into one pangenome group.

Read Taxonomy and pangenome interpretation before interpreting selection or gap reports.

Project data and references

BranchManager is a workflow and decision-support toolkit; it does not provide a universal, automatically current collection of taxonomic references or project baselines.

A project should maintain and record the versions and provenance of its own:

  • Reference FASTA files and associated taxonomy tables.
  • Cultured-isolate baseline FASTA files.
  • Partner metadata and isolate catalogue.
  • Genome assemblies and genome QC/taxonomy results.
  • Collection-specific anchors, where required.
  • Selection targets, thresholds and review decisions.

The repository includes example configuration files and templates. The Rumen Gateway profile is an example of a configured project, not a universal configuration for every collection.

Documentation

Guide Contents
Installation and dependencies Conda, Python, required executables and preflight checks.
Sanger Studio AB1/ABI input, ZIP uploads, sample maps, chromatogram review and QC.
Workflows and CLI commands Staged analysis, Assistant, cohort runs and project lifecycle.
Taxonomy and pangenome GTDB authority, domain routing, rank resolution and eligibility.
Outputs and interpretation Evidence fields, reports, novelty and recommendation caveats.
Collection profiles and validation Profile design, scope and scientific benchmarking.
Development guide Source layout, tests and development checks.
Configuration files Project and Assistant profiles.
Examples and templates Example metadata, benchmark labels and helper scripts.
Source package Internal package structure.
Tests Test organisation and how to run tests.

Scientific interpretation and limitations

BranchManager produces structured evidence and candidate recommendations. These should be reviewed alongside the underlying sequence data, metadata and biological context.

In particular:

  1. Identity is calculated over the aligned segment; it does not describe how much of the query or reference aligned.
  2. Query coverage and reference coverage must be considered separately.
  3. Taxonomic consensus and classifier confidence are not interchangeable with alignment identity.
  4. Novelty is relative to the configured project baselines and evidence sources; it is not a declaration of a new species.
  5. A pangenome gap is only meaningful when the relevant GTDB taxon and reference context are resolved.
  6. Recommendations are decision support. They do not replace isolate verification, genome QC, taxonomic review or experimental validation.

For details, see Outputs and interpretation.

License

BranchManager is distributed under the GNU General Public License v3.0. See LICENSE.

Metadata

Release files for BranchManager 1.0.0

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

Source distribution (sdist)

Source distribution for BranchManager 1.0.0
File Size Uploaded Provenance Actions
branchmanager-1.0.0.tar.gz 873.5 kB Without provenance Details for branchmanager-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.7 MB

Release files / branchmanager-1.0.0.tar.gz

Download URL branchmanager-1.0.0.tar.gz
Size 873.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b086d590f965c96a70a23d6c328f4fd0099b2cf85470c80f5e7ae90f32f8ddd0
BLAKE2b-256 checksum
How to use checksums
220fee3810eaddd8f8f54506be2fbbdbdd3e922492dc19e357bf32fe0ffb2c32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / branchmanager-1.0.0-py3-none-any.whl

Download URL branchmanager-1.0.0-py3-none-any.whl
Size 787.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f1785104fcf592c53856e6dcbcca93b9e16abe2a2038ffeda6d14009300436f
BLAKE2b-256 checksum
How to use checksums
82bcef5d16aa35a4ee3e17bf0a2a703aed03a2005172b9dc270749e7d6276474
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for BranchManager 1.0.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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