Skip to content

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).

Parameter Type
tree Tree

string