Machine learning approaches (LASSO, RSF) coupled with Shapley additive explanation (SHAP) analysis identified CYP2C9 and G6PD as the most influential prognostic variables associated with HCC progression. This evidence concerns the gene G6PD and hepatocellular carcinoma.