Activated dendritic cells (DCs), eosinophils, activated mast cells, monocytes and activated natural killer (NK) cells were positively related to prognosis in the patients with glioma; however, resting NK cells, CD8+ T cells, T follicular helper cells, gamma delta T cells and M0 macrophages were negatively related to prognosis in the patients with glioma. The gene discussed is CD8A; the disease is central nervous system cancer.