We identified six subpopulations of tumour-infiltrating CD8+ T cells (Pop1–6, Extended Data Fig. 6a) on the basis of surface marker expression (Extended Data Fig. 6b,d). Here, CD8A is linked to neoplasm.