Docsity

BLAST: Basic Local Alignment Search Tool - Lecture Slides | CS 466, Study notes of Computer Science

Partial preview of the text

Download BLAST: Basic Local Alignment Search Tool - Lecture Slides | CS 466 and more Study notes Computer Science in PDF only on Docsity!

BLAST:

Basic Local Alignment Search Tool

Altschul et al. J. Mol Bio. 1990.

CS 466

Saurabh Sinha

Motivation

  • Sequence homology to a known protein

suggest function of newly sequenced

protein

  • Bioinformatics task is to find

homologous sequence in a database of

sequences

  • Databases of sequences growing fast

Alignment

  • Global alignment: optimize the overall similarity of the two sequences
  • Local alignment: find only relatively conserved subsequences
  • Local similarity measures preferred for database searches - Distantly related proteins may only share isolated regions of similarity

Alignment

  • Dynamic programming is the standard

approach to sequence alignment

  • Algorithm is quadratic in length of the

two sequences

  • Not practical for searches against very

large database of sequences (e.g.,

whole genome)

BLAST: the MSP

  • Given two sequences of same length, the similarity score of their alignment (without gaps) is the sum of similarity values for each pair of aligned residues
  • Maximal segment pair (MSP): Highest scoring pair of identical length segments from the two sequences
  • The similarity score of an MSP is called the MSP score
  • BLAST heuristically aims to find this

Locally maximal segment pair

  • A molecular biologist may be interested in all conserved regions shared by two proteins, not just their highest scoring pair
  • A segment pair (segments of identical lengths) is locally maximal if its score cannot be improved by extending or shortening in either direction
  • BLAST attempts to find all locally maximal segment pairs above some score cutoff.

Rapid approximation of MSP score

  • BLAST minimizes time spent on database sequences whose similarity with the query has little chance of exceeding this cutoff S.
  • Main strategy: seek only segment pairs (one from database, one query) that contain a word pair with score >= T
  • Intuition: If the sequence pair has to score above S, its most well matched word (of some predetermined small length) must score above T
  • Lower T => Fewer false negatives
  • Lower T => More pairs to analyze

Implementation

1. Compile a list of high scoring words

2. Scan database for hits to this word list

3. Extend hits

Step 2: Scanning the

database for hits

  • Find exact matches to list words
  • Can be done in linear time
    • two methods (next slides)
  • Each word in list points to all

occurrences of the word in word list

from previous step

Scanning the database for hits

  • Method 1: Let w =4, so 20 4 possible words
  • Each integer in 0 … 20 4 -1 is an index for an array
  • Array element point to list of all occurrences of that word in query
  • Not all 20 4 elements of array are populated
  • only the ones in word list from previous step

Step 3: Extending hits

  • Once a word pair with score >= T has been found, extend it in each direction.
  • Extend until score >= S is obtained
  • During extension, score may go up, and then down, and then up again
  • Terminate if it goes down too much (a certain distance below the best score found for shorter extensions)
  • One implementation allows gaps during extension

BLAST: approximating the MSP

  • BLAST may not find all segment pairs

above threshold S

  • Trying to approximate the MSP
  • Bounds on the error: not hard bounds,

but statistical bounds

  • “Highly likely” to find the MSP

Statistics

  • Given two random sequences of

lengths m and n

  • Probability that they will produce an

MSP score of >= x?

Statistics

  • Number of separate SPs with score >= x is Poisson distributed with mean y(x) = Kmn exp(-λx), where - λ is the positive solution of p i p j exp(λs(i,j)) = 1 - K is a constant - s(i,j) is the scoring matrix, p i is the frequency of i in random sequences