In the condition of AST/ALT ratio ≤1.18, diabetes risk increased as it decreased (HR: 0.42, 95% CI: 0.19–0.91, P = 0.028). The gene discussed is GPT; the disease is diabetes mellitus.