The tree panel creates a visualisation of a Newick file. Multiple basic styles are available, and many details can be configured.
Some basic tree settings and interactions
The tree style can be changed by clicking the panel configuration button, and then hovering over the tree button and selecting one of the options
Nodes & Labels options
- If leaf borders are turned on, they will be the same colour as the node unless they have no colour, in which case the border will be dark grey.
- When turning on the leaf labels, the labels will be shown in a sparse fashion so that overlapping leaf labels are hidden. In order to see all leaf labels, zoom in (see below).
- When displaying leaf labels only those which do not overlap each other will be displayed. You can think of these as sparse labels. As you zoom in on the tree more labels will be revealed.
- Align leaf labels: move the labels away from the nodes and place them flush to one another
- Colour leaf labels: they will be the same colour as defined within themenu
- The internal nodes toggle will display internal nodes if available
- If internal nodes have label properties, the Internal Labels toggle will turn those on, and the slider will change the label size
- Filter Internal Nodes is an option when Internal Labels is selected, and will
- Branch lengths can be displayed and defined using the Branch Lengths toggle & slider
- The colour internal edges toggle will colour edges connected to leaves using same colour as the connected leaf node
These are coloured shapes added alongside the tips of the tree to show features that differ between samples. This information adds context to the tree, and can help identify sample metadata correlating with genotype.
When adding metadata blocks, the blocks to be displayed can be selected from all available columns, and the metadata block characteristics can be changed.
The colours shown are defined within the
menu, and show up in the Legend side panel. To change the colours, select each Colour Column within the
menu, set the Colour Palette, and do this for each column you'd like to change.
TIP: Remember that the Colour Column option should be returned to the column you want to use as the main Colour Column on your Dashboard or view.
Caution: once you have saved views in the views sidebar, there is no way for Microreact to know which views you want to apply these colour changes, so you must make the changes and save them on each saved view, using "Update View" option. This effort can be avoided by setting the colours at the start. One robust way to do this is by using the Colour Definition "__colour" option.
Block Headers defines the size of the label font. Block Size defines the width of each block. Block Gap defines the space between blocks, if multiple blocks are added.
Clicking on the white space next to the tree will allow the tree to be dragged around the panel. The tree can be zoomed (in or out) by using a mouse wheel. Holding the control (Windows)/command (Mac) key or alt (Windows)/option (Mac) whilst rotating the mouse wheel will zoom the tree horizontally and vertically respectively.
The configuration icon
makes zoom controls show/hide.
The +/- icons zoom in and out, while the central icon determines whether the zooming happens in all directions, horizontally, or vertically.
Hovering to the left of a parent node will highlight all the children node branches in green
Right-clicking on this selected parent node will bring up a contextual menu that allows several functions
This will display just the child nodes of the selected parent node. If you have trouble hovering over the desired child node, zoom in until you can select the desired node to right-click on it.
Collapse all the child nodes into a single branch
Rotate the child nodes around the selected parent node
Set the selected node as the root of the tree
Export the selected subtree as a text list of the leaf label names or as a newick file containing just the subtree.
The features above refer to a subtree. Right-clicking away from tree within the panel will display a contextual menu
button will fit the tree to the current panel size
Clicking on this returns the tree state to it's original topology and displays all the leaves
Clicking this enables the tree to be midpoint rooted if it was not rooted prior to upload
The tree can be exported as a text file with a list of leaf labels, a newick file or as a PNG image
You can also export the tree as a SVG file via the
You can filter the tree data by
- clicking on an internal node in the tree or
- using the lasso toolto draw a polygonal region
- Filtering on other panels that are linked to the tree (e.g. selecting via the data-slicer)