Next: Multiple Alignment with Profile
Up: Profile Alignment
Previous: Aligning Sequences to a
Forward and Backward Probabilities for a Profile HMM
In the previous section we modeled the problem of aligning a
string to a profile. As with general HMMs, the main problem is to
assign meaningful values to the transition and emission
probabilities to a profile HMM. It is possible to use the
Baum-Welch algorithm for training the model probabilities, but it
remains to show how to compute the forward and backward
probabilities needed for the algorithm.
Given a string
we define:
- The forward probabilities:
- The backward probabilities:
Computing the Forward Probabilities:
- 1.
- Initialization:
- 2.
- Recursion:
![\begin{displaymath}\begin{split}
f_{j}^{M}(i) = e_{M_{j}}(x_{i}) \, \cdot \,
...
...\
&f^{D}_{j-1}(i-1)\cdot a_{D_{j-1},M_{j}}]
\end{split}
\end{displaymath}](img119.gif) |
(6.53) |
![\begin{displaymath}\begin{split}
f^{I}_{j}(i) = e_{I_{j}}(x_{i}) \, \cdot \,
...
...}}+\\
&f^{D}_{j}(i-1)\cdot a_{D_{j},I_{j}}]
\end{split}
\end{displaymath}](img120.gif) |
(6.54) |
 |
(6.55) |
Computing the Backward Probabilities:
- 1.
- Initialization:
- 2.
- Recursion:
 |
(6.59) |
 |
(6.60) |
 |
(6.61) |
Next: Multiple Alignment with Profile
Up: Profile Alignment
Previous: Aligning Sequences to a
Itshack Pe`er
1999-01-24