For an amino acid with only one amine and one carboxyl group, the pI can be calculated from the mean of the pKas of this molecule [REF].
The pH of an electrophoretic gel is determined by the buffer used for that gel.