1 / 16

Affine Gap Penalties

Affine Gap Penalties. Sushmita Roy BMI/CS 576 www.biostat.wisc.edu/bmi576/ Sushmita Roy sroy@biostat.wisc.edu Sep 25 th , 2012. BMI/CS 576. More on g ap p enalty f unctions. a gap of length k is more probable than k gaps of length 1

arav
Download Presentation

Affine Gap Penalties

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Affine Gap Penalties Sushmita Roy BMI/CS 576 www.biostat.wisc.edu/bmi576/ Sushmita Roy sroy@biostat.wisc.edu Sep 25th, 2012 BMI/CS 576

  2. More on gap penalty functions • a gap of length k is more probable than k gaps of length 1 • a gap may be due to a single mutational event that inserted/deleted a stretch of characters • separated gaps are probably due to distinct mutational events • a linear gap penalty function treats these cases the same • it is more common to use gap penalty functions involving two terms • a penaltydassociated with opening a gap • a smaller penaltyefor extending the gap

  3. Global Alignment with general gap penalty function why the general case has time complexity O(n3) consider every previous element in the column k ranges over previous coordinates consider every previous element in the row

  4. Gap penalty functions linear affine

  5. Dynamic programming for the affine gap penalty case • to do in time, need 3 matrices instead of 1 best score given that xiis aligned to yj best score given that xiis aligned to a gap (move in vertical direction) best score given that yjis aligned to a gap (move in horizontal direction)

  6. Global alignment DP for the affine gap penalty case

  7. Global alignment DP for the affine gap penalty case • initialization • traceback • start at largest of • stop at • note that pointers may traverse all three matrices

  8. Global alignment example (affine gap penalty) A C A C T d= 4, e= 1 0 -in -in -in -in -in M -in -in -in -in -in -in Ix -5 -in -4 Iy -6 -7 -8 -5 -in 1 -4 -7 -8 -in -4 -in -in -in -in A -3 -in -in -4 -5 -6 x 0 -in -3 -2 -5 -6 -9 -5 -3 -8 -11 -12 A -7 -in -in -4 -5 -6 -4 -in -6 -1 -3 -4 -4 -6 -4 -6 -9 -10 T -10 -in -in -8 -5 -6 y

  9. Global alignment example (affine gap penalty) ACACT _ _AAT A C A C T 0 -in -in -in -in -in M -in -in -in -in -in -in Ix -5 -in -4 Iy -6 -7 -8 -5 -in 1 -4 -7 -8 -in -4 -in -in -in -in A -3 -in -in -4 -5 -6 0 -in -3 -2 -5 -6 -9 -5 -3 -8 -11 -12 A -7 -in -in -4 -5 -6 -4 -in -6 -1 -3 -4 -4 -6 -4 -6 -9 -10 T -10 -in -in -8 -5 -6

  10. Global alignment example (affine gap penalty) ACACT AA__T A C A C T 0 -in -in -in -in -in M -in -in -in -in -in -in Ix -5 -in -4 Iy -6 -7 -8 -5 -in 1 -4 -7 -8 -in -4 -in -in -in -in A -3 -in -in -4 -5 -6 0 -in -3 -2 -5 -6 -9 -5 -3 -8 -11 -12 A -7 -in -in -4 -5 -6 -4 -in -6 -1 -3 -4 -4 -6 -4 -6 -9 -10 T -10 -in -in -8 -5 -6

  11. Global alignment example (affine gap penalty) ACACT A_ _AT A C A C T 0 -in -in -in -in -in M -in -in -in -in -in -in Ix -5 -in -4 Iy -6 -7 -8 -5 -in 1 -4 -7 -8 -in -4 -in -in -in -in A -3 -in -in -4 -5 -6 0 -in -3 -2 -5 -6 -9 -5 -3 -8 -11 -12 A -7 -in -in -4 -5 -6 -4 -in -6 -1 -3 -4 -4 -6 -4 -6 -9 -10 T -10 -in -in -8 -5 -6

  12. Local alignment DP for the affine gap penalty case

  13. Local alignment DP for the affine gap penalty case • initialization • traceback • start at largest • stop at

  14. Gap penalty functions • linear: • affine: • convex: as gap length increases, magnitude of penalty for each additional character decreases e.g.

  15. Computational complexity and gap penalty functions linear: affine: general: assuming two sequences of length n

  16. Pairwise alignment summary • the number of possible alignments is exponential in the length of sequences being aligned • dynamic programming can find optimal-scoring alignments in polynomial time • the specifics of the DP depend on • local vs. global alignment • gap penalty function • affine penalty functions are most commonly used

More Related