sequence analysis of nucleic acids and proteins: part 1 based on chapter 3 of post-genome...

25
Sequence analysis of nucleic acids and proteins: part 1 Based on Chapter 3 of Post-genome Bioinformatics by Minoru Kanehisa, Oxford University Press, 2000 Similarity search Lecture by Terry Speed

Post on 21-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Sequence analysis of nucleic acids and proteins: part 1

Based on Chapter 3 of Post-genome Bioinformatics

by Minoru Kanehisa, Oxford University Press, 2000

Similarity search

Lecture by Terry Speed

Pairwise sequence alignment by the dynamic programming algorithm. The algorithm involves finding the optimal path in the

path matrix. (a), which is equivalent to searching the optimal solution in the search tree (b).

(a) Path Matrix (b) Search Tree

A I M S

A

M

O

S

Alignment AIM-S A-MOS Pruning by an optimization function

X X

. . . . .

. . . . . . . . .

Methods for computing the optimal score in the dynamic programming algorithm (a ) the gap penalty is a constant.

(b) the gap penalty is a linear function of the gap length.

(a) (b)Di, j-l

d

Di-1, j

Di-1, j-1 Di-1, j-1

Di-1, j

Di, j-l

d

ws(i), t(j)

Di,j

Di, j(2)b

ws(i), t(j)

Di,j(1)

Di,j(3)

b

Concepts of global and local optimality in the pairwise sequence alignment. The distinction is made as to how the

initial values are assigned to the path matrix.

(a) Global vs. Global (b) Local vs. Global

0 0 0 . . . . . . 0

.

.

.

.

0

0 0 . . . . . . 0

.

.

.

.

0

0 0 . . . . . . 0

X

(c) Local vs. Local

Dynamic programming to find edit distances

- Edit operation: M, R, I, D

- Edit transcript: A string over the alphabet M, R, I, D that describes a transformation of one string into another. Example:

R D I M D MR D I M D M

M A - T H S

A - R T - S

- Edit (Levens(h)tein) distance: The minimum number of edit operations necessary to transform one string into another. (Note: matches are not counted.) Example:

R D I M D MR D I M D M

1+ 1+ 1+ 0+ 1+ 0 = 4

The recurrence- Stage: position in the edit transcript;

- State: I, D, M, or R;

- Optimal value function: D(i, j)

where D(i, j) = edit distance of Seq1[1...i] and Seq2[1...j]

- Recurrence relation: 1 +D(i-1, j)

D(i, j) = min 1 +D(i, j-1)

t(i, j) +D(i-1, j-1) , where

