Correction to: Nature https://doi.org/10.1038/s41586-023-06234-x Published online 21 June 2023

In the version of the article initially published, in the first paragraph of the “LOY is associated with a worse patient outcome” section, the P value in the sentence “However, patients with low Y chromosome gene expression score had significantly (P = 0.024) worse overall survival” should have been 0.029. The error has been corrected in the HTML and PDF versions of the article.