Correction to: Nature Methods https://doi.org/10.1038/s41592-019-0432-9, published online 9 May 2019

In the version of this article originally published online, Saurabh Saha and Gerrit Meijer’s names were misspelled. The errors have been corrected in the print, PDF, and HTML versions of the article.