KoslickiLab / L2-UniFrac

Expansion upon Median Unifrac to compute average phylogenetic distances between samples according to their UniFrac distance without producing negative abundance vectors.
1 stars 0 forks source link

Clustering #6

Closed dkoslicki closed 3 years ago

dkoslicki commented 3 years ago

Use a clustering method that takes a precomputed distance matrix (eg. sklearn.cluster.AgglomerativeClustering and sklearn_extra.cluster.KMedoids) and apply it to both the L1 and L2 all-pairs distance matrices. Set the number of clusters equal to the number of metadata categories.