We found that a higher variance (SD) of mean CD8+ T lymphocyte density at the tumor edge of HCC is an independent predictor of longer OS. This evidence concerns the gene CD8A and hepatocellular carcinoma.