ProGAL.proteins.belta
Class SecondaryStructure.SSSegment
java.lang.Object
ProGAL.proteins.belta.SecondaryStructure.SSSegment
- Enclosing class:
- SecondaryStructure
public static class SecondaryStructure.SSSegment
- extends java.lang.Object
A secondary structure segment of either helix, coil or strand. The only function
is to hold indices of start and end residues, the length, the index of the segment
in the secondary structure and the type.
Field Summary |
int |
end
The residue-index of the last amino acid in this segment PLUS ONE. |
int |
length
|
int |
segmentIndex
|
int |
start
The residue-index of the first amino acid in this segment |
SSType |
type
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
start
public final int start
- The residue-index of the first amino acid in this segment
end
public final int end
- The residue-index of the last amino acid in this segment PLUS ONE.
length
public final int length
segmentIndex
public final int segmentIndex
type
public final SSType type
overlaps
public boolean overlaps(SecondaryStructure.SSSegment seg)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
contains
public boolean contains(int res)
midpoint
public int midpoint()