Pathogenic variants in HNF1A and HNF4A show the highest risk of diabetes in clinically selected individuals but had substantially lower risk in clinically unselected settings. Here, HNF4A is linked to diabetes mellitus.