- A gap function is called linear if it is in the form of:
$g(k) = \beta * k$, for some parameter $\beta$.
$k$ refers to the length of the gap. - A gap function is called affine if it is in the form of:
$g(k) = \alpha + \beta * k$, for some parameter $\alpha$ and $\beta$.
$\alpha$ is called gap open cost and $\beta$ is called gap extend cost.
$k$ refers to the length of the gap.
Needleman-Wunsch algorithm is used to do global alignment with linear scoring function.
Gotoh algorithm is used to do global alignment with affine gap function.
For example:We have 2 sequences: ATCG and ATGCCG and match score = 2, mismatch score = -1. If we align the 2 sequence using linear gap function, we will get 2 possible results (by using Needleman-Wunsch algorithm):
-
A T - - C G A T G C C G A T - C - G A T G C C G
No comments:
Post a Comment