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.
Metadata
Release files for itaxotools-calculate-distances 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| itaxotools_calculate_distances-0.1.1.tar.gz | 26.6 kB | Without provenance | Details for itaxotools_calculate_distances-0.1.1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| itaxotools_calculate_distances-0.1.1-cp37-abi3-win_amd64.whl | CPython 3.7 | abi3 | Windows x86-64 | Details for itaxotools_calculate_distances-0.1.1-cp37-abi3-win_amd64.whl |
| itaxotools_calculate_distances-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.7 | abi3 | Linux glibc 2.17+ x86-64 | Details for itaxotools_calculate_distances-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| itaxotools_calculate_distances-0.1.1-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl | CPython 3.7 | abi3 | macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64, macOS 10.12+ x86-64 | Details for itaxotools_calculate_distances-0.1.1-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
Total release size: 2.1 MB
Release files / itaxotools_calculate_distances-0.1.1.tar.gz
| Download URL | itaxotools_calculate_distances-0.1.1.tar.gz |
|---|---|
| Size | 26.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6bdb5522f532fb16817bde4e3b5a269c80e60e6f9b65c05e23afe7470eb33e9e
|
|
BLAKE2b-256 checksum How to use checksums |
2a1b19802f51d3b61b1f0848f732827024bb7045a9a333425c182fc0fb9c9916
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / itaxotools_calculate_distances-0.1.1-cp37-abi3-win_amd64.whl
| Download URL | itaxotools_calculate_distances-0.1.1-cp37-abi3-win_amd64.whl |
|---|---|
| Size | 196.1 kB |
| Tags | CPython 3.7 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
35317d4a7aa299f5e77299e2d2484b7230e3eaad71b47d85a0af967dd1d62d80
|
|
BLAKE2b-256 checksum How to use checksums |
fa892e4ed3e034465c228a9e3093e669aadcca156a5ab7de43b0a999a4612174
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / itaxotools_calculate_distances-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | itaxotools_calculate_distances-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.7 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
295976e318500ec9023b5b415bd2a24b9c65faf02d45af594851a3f542830bc9
|
|
BLAKE2b-256 checksum How to use checksums |
e7ce76222c4d671b69675a1fd35348705063097410b77ac29ac5d9a0c0595610
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / itaxotools_calculate_distances-0.1.1-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
| Download URL | itaxotools_calculate_distances-0.1.1-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
|---|---|
| Size | 668.0 kB |
| Tags | CPython 3.7 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
16e74488c7a36e52a0fd81962ac4db71ce3a784a58375b3ad95d4d2cd39f3fae
|
|
BLAKE2b-256 checksum How to use checksums |
0b52a5c727db5f4f907a53679aa6ed36a8b2bb9c74708674cdc53309f3990979
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for itaxotools-calculate-distances 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.