Notably, our results also showed that HK2 and its hub genes activate different immune cells by regulating the expression of different immune-related genes, thereby affecting the prognosis of gliomas, suggesting that HK2 and hub genes probably play important roles in different immune processes and may be potential targets for the treatment of glioma. Here, HK2 is linked to glioma.