GrapeTree Reference Manual¶
This page explains each of the features in GrapeTree.
Interaction With Enterobase¶
- Load Selected: Any strains selected in the tree will be loaded into the main search page of Enterobase. If The main search page is not open, then a new page will open in the browser.
- Highlight Checked: Any strains checked (selected) in the Enterobase main search page will become highlighted (large yellow halo) in the tree.
- Import Fields: Shows a dialog box which allows the selection of experimental fields and custom fields (columns) to be imported into the tree.
- Save:Saves the tree layout and any metadata in the tree. Changed metadata is only associated with tree and will not be updated in Enterobase. Data in custom columns, however, which you have permission to edit, will be updated in Enterobase and you will be notified if this is the case.
- Update: Will update the tree with any metadata that has changed in Enterobase since the tree was created or the last update. Also any data from custom columns, which has changed in Enterobase will also be updated in ther tree.
- Info: Shows information about the tree such as the parameters used for construction, number of strains, last modified etc.
To get started, Drag and drop files into the browser window
Trees or Profile Data¶
- Phylogenetic trees: These can be Nexus or Newick (nwk) format.
- Profile Files: These are tab delimited text with columns as alleles and strains as rows see Tutorial 1B: Basic Usage of GrapeTree (Stand-alone). header line is required, in which the strain columns and metadata columns need to start with a ‘#’. This requires the local server to be running.
- Custom Format(.json): Files generated by this program which contain the tree data exactly as displayed and any metadata.
- Metadata files The first column in the file corresponds to the node identifier in the tree.
Saving in GrapeTree¶
- Save GrapeTree: Save the tree to a JSON format file, which contains the tree data exactly as displayed and any metadata. Only compatible with GrapeTree.
- Save as Newick Tree: Save the tree as a Newick (nwk) file, which contains tree topology, branch lengths and tip names. Compatible with most tree visualisation tools.
- Download SVG: Save the tree as a Scalar Vector Graphic (SVG) file, a vector image that can be loaded into image publishing software such as Inkscape or Abobe llustrator.
Modifying the Tree Layout¶
- Original Tree: Reverts the tree to the original state when it was loaded. You will lose all your changes!
- Static redraw: Redraws the tree using the static layout. You will lose any manual adjustments to node positioning!
- Centre Tree: Adjusts view settings to place entire tree in the centre of the window.
- Show Tooltips: Shows tooltips for branches and nodes.
- Show Labels: Check to show node labels and use dropdown to choose a label category.
- Font Size: Choose font size of node labels. Use the slider to change the value, or enter a specific value into the box
- Node Size: Increase/Decrease size of all nodes. Click rewind icon to revert to default value. Use the slider to change the value, or enter a specific value into the box
- Kurtosis: Increase/Decrease relative size of all nodes. Nodes with large number of members will look more distinct. Click rewind icon to revert to default value. Use the slider to change the value, or enter a specific value into the box
- Show Pie Chart: Shows breakdown of members contained within a node, categorized on “Colour by” setting
- Show Labels: Check to show node labels
- Font Size: Choose font size of node labels. Use the slider to change the value, or enter a specific value into the box.
- Scaling: Increase/Decrease length of all branches. Click rewind icon to revert to default value. Use the slider to change the value, or enter a specific value into the box.
- Collapse Branches: All branches shorter than specified length will be collapses and nodes will merged together. Branch length value is scaled to the branch lengths defined in the original tree data. Use the slider to change the value, or enter a specific value into the box.
- Log Scale: All length of all branches will be scaled logarithmically.
Branches that are over the specified length can be rendered in a particular way based on settings in this panel. Branch length value is scaled to the branch lengths defined in the original tree data. Enter a specific value into the box or use the arrows.
- Display: Long Branches will be show as normal
- Hide: Long branches will be transparent. They are interactive, but will not be shown on the tree.
- Shorten: Long branches will be cropped back to the specified branch length cutoff. Lines will be dashed to indicate affected branches.
Layout Rendering options¶
Layout Rendering gives options on how nodes are positioned on the tree.
- Dynamic: Nodes are positioned dynamically similar to a Force Directed Layout. Nodes will try to fan out and distance themselves from neighbours. This may improve the aesthetic of the tree but will modify branch length scaling. Branch lengths are NOT to scale when this is used. The dynamic positioning can applied only to selected nodes if the “Selected Only” option is checked.
- Static: Tree layout is calculated when the tree is initially created and remains static. Relative branch length scaling (as specified in the original tree data) will be maintained if “Real Branch Length” option is checked.
Provides a table that showing loaded metadata.
- Download: Export the metadata as a tab delimited file.
- Add Metadata: Click this to add a new column, specify the field name in the column.
- Filter: Shows filtering text boxes below each column header, when checked.
- Hypo Nodes?: Shows hypothetical nodes in the metadata table, when checked.