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
extractor
Commits
1bce474c
Commit
1bce474c
authored
Jun 21, 2016
by
jkvis
Browse files
Fixed potential bug with inserted suffix in frame shifts
parent
f37c14b8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
extractor/describe.py
View file @
1bce474c
...
...
@@ -370,9 +370,9 @@ def describe_protein(s1, s2, codon_table=1):
s2_swig
[
0
],
s2_swig
[
1
],
extractor
.
TYPE_PROTEIN
,
codons_swig
[
0
])
variants
=
extracted
.
variants
for
variant
in
variants
:
print_var
(
variant
)
print
()
#
for variant in variants:
#
print_var(variant)
#
print()
index
=
0
while
index
<
len
(
variants
):
...
...
@@ -405,7 +405,7 @@ def describe_protein(s1, s2, codon_table=1):
# NOTE: Perhaps use trans_open, trans_close to ...
index
+=
1
if
last_end
!=
variant
.
sample_end
:
if
last_end
<
variant
.
sample_end
:
seq_list
.
append
(
AISeq
(
s2
[
last_end
:
variant
.
sample_end
]))
var
=
var_to_protein_var
(
s1
,
s2
,
variant
,
seq_list
,
...
...
test.py
View file @
1bce474c
This diff is collapsed.
Click to expand it.
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