The autism GWAS used in our primary analyses included a proportion of autism cases with ID23. We tested the consistency of the causal effect estimates using GWAS summary data on a subsample of the iPSYCH cohort76 excluding all intellectual disability cases (Ncases = 11,203; Ncontrols = 22,555). Extended Data Fig. 8 visualizes the process of instrument definition, and Supplementary Tables S9S17 and S18 contain details on the instruments used and the harmonized datasets.

Two-sample MR analyses were performed using the TwoSampleMR R package77 in R v.3.5.1. Ethics committee approval was not required for this analysis of GWAS summary statistics.

Reporting summary

Further information on research design is available in the Nature Research Reporting summary linked to this article.