A digital image analysis algorithm was developed to quantify CD8+ T-cell densities in the tumour epithelium versus stroma compartment. Here, CD8A is linked to neoplasm.