Correction to: Nature Medicine https://doi.org/10.1038/s41591-024-03466-w, published online 14 January 2025.

In the version of the article initially published, Vanessa Laversenne (Stanley Center for Psychiatric Research, Broad Institute of MIT and Harvard, Cambridge, MA, USA) was missing from the author list. The error has been corrected in the HTML and PDF versions of the article.