Skip to content

mutalyzer/backtranslate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b44c23c · Jul 24, 2023

History

76 Commits
Nov 21, 2021
Sep 4, 2015
Nov 21, 2021
Jun 19, 2020
Nov 21, 2021
Jul 24, 2023
Jun 19, 2020
Jun 17, 2019
Jun 17, 2019
Nov 21, 2021
Nov 21, 2021
Jun 17, 2019

Repository files navigation

Back translation

https://readthedocs.org/projects/mutalyzer-backtranslate/badge/?version=latest

This library provides functions for back translation of amino acid changes to nucleotide changes.

Features:

  • Support for all known codon tables.
  • Back translation of amino acid changes using codon reference information.
  • Back translation of amino acid changes using amino acid reference information.
  • Function to determine all amino acid substitutions of which the back translation can be improved by adding codon information.

Please see ReadTheDocs for the latest documentation.

Quick start

The BackTranslate class provides functionality for back translation.

>>> from mutalyzer_backtranslate import BackTranslate
>>> bt = BackTranslate()

An amino acid change from a Leucine to a Phenylalanine can be explained by five substitutions.

>>> bt.without_dna('L', 'F')
{2: {('A', 'T'), ('A', 'C'), ('G', 'C'), ('G', 'T')}, 0: {('C', 'T')}}

If codon information is present, the same substitution can only be explained by one substitution.

>>> bt.with_dna('CTT', 'F')
{0: {('C', 'T')}}