Skip to content

Commit

Permalink
experimentally allowing hap-dip for multimappers only
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry-Antipov committed Aug 13, 2024
1 parent dac99de commit a5103d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/scaffolding/scaffold_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,11 @@ def findExtension(self, cur_path_id, type):
best_ind = -1
second_best_ind = -1
for i in range (0, len(local_scores)):
if not self.forbiddenPair(cur_path_id, local_scores[i][0]):
if (type != "unique_weight") or not self.forbiddenPair(cur_path_id, local_scores[i][0]):
best_ind = i
break
for j in range (best_ind+1, len(local_scores)):
if not self.forbiddenPair(cur_path_id, local_scores[j][0]):
if (type != "unique_weight") or not self.forbiddenPair(cur_path_id, local_scores[j][0]):
second_best_ind = j
break
if len(local_scores) == 0:
Expand Down

0 comments on commit a5103d7

Please sign in to comment.