Correction to: Nature https://doi.org/10.1038/s41586-022-05282-z Published online 5 October 2022

In the version of this article initially published, the top-left label of Fig. 2d, now reading “H3K27me3,” appeared incorrectly as “H3K9me3,” and the top x-axis label of the left panel in Fig. 4a, now reading “SARS-CoV-2WT,” appeared incorrectly as “SARS-CoV-2ΔARKSAP.” The figures have been corrected in the HTML and PDF versions of the article.