From e86fe74fb268f5f9261f85f8d7d4d7333ad132f2 Mon Sep 17 00:00:00 2001 From: "J.F.J. Laros" <j.f.j.laros@lumc.nl> Date: Fri, 25 Jul 2014 23:50:47 +0200 Subject: [PATCH] Small modification to accommodate for the refactored extractor library. --- mutalyzer/describe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mutalyzer/describe.py b/mutalyzer/describe.py index 194179fe..43dd894f 100644 --- a/mutalyzer/describe.py +++ b/mutalyzer/describe.py @@ -633,7 +633,7 @@ def describe(s1, s2, dna=True): #if if in_transposition: - if variant.type & extractor.IDENTITY: + if not variant.type: seq_list.append(Seq(#reference=s1, start=variant.sample_start + 1, end=variant.sample_end, reverse=False)) @@ -645,7 +645,7 @@ def describe(s1, s2, dna=True): seq_list.append(Seq( sequence=s2[variant.sample_start:variant.sample_end])) #if - elif not (variant.type & extractor.IDENTITY): + elif variant.type: description.append(var_to_rawvar(s1, s2, variant, dna=dna)) if variant.type & extractor.TRANSPOSITION_CLOSE: -- GitLab