Skip to content

Commit

Permalink
fix connectivity bug
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprzh committed Jun 12, 2024
1 parent 5674734 commit 4d73424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/intron_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def remove_singleton_dead_ends(self):
outgoing_paths = [self.signleton_dead_end(i) for i in self.outgoing_edges[current_intron]]
if any(len(p) == 0 for p in outgoing_paths):
continue
to_clean[current_intron] = {}
to_clean[current_intron] = set()
for p in outgoing_paths:
to_clean[current_intron].update(p)

Expand All @@ -328,7 +328,7 @@ def remove_singleton_dead_ends(self):
incoming_paths = [self.signleton_dead_start(i) for i in self.incoming_edges[current_intron]]
if any(len(p) == 0 for p in incoming_paths):
continue
to_clean[current_intron] = {}
to_clean[current_intron] = set()
for p in incoming_paths:
to_clean[current_intron].update(p)

Expand Down

0 comments on commit 4d73424

Please sign in to comment.