Our study reveals that computational assessment of CD8+ cell density profiles at the interfaces of malignant and non-malignant epithelium with the surrounding stroma provides independent prognostic information for HCC patients after surgical liver resection. The gene discussed is CD8A; the disease is hepatocellular carcinoma.