Branch colors
Overview
Branch colors will be applied to tree branches. Similar to pie charts, multiple datasets for branch colors can be uploaded to a tree, but only one can be shown at a time.
Tip
notes on preparing your dataset!!Data are usually tab-delimited three-column texts, with the third column optional
- first column: the location the first column dictates where the data to be plotted. It usually contains the name of a leaf node, or two leaf names separated by a ','.
- one single leaf name dictates that the data will be plotted on / next to / under the leaf or the branch connecting directly to the leaf node
- two leaf names, on the other hand, dictates that the data will be displayed on the branch representing the last common ancestor of the two leaf nodes
Tree
(chicken,((mouse,rat),(chimp,human)));
For example:
1.first column: the location the first column dictates where the data to be plotted
chicken
mouse,human
2.second column: color to be applied:
chicken green
mouse,human blue
3.third column: optional commands to change the default behavior of current line
By default, the color will only apply to the specified branch; for example:
## branch color/ styles
human red
By adding a third column, the default behavior can be changed. Here is a list of choices of this column:
Option (case insensitive) | Description |
---|---|
ad | apply color to all descendants |
prefix | apply color to all branches connecting leaf nodes whose name starts with the string specified by the first column |
suffix | apply color to all branches connecting leaf nodes whose name ends with the string specified by the first column |
anywhere | apply color to all branches connecting leaf nodes whose name contains the string specified by the first column |
toroot | apply color to all branches connecting the leaf node and parent nodes all the way to the root |
Example
Example 1
## branch color
human,mouse red ad
Example
Example 2
ch red prefix
Example
Example 3
n red prefix
Example
Example 4
##barplots
## branch color from specified leaf node to the root
human red toroot