Skip to main content

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.

Release files for itaxotools-fitchi 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for itaxotools-fitchi 1.3.0
File Size Uploaded
itaxotools-fitchi-1.3.0.tar.gz 117.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for itaxotools-fitchi 1.3.0
File Interpreter ABI Platform
itaxotools_fitchi-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 161.7 kB

Release files / itaxotools-fitchi-1.3.0.tar.gz

Download URL itaxotools-fitchi-1.3.0.tar.gz
Size 117.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5c157fa2d82eff5d0ccfef6341d7460ee87e1beb0cdd7cde238e68aaa6a10c91
BLAKE2b-256 checksum
How to use checksums
5b103a40fffde5356482a4638120d04862300a08d8efac04db6e1f41705ce4c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / itaxotools_fitchi-1.3.0-py3-none-any.whl

Download URL itaxotools_fitchi-1.3.0-py3-none-any.whl
Size 44.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b332970693bc4bd3441adcfb991653ebbe14b5d3e6aa55bdee5dc257f499bcee
BLAKE2b-256 checksum
How to use checksums
82e4d30c009fe50b26cf3964b4a5f7683c2aa6c6a2080cf12ec59803b64a5bc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page