Accelerating Metagenomics-Based Pathogen Surveillance with Agentic Algorithm Optimization

Metagenomic next-generation sequencing (mNGS) enables threat-agnostic detection of known, divergent, and novel pathogens, yet its widespread adoption for clinical and public health surveillance is constrained in part by the computational cost and latency of bioinformatic analysis. Accelerating the heavily hand-tuned tools at the core of mNGS analysis pipelines has traditionally required scarce low-level systems expertise. Here, we use large language models embedded in agentic harnesses to accelerate three cornerstone tools used for pathogen surveillance: DIAMOND for translated sequence alignment, Flye for de novo long-read assembly, and minimap2 for nucleotide alignment. Output-invariant optimizations reduced DIAMOND wall-clock runtime on short-read datasets by a mean of 60.2% in --fast mode with byte-identical outputs, and reduced mean Flye wall-clock runtime by 11.2% with assembly quality indistinguishable from baseline run-to-run variation. Combined with three optimizations discovered through evolutionary search, DIAMOND long-read mean runtime decreased by up to 62.7% relative to the original implementation in --fast mode, while preserving concordant top alignments for a mean of 99.4% of reads. Additionally, evolutionary search discovered an adaptive anchor-pruning heuristic for minimap2 that reduced mean wall-clock runtime on held-out PacBio HiFi and ONT R10.4.1 metagenomic datasets by 9.6-15.6% and 5.4-9.3%, respectively, while preserving the primary mapping location of confidently mapped reads (99.5-99.6% for HiFi; 98.5-99.3% for ONT across index chunk sizes). All proposed code changes have been merged into their upstream repositories, making these contributions available to existing surveillance pipelines. We release our prompts, configurations, and guidelines for contributors and maintainers, and call on the community to pursue an order-of-magnitude reduction in the computational burden of mNGS-based pathogen surveillance.

Link
https://doi.org/10.64898/2026.12.02.770816
Found by
Crossref
Authors
Preston L.J. Lim, Benjamin K. Reddy, Jack Mason, Alexander I. Cowen-Rivers, Benjamin J. Buchfink, Po-Sen Huang, Anna Koivuniemi, Mikhail Kolmogorov, Agata Laydon, Brian Merritt, Pavel Pevzner, Stanley Ta, Peter Thielen, Ngân Vũ, Lai Hong Wong, Pushmeet Kohli, Jeremy Ratcliff
Organizations
Google DeepMind, London, UK;, Independent;, Cancer Data Science Laboratory, Center for Cancer Research, National Cancer Institute, National Institutes of Health, Bethesda, MD, USA;, Johns Hopkins University Applied Physics Laboratory, Laurel, MD, USA;, Department of Computer Science and Engineering, University of California San Diego, La Jolla, CA, USA
Categories
dataset
Published
2026-12-03
Last seen by the radar
2026-12-04
Citations
0
Radar score
34.39 / 100 (how it is scored)
Why it scored so
Matched: dataset; Primary record: Crossref
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Crossref