Correction to: Nature Microbiology https://doi.org/10.1038/s41564-022-01143-7, published online 7 July 2022.

In the version of this article initially published, the author affiliation information was incomplete, neglecting to note that Brian J. Willett, Joe Grove, Oscar A. MacLean, Craig Wilkie, Giuditta De Lorenzo, Wilhelm Furnon, Diego Cantoni, Sam Scott, Nicola Logan and Shirin Ashraf contributed equally and that John Haughney, David L. Robertson, Massimo Palmarini, Surajit Ray and Emma C. Thomson jointly supervised the work, as now indicated in the HTML and PDF versions of the article.