Herein, we report the development of an image analysis algorithm that automatically quantified CD8+ TIL density in whole slide images acquired from stained tissue sections from advanced melanoma patients treated with front-line anti-PD-(L)1 blockade. This evidence concerns the gene CD8A and melanoma.