We found that the spatial context of PD-1 and TIM-3 successfully predicted the overall survival of patients with colorectal cancer independent of tumor–node–metastasis stage. This evidence concerns the gene HAVCR2 and colorectal cancer.