In summary, our findings reveal elevated counts of peripheral NK cells and CD8+ T cells in HCC and ICC compared to BLD, serving as indicators of RFS for HCC patients. The gene discussed is CD8A; the disease is hepatocellular carcinoma.