Package ffx.potential.bonded
Class NamingUtils
java.lang.Object
ffx.potential.bonded.NamingUtils
Utilities for importing atoms from PDB files and checking their names.
- Since:
- 1.0
- Author:
- Jacob Litman, Michael Schnieders
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Common HETATOM labels for water and ions. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkHydrogenAtomNames
(Residue residue, PDBFilter.PDBFileStandard fileStandard) Ensures proper naming of hydrogen according to latest PDB format.static void
nameAcetylCap
(Residue residue, Atom aceC) Names the atoms in an N-terminal acetyl ACE capping group.renameAlkyl
(Atom carbon, Atom priorAtom, int protonOffset, char posName) Renames an atom, its bonded hydrogen, and returns the next atom in the chain.static boolean
renameAminoAcidToPDBStandard
(Residue residue) Renames the Atoms in an amino acid to PDB standard.static void
renameArginineHydrogen
(Residue residue, List<Atom> resAtoms) renameArginineHydrogen.static void
renameAsparagineHydrogen
(Residue residue, List<Atom> resAtoms) renameAsparagineHydrogen.static void
renameAtomsToPDBStandard
(MolecularAssembly molecularAssembly) Renames Atoms to PDB standard using bonding patterns, atomic numbers, and residue types.static void
renameBetaHydrogen
(Residue residue, List<Atom> resAtoms, int indexes) renameBetaHydrogen.renameBranchedAlkyl
(Atom carbon, Atom priorAtom, int protonOffset, int branchNum, char posName) Renames a numbered carbon, its bonded hydrogen, and returns the next atom in the chain.static void
renameCommonAminoAcids
(Residue residue, AminoAcidUtils.AminoAcid3 aa3, Atom CA, Atom CB) Renames atoms in common amino acids to PDB standard.static void
renameCommonNucleicAcid
(Residue residue, NucleicAcidUtils.NucleicAcid3 na3) Renames atoms in common nucleic acids to PDB standard.static void
renameCommonNucleobase
(Atom N19, Atom C1s, NucleicAcidUtils.NucleicAcid3 na3) Renames the atoms of the common nucleobases (A, C, G, T, U, and deoxy variants).renameCommonPurine
(Atom N9, Atom C1s) Renames atoms common to all standard purines (A, G)renameCommonPyrimidine
(Atom N1, Atom C1s) Renames atoms common to all standard pyrimidines (C, T, U)static void
renameDeltaHydrogen
(Residue residue, List<Atom> resAtoms, int indexes) renameDeltaHydrogen.static void
renameEpsilonHydrogen
(Residue residue, List<Atom> resAtoms, int indexes) renameEpsilonHydrogen.static void
renameGammaHydrogen
(Residue residue, List<Atom> resAtoms, int indexes) renameGammaHydrogen.static void
renameGlutamineHydrogen
(Residue residue, List<Atom> resAtoms) renameGlutamineHydrogen.static void
renameGlycineAlphaHydrogen
(Residue residue, List<Atom> resAtoms) renameGlycineAlphaHydrogen.static void
renameIsoleucineHydrogen
(Residue residue, List<Atom> resAtoms) renameIsoleucineHydrogen.static void
renameNTerminusHydrogen
(Residue residue) renameNTerminusHydrogen.static void
renameNucleicAcidToPDBStandard
(Residue residue) Renames the Atoms in a nucleic acid to PDB standard.static void
renameZetaHydrogen
(Residue residue, List<Atom> resAtoms, int indexes) renameZetaHydrogen.
-
Constructor Details
-
NamingUtils
public NamingUtils()
-
-
Method Details
-
checkHydrogenAtomNames
Ensures proper naming of hydrogen according to latest PDB format. Presently mostly guesses at which hydrogen to re-assign, which may cause chirality errors for prochiral hydrogen. If necessary, we will implement more specific mapping.- Parameters:
residue
- Residue to examine.fileStandard
- PDB File Standard to use.
-
nameAcetylCap
Names the atoms in an N-terminal acetyl ACE capping group.- Parameters:
residue
- Residue containing an acetyl cap.aceC
- The acetyl group's C atom.
-
renameAlkyl
public static Optional<Atom> renameAlkyl(Atom carbon, Atom priorAtom, int protonOffset, char posName) Renames an atom, its bonded hydrogen, and returns the next atom in the chain.If applied to an atom that is not a carbon, it will be misnamed as a carbon, so fix that afterwards.
- Parameters:
carbon
- Alkyl carbon to rename.priorAtom
- Prior atom in the chain.protonOffset
- Number of the first hydrogen (such as 2 for HB2-3).posName
- Name of the position (such as B for CB).- Returns:
- Next atom in the chain if present.
-
renameAminoAcidToPDBStandard
Renames the Atoms in an amino acid to PDB standard.- Parameters:
residue
- Residue to fix atom names of.
-
renameArginineHydrogen
renameArginineHydrogen. -
renameAsparagineHydrogen
renameAsparagineHydrogen. -
renameAtomsToPDBStandard
Renames Atoms to PDB standard using bonding patterns, atomic numbers, and residue types.Will not work if a force field definition botches its atomic numbers.
Only implemented for amino acids and nucleic acids at this time.
- Parameters:
molecularAssembly
- MolecularAssembly to fix.
-
renameBetaHydrogen
renameBetaHydrogen. -
renameBranchedAlkyl
public static Optional<Atom> renameBranchedAlkyl(Atom carbon, Atom priorAtom, int protonOffset, int branchNum, char posName) Renames a numbered carbon, its bonded hydrogen, and returns the next atom in the chain.If applied to an atom that is not a carbon, it will be misnamed as a carbon, so fix that afterwards.
This is for carbons like PHE CD1 and CD2.
- Parameters:
carbon
- Alkyl carbon to rename.priorAtom
- Prior atom in the chain.protonOffset
- Number of the first hydrogen (such as 2 for HB2-3).branchNum
- Index of the branch.posName
- Name of the position (such as B for CB).- Returns:
- Next atom in the chain if present.
-
renameCommonAminoAcids
public static void renameCommonAminoAcids(Residue residue, AminoAcidUtils.AminoAcid3 aa3, Atom CA, Atom CB) Renames atoms in common amino acids to PDB standard.- Parameters:
residue
- Residue to perform renaming for.aa3
- Its AA3 code.CA
- Its alpha carbon.CB
- Its beta carbon.
-
renameCommonNucleicAcid
Renames atoms in common nucleic acids to PDB standard.- Parameters:
residue
- Residue to perform renaming for.na3
- Its NA3 code.
-
renameCommonNucleobase
Renames the atoms of the common nucleobases (A, C, G, T, U, and deoxy variants).- Parameters:
N19
- N1 of pyrimidines, N9 of purines.C1s
- C1' of the ribose sugar.na3
- Identity of the nucleic acid.
-
renameCommonPurine
Renames atoms common to all standard purines (A, G)- Parameters:
N9
- The N9 atom.C1s
- The C1' atom.- Returns:
- A Map containing Atoms important to finding and naming base-unique atoms.
-
renameCommonPyrimidine
Renames atoms common to all standard pyrimidines (C, T, U)- Parameters:
N1
- The N1 atom.C1s
- The C1' atom.- Returns:
- A Map containing Atoms important to finding and naming base-unique atoms.
-
renameDeltaHydrogen
renameDeltaHydrogen. -
renameEpsilonHydrogen
renameEpsilonHydrogen. -
renameGammaHydrogen
renameGammaHydrogen. -
renameGlutamineHydrogen
renameGlutamineHydrogen. -
renameGlycineAlphaHydrogen
renameGlycineAlphaHydrogen. -
renameIsoleucineHydrogen
renameIsoleucineHydrogen. -
renameNTerminusHydrogen
renameNTerminusHydrogen.- Parameters:
residue
- aResidue
object.
-
renameNucleicAcidToPDBStandard
Renames the Atoms in a nucleic acid to PDB standard.- Parameters:
residue
- Residue to fix atom names of.
-
renameZetaHydrogen
renameZetaHydrogen.
-