Docsity

FASTA Algorithm: Sequence Alignment and Statistical Significance, Lecture notes of Bioinformatics

Partial preview of the text

Download FASTA Algorithm: Sequence Alignment and Statistical Significance and more Lecture notes Bioinformatics in PDF only on Docsity!

Lecture outlineLecture

outline

-^ FASTA Algorithm•^ FASTA

Algorithm

  • Statistical Significance of SequenceComparison Results– Probability of matching runs

y^

g

  • Karin-Altschul statisticsExtreme value distribution– Extreme value distribution

FASTAFASTA

-^ Derived from logic of the dot plot•^ Derived

from logic of the dot plot

  • compute best diagonals from all frames ofalignment• Word method looks for exact matchesbetween words in query and test sequenceconstruct word position tables– construct word position tables– DNA words are usually 6 bases– protein words are 1 or 2 amino acids– only searches for diagonals in region of word y^

g^

g

matches = faster searching

The offset tableThe^

offset table

position

1 2 3 4

5 6 7 8

9 10 11

proteinA

n^ c^ s^ p

t^ a^.^.

.^.^.

proteinB

.^.^.^. .^ a^ c^ s

p^ r^ k position^ in^

offset

amino^ acid

protein

A^ protein

B^ pos

A^ -^ posB

amino^ acid

protein

A^ protein

B^ pos

A^ posB

-----------------------------------------------------a^

6

6

0

c^

2

7

k^

-^

11

n^

1

p^

4

9

r^

-^

10

r^

10

s^

3

8

t^

5

-----------------------------------------------------Note^ the

common^

offset^ for

the^3 amino

acids^ c,s

and^ p

A possible

alignment

is^ thus

quickly

found^ -

protein^

1 n^ c^ s^

p^ t^ a | | | |^ |^ | protein^

2 a^ c^ s^

p^ r^ k

FASTA

3.^ Select top 10 scoring “local diagonals”ith

t h

d

i^

t h^

b t

with matches and mismatches but no gaps.4. Rescan top 10 diagonals (representingalignments), score with PAM250 (proteins)a g^

e ts), sco e w t

50 (p ote

s)

or DNA scoring matrix. Trim off the endsof the regions to achieve highest scoresof the regions to achieve highest scores.

FASTA

5.^ After finding the best initial region,FASTA performs a DP global alignmentcentered on the best initial region.

g

FASTA Ali

t

FASTA

Alignments

The purpose of sequence alignment • Homology• Function identificationFunction identification– about 70% of the genes of

M. jannaschii

were

assigned a function using sequence similarityassigned a function using sequence similarity(1997)

Similarity

  • How much similar do the sequences have to beto infer homology?

gy T^

ibili i^

h^ i

il^ i

i^ d

d

  • Two possibilities when similarity is detected:– The similarity is by chance

y^ y

  • They evolved from a common ancestor – hence,have similar functionshave similar functions

Statistical Significance

G^ l^

id^

i^ l

f^ i f^

i

-^ Goal: to provide a universal measure for inferringhomologyH

diff^

t i^ th^

lt f^

d^

t h

  • How different is the result from a random match, or amatch between unrelated requences?– Given a set of sequences

not related

to the query (or a set

Given a set of sequences

not^ related

to^ the query (or a set

of random sequences), what is the probability of finding amatch with the same alignment score by chance?• Different statistical measures– p-value– E-value– z-score

Statistical significance measures • p-value

: the probability that at least one sequence will produce the same score by chance• E-value

: expected number of sequences that will E value

:^ expected number of sequences that will produce same or better score by chance• z-score

: measures how much standard deviationsb th^

f th^

di t ib ti

above the mean of the score distribution

Analysis of coin tosses

-^ Let black circles indicate heads •^ Let p be the probability of a “head”– For a “fair” coin, p = 0.

, p

-^ Probability of 5 heads in a row is (1/2)^5=0.031•^ The expected number of times that 5H occurs in•^ The expected number of times that 5H occurs inabove 14 coin tosses is 10*0.031 = 0.

Analysis of coin tosses

-^ The expected number of a length

l^ run of heads in

n

tosses.

ll np

lE ≅)(

-^ What is the expected length

R^ of the longest match

in^ n^ tosses?in^ n^ tosses?

R

l R

R np =

log^ /^1

n R^

p

Example

  • Example: Suppose n = 20 for a “fair” coin

R =log

-^ In other words: in 20 coin tosses we expect a run of heads of

p

length 4.32, once.• Trick is how to model DNA (or amino acid)

li^

t^

i^ t

sequence alignments as coin tosses.

Analysis of an alignment

-^ Probability of an individual match p = 0.05•^ Expected number of matches: 10x8x0.05 = 4Expected number of matches: 10x8x0.

4

-^ Expected number of two successive matches

10 8 0 05 0 05

0 2

≅^10 x8x0.05x0.05 = 0.