You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The translate method on NucleotideSequence is very useful when you have an unambiguous sequence, but if the sequence contains symbols from the extended ambiguous alphabet, calling the translate method results in the following exception:
For my use-case it would be fine if codons containing ambiguity characters simply mapped to an "unknown residue" symbol like "X". Could a keyword argument be added to translate to allow for this behaviour? Maybe it would accept a "default" character to use in the case of failed translation.
The text was updated successfully, but these errors were encountered:
The
translate
method on NucleotideSequence is very useful when you have an unambiguous sequence, but if the sequence contains symbols from the extended ambiguous alphabet, calling thetranslate
method results in the following exception:For my use-case it would be fine if codons containing ambiguity characters simply mapped to an "unknown residue" symbol like "X". Could a keyword argument be added to
translate
to allow for this behaviour? Maybe it would accept a "default" character to use in the case of failed translation.The text was updated successfully, but these errors were encountered: