Skip to content

Commit

Permalink
fix sorting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoslicki committed Jul 6, 2022
1 parent db7b6a3 commit 4039254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/profile_to_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_top_nodes(tree, N=0):
for child in n.children:
children.append(child)

children.sort(reverse=True, key=myFunc)
children.sort(reverse=True, key=myComparator)

for i in range(N, len(children)):
nodes_to_remove.add(children[i].taxid)
Expand Down

0 comments on commit 4039254

Please sign in to comment.