Skip to content
GitLab
Menu
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
a2a0c147
Commit
a2a0c147
authored
Oct 07, 2015
by
Jeroen F.J. Laros
Browse files
Pep8.
parent
252b7c09
Changes
1
Hide whitespace changes
Inline
Side-by-side
backtranslate/backtranslate.py
View file @
a2a0c147
...
...
@@ -58,7 +58,6 @@ class BackTranslate(object):
"""
self
.
_back_table
=
reverse_translation_table
(
table_id
)
def
_one_subst
(
self
,
substitutions
,
reference_codon
,
amino_acid
):
"""
Find single nucleotide substitutions that given a reference codon
...
...
@@ -76,7 +75,6 @@ class BackTranslate(object):
substitutions
[
position
].
add
(
(
reference_codon
[
position
],
codon
[
position
]))
def
with_dna
(
self
,
reference_codon
,
amino_acid
):
"""
Find single nucleotide substitutions that given a reference codon
...
...
@@ -94,7 +92,6 @@ class BackTranslate(object):
return
dict
(
substitutions
)
def
without_dna
(
self
,
reference_amino_acid
,
amino_acid
):
"""
Find single nucleotide substitutions that given a reference amino acid
...
...
@@ -113,7 +110,6 @@ class BackTranslate(object):
return
dict
(
substitutions
)
def
improvable
(
self
):
"""
Calculate all pairs of amino acid substututions that can be improved by
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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