Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
backtranslate
Commits
bf794882
Commit
bf794882
authored
Sep 23, 2015
by
Jeroen F.J. Laros
Browse files
Updated README.
parent
74a5eee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
bf794882
...
...
@@ -3,9 +3,9 @@ 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
...
...
@@ -35,8 +35,9 @@ information, use the following function.
To get substitutions in a readable format, we can use the following:
>>> from backtranslate.util import subst_to_cds
>>>
>>> substitutions = bt.without_dna('W', '*')
>>>
>>> # Transform the substitutions to CDS coordinates.
>>> subst_to_cds(substitutions, 12)
set([(15, 'G', 'A'), (14, 'G', 'A')])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment