Correction to: Nature Neuroscience https://doi.org/10.1038/s41593-023-01545-8, published online 11 January 2024.

In the version of the article initially published, in Figs. 1–6 the minus sign was missing from “Day −7” and has now been inserted in the HTML and PDF versions of the article.