From 40716f34ee1b697918fc01d7010d435e52dfe5d4 Mon Sep 17 00:00:00 2001 From: Mike Stubbington Date: Tue, 2 May 2017 17:29:09 +0100 Subject: [PATCH] Fixed bug in finding invariant sequences --- tracerlib/core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tracerlib/core.py b/tracerlib/core.py index e2ce8f8..54c20d8 100644 --- a/tracerlib/core.py +++ b/tracerlib/core.py @@ -390,7 +390,6 @@ def __init__(self, d): self.expected_string = self._get_expected_string() def check_for_match(self, cell, locus): - #pdb.set_trace() found_identifiers = set() found_locus = False @@ -405,8 +404,8 @@ def check_for_match(self, cell, locus): v = ident[0] j = ident[2] for ivr in invariant_recs: - if (v in ivr['V'] or ivr['V'] == '*') and ( - j in ivr['J'] or ivr['J'] == '*'): + if (v == ivr['V'] or ivr['V'] == '*') and ( + j == ivr['J'] or ivr['J'] == '*'): found_locus = True found_identifiers.add("_".join(ident))