Skip to content

Convert to Extended Newick

Here we build an app that takes any of PhyloJS' supported tree-file formats, and outputs then to Extended Newick. If the tree doesn't contain reticulations (hybrid nodes), then the output will just be standard newick.

This app demonstrates how one can read a tree using PhyloJS from a user input file with the read() function. This would be useful, for apps expecting multiple different file types.

If you don't have a tree in any of the above formats handy to test out, then you can download a small Nexus tree here.

See the Pen to-newick by Leo Featherstone (@LeoFeatherstone) on CodePen.