SHP2 is encoded by the protein tyrosine phosphatase 11 (Ptpn11) gene.