No project description provided
Project description
pyseq-align
Python interface for the seq-align C library, written by Isaac Turner (@noporpoise).
Installation
pip install pyseq-align
To install directly from GitHub,
git clone https://github.com/Lioscro/pyseq-align.git --recursive
cd pyseq-align
pip install .
Usage
Two alignment algorithms are provided: Needleman-Wunsch and Smith-Waterman.
from pyseq_align import NeedlemanWunsch
nw = NeedlemanWunsch()
al = nw.align('ACGT', 'ACGTC')
print(al.result_a) # ACGT-
print(al.result_b) # ACGTC
print(al.score)
from pyseq_align import SmithWaterman
sw = SmithWaterman()
als = sw.align('ACGT', 'ACGTC') # unlike above, this is a list of Alignment's
for al in als:
print(al.result_a, al.pos_a) # ACGT, 0
print(al.result_b, al.pos_b) # ACGT, 0
print(al.score)
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
pyseq-align-1.0.2.tar.gz
(272.3 kB
view details)
File details
Details for the file pyseq-align-1.0.2.tar.gz
.
File metadata
- Download URL: pyseq-align-1.0.2.tar.gz
- Upload date:
- Size: 272.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0.post20201005 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9d450269d492c9a83ea9b795b14347140f12153ea93e2e5ed409606c5ac9e4d |
|
MD5 | e38003a4bd7071a484f8bd61d5389b2c |
|
BLAKE2b-256 | 0acdf72c8b225c5af83b39583f6e719ef4078d7df178b014e9248881e4cf8c0a |