Detection of local recombination and mutation hotspots in bacterial genomes using neural posterior estimation
Abstract
Motivation: Recombination and mutation rates in bacteria vary along the genome, and regions of elevated rate (hotspots) often reflect selection on specific genes. Detecting them is difficult because the two processes leave overlapping signals in sequence data, clonal relationships act as a confounder, and inference must scale to whole genomes. Existing methods assume a constant mutation rate and/or rely on a small set of summary statistics. Results: We present a simulation-based framework that infers gene-specific recombination and mutation rates under a well-specified model of bacterial recombination. Neural posterior estimation (NPE) is trained on simulations conditioned on a fixed clonal genealogy, using a wide range of summary statistics. Gene length is also used as both a parameter and an observed statistic, so that the model learns about its effect on other statistics and thus becomes applicable across different gene lengths. To identify hotspots, we introduce a circular posterior-propagated Difference-of-Gaussians detector that contrasts local and regional smoothers of the posterior log rates, carrying NPE uncertainty into hotspot probabilities. On simulated data, the method recovers the true rates, with credible intervals that narrow as gene length increases. We also apply the new methodology to three real datasets in Bacillus cereus, Staphylococcus aureus and Escherichia coli to showcase its usefulness in a range of situations. Availability and implementation: The Python implementation is freely available from https://github.com/haochu-liu/bacnpe.
Create a lesson
Related papers
From Genomes to Algorithms: Neural Network Applications for Palimpsest Detection in Medieval Manuscripts
Shared title terminologyq-bio.GNJames B. Harr, Madelin E. Blong, Tessa Gadomski et al.
Democratizing Clinical Tumor Whole Genome Sequencing: 18-hour End-to-end Analysis via Trillion-parameter Large Language Models Locally Deployed on Consumer-grade Hardware
Shared title terminologyq-bio.GNRui Xiao, Yili Xu
LeCellModel: Interpretable Density Estimation over the Gene Expression Manifold
Shared title terminologyq-bio.GNGil Karin, Artemii Bakulin, Nir Yosef
Deep learning-guided discovery reveals the diversity and mutational potential of environmental beta-lactamases
Shared title terminologyq-bio.GNLiangjun Ge, Qiandi Gao, Haiming Xu et al.
Visualization and Characterization of Gene Group Distribution Patterns Across Genomes
Shared title terminologyq-bio.GNYanying Wu
Evolutionary characterization of whole-genome doubling across human cancers
Shared title terminologyq-bio.GNYangyang Zhang, Haiming Li, Xiaoyu Zhao et al.