Correction to: Nature Protocols https://doi.org/10.1038/s41596-022-00771-x. Published online 16 December 2022.

In the version of this article initially published, the citation at the end of the Fig. 6b caption was incorrect. The correct reference—Murtagh, F., Legendre, P. Ward’s hierarchical agglomerative clustering method: which algorithms implement Ward’s criterion? J. Classif. 31, 274–295 (2014)—has been added and the reference list renumbered. In the second-to-last paragraph of the Introduction, the callout to Fig. 6e originally cited Fig. 7a and has been updated. The text changes have been made to the HTML and PDF versions of the article. Further, the numbered citations to Extended Data figures in the Supplementary Information were incorrect and have been replaced in a revised file online.