Skip to main content

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


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.0.tar.gz (269.9 kB view details)

Uploaded Source

File details

Details for the file pyseq-align-1.0.0.tar.gz.

File metadata

  • Download URL: pyseq-align-1.0.0.tar.gz
  • Upload date:
  • Size: 269.9 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.50.0 CPython/3.8.3

File hashes

Hashes for pyseq-align-1.0.0.tar.gz
Algorithm Hash digest
SHA256 61c9bc3046313c08285189017e9de7970cc2fdfda8d07ff8a27072470e55e567
MD5 b2235e173372404723579c9b802c24ab
BLAKE2b-256 9462a36552a6a2dae8e2962da9cfb4691ae7f71422dea64c9415068fb7708f68

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