Performs hierarchical clustering, and then further refines the order using the seriation library.

make_ordering(mat, enable = TRUE, fast = FALSE)

Arguments

mat

Matrix suitably transformed so distances between rows are meaningful.

enable

If false, don't perform clustering.

fast

If true, just order rows with a simple one dimensional PCA.