Correction to: Nature Methods https://doi.org/10.1038/s41592-020-01024-z, published online 6 January 2021.

In the version of this article initially published, the accompanying Nature Research Reporting Summary was for a different paper. In addition, ref. 6 was cited at the end of the second sentence of main text; the correct citation is ref. 10. The errors have been corrected in the PDF and HTML versions of the article.