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
Describe the bug
The amino acid sequence information is lost when DNASequences are dumped to python dicts.
To Reproduce
Create a DNASequence object with a translation that contains amino acid information. Use the dump function on that sequence. See the code snippet below.
From this you will see different output for the translationSchema.
Expected behavior
The amino acid sequence information follows the translation dict during the data dump. In this example, for the translationSchema's of the two print statements to match up.
Additional context
One hacky fix is you can restore the amino acid sequence by saving a temporary translation and replacing the translation in the dump.
The text was updated successfully, but these errors were encountered:
Describe the bug
The amino acid sequence information is lost when DNASequences are dumped to python dicts.
To Reproduce
Create a DNASequence object with a translation that contains amino acid information. Use the dump function on that sequence. See the code snippet below.
From this you will see different output for the translationSchema.
Expected behavior
The amino acid sequence information follows the translation dict during the data dump. In this example, for the translationSchema's of the two print statements to match up.
Additional context
One hacky fix is you can restore the amino acid sequence by saving a temporary translation and replacing the translation in the dump.
The text was updated successfully, but these errors were encountered: