Skip to content

Commit

Permalink
Test with ambiguous aminoacids
Browse files Browse the repository at this point in the history
  • Loading branch information
veghp committed Jun 6, 2023
1 parent 7f7c17c commit 379074f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_biotools.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,9 @@ def reverse_translate_with_tables():
rv_translation = reverse_translate(protein, table=table)
assert rv_translation == expected
assert translate(rv_translation, table=table) == protein


def reverse_translate_with_ambiguous_aa():
aa_seq = "MXBJZ*"
rv_translation = reverse_translate(aa_seq, randomize_codons=False, table="Standard")
assert rv_translation == "ATGGTGAATTTAGAATAA"

0 comments on commit 379074f

Please sign in to comment.