Detection of local recombination and mutation hotspots in bacterial genomes using neural posterior estimation
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.
토론
즐겨찾기
즐겨찾기에 추가이 글 팔로우하기
누군가 댓글을 달면 메일로 알려 드려요. 계정은 필요 없어요.
뉴스레터
바이오테크의 모든 소식을 놓치지 않도록 무료 뉴스레터를 구독해 보세요.