Next: Affine gaps penalty
Up: Gap Penalty
Previous: Gap penalties types
Constant gap weight model
The simplest choice is the constant gap weight, where each individual space is free, and each gap is given a weight of Ws independent of the number of
spaces in the gap. Letting 67#67
denote the weights of match and mismatch only (
68#68
for every
character x). Thus we have to find an alignment that maximzes:
69#69
where S' and T' represent S and T after inserting space.
A generalization of the constant gap weight model is to add a
weight Ws for each space in the gap. In this case, Wg
represents the cost of starting a gap, and Ws represents the
cost of extending the gap by one space.This leads us to the
affine gap weight model. This is called affine gap weight model
because the weight contributed by a single gap of length q is
given by the affine function
Wg + q Ws. The constant gap
weight model is simply the affine model with Ws = 0 . Thus we
have to find an alignment that maximizes:
70#70
while S' and T' represent S and T after inserting space and
68#68
for every character x.
It has been suggested that some biological phenomena are better
modeled by a gap weight function where each additional space in a
gap contributes less to the gap weight than the preceding space.
In other words, a gap weight that is a convex, but not affine function of its length. An example is the function
71#71,
where q is the length of the gap. Finally, the most
general gap weight that might be considered is the arbitrary gap weight, where the weight of a gap is an arbitrary function
72#72
of its length q. The constant, affine and convex weight models arerestricted cases of the arbitrary weight model.
Next: Affine gaps penalty
Up: Gap Penalty
Previous: Gap penalties types
Peer Itsik
2000-11-20