We found that KRAS is substantially correlated with tumor immune cell infiltration, including B cells, CD8+T cells, CD4+T cells, macrophages, neutrophils, and dendritic cells, suggesting that KRAS may affect tumor processing and prognosis through cancer immunity. This evidence concerns the gene CD8A and neoplasm.