Skip to content

Commit

Permalink
Merge pull request #297 from ebolyen/scipy1.9
Browse files Browse the repository at this point in the history
MAINT: update euclidean for scipy 1.9
  • Loading branch information
mortonjt authored Dec 15, 2022
2 parents 5d253d6 + 35001ac commit 82e0a09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gneiss/cluster/_pba.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from gneiss.composition._variance import variation_matrix

from skbio import TreeNode, DistanceMatrix
from scipy.spatial.distance import euclidean
from scipy.cluster.hierarchy import linkage


Expand Down Expand Up @@ -122,7 +121,7 @@ def rank_linkage(r, method='average'):
\y2------|
\-o4
"""
dm = DistanceMatrix.from_iterable(r, euclidean)
dm = DistanceMatrix.from_iterable(r, lambda a, b: np.abs(b-a))
lm = linkage(dm.condensed_form(), method)
t = TreeNode.from_linkage_matrix(lm, r.index)
t = rename_internal_nodes(t)
Expand Down

0 comments on commit 82e0a09

Please sign in to comment.