Skip to main content

pwseqdist

Build Status PyPI version Coverage Status

A small package that efficiently computes distances between protein sequences. Can accommodate similarity matrices, sequences of different lengths and custom metrics.

Install

pip install pwseqdist

Example

import pwseqdist as pw
import multiprocessing
from scipy.spatial.distance import squareform

peptides = ['CACADLGAYPDKLIF','CACDALLAYTDKLIF',
            'CACDAVGDTLDKLIF','CACDDVTEVEGDKLIF',
            'CACDFISPSNWGIQSGRNTDKLIF','CACDPVLGDTRLTDKLIF']

dvec = pw.apply_pairwise_sq(seqs = peptides, 
			    metric = pw.metrics.nw_hamming_metric, 
			    ncpus  = multiprocessing.cpu_count() )

dmat = squareform(dvec).astype(int)
dmat
array([[ 0,  4,  6,  7, 15,  8],
       [ 4,  0,  5,  7, 14,  7],
       [ 6,  5,  0,  6, 14,  4],
       [ 7,  7,  6,  0, 14,  8],
       [15, 14, 14, 14,  0, 11],
       [ 8,  7,  4,  8, 11,  0]])

Metadata

Release files for pwseqdist 0.6

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

Source distribution (sdist)

Source distribution for pwseqdist 0.6
File Size Uploaded Provenance Actions
pwseqdist-0.6.tar.gz 24.2 kB Without provenance Details for pwseqdist-0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pwseqdist 0.6
File Interpreter ABI Platform Actions
pwseqdist-0.6-py3-none-any.whl Python 3 none any Details for pwseqdist-0.6-py3-none-any.whl

Total release size: 53.6 kB

Release files / pwseqdist-0.6.tar.gz

Download URL pwseqdist-0.6.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6f9bf31d49c8a8057aebb23c4d2b41689ef7767a6f70432033fbe37d745bfd6a
BLAKE2b-256 checksum
How to use checksums
2d08aa45c7b648aa951dabcae3809a93607334895a053fd042b740b1cc6149ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.2.post20200812 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.11

Release files / pwseqdist-0.6-py3-none-any.whl

Download URL pwseqdist-0.6-py3-none-any.whl
Size 29.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18dff5af254873fbc2f1a2394d194595aca04946ac0aaf389d872266c6160043
BLAKE2b-256 checksum
How to use checksums
8c89562baae49ee0cce948b522f86647a605946ea6e3e61382cb669e5a87d1d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.2.post20200812 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.11

Security for pwseqdist 0.6

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.

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