Correction to: Nature https://doi.org/10.1038/s41586-024-07113-9 Published online 28 February 2024

In the version of the article initially published, the colours used in the top right panel of Fig. 4a did not match the colour-blind-friendly palette used in that panel’s key. The figure has now been updated in the HTML and PDF versions of the article.