I have a tree with more than 1000 sequences. I want to colour branches based on a string in the tip labels.

For example, all the branches leading to tip labels that have the word 'bacteria' in, I want to label blue, and those with the word 'archaea' I want to label red.

It is straight forward to do this for the tip labels themselves, just by using ctrl + f, and searching for your string of interest, then selecting a colour, but it seems like it is not possible to also colour the branches. Does anybody know a straightforward way of doing this, ideally without needing to write a script?

Cheers!
In FigTree you can just click on the nodes or branches of interest and colour them accordingly using the colour wheel.

If you change your selection mode to Clade, all child nodes and branches will be selected at the same time, so you only need to select the common ancestor for any set of branches you want to colour.

I don't believe there is any way to do this 'automatically' based on a given string, but it is fairly trivial to do by hand.

Example:

 1. Change selection mode to Clade (Blue box)

 2. Select a node/branch set (black box)

 3. Apply a colour (red box) 


![enter image description here][1]


  [1]: https://s8.postimg.cc/6k30b5stx/Screen_Shot_2018-07-31_at_16.15.45.png