public class Subunit extends Object
The Subunit object can contain additional fields for identification and annotation.
Constructor and Description |
---|
Subunit(Atom[] reprAtoms,
String name,
StructureIdentifier identifier,
Structure structure)
A Subunit is solely defined by the coordinates of the representative
Atoms of its residues.
|
Modifier and Type | Method and Description |
---|---|
StructureIdentifier |
getIdentifier()
The standard identifier of the Subunit.
|
String |
getName()
The Name of a Subunit is a free-text field, user defined.
|
ProteinSequence |
getProteinSequence()
Get the protein sequence of the Subunit.
|
String |
getProteinSequenceString()
Get the protein sequence of the Subunit as String.
|
Atom[] |
getRepresentativeAtoms()
Get all the representative Atoms of the Subunit.
|
Structure |
getStructure()
The parent Structure from which the Subunit atoms were obtained.
|
void |
setName(String name)
The Name of a Subunit is a free-text field, user defined.
|
int |
size()
The size of a Subunit is the number of residues it contains.
|
String |
toString() |
public Subunit(Atom[] reprAtoms, String name, StructureIdentifier identifier, Structure structure)
reprAtoms
- representative Atoms. It cannot be null or emptyname
- String field that identifies the Subunit. It can be nullidentifier
- StructureIdentifier. It can be nullstructure
- parent Structure object. It can be nullpublic Atom[] getRepresentativeAtoms()
public int size()
public String getProteinSequenceString()
public ProteinSequence getProteinSequence() throws CompoundNotFoundException
CompoundNotFoundException
public String getName()
public void setName(String name)
name
- of the Subunitpublic Structure getStructure()
public StructureIdentifier getIdentifier()
Copyright © 2000–2018 BioJava. All rights reserved.