From 56ce69225039647433b81082913b06ae438a35df Mon Sep 17 00:00:00 2001
From: "Hartung, Michael" <michael.hartung@uni-hamburg.de>
Date: Mon, 26 Sep 2022 14:47:29 +0200
Subject: [PATCH] Bugfix: typo in filtering out intermediate drug nodes

---
 tasks/util/scores_to_results.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tasks/util/scores_to_results.py b/tasks/util/scores_to_results.py
index 4db5e69..b690db5 100755
--- a/tasks/util/scores_to_results.py
+++ b/tasks/util/scores_to_results.py
@@ -45,7 +45,7 @@ def scores_to_results(
 
                 drug_in_path = False
                 for vertex in vertices:
-                    if g.vertex_properties["type"][int(vertex)] == "Drug" and vertex != candidate:
+                    if g.vertex_properties["type"][int(vertex)] == "drug" and vertex != candidate:
                         drug_in_path = True
                         break
                 if drug_in_path:
@@ -67,7 +67,7 @@ def scores_to_results(
 
                 drug_in_path = False
                 for vertex in vertices:
-                    if g.vertex_properties["type"][int(vertex)] == "Drug" and vertex != candidate:
+                    if g.vertex_properties["type"][int(vertex)] == "drug" and vertex != candidate:
                         drug_in_path = True
                         break
                 if drug_in_path:
-- 
GitLab