BaGPipe: an automated, reproducible, and flexible pipeline for bacterial genome-wide association studies
Microbial genome-wide association studies (GWAS) are crucial for linking genetic variation to phenotypic traits in bacteria. However, current tools often involve complex manual processing, limited scalability, and fragmented workflows, which constrain large-scale or routine bacterial GWAS. We developed BaGPipe, an automated and flexible bacterial GWAS pipeline built using Nextflow and incorporating Pyseer for association analysis. BaGPipe integrates pre-processing, statistical analysis, and downstream visualisation into a unified workflow that is reproducible and easy to deploy across diverse computational environments. BaGPipe was validated on a publicly available dataset of Streptococcus pneumoniae whole-genome sequences, and reproduced published findings with improved computational efficiency. BaGPipe was then applied to a dataset of Staphylococcus aureus whole-genome sequences, successfully identifying known and novel antibiotic resistance associations. By offering an accessible, efficient, and reproducible platform, BaGPipe accelerates bacterial GWAS and facilitates deeper exploration into the genetic underpinnings of phenotypic traits. BaGPipe is freely available at https://github.com/sanger-pathogens/BaGPipe.
Authors
- William Roberts-Sengier
- Sharon J. Peacock (ORCID: https://orcid.org/0000-0002-1718-2782)
- J. Toussaint
- Beth Blane (ORCID: https://orcid.org/0000-0002-0996-9091)
- Dinesh Aggarwal (ORCID: https://orcid.org/0000-0002-5938-8172)
- Ewan M. Harrison (ORCID: https://orcid.org/0000-0003-2720-0507)
- M. Estee Torok
- Sandra Reuter (ORCID: https://orcid.org/0000-0003-1672-5789)
- Kuangyi Charles Wei
- Michelle S. Toleman
Institutions
- European Bioinformatics Institute (GB)
- University of Freiburg (DE)
- University of Cambridge (GB)
- University Medical Center Freiburg (DE)
- Cambridge University Hospitals NHS Foundation Trust (GB)
- Wellcome Sanger Institute (GB)
- Imperial College London (GB)
Publication Details
- Journal
- BMC Microbiology
- Published
- 2026-03-27
- DOI
- https://doi.org/10.1186/s12866-026-04909-9
- Primary Topic
- Gut microbiota and health
- Type
- article
- Field-Weighted Citation Impact
- 0.00