Skip to content

Commit

Permalink
Fixed the bug found by @gemygk in the last run (still pertaining to #129
Browse files Browse the repository at this point in the history
)
  • Loading branch information
lucventurini committed Oct 3, 2018
1 parent 3f1d60c commit 9794cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mikado/loci/locus.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ def _find_communities_boundaries(self, five_clique, three_clique):
comm = five_clique.popleft()
comm = deque(sorted(list(set.difference(set(comm), five_found)),
key=lambda internal_tid: self[internal_tid].start))
if len(comm) == 1:
if len(comm) < 2:
continue
first = comm.popleft()
five_found.add(first)
Expand All @@ -650,7 +650,7 @@ def _find_communities_boundaries(self, five_clique, three_clique):
comm = three_clique.popleft()
comm = deque(sorted(list(set.difference(set(comm), three_found)),
key=lambda internal_tid: self[internal_tid].end, reverse=True))
if len(comm) == 1:
if len(comm) < 2:
continue
first = comm.popleft()
three_found.add(first)
Expand Down

0 comments on commit 9794cbc

Please sign in to comment.