Correction to: Nature https://doi.org/10.1038/s41586-022-4739-5 Published online 25 May 2022

In the version of this article originally published, there was an error in the key to Fig. 1j, where the pink square denoting “Chromatin opening” and the light blue square denoting “Chromatin closing” were reversed; they are now correct. In Extended Data Fig. 5a, the micrographic images for Zbtb16 inadvertently showed expression after LPS treatment rather than after SCI and are now updated. These errors do not affect the conclusions of this article. The changes were made in the HTML and PDF versions of the article.