Trajectory analysis of CD8+ T cells revealed distinct differentiation pathways in HBV-associated HCC, characterized by enriched exhaustion and stem-like features. This evidence concerns the gene CD8A and hepatocellular carcinoma.