Eighteen genes were significantly associated with longer progression-free survival (PFS) or better response. The number of mutated genes within 18 favorable genes were defined as TMS18. TMS18 (HR = 0.307, P < 0.001) had smaller hazard ratio and P value than TMB (HR = 0.455, P = 0.004) and PD-L1 expression (HR = 0.403, P = 0.005) in survival analysis. Moreover, TMS18 had significantly higher AUC than TMB and TMS18 combined with PD-L1 improved the accuracy.