Parallel algorithms for phylogenetic inference under a structured coalescent approximation
Yucai ShaoiD, Marc A. SuchardiD, Andrew RambautiD, Xiang JiiD, Philippe LemeyiD, Tetyana I. VasylyevaiD, Guy BaeleiD
Abstract
While advances in molecular epidemiology and computational modeling have enhanced our capacity to track pathogen evolution, the accurate reconstruction of spatiotemporal transmission dynamics remains essential for developing epidemic preparedness frame-works and implementing outbreak response measures. Structured coalescent models offer a phylogeographic framework by restricting lineage coalescence events to geographically proximate host populations. Although the Bayesian structured coalescent approximation (BASTA) provides a tractable approach, contemporary phylogeographic analyses involving dozens of geographic localities and hundreds to thousands of viral genomes substantially exceed the computational capacity of existing implementations. The BASTA likelihood scales cubically with deme count and quadratically with sequence count due to matrix exponentiation and pairwise coalescent probability calculations. Here, we introduce a comprehensive algorithmic restructuring of the structured coalescent likelihood that eliminates redundancies, optimizes memory access, and exposes parallelization opportunities. Our approach reorganizes computations along three dimensions: (i) independent calculation of deme-transition probability matrices across time intervals; (ii) simultaneous evaluation of partial likelihood vectors within temporal slices; and (iii) concurrent aggregation of coalescent probabilities. Algorithmic restructuring cuts average coalescent likelihood computation by 7-8 fold, and parallelization further boosts performance to 10-26 fold, enabling joint phylogeographic analyses of dengue virus across 10 South American countries and H5N1 avian influenza across 20 Eurasian regions to finish in a fraction of prior time. This computational efficiency also enables comparison between backward-in-time structured coalescent approximations and forward-in-time phylogeographic methods, revealing that the former provides appropriately conservative posterior estimates, particularly at intermediate phylogenetic depths. We integrate our implementation into the popular BEAST X and BEAGLE software packages, with an accompanying interface in BEAUti X to easily set up the analyses, providing researchers with an accessible and scalable tool for real-time phylogeographic surveillance of rapidly evolving pathogens.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 2
- FWCI
- 4.10
- Field percentile
- top 9%
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Bayesian Inference of Pathogen Phylogeography using the Structured Coalescent Model
Ian Roberts, Richard G. Everitt, … Xavier Didelot·PLoS Computational BiologyPeer-reviewed·Apr 21, 2025
- The Structured Coalescent and its Approximations
N. F. Mueller, D. A. Rasmussen, T. Stadler·Molecular Biology and EvolutionPeer-reviewed·Nov 1, 2017
- Bayesian phylodynamic inference with complex models
Erik Volz, Igor A. Siveroni·PLoS Computational BiologyPeer-reviewed·Nov 13, 2018
- Delphy: scalable, near-real-time Bayesian phylogenetics for outbreaks
Patrick Varilly, Mark Schifferli, … Pardis Christine Sabeti·bioRxiv·Mar 25, 2025
- MASCOT: Parameter and state inference under the marginal structured coalescent approximation
N. F. Mueller, D. A. Rasmussen, T. Stadler·bioRxiv·Sep 13, 2017
- An efficient coalescent epoch model for Bayesian phylogenetic inference
Remco Bouckaert·Systematic BiologyPeer-reviewed·Feb 24, 2022