Correction to: Nature https://doi.org/10.1038/s41586-020-2253-5Published online 6 May 2020

In the ‘Code availability’ section of this Article, the URL from which the DREEM clustering algorithm can be accessed was incorrect. The correct URL is https://codeocean.com/capsule/6175523/tree/v1. The Article has been corrected online.