These are the codes for running the analysis of genetic discordance in clinical phenotypes between BMI and T2D using GWAS summary data.