Quality control, imputation and primary association analyses were done using the bioinformatics pipeline Ricopili (see URLs), developed by the Psychiatric Genomics Consortium (PGC)33. In order to avoid potential study effects the 11 PGC samples and the 23 genotyping batches within iPSYCH were each processed separately unless otherwise stated (Supplementary Information).