DsspElement#

class biotite.application.dssp.DsspElement(*values)[source]#

Bases: IntEnum

The secondary structure elements assigned by DSSP.

Each element has a corresponding one-letter symbol, that is used in the DSSP output.

  • COIL ('C'): loop, coil or irregular

  • ALPHA_HELIX ('H'): \({\alpha}\)-helix

  • BRIDGE ('B'): isolated \({\beta}\)-bridge

  • STRAND ('E'): extended strand, participation in \({\beta}\)-ladder

  • HELIX_3_10 ('G'): 3 10-helix

  • PI_HELIX ('I'): \({\pi}\)-helix

  • TURN ('T'): hydrogen bonded turn

  • BEND ('S'): bend

  • POLYPROLINE_HELIX ('P'): polyproline II helix (only assigned by DSSP 4 and later)

Examples

>>> sse = DsspElement.from_symbols(["C", "H", "H", "E", "P"])
>>> print(sse)
[0 1 1 3 8]
>>> print(DsspElement.to_symbols(sse))
['C' 'H' 'H' 'E' 'P']
>>> print(DsspElement.ALPHA_HELIX.symbol)
H
>>> print(DsspElement.from_symbol("E").name)
STRAND
classmethod from_symbol(symbol: str) → DsspElement#

Get the secondary structure element from its one-letter symbol.

Parameters:
symbolstr

The symbol.

Returns:
sseDsspElement

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.

COIL = 0#
ALPHA_HELIX = 1#
BRIDGE = 2#
STRAND = 3#
HELIX_3_10 = 4#
PI_HELIX = 5#
TURN = 6#
BEND = 7#
POLYPROLINE_HELIX = 8#