Seven potential immune-related diagnostic gene biomarkers (GPC3, ACSM3, SPINK1, COL15A1, TP53I3, RRAGD, and CLDN10) were identified for HCC using two machine learning algorithms. Here, GPC3 is linked to hepatocellular carcinoma.