Here, we investigate the role and composition of the human gut microbiome in the clinical setting by integrating shotgun metagenomics (MG) and QTA in NSCLC patients treated with anti-PD-L1 immunotherapy, using the novel XBoost machine learning (ML) approach. This evidence concerns the gene CD274 and non-small cell lung carcinoma.