Skip to main content

Interactive Phylogenetic trees in Vega from Python.

Project description


Visualize phylogenetic trees in Vega from Python.

Declarative tree visualizations in Python powered by Vega.

Declarative Grammar

from phylovega import TreeChart

# Construct Vega Specification
chart = TreeChart.read_newick(

    # Node attributes

    # Leaf attributes

    # Edge attributes


Interactive trees

Use Vega grammar

How does it work?

PhyloVega defines a Vega grammar (specifically, a set of transforms) to draw phylogenetic trees.


Python is due for a simple, interactive phylogenetic tree viewer. Vega has done most of the heavy lifting here. PhyloVega simply leverages Vega transform specifications for building interactive visualizations.

In the works

Here is a list of features that will eventually make it into PhyloVega.

  • More Interactivity
  • Collapible Clades.
  • Circular trees
  • ... (feel free to add to this list).


Get the latest release with pip:

pip install phylovega

Install the development version by cloning this repo and calling:

pip install -e .


PhyloVega uses the Vega4 specification. It works out-of-the-box with JupyterLab.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for phylovega, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size phylovega-0.3-py2.py3-none-any.whl (10.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size phylovega-0.3.tar.gz (7.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page