This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

# Back translation This library provides functions for back translation from amino acids to nucleotides.

from __future__ import unicode_literals

from backtranslate.backtranslate import BackTranslate

# Create a class instance, optionally giving the translation table id. bt = BackTranslate() # Find all substitutions that transform the codon ‘TTG’ into a stop codon. substitutions = bt.with_dna(‘TGG’, ‘*’)

Sometimes we do not have access to the DNA sequence so we have to find possible substitutions from the amino acids directly.

# Find all substitutions that transform a Tryptophan into a stop codon. substitutions = bt.without_dna(‘W’, ‘*’)

To find out which substitution predictions can be improved by adding codon information, use the following function.

bt.improvable()

To get substitutions in a readable format, we can use the following:

from backtranslate.util import subst_to_cds

# Transform the substitutions to CDS coordinates. variants = subst_to_cds(substitutions, 12)

## Command line interface Use the command backtranslate to find substitutions that explain an amino acid change:

$ backtranslate with_dna -o 210 data/mhv.fa - 1 Leu 1 A C 1 A T

If no reference is available, use the without_dna subcommand:

$ backtranslate without_dna - Asp 92 Tyr 274 G T

The command find_stops finds a list of positions and substitutions that lead to stop codons. This list of destructive substitutions are useful when analysing a pool of viral transcripts. Counting the appropriate nucleotides at the given positions gives insight into how many transcripts are active.

$ backtranslate find_stops -o 210 data/mhv.fa - 216 A T 225 A T 230 C A 230 C G 243 A T …
Release History

Release History

0.0.5

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.4

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
BackTranslate-0.0.5.tar.gz (5.5 kB) Copy SHA256 Checksum SHA256 Source Sep 21, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting