Skip to content

Newick Files

Tony edited this page Dec 1, 2026 · 1 revision

A Newick file holds a phylogenetic tree: the branching structure of a set of sequences, with a length on each branch. Use it when a phylogenetics program has already built a tree for your sequences, and you want to see it in the Phylogenetic Tree view or use its distances in the network.

A Newick tree is written in nested parentheses, with the leaf names and branch lengths, and it ends with a semicolon:

(A:0.1,B:0.2,(C:0.05,D:0.3):0.1);

Recognizing a Newick file

MicrobeTrace reads a file as Newick when its contents start with (, end with ;, and have balanced parentheses. A file named .nwk or .newick is also guessed to be Newick when the contents say nothing. Check the file's button in the Files view. It should say Newick.

What MicrobeTrace does with it

  • Leaves become nodes. Each leaf name is a node ID, so it matches the same IDs in your other files. A node list can add attributes to those nodes.
  • Distances become links. MicrobeTrace computes the distance between every pair of leaves along the tree, and stores it as a link under the Distance Metric chosen in the Files view. A tree with 1,000 leaves has 499,500 pairs, so it can add that many links. Use the Link Threshold to show only the close ones.
  • The Phylogenetic Tree view draws the tree from the Newick file when it is the only file loaded. If you load other files as well, the view computes a tree from the distances instead.

Exporting a tree

The download button in the Phylogenetic Tree view exports the tree as a Newick file (.nwk). See Saving and Sessions.

Clone this wiki locally