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'