Skip to content

Commit

Permalink
fix bug in issue #2216
Browse files Browse the repository at this point in the history
  • Loading branch information
ivagljiva committed Feb 12, 2024
1 parent 4a70f37 commit fbc6cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anvio/genomesimilarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def pick_representative_with_largest_Qscore(self, cluster):
return None

if len(cluster) == 1:
return cluster[0]
return list(cluster)[0]

# get all substantive completion and lenght values for genomes within the cluster
substantive_completion_and_length_values = [(g, self.genomes_info_dict[g]['percent_completion'] - self.genomes_info_dict[g]['percent_redundancy'], self.genomes_info_dict[g]['total_length']) for g in cluster]
Expand Down

0 comments on commit fbc6cf3

Please sign in to comment.