Using a machine learning method, we investigated the intrinsic and extrinsic transcriptional profiles that affect the clinical response to PD-1 inhibitors in 57 patients with non-small cell lung cancer (NSCLC). The gene discussed is PDCD1; the disease is non-small cell lung carcinoma.