A lightweight python library for working with trees and biological sequence collections
Lightweight python library for working with trees and sequence collections
pip install picea
The above figure can be generated with the following code
from picea import Tree, treeplot import matplotlib.pyplot as plt newick = '(((a,b),(c,d)),e)' tree = Tree.from_newick(newick) fig, (ax1, ax2) = plt.subplots(ncols = 2, figsize = (10, 4)) #left-to-right layout with direct links treeplot(tree, style='rectangular', ltr=True, ax=ax1) #right-to-left layout with square links treeplot(tree, style='square', ltr=False, ax=ax2)
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.