Creates iTOL files for tree decoration, given a set of GTDB genomes.
pip install gtdb-itol-decorate
This program requires a taxonomy file (available from the GTDB website),
e.g. bac120_taxonomy.tsv
, or ar53_taxonomy.tsv
.
gtdb_itol_decorate /path/to/tree.tree /path/to/taxonomy.tsv /path/to/output
The program will output the following files.
Note: Typical use will be:
- Upload
[name_of_input_tree].tree_stripped
- Drag the following files into the tree:
itol_dataset_strip_phylum.txt
,itol_labels.txt
,itol_popup.txt
,itol_tree_colours.txt
- Use the
itol_collapse_[rank].txt
files to manipulate the view of the tree as desired.
This is the tree that you should upload to iTOL. It has been stripped of all internal labels to match the iTOL tree format.
When this file is dropped into the iTOL tree, it will collapse all nodes at this rank.
This file will create a new colour strip for each phylum.
This will add taxon labels to the tree for both the internal and leaf nodes.
Note: To enable internal labels:
- Open the "Control panel"
- Select the "Advanced" tab.
- Under "Branch metadata display", make sure "Node IDs" is set to "Display".
This creates a popup window when the mouse is hovered over each leaf node. It will display the genome id, and full taxonomy string.
Creates a colour range for each taxon, based on the phylum colour. It will increase in brightness from phylum to species.
Note: This can be changed by altering the "Coloured ranges" popup that will appear after adding this file. In the "Cover" option, "Clade" view is recommended.