t(i, j) = {1, Seq1(i) ≠ Seq2( )j0, Seq1( ) i = Seq2( )j

The tabulation , D(i, j) Seq2(j) A R T S

Seq1(i) 0 1 2 3 4

0

M 1

A 2

T 3

H 4

S 5

The tabulation , D(i, j) Seq2(j) A R T S

Seq1(i) 0 1 2 3 4

0 0

M 1

A 2

T 3

H 4

S 5

The tabulation , D(i, j) Seq2(j) A R T S

Seq1(i) 0 1 2 3 4

0 0 1

M 1

A 2

T 3

H 4

S 5

The tabulation , D(i, j) Seq2(j) A R T S

Seq1(i) 0 1 2 3 4

0 0 1 2

M 1

A 2

T 3

H 4

S 5

The tabulation , D(i, j) Seq2(j) A R T S

Seq1(i) 0 1 2 3 4

0 0 1 2 3 4

M 1 1

A 2 2

T 3 3

H 4 4

S 5 5

The tabulation , D(i, j) Seq2(j) A R T S

Seq1(i) 0 1 2 3 4

0 0 1 2 3 4

M 1 1 1

A 2 2

T 3 3

H 4 4

S 5 5

The tabulation , D(i, j) Seq2(j) A R T S

Seq1(i) 0 1 2 3 4

0 0 1 2 3 4

M 1 1 1 2

A 2 2

T 3 3

H 4 4

S 5 5

The tabulation , D(i, j) Seq2(j) A R T S

Seq1(i) 0 1 2 3 4

0 0 1 2 3 4

M 1 1 1 2 3 4

A 2 2 1 2 3 4

T 3 3

H 4 4

S 5 5

The tabulation , D(i, j) Seq2(j) A R T S

Seq1(i) 0 1 2 3 4

0 0 1 2 3 4

M 1 1 1 2 3 4

A 2 2 1 2 3 4

T 3 3 2 2 2 3

H 4 4

S 5 5

The tabulation , D(i, j) Seq2(j) A R T S

Seq1(i) 0 1 2 3 4

0 0 1 2 3 4

M 1 1 1 2 3 4

A 2 2 1 2 3 4

T 3 3 2 2 2 3

H 4 4 3 3 3 3

S 5 5 4 4 4 3

The traceback Seq2(j) A R T S

Seq1(i) 0 1 2 3 4

0 0 1 2 3 4

M 1 1 1 2 3 4

A 2 2 1 2 3 4

T 3 3 2 2 2 3

H 4 4 3 3 3 3

S 5 5 4 4 4 3

The solutions - #11 0 1 1 0 = 3

DD MM RR RR MM

M A T H S

- A R T S

The traceback Seq2(j) A R T S

Seq1(i) 0 1 2 3 4

0 0 1 2 3 4

M 1 1 1 2 3 4

A 2 2 1 2 3 4

T 3 3 2 2 2 3

H 4 4 3 3 3 3

S 5 5 4 4 4 3

The solutions - #21 0 1 0 1 0 = 3

DD MM II MM DD MM

M A - T H S

- A R T - S

The traceback Seq2(j) A R T S

Seq1(i) 0 1 2 3 4

0 0 1 2 3 4

M 1 1 1 2 3 4

A 2 2 1 2 3 4

T 3 3 2 2 2 3

H 4 4 3 3 3 3

S 5 5 4 4 4 3

The solutions - #31 1 0 1 0 = 3

RR RR MM DD MM

M A T H S

A R T - S

“Life must be lived forwards and understood backwards.”

- Søren Kierkegaard

BLOSUM62 SCORING MATRIX

C 9

S -1 4

T -1 1 5

P -3 -1 -1 7

A 0 1 0 -1 4

G -3 0 -2 -2 0 6

N -3 1 0 -2 -2 0 6

D -3 0 -1 -1 -2 -1 1 6

E -4 0 -1 -1 -1 -2 0 2 5

Q -3 0 -1 -1 -1 -2 0 0 2 5

H -3 -1 -2 -2 -2 -2 1 -1 0 0 8

R -3 -1 -1 -2 -1 -2 0 -2 0 1 0 5

K -3 0 -1 -1 -1 -2 0 -1 1 1 -1 2 5

M -1 -1 -1 -2 -1 -3 -2 -3 -2 0 -2 -1 -1 5

I -1 -2 -1 -3 -1 -4 -3 -3 -3 -3 -3 -3 -3 1 4

L -1 -2 -1 -3 -1 -4 -3 -4 -3 -2 -3 -2 -2 2 2 4

V -1 -2 0 -2 0 -3 -3 -3 -2 -2 -3 -3 -2 1 3 1 4

F -2 -2 -2 -4 -2 -3 -3 -3 -3 -3 -1 -3 -3 0 0 0 -1 6

Y -2 -2 -2 -3 -2 -3 -2 -3 -2 -1 2 -2 -2 -1 -1 -1 -1 3 7

W -2 -3 -2 -4 -3 -2 -4 -4 -3 -2 -2 -3 -3 -1 -3 -2 -3 1 2 11

C S T P A G N D E Q H R K M I L V F Y W

134 LQQGELDLVMTSDILPRSELHYSPMFDFEVRLVLAPDHPLASKTQITPEDLASETLLI | ||| | | |||||| | || || 137 LDSNSVDLVLMGVPPRNVEVEAEAFMDNPLVVIAPPDHPLAGERAISLARLAEETFVM

D:D = +6

D:R = -2

From Henikoff 1996

Scoring Matrices

• Physical/Chemical similarities

- comparing two sequences according to the properties of their residues may highlight regions of structural similarity

• Identity matrices

- by stressing only identities in the alignment, stretches of sequence that may have diverged will not penalise any remaining common features

Scoring Matrices (ctd)

• As the direct source of residue by residue comparison scores the scoring matrix you choose will have a major impact on the alignment calculated

• The most commonly used will be one of the mutation matrices

PAM, BLOSUM

• The matrix that performs best will be the matrix that reflects the evolutionary separation of the sequences being aligned