Both MoCA score and MMSE score were significantly apolipoprotein A1 (r = − 0.132, p = 0.016; r = − 0.143, p = 0.009) in patients with T2DM. The gene discussed is APOA1; the disease is type 2 diabetes mellitus.