After adjusting for age, gender, BMI, SBP, DBP, HDL-C, ALT, AST, BUN, SCR, and family history of diabetes, a threshold nonlinear association between the TyG index and diabetes was identified using a generalized additive model (GAM) (Figure 2). This evidence concerns the gene GPT and diabetes mellitus.