toNewick
function toNewick(tree): string;Defined in: packages/components/src/components/PhyloTree/utils/newick.ts:80
Serializes a Tree to Newick. Names with Newick’s special characters are quoted; a zero branch length on the root is omitted. Pair with applyTreeSelection to export the tree as displayed (rerooted, reordered).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
tree |
Tree |
Returns
Section titled “Returns”string