Skip to main content

Back translation

https://img.shields.io/github/last-commit/mutalyzer/backtranslate.svg https://github.com/mutalyzer/backtranslate/actions/workflows/python-package.yml/badge.svg https://readthedocs.org/projects/mutalyzer-backtranslate/badge/?version=latest https://img.shields.io/github/release-date/mutalyzer/backtranslate.svg https://img.shields.io/github/release/mutalyzer/backtranslate.svg https://img.shields.io/pypi/v/mutalyzer-backtranslate.svg https://img.shields.io/github/languages/code-size/mutalyzer/backtranslate.svg https://img.shields.io/github/languages/count/mutalyzer/backtranslate.svg https://img.shields.io/github/languages/top/mutalyzer/backtranslate.svg https://img.shields.io/github/license/mutalyzer/backtranslate.svg

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')}}

Metadata

Release files for mutalyzer-backtranslate 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mutalyzer-backtranslate 1.0.1
File Size Uploaded Provenance Actions
mutalyzer_backtranslate-1.0.1.tar.gz 7.0 kB With provenance Details for mutalyzer_backtranslate-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mutalyzer-backtranslate 1.0.1
File Interpreter ABI Platform Actions
mutalyzer_backtranslate-1.0.1-py3-none-any.whl Python 3 none any Details for mutalyzer_backtranslate-1.0.1-py3-none-any.whl

Total release size: 14.6 kB

Release files / mutalyzer_backtranslate-1.0.1.tar.gz

Download URL mutalyzer_backtranslate-1.0.1.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
42dbb6eb8a1aa816981aff480309e8bbd1fe44ad18d92e7f349b1586f2d61b32
BLAKE2b-256 checksum
How to use checksums
a5a29abb12c0b42398ae6ab11b208df17de0184ee505ccb0f9d06f68f60525f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / mutalyzer_backtranslate-1.0.1-py3-none-any.whl

Download URL mutalyzer_backtranslate-1.0.1-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bb4aa48374a0c8f212531dfe436fa825381ac3a1a6fe5c985fbfc31910fedc3
BLAKE2b-256 checksum
How to use checksums
fef7695f86d10001b34e7ac595ae98e17ddc280b6ede348a00d7b05e6af75518
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for mutalyzer-backtranslate 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mutalyzer_backtranslate-1.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page