nj_tree
piqtree.nj_tree(pairwise_distances, *, allow_negative=False)
Construct a neighbour joining tree from a pairwise distance matrix.
| PARAMETER | DESCRIPTION |
|---|---|
pairwise_distances
|
Pairwise distances to construct neighbour joining tree from.
TYPE:
|
allow_negative
|
Whether to allow negative branch lengths in the output. Coerces to 0 if not allowed, by default False.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
PhyloNode
|
The neighbour joining tree. |
See Also
jc_distances : construction of pairwise JC distance matrix from alignment.
Source code in src/piqtree/iqtree/_tree.py
Usage
For usage, see "Construct a rapid neighbour-joining tree from a distance matrix".