Mutations in the PEX gene are responsible for X-linked hypophosphatemic rickets.