B cells, CD8+T cells, CD4+T cells, NK cells, M1 macrophages, M2 macrophages, neutrophils, and dendritic cells were positively correlated with G6PD expression in HCC tumours (P<0.05, cor > 0.1; Table 3). Here, CD8A is linked to hepatocellular carcinoma.