From 7b5532184c713a9669cd1304ba00289b0afa53d8 Mon Sep 17 00:00:00 2001 From: LindeSchoenmaker <99398231+LindeSchoenmaker@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:59:10 +0200 Subject: [PATCH] bug fix in annotate_allosteric before the dict key was used to search against instead of the provided list --- src/bindtype/annotation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindtype/annotation.py b/src/bindtype/annotation.py index 8b84300..11a44bd 100644 --- a/src/bindtype/annotation.py +++ b/src/bindtype/annotation.py @@ -196,7 +196,7 @@ def annotate_allosteric(self, text: str) -> str: Returns ------- str - Binding type + Binding type: 'Allosteric' or 'Unknown' """ text = text.lower() @@ -205,7 +205,7 @@ def annotate_allosteric(self, text: str) -> str: keywords = json.load(f) for k, v in keywords.items(): keywords[k] = [item.lower() for item in v] - if any([keyword in text for keyword in keywords]): + if any([keyword in text for keyword in keywords['Allosteric']]): return 'Allosteric' else: return 'Unknown'