Data availability
The data used and generated in this study are provided in the Supplementary Data. The phenotypic, genotypic, proteomic, metabolic data used in the study that supports subtype and stage modelling and association analyses were obtained from the UK Biobank under application number 89757. Access to the UK Biobank data is available to all researchers with approval (https://www.ukbiobank.ac.uk/enable-your-research/register). All GWAS data for the outcomes used in this study are publicly available from FinnGen database (https://www.finngen.fi/), Psychiatric Genomics Consortium (PGC, https://med.unc.edu/pgc/download-results) and GWAS Catalog (https://www.ebi.ac.uk/gwas/). Statistic details of the GWAS datasets and download links for all the datasets are available in Supplementary Table 7.