From 067e20ed05b8feb244ef20bbf1ea6ae4d2231e1c Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Fri, 9 Aug 2024 13:46:10 -0400 Subject: [PATCH] bugfix --- src/scripts/scaffolding/scaffold_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/scaffolding/scaffold_graph.py b/src/scripts/scaffolding/scaffold_graph.py index d9608289..2c8a439d 100755 --- a/src/scripts/scaffolding/scaffold_graph.py +++ b/src/scripts/scaffolding/scaffold_graph.py @@ -252,7 +252,7 @@ def orNodeDist(self, from_node, to_node): res = ScaffoldGraph.TOO_FAR if from_node in self.dists: if to_node in self.dists[from_node]: - res = self.dists[from_node][to_node] - self.compressed_lens[gf.nor_node(from_node)] - self.compressed_lens[gf.nor_node(to_node)] + res = (self.dists[from_node][to_node] - self.compressed_lens[gf.nor_node(from_node)] - self.compressed_lens[gf.nor_node(to_node)])/2 return res #Dist from node end to path. Allowed to go not in the first path node, but then additional length in path is added