Correction to: Nature https://doi.org/10.1038/s41586-024-07327-x Published online 17 April 2024

In the version of the article initially published, the National Institutes of Health grant no. R01NS122394 was mistakenly omitted from the Acknowledgements section and has now been added to the HTML and PDF versions of the article.