|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ProGAL.proteins.belta.SecondaryStructure
public class SecondaryStructure
Representation of a secondary structure assignment. The constructor reads a string representation of an assignment and parses it into segments. The start and end-index of a segment, as well as the segments type can be accessed in the following way
SecondaryStructure ss = new SecondaryStructure(" HHHHHHHH EEE EEE "); Segment seg = ss.segments[1]; System.out.printf("Segment %d: start %d, end %d, type: %s\n", seg.segmentIndex, seg.start, seg.end, seg.type );Three convenient methods are also supplied to return all helix, strand or coil segments separate from each other.
Nested Class Summary | |
---|---|
static class |
SecondaryStructure.SSSegment
A secondary structure segment of either helix, coil or strand. |
Field Summary | |
---|---|
PrimaryStructure |
primaryStructure
The primary structure related to this secondary structure. |
SecondaryStructure.SSSegment[] |
segments
Secondary structure segments (helix, coil or strand) |
Constructor Summary | |
---|---|
SecondaryStructure(PrimaryStructure ps,
java.lang.String ssString)
Construct a secondary structure object from a string representation. |
|
SecondaryStructure(java.lang.String ssString)
Construct a secondary structure object from a string representation. |
Method Summary | |
---|---|
SecondaryStructure.SSSegment[] |
getCoils()
Return array containing all segments, s, where s.type==SSType.COIL . |
SecondaryStructure.SSSegment[] |
getHelices()
Return array containing all segments, s, where s.type==SSType.HELIX . |
SecondaryStructure.SSSegment |
getSegmentContainingResidue(int res)
TODO: Comment and test |
SecondaryStructure.SSSegment[] |
getStrands()
Return array containing all segments, s, where s.type==SSType.STRAND . |
SSType |
getType(int r)
TODO: Comment and test |
boolean |
matches(SecondaryStructure ss)
Determine if this secondary structure matches ss. |
boolean |
respects(SecondaryStructure ss)
Determine if this secondary structure respects ss. |
java.lang.String |
toString()
TODO: Comment |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final SecondaryStructure.SSSegment[] segments
public PrimaryStructure primaryStructure
Constructor Detail |
---|
public SecondaryStructure(PrimaryStructure ps, java.lang.String ssString)
public SecondaryStructure(java.lang.String ssString)
Method Detail |
---|
public SecondaryStructure.SSSegment[] getStrands()
s.type==SSType.STRAND
. These are in sequential order.
public SecondaryStructure.SSSegment[] getHelices()
s.type==SSType.HELIX
. These are in sequential order.
public SecondaryStructure.SSSegment[] getCoils()
s.type==SSType.COIL
. These are in sequential order.
public boolean matches(SecondaryStructure ss)
public boolean respects(SecondaryStructure ss)
public SecondaryStructure.SSSegment getSegmentContainingResidue(int res)
public SSType getType(int r)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |