From 781eb7c3f2f2610e918a4c32c294e4850d217738 Mon Sep 17 00:00:00 2001 From: cbizon <bizon@renci.org> Date: Wed, 26 Jul 2023 15:44:24 -0400 Subject: [PATCH 1/2] don't reuse support graph ids --- ranker/modules/omnicorp_overlay.py | 2 +- ranker/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ranker/modules/omnicorp_overlay.py b/ranker/modules/omnicorp_overlay.py index a28dd6e..b6af0f7 100644 --- a/ranker/modules/omnicorp_overlay.py +++ b/ranker/modules/omnicorp_overlay.py @@ -58,7 +58,6 @@ async def add_shared_pmid_counts( for pair, publication_count in values.items(): if publication_count == 0: continue - support_idx += 1 uid = str(uuid4()) kgraph["edges"].update( { @@ -94,6 +93,7 @@ async def add_shared_pmid_counts( omnisupport = sg if omnisupport is None: omnisupport = f"OMNICORP_support_graph_{support_idx}" + support_idx += 1 analysis["support_graphs"].append(omnisupport) if omnisupport not in aux_graphs: aux_graphs[omnisupport] = { "edges": [] } diff --git a/ranker/server.py b/ranker/server.py index 3f8595e..dca9bb4 100644 --- a/ranker/server.py +++ b/ranker/server.py @@ -16,7 +16,7 @@ from ranker.util.omnicorp_get_node_pmids import get_node_pmids # set the app version -APP_VERSION = '3.2.5' +APP_VERSION = '3.2.6' APP = FastAPI(title='ARAGORN Ranker', version=APP_VERSION) From 3385720080e575797062594691387629fce085c0 Mon Sep 17 00:00:00 2001 From: cbizon <bizon@renci.org> Date: Thu, 14 Sep 2023 09:23:31 -0400 Subject: [PATCH 2/2] break when sg found --- ranker/modules/omnicorp_overlay.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ranker/modules/omnicorp_overlay.py b/ranker/modules/omnicorp_overlay.py index b6af0f7..4e65a9b 100644 --- a/ranker/modules/omnicorp_overlay.py +++ b/ranker/modules/omnicorp_overlay.py @@ -91,6 +91,7 @@ async def add_shared_pmid_counts( for sg in analysis["support_graphs"]: if sg.startswith("OMNICORP_support_graph"): omnisupport = sg + break if omnisupport is None: omnisupport = f"OMNICORP_support_graph_{support_idx}" support_idx += 1