Correction to: Nature Methods https://doi.org/10.1038/s41592-021-01286-1, published online 1 November 2021.

In the version of this article originally published, there was an error in a formula in the fourth sentence of the third paragraph of Methods. In the text now reading “The analytical solution to the optimization problem is Z = (I + λL)−1 XW, where W represents the top d eigenvectors of XT (I + λL)−1 X, where d is the dimensionality of Z,” an extraneous equals sign appeared between “XT” and “(I + λL)−1 X.” The error has been corrected in the HTML and PDF versions of the article.