In two types of patients with cancer, melanoma and NSCLC, those whose tumors exhibited increased inflammatory gene transcripts with high circulating CD4+ and CD8+ central memory T cell (Tcm) to effector T cell ratios had longer PFS. This evidence concerns the gene CD4 and melanoma.