Calculate distances between DNA sequences
Project description
Calculate Distances
Calculate distances between DNA sequences. Leverages Rust for faster computation.
Originally part of TaxI2.
Installation
calculate_distances is available on PyPI. You can install it through pip
:
pip install itaxotools-calculate-distances
Usage
Import the distance calculation functions, each of which take two string arguments:
from itaxotools import calculate_distances as calc
x = "ACGT"
y = "AN-A"
calc.seq_distances_p(x, y) # 0.5
calc.seq_distances_p_gaps(x, y) # 0.66
calc.seq_distances_jukes_cantor(x, y) # 0.82
calc.seq_distances_kimura2p(x, y) # inf
Unit tests
Only basic tests included. More extensive unit testing is currently done as part of TaxI2.
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 Distributions
File details
Details for the file itaxotools_calculate_distances-0.1.1.tar.gz
.
File metadata
- Download URL: itaxotools_calculate_distances-0.1.1.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bdb5522f532fb16817bde4e3b5a269c80e60e6f9b65c05e23afe7470eb33e9e |
|
MD5 | 639eb84e7364d57f410eff63aae569e6 |
|
BLAKE2b-256 | 2a1b19802f51d3b61b1f0848f732827024bb7045a9a333425c182fc0fb9c9916 |
File details
Details for the file itaxotools_calculate_distances-0.1.1-cp37-abi3-win_amd64.whl
.
File metadata
- Download URL: itaxotools_calculate_distances-0.1.1-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 196.1 kB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35317d4a7aa299f5e77299e2d2484b7230e3eaad71b47d85a0af967dd1d62d80 |
|
MD5 | 3497d6be7331e0d4244bf81a7a854623 |
|
BLAKE2b-256 | fa892e4ed3e034465c228a9e3093e669aadcca156a5ab7de43b0a999a4612174 |
File details
Details for the file itaxotools_calculate_distances-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: itaxotools_calculate_distances-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 295976e318500ec9023b5b415bd2a24b9c65faf02d45af594851a3f542830bc9 |
|
MD5 | 60f649ab063eaac72862b2cbe84db9e6 |
|
BLAKE2b-256 | e7ce76222c4d671b69675a1fd35348705063097410b77ac29ac5d9a0c0595610 |
File details
Details for the file itaxotools_calculate_distances-0.1.1-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
.
File metadata
- Download URL: itaxotools_calculate_distances-0.1.1-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 668.0 kB
- Tags: CPython 3.7+, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16e74488c7a36e52a0fd81962ac4db71ce3a784a58375b3ad95d4d2cd39f3fae |
|
MD5 | 43f11a2a5c7a6cc2be73b1834e5c0522 |
|
BLAKE2b-256 | 0b52a5c727db5f4f907a53679aa6ed36a8b2bb9c74708674cdc53309f3990979 |