Class AminoAcidUtils
- Since:
- 1.0
- Author:
- Michael Schnieders
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The 20 standard amino acids.static enum
ConstantAIB
static enum
ConstantALA
static enum
Single letter amino acid codes (need tostatic enum
static enum
ConstantAminoAcidBackboneAtoms
static enum
ConstantARG
static enum
ConstantASD
static enum
ConstantASH
static enum
ConstantASN
static enum
ConstantASP
static enum
ConstantCYD
static enum
ConstantCYS
static enum
ConstantCYS
static enum
ConstantGLD
static enum
ConstantGLH
static enum
ConstantGlutamineAtomNames
static enum
ConstantGLU
static enum
ConstantGLY
static enum
ConstantGlycineBackboneAtoms
static enum
ConstantHID
static enum
ConstantHIE
static enum
ConstantHistidineAtoms
static enum
ConstantILE
static enum
ConstantLEU
static enum
ConstantLYD
static enum
ConstantLYS
static enum
ConstantMethionineAtomNames
static enum
ConstantORN
static enum
ConstantPCA
static enum
ConstantPHE
static enum
ConstantPRO
static enum
ConstantProlineBackboneAtoms
static enum
The location of a residue within a chain.static enum
ConstantSER
static interface
This interface is used by the "Build" routines.static enum
ConstantTHR
static enum
ConstantTRP
static enum
ConstantTYD
static enum
ConstantTYR
static enum
ConstantVAL
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int[][]
ConstantAA_C
static final int[][]
ConstantAA_CA
static final int[]
ConstantAA_CB
static final int[][]
ConstantAA_HA
static final int[][]
ConstantAA_HN
static final int[][]
Biotype keys for amino acid backbone atom types.static final int[][]
ConstantAA_O
static final HashMap
<AminoAcidUtils.AminoAcid1, AminoAcidUtils.AminoAcid3> ConstantAA1toAA3
static final int[]
Repeating atomic numbers of an amino acid chain.static final List
<AminoAcidUtils.AminoAcid1> List of values from the AminoAcid1 enum.static final List
<AminoAcidUtils.AminoAcid3> ConstantaminoAcidList
Stoichiometry of side chains can be used for identification, accept for a couple cases: -
Method Summary
Modifier and TypeMethodDescriptionstatic void
assignAminoAcidAtomTypes
(Residue residue, Residue previousResidue, Residue nextResidue, ForceField forceField, List<Bond> bondList) assignAminoAcidAtomTypes.static void
assignAminoAcidAtomTypes
(List<Residue> residues, ForceField forceField, List<Bond> bondList) Assign atom types to an amino acid polymer.static Residue
buildAIB.static Residue
buildAlanine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildAlanine.static Residue
buildArginine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildArginine.static Residue
buildAsparagine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildAsparagine.static Residue
buildAspartate
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildAspartate.static Residue
buildCysteine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildCysteine.static Residue
buildCystine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildCystine.static Residue
buildDeprotonatedCysteine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildDeprotonatedCysteine.static Residue
buildDeprotonatedLysine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildDeprotonatedLysine.static Residue
buildDeprotonatedTyrosine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildDeprotonatedTyrosine.static Residue
buildGlutamate
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildGlutamate.static Residue
buildGlutamine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildGlutamine.static Residue
buildGlycine
(Residue res, Atom CA, Atom N, Atom C, AminoAcidUtils.ResiduePosition position, ForceField ff, List<Bond> bonds) buildGlycine.static Residue
buildHistidine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildHistidine.static Residue
buildIsoleucine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildIsoleucine.static Residue
buildLeucine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildLeucine.static Residue
buildLysine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildLysine.static Residue
buildMethionine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bond) buildMethionine.static Residue
buildNeutralAsparticAcid
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildNeutralAsparticAcid.static Residue
buildNeutralGlutamicAcid
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildNeutralGlutamicAcid.static Residue
buildNeutralHistidineD
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildNeutralHistidineD.static Residue
buildNeutralHistidineE
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildNeutralHistidineE.static Residue
buildOrnithine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildOrnithine.static Residue
buildPCA.static Residue
buildPhenylalanine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildPhenylalanine.static Residue
buildProline
(Residue res, Atom CA, Atom N, Atom C, AminoAcidUtils.ResiduePosition position, ForceField ff, List<Bond> bonds) buildProline.static Residue
buildSerine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildSerine.static Residue
buildThreonine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildThreonine.static Residue
buildTryptophan
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bond) buildTryptophan.static Residue
buildTwoProtonAsparticAcid
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildTwoProtonAsparticAcid.static Residue
buildTwoProtonGlutamicAcid
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildTwoProtonGlutamicAcid.static Residue
buildTyrosine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildTyrosine.static Residue
buildValine
(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildValine.static void
copyResidue
(Residue fromResidue, Residue toResidue) copyResidue.static AminoAcidUtils.AminoAcid3
getAminoAcid
(String residueName) getAminoAcid.static AminoAcidUtils.AminoAcid3
getAminoAcid3From1
(String residueName) This method takes a one letter amino acid code and converts it to a three letter amino acid code.static int
getAminoAcidNumber
(String residueName) getAminoAcidNumber.static String[]
Turn an Enum into String array.static void
removeH1_H2_H3
(AminoAcidUtils.AminoAcid3 aminoAcid, Residue residue) Only the first nitrogen should have H1, H2 and H3 atoms, unless it's an NME cap.static void
removeOXT_OT2
(Residue residue) Only the last residue in a chain should have an OXT/OT2 atom.
-
Field Details
-
AAPATTERN
public static final int[] AAPATTERNRepeating atomic numbers of an amino acid chain. -
AA1toAA3
ConstantAA1toAA3
-
aminoAcid1List
List of values from the AminoAcid1 enum. -
aminoAcidList
ConstantaminoAcidList
-
sidechainStoichiometry
Stoichiometry of side chains can be used for identification, accept for a couple cases:1. Proline and Valine
2. (Iso)Leucine
3. DNA Gaunine/RNA Adenine.
This Hashtable returns the 3-letter name for amino acids, a single character for nucleic acids, or an integer indicating a special case.
-
AA_N
public static final int[][] AA_NBiotype keys for amino acid backbone atom types. These are consistent with parameter files from TINKER v. 6.1 (June 2012).
xType[0][..] are for N-terminal residues.
xType[1][..] are mid-chain residues.
xType[2][..] are for C-terminal residues.GLY ALA VAL LEU ILE SER THR CYS CYX CYD PRO PHE TYR TYD TRP HIS HID HIE ASP ASH ASD ASN GLU GLH GLD GLN MET LYS LYD ARG ORN AIB PCA H2N FOR ACE COH NH2 NME UNK
-
AA_CA
public static final int[][] AA_CAConstantAA_CA
GLY ALA VAL LEU ILE SER THR CYS CYX CYD PRO PHE TYR TYD TRP HIS HID HIE ASP ASH ASD ASN GLU GLH GLD GLN MET LYS LYD ARG ORN AIB PCA H2N FOR ACE COH NH2 NME UNK
-
AA_C
public static final int[][] AA_CConstantAA_C
GLY ALA VAL LEU ILE SER THR CYS CYX CYD PRO PHE TYR TYD TRP HIS HID HIE ASP ASH ASD ASN GLU GLH GLD GLN MET LYS LYD ARG ORN AIB PCA H2N FOR ACE COH NH2 NME UNK
-
AA_HN
public static final int[][] AA_HNConstantAA_HN
GLY ALA VAL LEU ILE SER THR CYS CYX CYD PRO PHE TYR TYD TRP HIS HID HIE ASP ASH ASD ASN GLU GLH GLD GLN MET LYS LYD ARG ORN AIB PCA H2N FOR ACE COH NH2 NME UNK
-
AA_O
public static final int[][] AA_OConstantAA_O
GLY ALA VAL LEU ILE SER THR CYS CYX CYD PRO PHE TYR TYD TRP HIS HID HIE ASP ASH ASD ASN GLU GLH GLD GLN MET LYS LYD ARG ORN AIB PCA H2N FOR ACE COH NH2 NME UNK
-
AA_HA
public static final int[][] AA_HAConstantAA_HA
GLY ALA VAL LEU ILE SER THR CYS CYX CYD PRO PHE TYR TYD TRP HIS HID HIE ASP ASH ASD ASN GLU GLH GLD GLN MET LYS LYD ARG ORN AIB PCA H2N FOR ACE COH NH2 NME UNK
-
AA_CB
public static final int[] AA_CBConstantAA_CB
GLY ALA VAL LEU ILE SER THR CYS CYX CYD PRO PHE TYR TYD TRP HIS HID HIE ASP ASH ASD ASN GLU GLH GLD GLN MET LYS LYD ARG ORN AIB PCA H2N FOR ACE COH NH2 NME UNK
-
-
Method Details
-
getNames
Turn an Enum into String array.- Parameters:
e
- The enum class.- Returns:
- A String array with all the enum values.
-
assignAminoAcidAtomTypes
public static void assignAminoAcidAtomTypes(List<Residue> residues, ForceField forceField, List<Bond> bondList) throws BondedUtils.MissingHeavyAtomException, BondedUtils.MissingAtomTypeException Assign atom types to an amino acid polymer.- Parameters:
residues
- The residues to assign atom types to.forceField
- The ForceField to apply.bondList
- Created bonds are added to this List.- Throws:
BondedUtils.MissingHeavyAtomException
- A needed heavy atom was not found.BondedUtils.MissingAtomTypeException
- An atom type could not be found.- Since:
- 1.0
-
assignAminoAcidAtomTypes
public static void assignAminoAcidAtomTypes(Residue residue, Residue previousResidue, Residue nextResidue, ForceField forceField, List<Bond> bondList) throws BondedUtils.MissingHeavyAtomException, BondedUtils.MissingAtomTypeException assignAminoAcidAtomTypes.- Parameters:
residue
- aResidue
object.previousResidue
- aResidue
object.nextResidue
- aResidue
object.forceField
- aForceField
object.bondList
- aList
object.- Throws:
BondedUtils.MissingHeavyAtomException
- if any.BondedUtils.MissingAtomTypeException
- if any.
-
buildAIB
public static Residue buildAIB(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildAIB. -
buildGlycine
public static Residue buildGlycine(Residue res, Atom CA, Atom N, Atom C, AminoAcidUtils.ResiduePosition position, ForceField ff, List<Bond> bonds) buildGlycine.- Parameters:
res
- aResidue
object.CA
- aAtom
object.N
- aAtom
object.C
- aAtom
object.position
-AminoAcidUtils.ResiduePosition
object.ff
- aForceField
object.bonds
- aList
object.- Returns:
- a
Residue
object.
-
buildAlanine
public static Residue buildAlanine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildAlanine. -
buildArginine
public static Residue buildArginine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildArginine. -
buildAsparagine
public static Residue buildAsparagine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildAsparagine. -
buildAspartate
public static Residue buildAspartate(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildAspartate. -
buildCysteine
public static Residue buildCysteine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildCysteine. -
buildCystine
public static Residue buildCystine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildCystine. -
buildDeprotonatedCysteine
public static Residue buildDeprotonatedCysteine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildDeprotonatedCysteine. -
buildDeprotonatedLysine
public static Residue buildDeprotonatedLysine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildDeprotonatedLysine. -
buildDeprotonatedTyrosine
public static Residue buildDeprotonatedTyrosine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildDeprotonatedTyrosine. -
buildGlutamate
public static Residue buildGlutamate(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildGlutamate. -
buildGlutamine
public static Residue buildGlutamine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildGlutamine. -
buildHistidine
public static Residue buildHistidine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildHistidine. -
buildIsoleucine
public static Residue buildIsoleucine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildIsoleucine. -
buildLeucine
public static Residue buildLeucine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildLeucine. -
buildLysine
public static Residue buildLysine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildLysine. -
buildMethionine
public static Residue buildMethionine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bond) buildMethionine. -
buildNeutralAsparticAcid
public static Residue buildNeutralAsparticAcid(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildNeutralAsparticAcid. -
buildTwoProtonAsparticAcid
public static Residue buildTwoProtonAsparticAcid(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildTwoProtonAsparticAcid. -
buildNeutralGlutamicAcid
public static Residue buildNeutralGlutamicAcid(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildNeutralGlutamicAcid. -
buildTwoProtonGlutamicAcid
public static Residue buildTwoProtonGlutamicAcid(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildTwoProtonGlutamicAcid. -
buildNeutralHistidineD
public static Residue buildNeutralHistidineD(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildNeutralHistidineD. -
buildNeutralHistidineE
public static Residue buildNeutralHistidineE(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildNeutralHistidineE. -
buildOrnithine
public static Residue buildOrnithine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildOrnithine. -
buildPCA
public static Residue buildPCA(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildPCA. -
buildPhenylalanine
public static Residue buildPhenylalanine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildPhenylalanine. -
buildProline
public static Residue buildProline(Residue res, Atom CA, Atom N, Atom C, AminoAcidUtils.ResiduePosition position, ForceField ff, List<Bond> bonds) buildProline.- Parameters:
res
- aResidue
object.CA
- aAtom
object.N
- aAtom
object.C
- aAtom
object.position
- aAminoAcidUtils.ResiduePosition
object.ff
- aForceField
object.bonds
- aList
object.- Returns:
- a
Residue
object.
-
buildSerine
public static Residue buildSerine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildSerine. -
buildThreonine
public static Residue buildThreonine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildThreonine. -
buildTryptophan
public static Residue buildTryptophan(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bond) buildTryptophan. -
buildTyrosine
public static Residue buildTyrosine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildTyrosine. -
buildValine
public static Residue buildValine(Residue res, Atom CA, Atom N, Atom C, ForceField ff, List<Bond> bonds) buildValine. -
copyResidue
copyResidue. -
removeH1_H2_H3
Only the first nitrogen should have H1, H2 and H3 atoms, unless it's an NME cap.- Parameters:
aminoAcid
- 3-letter amino acid name.residue
- the amino acid Residue.
-
removeOXT_OT2
Only the last residue in a chain should have an OXT/OT2 atom.- Parameters:
residue
- the amino acid residue.
-
getAminoAcid
getAminoAcid.- Parameters:
residueName
- aString
object.- Returns:
- a
AminoAcidUtils.AminoAcid3
object.
-
getAminoAcid3From1
This method takes a one letter amino acid code and converts it to a three letter amino acid code. This method relies on the AminoAcid1 and AminoAcid3 enums having amino acids in exactly the same order.- Parameters:
residueName
- The one letter amino acid code.- Returns:
- The three letter amino acid code.
-
getAminoAcidNumber
getAminoAcidNumber.- Parameters:
residueName
- aString
object.- Returns:
- The index of the amino acid in the aminoAcidlist.
-