Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mutalyzer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
mutalyzer
Commits
0a9f0f38
Commit
0a9f0f38
authored
9 years ago
by
Vermaat
Browse files
Options
Downloads
Plain Diff
Merge pull request #65 from mutalyzer/synonymous-p-is
Fix bug in recognizing p.(=)
parents
89ff6172
6435f0cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mutalyzer/util.py
+3
-3
3 additions, 3 deletions
mutalyzer/util.py
tests/test_variantchecker.py
+8
-0
8 additions, 0 deletions
tests/test_variantchecker.py
with
11 additions
and
3 deletions
mutalyzer/util.py
+
3
−
3
View file @
0a9f0f38
...
...
@@ -439,14 +439,14 @@ def in_frame_description(s1, s2):
@todo: More intelligently handle longest_common_prefix().
@todo: Refactor this code (too many return statements).
"""
s1
=
s1
.
rstrip
(
'
*
'
)
s2
=
s2
.
rstrip
(
'
*
'
)
if
s1
==
s2
:
# Nothing happened.
return
(
'
p.(=)
'
,
0
,
0
,
0
)
s2_stop
=
'
*
'
in
s2
s1
=
s1
.
rstrip
(
'
*
'
)
s2
=
s2
.
rstrip
(
'
*
'
)
lcp
=
len
(
longest_common_prefix
(
s1
,
s2
))
lcs
=
len
(
longest_common_suffix
(
s1
[
lcp
:],
s2
[
lcp
:]))
s1_end
=
len
(
s1
)
-
lcs
...
...
This diff is collapsed.
Click to expand it.
tests/test_variantchecker.py
+
8
−
0
View file @
0a9f0f38
...
...
@@ -1349,3 +1349,11 @@ class TestVariantchecker(MutalyzerTest):
"""
check_variant
(
'
NM_000193.2:c.1388_1389insC
'
,
self
.
output
)
assert
'
NM_000193.2(SHH_i001):p.(*463Cysext*?)
'
in
self
.
output
.
getOutput
(
'
protDescriptions
'
)
@fix
(
cache
(
'
AB026906.1
'
))
def
test_synonymous_p_is
(
self
):
"""
Synonymous mutation should yield a p.(=) description.
"""
check_variant
(
'
AB026906.1:c.276C>T
'
,
self
.
output
)
assert
'
AB026906.1(SDHD_i001):p.(=)
'
in
self
.
output
.
getOutput
(
'
protDescriptions
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment