Docsity

Dynamic Programming in Sequence Alignment: A Comprehensive Approach, Study notes of Biology

Partial preview of the text

Download Dynamic Programming in Sequence Alignment: A Comprehensive Approach and more Study notes Biology in PDF only on Docsity!

Sequence Alignment andDynamic Programming

J. R. Quine

Department of Mathematics

Sources

Part of this lecture is taken from

Calculating the

secrets of life

,

Chapter 3:

Seeing conserved

signals: using algorithms to detect similaritiesbetween biosequences, by Eugene W.Meyers.

You can print low resolution copies of

each page directly from this link.

Another

reference for this material is

Biological

Sequence Analysis:

Probabilistic Models of

Proteins and Nucleic Acids

, by Richard Durbin.

Mutations^ „

Mutation in DNA is a naturalevolutionary process

„

Less often a nucleotide is deleted orinserted

„

Some mutations are lethal, some arefavorable, some have little impact

Sequence similarity^ We are looking for similarities between

nucleotide or amino acid sequences.Some possible implications of sequencesimilarity are

„

Proteins have a common evolutionaryorigin

„

Proteins have a similar function

Important concepts^ „

Scoring (or substitution) matrix

δ

The

simplest is the unit scoring matrix as indot matrix techniques.

„

Total score of alignment,

i

δ

(a

i

, b

).i

„

Local alignment, global alignment

„

Edit graph.

This helps to formalize the

ideas of dynamic programming

Unit cost scoring scheme

Rule for Scoring Each Vertex

in the Edit Graph

Scores In The Edit Graph

Pseudo-code for dynamicprogramming

Dynamic Programming

As we see from the above the Meyers article, there is an algorithm called dynamic programming, which gives us the highest scoring alignment between two sequences.

The

algorithm runs in

O(MN) time where M and N are the lengths of the two sequences.

Alignment Algorithms^ „

Needleman-Wunsch

„

Global alignment

„

Smith-Waterman

„

Local alignment

Who Invented DynamicProgramming?

„

from

Introduction to Computational

Biology (Maps, sequences andgenomes) by Michael S. Waterman:

Gap Penalty^ „

The above unit scoring scheme scoredzero for matching with a gap.

Usually

there is a negative score for matchingwith a gap, S(a,-) = S(-,a) = -d.

The

number d is called the

gap penalty.

This will decrease the occurrence ofgaps in optimal alignments.

Homework Problem^ „

Calculate the dynamic programming matrixand an optimal alignment for the DNAsequences GAATTC and GATTA, scoring

„

+2 for a match

„

-1 for a mismatch

„

-2 for a gap

(2 is the

gap penalty)

„

(Note:

Do this twice for the different ways to

score a gap at the beginning or end of thesequence)