Correction to: Nature Methods https://doi.org/10.1038/s41592-021-01250-z. Published online 3 September 2022.

In the version of this article originally published, Anjana Shenoy (Sackler Faculty of Medicine, Tel Aviv University, Tel Aviv, Israel) was shown with the wrong affiliation. In addition, Extended Data Fig. 2 inadvertently duplicated Extended Data Fig. 1. The affiliation and figure have been updated in the HTML and PDF versions of the article.