Characterization of immune cell populations in primary melanoma tissue finds P2 (CD39+CD103+PD-1-) CD8+ T cells most closely associated with good outcomes. This evidence concerns the gene CD8A and melanoma.