Characterization of immune cell populations in primary melanoma tissue finds P2 (CD39+CD103+PD-1-) CD8+ T cells most closely associated with good outcomes. Here, ENTPD1 is linked to melanoma.