Expansion upon Median Unifrac to compute average phylogenetic distances between samples according to their UniFrac distance without producing negative abundance vectors.
Compute the L1UniFrac medians and L2UniFrac means for each set of samples originating from the same body site (median (respectfully, mean) of all the pushed up vectors, then push down). Record the fraction of negative entries in each sample (should be 0 for L2 mean).
Compute the L1UniFrac medians and L2UniFrac means for each set of samples originating from the same body site (median (respectfully, mean) of all the pushed up vectors, then push down). Record the fraction of negative entries in each sample (should be 0 for L2 mean).