Correction to: Nature Genetics, 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.