Our findings reveal that PTPN3 is significantly connected to the quantity of macrophages, T cells, and B cells in diverse cancer types. This evidence concerns the gene PTPN3 and cancer.