Docsity

Multiple Sequence Allignments, Lecture Notes - Medical Science, Study notes of Computational Molecular Biology

Partial preview of the text

Download Multiple Sequence Allignments, Lecture Notes - Medical Science and more Study notes Computational Molecular Biology in PDF only on Docsity!

Multiple Sequence

Alignments

COS551, Fall 2003

Global Multiple Sequence

Alignment (MSA)

  • Ex: MSA of 4 sequences

MQPILLLV,

MLRLL,

MKILLL,

and

MPPVLILV

MQPILLLVMLR—LL--MK-ILLL-MPPVLILV

No column is all gaps

Similarity Measures

  • For pairwise alignments, we aligned

sequences to maximize the similarity score.

  • With multiple sequences, not obvious what

best way to score an alignment is

  • Sum-of-pairs (SP) is a commonly studied

similarity measure for MSAs

Sum-of-pairs (SP)

Measure

•^

Each column is scored by summing thescores of all pairs of symbols in thatcolumn.

-^

E.g., match = 1, a mismatch = -1, gap = -2^ I - I V

= score(I,-) + score(I, I) +score(I,V) + score(-,I) + score (-,V) + score(I,V)= -2 + 1 + -1 + -2 + -2 + -1 = -

Optimal pairwise

alignments (Review)

•^

Used dynamic programming

-^

If two length n sequences: (n+1) x (n+1) array

-^

Fill out each box in the array by considering whathappens in the last column^ – 3 choices: align last letters from both sequences, align

last letter from 1

st^

sequence with gap, align last letter

from 2

nd

sequence with gap

  • O(n

2 ) algorithm

Finding optimal MSAs Can use dynamic programming to find optimal

solutions If have

k

sequences of length

n

, array is of size

(n+1)

k

In considering last column, have 2

k- 1 choices

  • E.g., align last letters from all sequences; align last

letter from one sequence and gaps in all others, etc.

•^

Running time is exponential in the number ofsequences!

-^

Impractical … MSA packages use

heuristics

Progressive alignment

heuristic

Merge using

Merge using

Merge using

alignments

alignments

alignments

with 1

st^ sequence

with 3

rd^ sequence

with 2

nd^

sequence

-acg---cgagac--

--acgcga---gac-

acg---cga---gac

1&2^ Order of merging matters! Note once a gap, always a gap …

1&

2&

ClustalW Package

  • ClustalW is a popular heuristic package for

computing MSAs,

  • Based on progressive alignment• We’ll go over its main ideas via an example

of aligning 7 globin sequences

  • Keep in mind what types of problems the

algorithm might have on real data!

Step 1: Pairwise

alignment & distance

•^

Given

k

sequences, determine all pairwise global

alignments

-^

Use pairwise alignments to determine distancesbetween pairs of sequences^ – E.g., sequences QKLMN & KLVN, alignment is:

QKLMN-KLVN

Distance= # mismatches / #cols with no gaps

Underestimate

of actual distance!

Compute all distances

Globintype

1

2

3

4

5

6

7

Hbb_human

1

Hbb_horse

2

.

Hba_human

3

.

.

Hba_horse

4

.

.

.

Myg_whale

5

.

.

.

.

Cyng_lamprey

6

.

.

.

.

.

Lgb_lupus

7

.

.

.

.

.

.

-distancesbetween 0and 1-smallerdistances,closer seqs

Neighbor Joining Tree^ distance between Hbb_human and Hbb_horse treeis .081 + .084 = .165 which is close to .17 from matrix

Step 3: Combine

alignments

  • Start from the most closely related groups to

most distantly related groups (start from tipsto root in tree), while maintaining the "oncea gap, always a gap" policy.

-^

E.g., first align hba_human & hba_horse;then hbb_human & hbb_horse; then hba’swith hbb’s; then add to that alignmentwhale, lamprey and lupus in turn

Aligning Aligments

Alignment 1:

ATACCA

Alignment 2:

TCAFETAT-ETATF-AGTFD

Score 1

st^

column of 1

st^ alignment against 2

nd^

column in the other alignments using:

= 1/8(score(A,C) + score(A,A) + score(A,A) + score(A,G) +score(C,C) + score(C,A) + score(C,A) + score

(C,G))

Weighting Sequences

  • Note that when aligning alignments, we are

just averaging over all sequences

  • If have some very closely related sequences,

this is problematic (duplicate information)

  • Will use tree to weight our sequences, with

highly diverged sequences getting largerweights