Class SecStrucElement
java.lang.Object
org.biojava.nbio.structure.secstruc.SecStrucElement
- All Implemented Interfaces:
Serializable
A secondary structure element (SSE) is an object representing a block of
sequential residues that share the same secondary structure type.
- Since:
- 4.1.1
- Author:
- Aleix Lafita
- See Also:
-
Constructor Summary
ConstructorDescriptionSecStrucElement
(SecStrucType type, ResidueNumber start, ResidueNumber end, int length, int index, String chainID) Create a new SSE object. -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Returns the ID of this element.int
getIndex()
Returns the index of the SSE for its type.int
Return the length (number of residues) in the SSE.getRange()
Returns the residue range of this SSE.getType()
Returns theSecStrucType
of this element.toString()
-
Constructor Details
-
SecStrucElement
public SecStrucElement(SecStrucType type, ResidueNumber start, ResidueNumber end, int length, int index, String chainID) Create a new SSE object. The start and end residue numbers cannot be the same.- Parameters:
type
- object describing the type of SSstart
- first residue of the SSEend
- final residue of the SSElength
- number of residues included in the SSEindex
-chainID
- the chain ID
-
-
Method Details
-
getType
Returns theSecStrucType
of this element.- Returns:
-
getIndex
Returns the index of the SSE for its type. This is, the sequential position of this SSE relative to the other SSE of the same type.- Returns:
-
getLength
Return the length (number of residues) in the SSE.- Returns:
-
getId
Returns the ID of this element. The ID is the concatenation of the type letter and the numerical element identifier (e.g. H1, S1, ...).- Returns:
-
getRange
Returns the residue range of this SSE.- Returns:
-
toString
-