diff --git a/application/database/db.py b/application/database/db.py index 3b96d7b03..16cd54ee8 100644 --- a/application/database/db.py +++ b/application/database/db.py @@ -371,7 +371,7 @@ def instance(cls, session, neo_db: NEO_DB): if cls.__instance is None: cls.__instance = cls.__new__(cls) cls.neo_db = neo_db - cls.graph = cls.load_cre_graph(session) + # cls.graph = cls.load_cre_graph(session) # TODO: Call this in a seperate statup mode return cls.__instance def __init__(sel): diff --git a/application/utils/gap_analysis.py b/application/utils/gap_analysis.py index 47f97e830..147fef3d3 100644 --- a/application/utils/gap_analysis.py +++ b/application/utils/gap_analysis.py @@ -1,4 +1,10 @@ -PENALTIES = {"RELATED": 20, "CONTAINS_UP": 2, "CONTAINS_DOWN": 1, "LINKED_TO": 0} +PENALTIES = { + "RELATED": 20, + "CONTAINS_UP": 2, + "CONTAINS_DOWN": 1, + "LINKED_TO": 0, + "SAME": 0, +} def get_path_score(path):