Skip to content

Commit

Permalink
Exclude stop codons from rev translation for 'X'
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraluebbert authored May 31, 2023
1 parent beb093f commit 6188a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnachisel/biotools/biotables.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_backtranslation_table(table_name="Standard"):
back_translation_table[amino_acid].append(codon)
back_translation_table["*"] = table.stop_codons
back_translation_table["START"] = table.start_codons
back_translation_table["X"] = flatten(back_translation_table.values())
back_translation_table["X"] = list(set(flatten(back_translation_table.values())) - set(back_translation_table["*"]))
back_translation_table["B"] = back_translation_table["N"] + back_translation_table["D"]
back_translation_table["J"] = back_translation_table["L"] + back_translation_table["I"]
back_translation_table["Z"] = back_translation_table["E"] + back_translation_table["Q"]
Expand Down

0 comments on commit 6188a97

Please sign in to comment.