The effect of TCF7L2 risk alleles was significantly different between the women-only T2D and GDM patients (t test P<0.01). Here, TCF7L2 is linked to type 2 diabetes mellitus.