shawnlaffan / biodiverse

A tool for the spatial analysis of diversity
http://shawnlaffan.github.io/biodiverse/
GNU General Public License v3.0
73 stars 19 forks source link

Indices: ensure trees have non-negative branch lengths #896

Closed shawnlaffan closed 7 months ago

shawnlaffan commented 7 months ago

It is possible for a tree to have negative branch lengths, for example a cluster tree generated using the recalculated linkage.

However, most of the phylogenetic indices assume non-negative branch lengths.

While some might handle negative lengths, for now we should set a precondition that all branches have non-negative lengths.