Spatial-PHLEX quantifies barrier-like features to CD8 T-cell infiltration in non-small cell lung cancer. Here, CD8A is linked to non-small cell lung carcinoma.