Skip to main content

neighbor_joining

Function neighbor_joining 

Source
pub fn neighbor_joining(
    distances: VR2D<'_>,
    labels: &[&str],
) -> Result<PhylogeneticTree, ErrorsJSL>
Expand description

Neighbour joining (Saitou and Nei): repeatedly joins the pair that minimises the total tree length, using the net divergence of each taxon to correct for unequal rates. Returns an unrooted tree and recovers the true tree exactly from additive distances.