Overall, PTPN7 can be a novel biomarker to predict the response to immunotherapy in cancer. This evidence concerns the gene PTPN7 and cancer.