Correction to: Nature Methods https://doi.org/10.1038/s41592-018-0084-1, published online 6 August 2018

In the version of this paper originally published online, the ORCID ID for Peter Z. Qin was incorrectly assigned to Zhuoyang Qin. In addition, the ORCID for Fazhan Shi was omitted. These errors have been corrected in the print, PDF, and HTML versions of the paper.