The Minimum Spanning Tree Side Panel
The Side Panel contains Minimum Spanning Tree settings which can be used to customize the tree.
The Layout palette
The following options are available:
Node layout
- Show sequence types for selected nodes. Show the names of the sequence types for the nodes in the tree. If nodes are collapsed, only the first few names will be shown.
- Scale nodes. Makes the nodes larger or smaller.
- Node radius. Either 'Sequence type count' or 'Isolate count'. A sequence type may have multiple isolates and metadata entries. This setting determines whether the node radius is based on the number of sequence types or isolates.
Branch layout
- Show allelic distance. Shows the distance between different nodes in the tree. The distance is calculated as the number of loci where the allele assignment differs. Note that loci may have missing alleles. In this case, the distance calculation depends on the choice made when the tree was created.
- Collapse branches. It is possible to reduce the complexity of the tree by clustering together nodes that are within a specific allelic threshold of each other. When setting a threshold, clusters will be formed where all nodes in a cluster are within the specified threshold to at least one other node in the cluster (single-linkage clustering). See figure 10.9 for an example of a tree where nodes have been collapsed.
- Scale branches. This parameter can be adjusted to make the branches longer. Note that the force-directed layout is primarily controlled by the repulsive force, so adjusting this parameter will not always have a proportional impact. Also note that due to the large span in allelic distances for cgMLST and wgMLST schemes, the layout algorithm tries to fit an ideal branch length that is proportional to the square-root of the allelic distance.
- Reset layout. Pressing this button will reset the layout. This is done by first creating an initial radial layout, where no branches are crossed, and then applying a force-directed layout. If the graph is uncollapsed, pressing the Reset layout button will reset to the default layout created during scheme building.
Figure 10.9: Collapsing nodes in a Minimum Spanning Tree.
The Metadata palette
The Metadata palette makes it possible to color nodes based on categorical metadata.
Collapsed nodes may have different metadata, in which case the fractional proportions of the different metadata categories will be shown as a pie chart.
Note that uncollapsed nodes may have different multiple metadata values - this happens when a sequence type is associated with multiple metadata values, for instance from different isolates.
Note that when hovering over a node with the mouse, it is possible to see the distribution of metadata values at the status bar on the bottom of the application window.
The Text format palette
Here, text size, font and bold formatting can be changed. This only has an effect if either "Show sequence types for selected nodes" (and one or more nodes are selected) or "Show allelic distance" is enabled in the Layout.
