This is the largest study in NSCLC to investigate the co-expression of CD8, PD1 and TCF1 using machine learning and digital scoring. Here, TCF7 is linked to non-small cell lung carcinoma.