Utility functions (gneiss.util)

This module contains helper functions for aligning metadata tables, contingency tables and trees.

Functions

match(table, metadata) Matches samples between a contingency table and a metadata table.
match_tips(table, tree) Returns the contingency table and tree with matched tips.
rename_internal_nodes(tree[, names, inplace]) Names the internal according to level ordering.
block_diagonal(ncols, nrows, nblocks) Generate block diagonal with uniformly distributed values within blocks.
band_diagonal(n, b) Creates band table with dense diagonal, sparse corners.