From 28e6828911d74e1f34f4e8887603b13d7db86f37 Mon Sep 17 00:00:00 2001 From: john681611 Date: Wed, 13 Sep 2023 16:37:30 +0100 Subject: [PATCH] Disable CRE_Graph auto population on startup --- application/database/db.py | 2 +- application/utils/gap_analysis.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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):