Commit acfb2415 authored by Vermaat's avatar Vermaat
Browse files

Do not crash on inversions (introduced in r528) (fixes #99)

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/trunk@557 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
parent 061f3d34
......@@ -477,7 +477,7 @@ def apply_inversion(first, last, mutator, record, O):
first += snoop
last -= snoop
mutator.invM(first, last)
mutator.inversion(first, last)
if first == last:
O.addMessage(__file__, 2, 'WWRONGTYPE', 'Inversion at position ' \
......
......@@ -729,3 +729,13 @@ class TestVariantchecker():
'NG_008939.1:g.5206_5208del')
assert 'NG_008939.1(PCCB_v001):c.155_157del' \
in self.output.getOutput('descriptions')
def test_inversion(self):
"""
Inversion variant.
"""
check_variant('AB026906.1:c.274_275inv', self.output)
assert_equal(self.output.getIndexedOutput('genomicDescription', 0),
'AB026906.1:g.7872_7873inv')
assert 'AB026906.1(SDHD_v001):c.274_275inv' \
in self.output.getOutput('descriptions')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment