Adibvafa / CodonTransformer

CodonTransformer: The ultimate tool for codon optimization, optimizing DNA sequences for heterologous protein expression across 164 species.
https://adibvafa.github.io/CodonTransformer
Apache License 2.0
82 stars 2 forks source link

Do not silently convert ambiguous aminoacids #5

Open gui11aume opened 5 days ago

gui11aume commented 5 days ago

Ambiguous aminoacids B, Z, X, J, U, O are converted to N, Q, A, L, C, K (respectively) without warning. Ambiguous aminoacids should not be accepted by default, and what to do with them should be specified by the user. For instance, the user may want to replace them with a random aminoacid in the ambiguous group, or they may pass a dictionary to specify a deterministic replacement rule, or some other option if applicable.