Skip to content

Commit

Permalink
fix(tree): Force rd=False.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed Apr 11, 2022
1 parent 28139a9 commit 67087e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magna/util/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ def dm_to_newick(arr: np.ndarray, labels: Collection[str]) -> str:
labels: The labels of the leaf nodes.
"""
Z = hierarchy.linkage(arr)
tree = hierarchy.to_tree(Z)
tree = hierarchy.to_tree(Z, rd=False)
newick = _get_newick(tree, tree.dist, labels)
return newick

0 comments on commit 67087e6

Please sign in to comment.