Class AminoAcid


  • public final class AminoAcid
    extends java.lang.Object
    Class representing single amino acid in protein. It contains its abbreviation, chain ID and position in that chain.
    • Constructor Detail

      • AminoAcid

        public AminoAcid​(AminoAcidAbbreviations abbreviation,
                         java.lang.String chainId,
                         int position)
        Instantiates new Amino acid.
        Parameters:
        abbreviation - Abbreviation of amino acid name.
        chainId - Protein chain ID.
        position - Position in given chain.
      • AminoAcid

        public AminoAcid​(org.biojava.nbio.structure.Group aminoAcidGroup)
        Instantiates new Amino acid.
        Parameters:
        aminoAcidGroup - Group which can be obtained from BioJava's Atom.
    • Method Detail

      • getAbbreviation

        public AminoAcidAbbreviations getAbbreviation()
        Returns amino acid abbreviation.
        Returns:
        Amino acid abbreviation.
      • getChainId

        public java.lang.String getChainId()
        Returns chain ID of amino acid.
        Returns:
        Chain ID of amino acid.
      • getPosition

        public int getPosition()
        Returns amino acid position in protein chain.
        Returns:
        Amino acid position in protein chain.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object