Skip to content

Commit

Permalink
Moved to using 350 not 250 as threshold for complex loci
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Venturini authored and Luca Venturini committed Feb 18, 2016
1 parent 35905bd commit dc8c519
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mikado_lib/loci_objects/abstractlocus.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,13 +402,13 @@ def find_communities(cls, graph: networkx.Graph, logger=None) -> (list, list):
# # counter = 0
# # communities = []

if len(graph) > 250:
if len(graph) > 350:
logger.warning("Complex locus in %s, switching to approximate algorithm",
logger.name)
new_graph = graph.copy()
cliques = []
cycle = 0
while len(new_graph) > 250:
while len(new_graph) > 350:
cycle += 1
logger.debug("In cycle no. %d of approximate algorithm for %s, graph length: %d",
cycle, logger.name, len(new_graph))
Expand Down
2 changes: 1 addition & 1 deletion mikado_lib/loci_objects/superlocus.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def define_subloci(self):
cds_only=cds_only)
self.logger.debug("Calculated the transcript graph")
self.logger.debug("Calculating the transcript communities")
if len(transcript_graph) > 250:
if len(transcript_graph) > 350:
self.complex = True

_, subloci = self.find_communities(transcript_graph, logger=self.logger)
Expand Down

0 comments on commit dc8c519

Please sign in to comment.