Correction to: Nature Medicine https://doi.org/10.1038/s41591-024-03025-3, published online 6 June 2024

In the version of the article initially published, in the key to Fig. 2b, the red diamond representing “Recurrence/NR” has been corrected to a green diamond to match the graph. This correction has been made to the HTML and PDF versions of the article.