![]() |
![]() |
|
![]() |
![]() |
Encyclopedia :
N :
NE :
NEE :
Needleman-Wunsch algorithm |
|
|
Needleman-Wunsch algorithmThe Needleman-Wunsch algorithm performs a global alignment on two sequences (called A and B here). It is commonly used in bioinformatics to align protein or nucleotide sequences. The algorithm was proposed in 1970 by Saul Needleman and Christian Wunsch in their paper A general method applicable to the search for similarities in the amino acid sequence of two proteins.The Needleman-Wunsch algorithm is an example a of dynamic programming, and is guaranteed to find the alignment with the maximum score. Needleman-Wunsch is the first instance of dynamic programming being applied to biological sequence comparison. Scores for aligned characters are specified by a similarity matrix. Here, is the similarity of characters i and j. It uses a linear gap penalty, here called d. For example, if the similarity matrix was
then the alignment: AGACTAGTTAC CGA---GACGT with a gap penalty of -5, would have the following score... To find the alignment with the highest score, a two-dimensional array (or matrix) is allocated. This matrix is often called the F matrix, and its (i,j)th entry is often denoted There is one column for each character in sequence A, and one row for each character in sequence B. Thus, if we are aligning sequences of sizes n and m, the amount of memory used by the algorithm is in O(nm). (However, there is a modified version of the algorithm which uses only O(m + n) space, at the cost of a higher running time. This modification is in fact a general technique which applies to many dynamic programming algorithms; this method was introduced in Hirschberg's algorithm for solving the longest common subsequence problem.) As the algorithm progresses, the will be assigned to be the optimal score for the alignment of the first i characters in A and the first j characters in B. The principle of optimality is then applied as follows. The pseudo-code for the algorithm to compute the F matrix therefore looks like this (array indexes start at 0): |
|
|
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License. |
|
| © 2008 Chamas Enterprises Inc. |