Source code: bio/pseq.seq
Amino acid sequence
split(k: int, step: int)¶
Iterator over length-k subsequences of the given sequence with the specified step size.
translate(s: seq, table: Optional[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.