SNP2Cluster-Py: A pathogen-agnostic, context-aware framework for Core SNP and transmission-cluster analysis
S. Kwenda, A. Christoffels
Key points
From the paper's conclusion- We developed SNP2Cluster-Py, an open-source Python framework that separates context-aware Core SNP clustering from the subsequent application of epidemiological and temporal criteria.
Abstract
Whole-genome sequencing enables high-resolution identification of genetically related pathogen isolates, but genomic similarity alone does not establish epidemiologically meaningful transmission. We developed SNP2Cluster-Py, an open-source Python framework that separates context-aware Core SNP clustering from the subsequent application of epidemiological and temporal criteria. The software accepts a precomputed pairwise Core SNP-distance matrix and user-configured metadata and supports analysis of all eligible isolates in a single context, as well as sequence-type, geographical, epidemiological and ordered composite contexts. Within each context, authoritative Core clusters are defined as connected components of an SNP-threshold graph; K-means assignments and silhouette widths are retained as exploratory diagnostics only. We evaluated the workflow using 172 Klebsiella pneumoniae isolates from six neonatal-surveillance hospitals in South Africa, a focused 36-isolate single-hospital subset from the same surveillance dataset, and 168 Streptococcus pneumoniae carriage isolates from Ghana. In the full K. pneumoniae dataset, ST-only analysis assigned 141 isolates to Core SNP clusters, whereas Facility + ST analysis assigned 134, demonstrating how facility stratification can remove cross-facility genomic connections. In the single-hospital subset, both contexts assigned 30 of 36 isolates to five Core clusters, and Facility analysis retained 23 isolates in four temporally compatible clusters. In the pneumococcal dataset, ST-context analysis assigned 114 isolates to 38 Core clusters, which were characterised across sampling locations and time through Community analysis. SNP2Cluster-Py therefore provides a reproducible framework for adapting genomic clustering to specific surveillance questions while maintaining a clear distinction between genomic relatedness, analytically inferred transmission clusters and confirmed direct transmission. SNP2Cluster-Py v1.1.2 is available under the Apache License 2.0 through GitHub and Zenodo.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- THRESHER: A tool for evidence-based, phylogeny-corrected SNP thresholds for whole genome molecular epidemiology.medRxiv : the preprint server for health sciences · 2026
- Strain-level transmission inference across multi-kingdom metagenomic data using TRACSNature Microbiology · 2026
- A Computational Protocol for Enhanced Characterization of Sequence Differences Among Salmonella enterica Isolates within SNP Clusters Identified in the NCBI Pathogen Detection SystemJournal of Food Protection · 2026
- Phylogenetic inconsistency of pairwise SNP clustering for inferring tuberculosis transmission in a high-burden, endemic setting: a case study from Thailand.mSystems · 2026
- Core Genome Multi-Locus Sequence Typing Analyses of Leptospira spp. Using the Bacterial Isolate Genome Sequence Database.Methods in molecular biology (Clifton, N.J.) · 2026
- Sampling composition and sequencing effort in the detection of within-hospital Gram-negative genomic clustering: a prospective observational study at two tertiary-care hospitalsmedRxiv · 2026