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
Modifier and TypeClassDescriptionstatic enum
static enum
ConstantCysteineAtoms
static enum
static enum
ConstantHistidineAtoms
static enum
ConstantlysineAtoms
static enum
static enum
Amino acid protonation reactions. -
Constructor Summary
ConstructorDescriptionTitrationUtils
(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) double
getPolarizability
(Atom atom, double titrationLambda, double tautomerLambda, double defaultPolarizability) double
getPolarizabilityTautomerDeriv
(Atom atom, double titrationLambda, double tautomerLambda) double
getPolarizabilityTitrationDeriv
(Atom atom, double titrationLambda, double tautomerLambda) double
static int
getTitratingHydrogenDirection
(AminoAcidUtils.AminoAcid3 aminoAcid3, Atom atom) double
getTotalRotamerPhBias
(Rotamer[] rotamers) static boolean
isTitratingHeavy
(AminoAcidUtils.AminoAcid3 aminoAcid3, Atom atom) Used to keep track of heavy atoms with changing polarizability.static boolean
isTitratingHydrogen
(AminoAcidUtils.AminoAcid3 aminoAcid3, Atom atom) static double[]
predictHillCoeffandPka
(double[] pHScale, double[] residueFractions) Predict pKa from a set of residue fractions (deprotonated / (deprotonated + protonated)).void
setRotamerPhBias
(double temperature, double pH) boolean
testResidueTypes
(Residue residue) void
updateResidueParameters
(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}
-