Correction to: Nature Published online 10 April 2024

In the version of the article initially published, in Fig. 1c, the label now reading “MC vs MS” originally read “MC vs FS”. In Extended Data Fig. 2c, the labels now reading “Male-Sham” and “Male-Castration” read “Female-Sham” and “Female-DHT”, respectively. These errors have now been corrected in the HTML and PDF versions of the article.