bio.pseq

Source code: bio/pseq.seq

extension pseq

Amino acid sequence

Magic methods:

__init__(p: cobj, n: int)
__init__(s: str)
__eq__(other: pseq)
__ne__(other: pseq)
__lt__(other: pseq)
__le__(other: pseq)
__gt__(other: pseq)
__ge__(other: pseq)
__str__()
__len__()
__bool__()
__hash__()
__getitem__(idx: int)
__getitem__(s: eslice)
__getitem__(s: slice)
__getitem__(s: lslice)
__getitem__(s: rslice)
__getitem__(s: eslice)
__copy__()
__iter__()
__reversed__()

Methods:

split(k: int, step: int)

Iterator over length-k subsequences of the given sequence with the specified step size.

bio.pseq.translate(s: seq, table: dict[seq, pseq] = None)

Performs DNA to amino acid translation. An optional mapping from length-3 DNA sequences to amino acids can be given via table, otherwise the standard mapping is assumed.

extension seq

Methods:

translate()