GPT and type 2 diabetes mellitus: As shown in Table 4, after adjusting for age, sex, BMI, serum ALT levels and statin use, the presence of T2DM, irrespective of metformin use, was significantly associated with higher levels of both total primary and secondary BAs.