Correction to: Nature Medicine https://doi.org/10.1038/s41591-024-03043-1, published online 25 May 2024

In the version of the article initially published, Angela Yee-Moon Wang’s name appeared incorrectly (as Angela Wang) and has now been amended in the HTML and PDF versions of the article.