In this study, we report on the development of an image analysis algorithm that automatically quantified WSI CD8+ TIL density acquired from stained tissue sections from advanced melanoma patients and correlated CD8+ TIL density with response to front-line anti-PD-1 immunotherapy. The gene discussed is CD8A; the disease is melanoma.