Enum ResidueType

java.lang.Object
java.lang.Enum<ResidueType>
org.rcsb.strucmotif.domain.structure.ResidueType
All Implemented Interfaces:
Serializable, Comparable<ResidueType>, java.lang.constant.Constable

public enum ResidueType extends Enum<ResidueType>
Registry of known residues. Provides mapping between enum representation and one- and three-letter codes as well as polymer type.
  • Enum Constant Details

    • ALANINE

      public static final ResidueType ALANINE
      Alanine
    • CYSTEINE

      public static final ResidueType CYSTEINE
      Cysteine
    • ASPARTIC_ACID

      public static final ResidueType ASPARTIC_ACID
      Aspartic acid
    • GLUTAMIC_ACID

      public static final ResidueType GLUTAMIC_ACID
      Glutamic acid
    • PHENYLALANINE

      public static final ResidueType PHENYLALANINE
      Phenylalanine
    • GLYCINE

      public static final ResidueType GLYCINE
      Glycine
    • HISTIDINE

      public static final ResidueType HISTIDINE
      Histidine
    • ISOLEUCINE

      public static final ResidueType ISOLEUCINE
      Isoleucine
    • LYSINE

      public static final ResidueType LYSINE
      Lysine
    • LEUCINE

      public static final ResidueType LEUCINE
      Leucine
    • METHIONINE

      public static final ResidueType METHIONINE
      Methionine
    • ASPARAGINE

      public static final ResidueType ASPARAGINE
      Asparagine
    • PROLINE

      public static final ResidueType PROLINE
      Proline
    • GLUTAMINE

      public static final ResidueType GLUTAMINE
      Glutamine
    • ARGININE

      public static final ResidueType ARGININE
      Arginine
    • SERINE

      public static final ResidueType SERINE
      Serine
    • THREONINE

      public static final ResidueType THREONINE
      Threonine
    • VALINE

      public static final ResidueType VALINE
      Valine
    • TRYPTOPHAN

      public static final ResidueType TRYPTOPHAN
      Tryptophan
    • TYROSINE

      public static final ResidueType TYROSINE
      Tyrosine
    • ADENOSINE

      public static final ResidueType ADENOSINE
      Adenosine
    • CYTIDINE

      public static final ResidueType CYTIDINE
      Cytidine
    • DEOXYADENOSINE

      public static final ResidueType DEOXYADENOSINE
      Deoxyadenosine
    • DEOXYCYTIDINE

      public static final ResidueType DEOXYCYTIDINE
      Deoxycytidine
    • DEOXYGUANOSINE

      public static final ResidueType DEOXYGUANOSINE
      Deoxyguanosine
    • GUANOSINE

      public static final ResidueType GUANOSINE
      Guanosine
    • THYMIDINE

      public static final ResidueType THYMIDINE
      Thymidine
    • URIDINE

      public static final ResidueType URIDINE
      Uridine
    • UNKNOWN_AMINO_ACID

      public static final ResidueType UNKNOWN_AMINO_ACID
      Some unknown amino acid.
    • UNKNOWN_NUCLEOTIDE

      public static final ResidueType UNKNOWN_NUCLEOTIDE
      Some unknown nucleotide.
    • UNKNOWN_COMPONENT

      public static final ResidueType UNKNOWN_COMPONENT
      Some unknown, yet polymeric component.
  • Method Details

    • values

      public static ResidueType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ResidueType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getThreeLetterCode

      public String getThreeLetterCode()
      The (up to) three-letter code of this residue. Matches labelCompId.
      Returns:
      a String
    • getOneLetterCode

      public String getOneLetterCode()
      The one-letter code of this residue. May be 'artificial'/nonstandard. Used e.g. to name inverted index files.
      Returns:
      a String
    • getPolymerType

      public PolymerType getPolymerType()
      The polymer type of this residue.
      Returns:
      amino acid or nucleotide
    • ofThreeLetterCode

      public static ResidueType ofThreeLetterCode(String labelCompId)
      Maps labelCompId values to the correct ResidueType.
      Parameters:
      labelCompId - three-letter code to process
      Returns:
      the matching type - if argument is null or fail to find: return UNKNOWN_AMINO_ACID
    • ofOneLetterCode

      public static ResidueType ofOneLetterCode(String oneLetterCode)
      Resolve a one-letter-code.
      Parameters:
      oneLetterCode - the one-letter-code (as defined in this implementation)
      Returns:
      a residue type or null