Skip to main content

Calculate distances between DNA sequences

Project description

Calculate Distances

PyPI - Version PyPI - Python Version PyPI - License GitHub - Tests

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


Download files

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

Source Distribution

itaxotools_calculate_distances-0.1.1.tar.gz (26.6 kB view details)

Uploaded Source

Built Distributions

itaxotools_calculate_distances-0.1.1-cp37-abi3-win_amd64.whl (196.1 kB view details)

Uploaded CPython 3.7+ Windows x86-64

itaxotools_calculate_distances-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

itaxotools_calculate_distances-0.1.1-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (668.0 kB view details)

Uploaded CPython 3.7+ macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64

File details

Details for the file itaxotools_calculate_distances-0.1.1.tar.gz.

File metadata

File hashes

Hashes for itaxotools_calculate_distances-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6bdb5522f532fb16817bde4e3b5a269c80e60e6f9b65c05e23afe7470eb33e9e
MD5 639eb84e7364d57f410eff63aae569e6
BLAKE2b-256 2a1b19802f51d3b61b1f0848f732827024bb7045a9a333425c182fc0fb9c9916

See more details on using hashes here.

File details

Details for the file itaxotools_calculate_distances-0.1.1-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for itaxotools_calculate_distances-0.1.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 35317d4a7aa299f5e77299e2d2484b7230e3eaad71b47d85a0af967dd1d62d80
MD5 3497d6be7331e0d4244bf81a7a854623
BLAKE2b-256 fa892e4ed3e034465c228a9e3093e669aadcca156a5ab7de43b0a999a4612174

See more details on using hashes here.

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

File hashes

Hashes for itaxotools_calculate_distances-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 295976e318500ec9023b5b415bd2a24b9c65faf02d45af594851a3f542830bc9
MD5 60f649ab063eaac72862b2cbe84db9e6
BLAKE2b-256 e7ce76222c4d671b69675a1fd35348705063097410b77ac29ac5d9a0c0595610

See more details on using hashes here.

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

File hashes

Hashes for itaxotools_calculate_distances-0.1.1-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 16e74488c7a36e52a0fd81962ac4db71ce3a784a58375b3ad95d4d2cd39f3fae
MD5 43f11a2a5c7a6cc2be73b1834e5c0522
BLAKE2b-256 0b52a5c727db5f4f907a53679aa6ed36a8b2bb9c74708674cdc53309f3990979

See more details on using hashes here.

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