Can we skip check in `decode`?
Closed this issue · 0 comments
jakobnissen commented
Currently, the docstring of Alphabet
says:
An
Alphabet
'sencode
anddecode
methods must not produce invalid data.
But it is necessary to check decode
? Presumably, we can simply check encode
, and then we can guarantee that the internal data representation of all encodings stored in a BioSequence
s must be valid at any point. This way, we can skip the decoding check for increased performance.