KuafuPrimer: Machine learning empowers the design of 16S amplicon sequencing primers toward minimal bias for bacterial communities
Haoyu ZhangiD, Xiaoqing JiangiD, Xiongwu YuiD, Hongyi WangiD, Ping LuiD, Jiaheng HouiD, Qian GuoiD, Tingting Xiao, Shufang WuiD, Hengchuang YiniD, Peter X. GengiD, Jinyuan GuoiD, Alexandre JoussetiD, Zhong WeiiD, Yonghong Xiao, Huaiqiu ZhuiD
Abstract
Amplicon sequencing protocol targeting the 16S rRNA gene is a widely used and cost-effective method for exploring bacterial communities. However, its performance is often limited by primer bias arising from the arbitrary use of universal primers across diverse microbial communities and habitats. We propose KuafuPrimer to design the optimal 16S rRNA gene primers toward minimal bias for targeted bacterial communities, using few-shot machine learning to guide the primer design procedure based on a small number of samples. Simulations on 809 samples across 26 representative environments and habitats showed that KuafuPrimer-designed primers outperformed the universal primers in taxonomic accuracy, achieving an averaged 16.31% relative reduction in primer bias, with reductions up to 46.08% in plant samples. Notably, KuafuPrimer detected 29 rare and key taxa undetectable by the universal primers. Validation with 317 longitudinal gut microbiota samples demonstrated that KuafuPrimer-designed primers consistently outperformed the universal primers across temporal, individual, and cohort levels, with relative bias reductions of 5.03%, 3.53%, and 3.10%, respectively. Finally, in real PCR experiments on human gut samples from Clostridioides difficile-infected and healthy groups showed that polymerase chain reaction products using KuafuPrimer-designed primers correlated better with metagenomic data compared to the universal primers. More importantly, KuafuPrimer successfully detected Clostridioides difficile, the key pathogen missed by the universal primers, highlighting its potential for improving clinical diagnostics. In summary, KuafuPrimer provides a machine learning-based primer design strategy for targeted bacterial communities, with demonstrated utility in large-scale microbiome initiatives, longitudinal surveys and clinical diagnostics.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Organism
- Assay
- 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
- AmPair: automating housekeeping-gene primer design for species-level metataxonomics
Xinming Xu, Xinbin Yang·bioRxiv·Sep 1, 2026
- Comprehensive single-PCR 16S and 18S rRNA community analysis validated with mock communities and denoising algorithms
Y.-C. Yeh, J. C. McNichol, … J. A. Fuhrman·bioRxiv·Dec 6, 2019
- PUPpy: a primer design pipeline for substrain-level microbial detection and absolute quantification.
H. Ghezzi, M. Y. Fan, … C. Tropini·bioRxiv·Dec 18, 2023
- A novel long-amplicon rpoB primer pair for high resolution microbiome analysis at the species-level
Marc Venbrux, Sam Crauwels, Hans Rediers·bioRxiv·May 17, 2026
- Enhanced specificity of Bacillus metataxonomics using a tuf-targeted amplicon sequencing approach
X. Xu, L. J. D. Nielsen, … A. T. Kovacs·bioRxiv·May 28, 2023
- MicrobiomePrime: A primer pair selection tool for microbial source tracking validated on a comprehensive collection of animal gut and fecal waste microbiomes
Tanja Žlender, Lucija Brezočnik, … Maja Rupnik·Water ResearchPeer-reviewed·Nov 20, 2025