Display a Phylogenetic Tree Showing Bootstrap Support

We use a tree saved in json format from a 100 replicate bootstrap resamplings. The show_support=True argument controls whether or not to display support. The threshold=0.8 argument indicates only nodes with a support level ≤0.8 will have support text displayed.

from cogent3.app import io


reader = io.load_json()

tree = reader("../../data/tree-with-support.json")
fig = tree.get_figure(show_support=True, threshold=0.8)
fig.scale_bar = None
fig.show(width=500, height=400)