Skip to content

iTaxoTools/haplodemo

Repository files navigation

Haplodemo

PyPI - Version PyPI - Python Version GitHub - Tests GitHub - Windows GitHub - macOS

A graphical backend module to visualize, edit and export haplotype networks.

This is not a standalone application. For an implementation that visualizes sequence files, visit Hapsolutely.

Examples

Lay out the initial graph using a modified spring algorithm:

Long tree

Interact with the graph before saving the results:

Heavy tree

Supports haploweb visualization:

Haploweb

Installation

Haplodemo is available on PyPI. You can install it through pip:

pip install itaxotools-haplodemo

Executables

Standalone executables are included for demonstrating the library capabilities.

It is not possible to open custom haplotype networks with the demo program.

Release Windows MacOS

Usage

Launch the demo application to get an overview of the features: haplodemo

Demo

To get started on instantiating the scene, view and controls, look at window.py.

For some examples of data visualization, look at demos.py.

The network can be given in tree or graph format using the HaploTreeNode and HaploGraph types. Alternatively, populate the scene manually with nodes and edges.