Sort functions (gneiss.sort)

This module contains sorting functions that sort contingency tables in addition to trees.

Functions

mean_niche_estimator(abundances, gradient) Estimates the mean niche along a gradient of an organism.
niche_sort(table, gradient[, niche_estimator]) Sort the table according to estimated niches.
ladderize(tree[, ascending]) Sorts tree according to the size of the subtrees.
gradient_sort(tree, gradient[, ascending]) Sorts tree according to ordering in gradient.