The authors present a robust diagnostic algorithm based on digital pathology and image analysis that quantifies intratumoral and stromal CD8+ T-cell densities in the tumor center and invasive margin compartment in metastatic melanoma. Here, CD8A is linked to metastatic melanoma.