From 293481dd893d26eeb9f9abe0c20425bed5b384a6 Mon Sep 17 00:00:00 2001
From: "J.F.J. Laros" <j.f.j.laros@lumc.nl>
Date: Wed, 30 Jul 2014 16:27:16 +0200
Subject: [PATCH] Revert "Small modification to accommodate for the refactored
 extractor library."

This reverts commit fd1f33ffbceacfa471cf5521f93ad15e9375aaf1.
---
 mutalyzer/describe.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mutalyzer/describe.py b/mutalyzer/describe.py
index 43dd894f..194179fe 100644
--- a/mutalyzer/describe.py
+++ b/mutalyzer/describe.py
@@ -633,7 +633,7 @@ def describe(s1, s2, dna=True):
             #if
 
             if in_transposition:
-                if not variant.type:
+                if variant.type & extractor.IDENTITY:
                     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 variant.type:
+            elif not (variant.type & extractor.IDENTITY):
                description.append(var_to_rawvar(s1, s2, variant, dna=dna))
 
             if variant.type & extractor.TRANSPOSITION_CLOSE:
-- 
GitLab