π -> 01/14/25: Bioinformatics Lecture 3
π€ Vocab
β Unit and Larger Context
Small summary
βοΈ -> Scratch Notes
Global Alignment
What is an alignment?
Alignment of x and y, resulting in 2 new sequences xβ and yβ such that |xβ| = |yβ| AND xβ contains either the characters in x as they appear in x OR β_β.
xβ removed all β_β IS x
yβ removed all β_β IS y
AND xβ[i] && yβ[i] != β_β (not both spaces)
Global alignment is an alignment of x, y such that
is max for all possible alignments.
For all possible alignments, with sequences x and y, with lengths of xβ and yβ being n and m:
- Max length is n+rCr,
Maximal alignment is defined as the maximum of:
- Counting the last letter for both
- Counting n, but using a space for the last char in y
- Counting n, but using a space for the last char in x
OPT(n,m) returns the optimal/max alignment score for sequenceAND
- Counting n, but using a space for the last char in x
Ex)
OPT(0,2) for x=ata and y=aaa
- Returnsthe max alignment score for
AND - describing the alignment of x: β and y: βaaβ
- best alignment is x: β__β and y: βaaβ
- = -2
DP Table for x=βataβ and y=βaaa
| R | a | a | a | ||
|---|---|---|---|---|---|
| 0 | 1 | 2 | 3 | ||
| 0 | 0 | -1 | -2 | -3 | |
| a | 1 | -1 | 1 | 0 | -1 |
| t | 2 | -2 | 0 | 0 | -1 |
| a | 3 | -3 | -1 | 1 | 1 |
- Matrix R stores the OPT scores s.t. -
AND