Skip to content

Commit

Permalink
Disable CRE_Graph auto population on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
john681611 committed Sep 14, 2023
1 parent dc344a0 commit 28e6828
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/database/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
8 changes: 7 additions & 1 deletion application/utils/gap_analysis.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down

0 comments on commit 28e6828

Please sign in to comment.