This post describes a simple GUI tool that uses Toytree and PyQt to plot trees and color the nodes according to associated meta data that is loaded from a csv file. This allows basic annotation with categorical or continuous values matched to each tip in the tree. The trees can be loaded from newick format files. The program can be loaded with a test tree and data for testing.
Currently this program is included as part of the SNiPgenie package where it can be invoked using the
TreeViewer class is a QWidget so you can also add this tool to your own application by importing the module and creating the widget like this:
from snipgenie import treeview
tv = treeview.TreeViewer(tree='tree.newick', meta='meta.csv')
#load tree separately if needed
#add the widget to your app as you require e.g: