Correction to: Nature Genetics https://doi.org/10.1038/s41588-025-02187-1, published online 16 May 2025.

In the version of the article initially published, in Fig. 3b, the median PFS for HRD was “14.9 (3.9–6.8)” but should have been “4.9 (3.9–6.8)” and has now been corrected in the HTML and PDF versions of the article.