public class Subunit extends Object
There are two fundamental requirements. First, the residues have to be sequential and connected in the original Structure (with the exception of missing residues or loops in between). All the residues are of the same type. These requirements are not checked when constructing the Object, but they are assumed to always hold.
| Constructor and Description |
|---|
Subunit(Atom[] reprAtoms)
A Subunit is uniquely defined by the coordinates of the representative
Atoms of its residues, in sequential order.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
int |
size()
The size of a Subunit is the number of residues it contains.
|
String |
toString() |
public Subunit(Atom[] reprAtoms)
repAtoms - representative Atomspublic Atom[] getRepresentativeAtoms()
public int size()
public String getProteinSequenceString()
public ProteinSequence getProteinSequence() throws CompoundNotFoundException
CompoundNotFoundExceptionCopyright © 2000–2016 BioJava. All rights reserved.