Introduction
Newick notation writes a tree, usually a phylogenetic tree, as one line of text built
from nested parentheses. It was adopted informally in 1986 and is used by the PHYLIP
programs and in the tree blocks of NEXUS files.
Files use extensions such as .nwk, .nh and
.tree; .nhx is used for the extended NHX form.
Structure
A pair of parentheses encloses the children of a node, separated by commas, and a name may follow. A branch length is written after a colon. The tree ends with a semicolon. In the PHYLIP description, names may not contain blanks, colons, semicolons, parentheses or square brackets, and an underscore stands for a blank.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the full grammar, comments and the NHX annotations.
- Viewer: the site has no viewer for this format.
Also used for
- Golly cellular automaton rule – Golly rule: @TABLE transitions or @TREE, with state names, colours and icons.
Links
Software
- PHYLIP – package of phylogeny programs
- SplitsTree – phylogenetic trees and networks
- Dendroscope – viewer for rooted trees and networks
- IcyTree – tree viewer
Developers
- tree-sitter-newick – grammar for Newick and NHX
- ETE toolkit – tree analysis library (Python)
Reference
- The Newick tree format – PHYLIP’s description
- Newick format – summary, variants and programs