NG-MAST/NG-STAR Mastery: ngmaster v2.0.0 Unleashed with database overhaul
ngmaster v2.0.0
⚠️ Breaking change: this release is not backward compatible with v1.x due to database schema changes.
Breaking Changes
--updatedbnow requires authenticated PubMLST access viamlstdb. Runmlstdb connect -d pubmlstonce to register your credentials before using--updatedb. Unauthenticated access is still possible but will only provide data up to 2024-12-31 due to PubMLST licensing restrictions.mlst >= 2.25.0is now required. Older versions ofmlstwill silently miss alleles in large databases.- Output schema change: a new
CC(clonal complex) column is now included in all output formats. Scripts parsing ngmaster output by column index will need updating.
Bug Fixes
- Fixes #37: NG-STAR typing failed when >1 23S alleles were detected. Duplicate 23S alleles are now collapsed before typing.
- Fixes #38:
--updatedbcrashed withConnectionResetError(104, 'Connection reset by peer'). Resolved by migrating tomlstdbfor robust, session-managed API access to PubMLST. - Fixes missed allele detections in large BLAST databases — requires
mlst >= 2.25.0(upstream fix).
New Features
--versionnow reports both the tool version and the bundled database version.CC(clonal complex) column added to output from the updated NG-STAR scheme.--commentsflag includes per-allele NG-STAR annotation comments in output.--threads N(default:1, recommended:4) parallelises:- Allele fetching during
--updatedb(limits simultaneous connections to PubMLST) mlstsubprocess execution during typing
- Allele fetching during
- Default
--dbpath shown in--helpfor easier debugging of custom database setups. - Updated
README.mdwith new features, and database update instructions.
Database
The bundled database is the last freely redistributable snapshot of the PubMLST NG-MAST/NG-STAR schemes (up to 2024-12-31). Per the PubMLST terms and conditions, content after this date cannot be redistributed without appropriate licensing. Use ngmaster --updatedb with authenticated mlstdb credentials to get the latest alleles.
Development
- Added pixi.toml + pixi.lock for fast, reproducible contributor environments (
pixi installsets up the full stack includingmlstfrom bioconda). - Removed Pipfile,
deploy.sh, and redundantpublsh.ymlworkflow. User-Agentheader in PubMLST API requests now identifies asngmaster v2.0.0.
Upgrade notes
# Install/upgrade
pip install ngmaster==2.0.0 # or: conda install -c bioconda ngmaster=2.0.0
# One-time authentication setup for --updatedb
mlstdb connect -d pubmlst
# Update to latest alleles
ngmaster --updatedb --threads 4Changelog
Full Changelog: v1.1.1...v2.0.0