Skip to main content

Haplotype genealogies based on Fitch distances

Project description

Fitchi

PyPI - Version PyPI - Python Version GitHub - Tests

Haplotype genealogies based on Fitch distances.

This is a Python package for Fitchi. For more information on the original, see here.

Genealogy

Click for a comprehensive output example

Installation

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

pip install itaxotools-fitchi

Usage

The original command-line tool is included as part of the installation. It produces HTML files from Nexus files, as demonstrated with the example input and output files. For information about the available options, you may refer to the original documentation.

Note that you will need all dependencies in order to run Fitchi this way:

fitchi examples/example.nex examples/example.html -m 3 -p pop1 pop2
start examples/example.html  # browse results on Windows

You may also invoke Fitchi from Python using compute_fitchi_tree(). This returns a tree in the form of HaploNode objects, which can be used for downstream analysis or visualization. Only scipy is required in this case.

See the scripts folder for some usage examples.

Dependencies

Fitchi requires scipy. Extra statistics require biopython. Visualization requires pygraphviz.

To install pygraphviz, please follow these instructions from the pygraphviz documentation. For example, to install pygraphviz on Windows, first install Graphviz to the default location, then execute the following command in PowerShell:

pip install pygraphviz --config-setting build_ext^="^--include-dir=C:\Program Files\Graphviz\include" --config-setting build_ext^="^--library-dir=C:\Program Files\Graphviz\lib"

Citation

Matschiner M (2015) Fitchi: Haplotype genealogy graphs based on the Fitch algorithm. Bioinformatics, 32:1250-252.

Project details


Download files

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

Source Distribution

itaxotools-fitchi-1.3.0.tar.gz (117.5 kB view hashes)

Uploaded Source

Built Distribution

itaxotools_fitchi-1.3.0-py3-none-any.whl (44.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page