Together, we found strong evidence that PTPN1 may function as an immune regulator that affects the functions of T cells infiltrated in liver cancer. Here, PTPN1 is linked to liver cancer.