Haplotype genealogies based on Fitch distances
Project description
Fitchi
Haplotype genealogies based on Fitch distances.
This is a Python package for Fitchi. For more information on the original, see here.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file itaxotools-fitchi-1.3.0.tar.gz
.
File metadata
- Download URL: itaxotools-fitchi-1.3.0.tar.gz
- Upload date:
- Size: 117.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c157fa2d82eff5d0ccfef6341d7460ee87e1beb0cdd7cde238e68aaa6a10c91 |
|
MD5 | 5ff58e3b1ec5adada862e53cdb1b4d63 |
|
BLAKE2b-256 | 5b103a40fffde5356482a4638120d04862300a08d8efac04db6e1f41705ce4c4 |
File details
Details for the file itaxotools_fitchi-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: itaxotools_fitchi-1.3.0-py3-none-any.whl
- Upload date:
- Size: 44.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b332970693bc4bd3441adcfb991653ebbe14b5d3e6aa55bdee5dc257f499bcee |
|
MD5 | d5413f0e20d0bfb6545dffce945b519b |
|
BLAKE2b-256 | 82e4d30c009fe50b26cf3964b4a5f7683c2aa6c6a2080cf12ec59803b64a5bc0 |