Correction to: Nature Methods https://doi.org/10.1038/s41592-020-0866-0, published online 22 June 2020.

In the version of this article initially published, gray and green were reversed in the key for Fig. 2d. The error has been corrected in the PDF and HTML versions of the article.