Skip to content
Open access

Accurate detection of metagenomic strain-level associations using average nucleotide identity with StrainSpy

Oct 2026 · bioRxiv · 0 citations · 62 references
Biology

TL;DR

StrainSpy, a statistical algorithm that jointly captures strain variations and replacement across longitudinal and multi-cohort studies without predefined thresholds, and machine learning models built on StrainSpy-selected features matched the predictive accuracy of abundance-based approaches, whilst avoiding the confounding effects of microbial load.

Abstract

Genetic variation among microbial strains of the same species can profoundly influence their phenotypes, ecological functions, and impacts on human health. Traditionally, the relative abundance of a species has been used to identify associations between the microbiome and disease. However, this approach overlooks intra-species genetic variation and is susceptible to spurious correlations arising from the compositional nature of abundance data and microbial load. Fast, k-mer-based algorithms can now accurately estimate strain-level Average Nucleotide Identity (ANI) in metagenomes. Despite its value as an orthogonal metric for strain-level analysis, existing ANI association methods are limited to case-control designs and rely on arbitrary identity thresholds. To address this, we developed StrainSpy, a statistical algorithm that jointly captures strain variations and replacement across longitudinal and multi-cohort studies without predefined thresholds. In simulations, StrainSpy achieved >98% sensitivity versus 79% for comparable approaches at similar specificity. Analysis of a longitudinal antibiotic study in 12 healthy adults revealed novel strain-level associations across multiple species, including reduced strain-level diversity despite persistence of the species, and showed that a previously reported association with E. coli was driven by reduced microbial load. Across 3,414 metagenomes from 17 colorectal cancer cohorts, StrainSpy identified novel strain-level associations in E. coli accompanied by enrichment of adhesin genes in addition to recovering well established associations. Importantly, machine learning models built on StrainSpy-selected features matched the predictive accuracy of abundance-based approaches, whilst avoiding the confounding effects of microbial load. StrainSpy is available as an R package at github.com/gtonkinhill/strainspy.

Read PDF

Similar papers

Open access Sep 2026

Genome-resolved ecology and evolution of the microbiome enabled by quantitative long-read metagenomics

Standard metagenomics resolves microbial communities only in relative terms and at coarse taxonomic resolution, obscuring how individual strains change in absolute abundance and evolve within a host1–6. We present long-read quantiomics (LRQ), a quantitative metagenomics platform coupling long-read sequencing with plasm...

M. O. Din, C. Brennan, Jian-Shu Zhao et al. · 0 citations
Open access Oct 2026

THRESHER: A tool for evidence-based, phylogeny-corrected SNP thresholds for whole genome molecular epidemiology

Whole-genome sequencing (WGS) is the gold standard for bacterial pathogen surveillance, where transmission is commonly inferred by calculating pairwise single nucleotide polymorphisms (SNPs) and applying a fixed threshold below which two genomes are considered the ''same'' strain. Such cutoffs are largely arbitrary. Th...

Qian-Xuan She, A. Feder, E. Theiller et al. · 0 citations
Open access Sep 2026

Metax enables accurate cross-domain taxonomic profiling of metagenomes.

This broad evaluation demonstrated that Metax resolved bacterial and viral signatures of peri-implantitis in oral microbiomes and revealed signals suggestive of reagent-borne contaminants and reference misassemblies in plasma-cell-free DNA.

Zhi-Luo Deng, Nasim Safaei, A. McHardy · 0 citations
Open access Sep 2026

299. Microbiome Analysis as a Tool to Investigate Gut Health: Methodological Considerations.

Molecular tools are used to assess intestinal microbiota, with next-generation sequencing (16S rRNA gene or DNA shotgun sequencing) being the most applied methods in research. These untargeted methods are particularly useful for discovering new bacterial taxa and identifying broad microbial changes associated with di...

J. Suchodolski · 0 citations
Open access Sep 2026

Mind the Gaps: Validating species presence under sparse genomic recovery in clinical metagenomics

1Clinical metagenomic sequencing is increasingly used to detect pathogens directly from clinical samples, but sparse and uneven genome recovery caused by low microbial biomass and stochastic fragment loss makes species-level validation difficult. Under these conditions, the same observed coverage may arise either from...

M. Behruznia, F. Silva-Toro, D. A. Márquez · 0 citations
Open access Sep 2026

The core microbiome as a reproducible, data-driven abstraction, not a biological entity

Microbial communities are highly diverse, making it difficult to distinguish stable ecological patterns from stochastic variation. The core microbiome offers a widely used framework for simplification, but prevalence-based definitions are often criticized for relying on arbitrary thresholds. We propose an alternative v...

Camilo Quiroga-González, L. Prada-Salcedo, K. Goldmann · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.