Skip to main content

Smith-Waterman local aligner

Project description

# swalign

This package implements a Smith-Waterman style local alignment algorithm. You can align a query sequence to a reference. The scoring functions can be based on a matrix, or simple identity. Weights can be adjusted for match/mismatch and gaps, with gap extention penalties. Additionally, the gap penalty can be subject to a decay to prioritize long gaps.

The input files are FASTA format sequences, or strings of sequences.

Here is some skeleton code to get you started:

import swalign # choose your own values here… 2 and -1 are common. match = 2 mismatch = -1 scoring = swalign.NucleotideScoringMatrix(match, mismatch)

sw = swalign.LocalAlignment(scoring) # you can also choose gap penalties, etc… alignment = sw.align(‘ACACACTA’,’AGCACACA’) alignment.dump()

For other uses, see the script in bin/swalign or https://compgen.io/projects/swalign

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

swalign-0.3.7.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file swalign-0.3.7.tar.gz.

File metadata

  • Download URL: swalign-0.3.7.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for swalign-0.3.7.tar.gz
Algorithm Hash digest
SHA256 de9607564996ae877fdabd7f305b1acfa8bc70556c4d40a40cf0915a4a560289
MD5 6b4048b2d676f9002af984757cbdef27
BLAKE2b-256 ca5aad32a28285cf9046b7eea9978e7e8c6a1fbadbe71b9ccfa4db60ef06dbb7

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