This tutorial will explain how to color a tree in TopiaryExplorer using metadata, and the many different options available when coloring.
In order to color a tree you must have some metadata that corresponds to your tree.
You can color a tree using only tip data, which corresponds directly to the tips on the tree.
You can also color a tree based on sample metadata, where the tips on the tree are linked to samples through an OTU table and relevant sample metadata. This is an OTU table:
This is a sample metadata table:
To color the branches of a tree, use the branch panel in the tree toolbar. There is a button labeled ‘Color by...’ which when clicked will give options for coloring by Tip data or Sample metadata.
TopiaryExplorer will provide options for coloring by each column defined in either Tip data table or the Sample metadata table.
Color by tip data:
Note
You can not color by Tip ID because that would color each branch a different color, which is not useful.
Color by sample metadata:
You can also color the labels of the tree by sample metadata or tip metadata using the same steps described above for branches.
Note
Make sure you have tip labels turned on and that you are zoomed in enough to see tip labels, otherwise they will not show up.