Class Subunit

  • public class Subunit
    extends Object
    A Subunit consists of a set of residues from a Structure, which may correspond to an entire Chain, a Domain, or any subset or combination of residues from them. All the residues of a Subunit are of the same type.

    The Subunit object can contain additional fields for identification and annotation.

    Aleix Lafita
    • Constructor Detail

      • Subunit

        public Subunit​(Atom[] reprAtoms,
                       String name,
                       StructureIdentifier identifier,
                       Structure structure)
        A Subunit is solely defined by the coordinates of the representative Atoms of its residues. It can be identified with a StructureIdentifier and/or a name and stores a reference to the Structure from which the Atoms were obtained.
        reprAtoms - representative Atoms. It cannot be null or empty
        name - String field that identifies the Subunit. It can be null
        identifier - StructureIdentifier. It can be null
        structure - parent Structure object. It can be null
    • Method Detail

      • getRepresentativeAtoms

        public Atom[] getRepresentativeAtoms()
        Get all the representative Atoms of the Subunit. These Atoms are used for clustering and displaying the Subunit.
        representative Atom[]
      • size

        public int size()
        The size of a Subunit is the number of residues it contains.
        the size of the Subunit
      • getProteinSequenceString

        public String getProteinSequenceString()
        Get the protein sequence of the Subunit as String.
        protein sequence String
      • getName

        public String getName()
        The Name of a Subunit is a free-text field, user defined.
        the Subunit name
      • setName

        public void setName​(String name)
        The Name of a Subunit is a free-text field, user defined.
        name - of the Subunit
      • getStructure

        public Structure getStructure()
        The parent Structure from which the Subunit atoms were obtained.
        Structure object