Spatial interaction and functional status of CD68+SHP2+ macrophages in tumor microenvironment correlate with overall survival of NSCLC. Here, PTPN11 is linked to non-small cell lung carcinoma.