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
By observing codons in the output sequence, e.g. the first codon that comes after the start codon, it is replaced by another amino acid coding codon AAC -> AAA instead of it's synonym. From the given codon table AAC should have been replaced by AAT according to this: {..., 'N': {'AAT': 0.7284, 'AAC': 0.2716}, ...}.
Either this is a bug or I am missing something.
The text was updated successfully, but these errors were encountered:
This is not a bug but this is an important caveat in DnaChisel: the CodonOptimize() objective should always be used with a EnforceTranslation constraint. In your example you should add constraints=[EnforceTranslation()] to your DnaOptimizationProblem. This is because objectives never constrain the sequence, only constraints do. This is shown in the Readme and the examples, and there is a warning in the docs (Warning: always use with an EnforceTranslation constraint) but I would support adding more warnings everywhere.
Optimizing a gene coding sequence with a custom codon table using the DnaChisel version 3.2.11 gives unexpected output.
This is the snippet from the Python code used:
This is the dict of a custom codon table:
This is the input sequence:
This is the output sequence:
By observing codons in the output sequence, e.g. the first codon that comes after the start codon, it is replaced by another amino acid coding codon AAC -> AAA instead of it's synonym. From the given codon table AAC should have been replaced by AAT according to this:
{..., 'N': {'AAT': 0.7284, 'AAC': 0.2716}, ...}
.Either this is a bug or I am missing something.
The text was updated successfully, but these errors were encountered: