High KRAS expression levels were negatively correlated with the infiltration levels of memory B cells, activated NK cells and CD8 T cells in PRAD. Here, KRAS is linked to prostate adenocarcinoma.