Correction to: Nature Genetics https://doi.org/10.1038/s41588-022-01103-1, published online 11 July 2022.

In the version of this article initially published, there were two typographical errors in “The Hill-Robertson effect” section, where the two instances of text now reading “Hill-Robertson interference” originally appeared as “Hill-Robertson inference.” The changes have been made to the HTML and PDF versions of the article.