Skip to content

lightweight python library for working with trees and sequence collections

License

Notifications You must be signed in to change notification settings

holmrenser/picea

Repository files navigation

picea

Sprucing up bioinformatics analysis

CI docs Coverage Status

PyPI version PyPI pyversions PyPI status

Code style: black

pip install picea

picea has datastructures and methods to perform common bioinformatics tasks. Currently sequences, sequence annotations, trees, and ontologies are supported.

Example:

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)

About

lightweight python library for working with trees and sequence collections

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages