Correction to: Nature Genetics https://doi.org/10.1038/s41588-023-01343-9. Published online 3 April 2023.

In the version of this article originally published, the surname of author Stefan Johansson was misspelled as Johanson. In the abstract and “Genome-wide association analyses” section of the Results, the number of loci associated with preterm birth was shown as six instead of seven. In addition, there was a production error in the Figure 1a y-axis units shown below 0, where “10” and “20” were shown as negative numbers. The errors have been corrected in the HTML and PDF versions of the article.