Draw networks¶
This page demonstrates how to draw parsed network information as a tree plus admixture edges.
Basic workflow¶
- Parse an extended Newick network string or file into a major tree and admixture mapping.
- Draw the major tree with
tree.draw(...). - Add admixture edges using annotation helpers.
In [ ]:
Copied!
import toytree
# Example placeholder; replace with a real network string/path
# tree, admixture = toytree.network.parse_network(network_text)
# c, a, m = tree.draw()
# ... add admixture edges ...
# c
import toytree
# Example placeholder; replace with a real network string/path
# tree, admixture = toytree.network.parse_network(network_text)
# c, a, m = tree.draw()
# ... add admixture edges ...
# c