The results showed that the AUCs of CD2, CD8A, GNLY, IFI44, NKG7 and OAS2 in the four datasets were all greater than 0.7, and the joint predictive score had a better AUC after logistics analysis, which indicates that these six hub genes have good diagnostic efficacy for UC and NASH (Fig. 6). Here, NKG7 is linked to metabolic dysfunction-associated steatohepatitis.