Code used for the paper, Legacy data, whole genome imputation, and the analysis of Psychiatric traits: Lessons from the iPSYCH case-cohort study