Package ffx.potential.parameters
Class TitrationUtils
java.lang.Object
ffx.potential.parameters.TitrationUtils
Utilities for interpolating between Amino Acid protonation and tautomer states.
- Since:
- 1.0
- Author:
- Michael Schnieders, Andrew Thiel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumConstantCysteineAtomsstatic enumstatic enumConstantHistidineAtomsstatic enumConstantlysineAtomsstatic enumstatic enumAmino acid protonation reactions. -
Constructor Summary
ConstructorsConstructorDescriptionTitrationUtils(ForceField forceField) TitrationUtils(ForceField forceField, double proteinDielectric, boolean tanhCorrection) -
Method Summary
Modifier and TypeMethodDescriptiondouble[]getMultipole(Atom atom, double titrationLambda, double tautomerLambda, double[] multipole) double[]getMultipoleTautomerDeriv(Atom atom, double titrationLambda, double tautomerLambda, double[] multipole) double[]getMultipoleTitrationDeriv(Atom atom, double titrationLambda, double tautomerLambda, double[] multipole) doublegetPolarizability(Atom atom, double titrationLambda, double tautomerLambda, double defaultPolarizability) doublegetPolarizabilityTautomerDeriv(Atom atom, double titrationLambda, double tautomerLambda) doublegetPolarizabilityTitrationDeriv(Atom atom, double titrationLambda, double tautomerLambda) doublestatic intgetTitratingHydrogenDirection(AminoAcidUtils.AminoAcid3 aminoAcid3, Atom atom) doublegetTotalRotamerPhBias(Rotamer[] rotamers) static booleanisTitratingHeavy(AminoAcidUtils.AminoAcid3 aminoAcid3, Atom atom) Used to keep track of heavy atoms with changing polarizability.static booleanisTitratingHydrogen(AminoAcidUtils.AminoAcid3 aminoAcid3, Atom atom) static double[]predictHillCoeffandPka(double[] pHScale, double[] residueFractions) Predict pKa from a set of residue fractions (deprotonated / (deprotonated + protonated)).voidsetRotamerPhBias(double temperature, double pH) booleantestResidueTypes(Residue residue) voidupdateResidueParameters(Residue residue, Rotamer rotamer) Update force field parameters for the side-chain atoms of the given residue based on the rotamer amino acid type.
-
Constructor Details
-
TitrationUtils
-
TitrationUtils
-
-
Method Details
-
testResidueTypes
-
updateResidueParameters
Update force field parameters for the side-chain atoms of the given residue based on the rotamer amino acid type.- Parameters:
residue- Residue to update.rotamer- Rotamer that contains the amino acid residue identity.
-
getMultipole
public double[] getMultipole(Atom atom, double titrationLambda, double tautomerLambda, double[] multipole) -
getMultipoleTitrationDeriv
public double[] getMultipoleTitrationDeriv(Atom atom, double titrationLambda, double tautomerLambda, double[] multipole) -
getMultipoleTautomerDeriv
public double[] getMultipoleTautomerDeriv(Atom atom, double titrationLambda, double tautomerLambda, double[] multipole) -
getPolarizability
public double getPolarizability(Atom atom, double titrationLambda, double tautomerLambda, double defaultPolarizability) -
getPolarizabilityTitrationDeriv
public double getPolarizabilityTitrationDeriv(Atom atom, double titrationLambda, double tautomerLambda) -
getPolarizabilityTautomerDeriv
public double getPolarizabilityTautomerDeriv(Atom atom, double titrationLambda, double tautomerLambda) -
isTitratingHydrogen
-
isTitratingHeavy
Used to keep track of heavy atoms with changing polarizability. Only affects carboxylic oxygen and sulfur.- Parameters:
aminoAcid3- The amino acid type.atom- The atom to check.- Returns:
- True if the atom is a heavy atom with changing polarizability.
-
getTitratingHydrogenDirection
-
setRotamerPhBias
public void setRotamerPhBias(double temperature, double pH) -
getRotamerPhBias
-
getTotalRotamerPhBias
-
predictHillCoeffandPka
public static double[] predictHillCoeffandPka(double[] pHScale, double[] residueFractions) Predict pKa from a set of residue fractions (deprotonated / (deprotonated + protonated)). This method minimizes the L2 loss between the measured residue fractions and various pKa/Hill-coefficient values to get pKa/Hill- coefficient predictions.- Parameters:
pHScale- pH values at which the residue fractions were measuredresidueFractions- a sorted array of residue fractions (deprotonated / (deprotonated + protonated))- Returns:
- {n, pKa}
-