Docsity

Understanding E-value and p-value in BLAST and FASTA: Bioinformatics Sequence Alignment - , Study notes of Computer Science

Partial preview of the text

Download Understanding E-value and p-value in BLAST and FASTA: Bioinformatics Sequence Alignment - and more Study notes Computer Science in PDF only on Docsity!

CISC 636 Intro to Bioinformatics

(Spring 2008)

Sequence pairwise alignment

Score statistics: E-value and p-value

Heuristic algorithms : BLAST and FASTA

Database search : gene finding and annotations

Significance of scores

Goals for sequence alignments:

(1) whether and (2) how two sequences are related.

It is rare that you have just two particular sequences to compare. More often, you have one query sequence and a large database of sequences.

Database searching: find all sequences in the database that are related to the query sequence.

Solution:

(1) For each sequence in the database, use Smith-Waterman/FASTA/BLAST to align with the query sequence and return the score of the optimal alignment.

(2) Rank the sequences by the score.

Q: how good is a score?

  • The island peak σi satisfies a Poisson

distribution:

Pr(σi > x) = (constant) e - λ^ x

  • The parameter λ is the positive root of the

equation

∑a,b alphabet e s(a,b)^ p(a) p(b) = 1

The probability that the maximum S is smaller than x is

P(S < x) = ∏i [1 – Pr (σi > x) ) ] → exp[- κ e - λx] when κ → .

This is a form of Extreme Value Distribution.

p-value = probability of at least one sequence scoring with S > x in the given database. P(S > x) = 1- exp[- κ e - λx].

E-value = expected number of scores better than S in a database search. E(S) = kmn e – λS.

Question: What threshold to use?

Answer: No absolute answer, it varies.

E.g., E-value < 1.

E(S) = kmn e – λS.  S > T + log(mn)/λ.

More details are referred to the text and the following.

  1. Y.K. Yu & T. Hwa, “Statistical significance of probabilistic sequence alignment and related local hidden Markov models”, J. Computational Biology 8(2001)249-282.
  2. http://blast.wustl.edu/doc/infotheory.html

A matrix comparison of two sequences (or one with itself) is prepared by "sliding" a window of user-defined size along both sequences.

If the two sequences within that window match with a precision set by the mismatch limit, a dot is placed in the middle of the window signifying a match.

Dot Plots

FASTA cont’d

  1. scan through the database: for each every word of size k, look up in the lookup table in step 2. The offsets between the positions of the word in the query and the database entry are calculated and saved.

(implication: same offsets suggest segment of similarity.)

  1. join nearby contiguous stretches of similarity (diagonal) =>scores init1.
  2. join adjacent diagonals into a single long region (by introducing gaps) => scores init n.
  3. do a dynamic programming algorithm for regions with high init n score to determine the opt score.

Q: what is the FASTA format?

  • Average local alignment score for database

sequences in the same length range is determined

  • Average score is plotted against log of average

length

  • The plotted points are fitted to a straight line
  • A z value, the number of standard deviations from

the fitted line, is calculated for each score

  • Extreme value distribution:

P(Z > z) = 1 – exp( -e -1.825 z^ –^ 0.5772)

  • Expected # of sequences in a database of D

sequences to have scores higher than z is

E(Z> z) = D x P(Z>z)

B asic L ocal A lignment S earch T oolkit [Altschul et al, 1990]

  1. A list of neighborhood words of fixed length (3 for protein and 11 for DNA) that match the query with score > a threshold.
  2. Scan the database sequences and look for words in the list; once find a spot, try a "hit extension" process to extend the possible match as an ungapped alignment in both directions, stopping at the maximum scoring extension.

ACCUUAGCGUA

Thr Leu Ala

ACCUUAGCGUA

Pro Stop Arg

ACCUUAGCGUA

Leu Ser Val

Reading frame 1

Reading frame 2

Reading frame 3

Three other reading frames on the reverse complementary strand

Open Reading Frame (ORF)

Using BLAST to identify genes

Comparative method:

  • identify possible ORFs (e.g. with length > 50 bp)
  • search against Genbank for homologs and use a threshold of E-value (e.g., e-5) to call putative genes.