Docsity

Sequence Alignment: Comparing and Aligning Biological Sequences, Slides of Phylogenetics

Partial preview of the text

Download Sequence Alignment: Comparing and Aligning Biological Sequences and more Slides Phylogenetics in PDF only on Docsity!

Sequence Alignment

Problem

What is sequence alignment?

Alignment: Comparing two (pairwise) or

more (multiple) sequences. Searching for

a series of identical or similar characters in

the sequences.

MVNLTSDEKTAVLALWNKVDVEDCGGE || || ||||| ||| || || || MVHLTPEEKTAVNALWGKVNVDAVGGE

Why perform a pairwise sequence alignment?

e.g., predicting characteristics of a protein –

premised on:

similar sequence (or structure)

similar function

Finding homology between two sequences

Three types of nucleotide changes:

1. Substitution – a replacement of one (or more) sequence characters by another: 2. Insertion - an insertion of one (or more) sequence characters: 3. Deletion – a deletion of one (or more) sequence characters:

A T

Evolutionary changes in sequences

Insertion + DeletionIndel

AAGA  AACA

AAG

AA GA

Toy exercise

  • Match: +
  • Mismatch: -
  • Indel: - AAGCTGAATT-C-GAA AGGCT-CATTTCTGA-

A-AGCTGAATTC--GAA AG-GCTCA-TTTCTGA-

Compute the scores of each of the following alignments using this naïve scoring scheme

Scoring scheme:

1 -2 -2 - -2 1 -2 - -2 -2 1 - -2 -2 -2 1

A C G T

A C G T Substitution matrix

Gap penalty (opening = extending)

Sequence Alignment Problem

  • Definition:
    • Input: Two (or more) sequences S 1 , S 2 , …, Sn , and a scoring function f.
    • Output: The alignment of S 1 , S 2 , …, Sn , which has the optimal score.
  • Purpose:
    • To determine how close two species are
    • To perform data compression
    • To determine the common area of some sequences
    • To construct evolutionary trees

Local vs. Global Alignment

  • The Global Alignment Problem tries to find the longest path between vertices (0,0) and ( n,m ) in the edit graph.
  • The Local Alignment Problem tries to find the longest path among paths between arbitrary vertices ( i,j ) and ( i’, j’ ) in the edit graph.
  • In the edit graph with negatively-scored edges, Local Alignment may score higher than Global Alignment

Local vs. Global

  • Local alignment – finds regions of high

similarity in parts of the sequences

  • Global alignment – finds the best alignment

across the entire two sequences

ADLGAVFALCDRYFQ |||| |||| | ADLGRTQN-CDRYYQ

ADLGAVFALCDRYFQ |||| |||| | ADLGRTQN CDRYYQ

Example for Sequence Alignment

TAGTCAC-G--

-AG--ACTGTC

- A G A C T G T C
T -1 -1 -2 -3 -4 -2 -3 -4 -
A -2 1 0 0 -1 -2 -3 -4 -
G -3 0 3 2 1 0 0 -1 -
T -4 -1 2 2 1 3 2 2 1
C -5 -2 1 1 4 3 2 1 4
A -6 -3 0 3 3 3 2 1 3
C -7 -4 -1 2 5 4 3 2 3
G -8 -5 -2 1 4 4 6 5 4

The Local Alignment Problem

  • Input: Two (or more) sequences S1, S2, …, Sn, and a scoring function f.
  • Output: Substrings Si’of Si such that the score obtained by aligning Si’ is the highest, among
all possible substrings of Si. (1  i  n)

S 1 = abbbcc S 2 = adddcc Score=32+3(–1)=

S 1 ’= cc S 2 ’= cc Score=22=

Example for Local Alignment

AGTCAC-G

AG--ACTG

  • A G A C T G T C
  • 0 0 0 0 0 0 0 0 0 T 0 0 0 0 0 2 1 2 1 A 0 2 1 2 1 1 1 1 1 G 0 1 4 3 2 1 3 2 1 T 0 0 3 3 2 4 3 5 4 C 0 0 2 2 5 4 3 4 7 A 0 2 1 4 4 4 3 3 6 C 0 1 1 3 6 5 4 3 5 G 0 0 3 2 5 5 7 6 5

TAGTC

T-GTC

Two solutions:

Multiple Sequence Alignments

by Gradual Sequence Adition

  • Modified pairwise dynamic programming:
    • Pairwise dynamic programming algorithms can be modified to find the optimal alignment of more than two sequences ,

Multiple Sequence Alignments

by Gradual Sequence Adition

  • Modified pairwise dynamic programming:
    • Align 3 sequences:

Multiple Sequence Alignments

by Gradual Sequence Adition

  • Modified pairwise dynamic programming:
    • Align 3 sequences: