Structural imaging and diffusion data were processed by the UK Biobank team and made available to approved researchers as imaging-derived phenotypes (IDPs); the full details of the image processing and QC pipeline are available in an open-access article42,60. IDPs used in analyses included whole-brain GMV, whole-brain WMV, 139 regional GMV IDPs derived using parcellations from the Harvard–Oxford cortical and subcortical atlases and Diedrichsen cerebellar atlas (UKB fields 25782–25920), and 375 tract-averaged measures of FA, MD, ICVF, ISOVF, and orientation diffusion (OD) extracted by averaging parameters over 74 different white-matter tract regions based on subject-specific tractography61 and from population-average WM masks45. Volumetric IDPs were normalized for head size by multiplying the raw IDP by the T1-based “head size scaling factor”60.