Skip to content

Commit

Permalink
Merge pull request #92 from karel-brinda/alph
Browse files Browse the repository at this point in the history
Iterate over species in their alphabetical order when creating dustbin
  • Loading branch information
karel-brinda authored Mar 5, 2024
2 parents 4240186 + a6e56b6 commit 0db1b02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion create_batches.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def _load_clusters(self):
def _create_dustbin(self):
genome_count = 0
species_count = 0
for cluster_name, fns in self.clusters.items():
for cluster_name in sorted(self.clusters):
fns = self.clusters[cluster_name]
if len(fns) >= self.cluster_min_size:
pseudocluster_name = cluster_name
else:
Expand Down

0 comments on commit 0db1b02

Please sign in to comment.