Skip to content
Python command line utility for nucleotide sequence alignment.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
run.py

README.md

Needleman–Wunsch.Py

The Needleman–Wunsch algorithm is a dynamic programming method to perform nucelotide or protein sequencing. This simple Python script (hopefully a package), will allow you to perform sequence alignment as a command line utility.

Visualization of the algorithm:

Algorithm demonstration

Usage

To use this command line utility, clone the repo and run:

python run.py --seq1 ACTCG --seq2 ACAGTAG --match 1 --mismatch 0 --gap -1

You can run a sequence of any length and insert your own scoring scheme.

Features

The currently supported features are:

  • Displaying scoring matrix
  • Displaying direction matrix (slightly broken)

Future features include:

  • Displaying final sequence alignment
  • Making it into a true Python package

References

Needleman, S. B. & Wunsch, C. D. (1970). A general method applicable to the search for similarities in the amino acid sequence of two proteins. Journal of Molecular Biology. 48 (3): 443–53. doi:10.1016/0022-2836(70)90057-4.

You can’t perform that action at this time.