To better understand the KRAS-related functions in tumorigenesis and cancer immunity, we further explored the molecular characteristics of genes by utilizing gene set enrichment analysis in four types of cancers (LUAD, LUSC, BRCA, and PAAD). The gene discussed is KRAS; the disease is cancer.