PSeaElement#
- class biotite.structure.PSeaElement(*values)[source]#
Bases:
IntEnumThe secondary structure elements (SSEs) assigned by the P-SEA algorithm in
annotate_sse().Each element has a corresponding one-letter symbol, that is used in text-based representations, e.g. by the original P-SEA software.
NONE(''): The residue is not an amino acid or has noCAatom.COIL('c'): coilHELIX('a'): \({\alpha}\)-helixSTRAND('b'): \({\beta}\)-strand/sheet
Examples
>>> sse = PSeaElement.from_symbols(["c", "a", "a", "b", ""]) >>> print(sse) [ 0 1 1 2 -1] >>> print(PSeaElement.to_symbols(sse)) ['c' 'a' 'a' 'b' ''] >>> print(PSeaElement.HELIX.symbol) a >>> print(PSeaElement.from_symbol("b").name) STRAND
- classmethod from_symbol(symbol: str) PSeaElement#
Get the secondary structure element from its one-letter symbol.
- Parameters:
- symbolstr
The symbol.
- Returns:
- ssePSeaElement
The corresponding secondary structure element.
- classmethod from_symbols(symbols: ArrayLike) ndarray[tuple[K], dtype[int64]]#
Convert an array of one-letter symbols into an array of secondary structure elements.
- Parameters:
- symbolsarray-like, shape=(k,), dtype=str
The symbols.
- Returns:
- ssendarray, shape=(k,), dtype=int
The corresponding secondary structure elements.
- classmethod to_symbols(sse: ArrayLike) ndarray[tuple[K], dtype[str_]]#
Convert an array of secondary structure elements into an array of one-letter symbols.
- Parameters:
- ssearray-like, shape=(k,), dtype=int
The secondary structure elements.
- Returns:
- symbolsndarray, shape=(k,), dtype=str
The corresponding symbols.
- NONE = -1#
- COIL = 0#
- HELIX = 1#
- STRAND = 2#
Gallery#
Three ways to get the secondary structure of a protein