On this page
Level 07 · Bioinformatics and Computational Biology
BLAST and FASTA
The practical use of the heuristic database search programs FASTA and BLAST, covering the seeding strategy and its parameters, the choice of program for nucleotide and protein queries, the reading of search output including scores, identities and coverage, the meaning of E-values and bit scores, the iterated search of PSI-BLAST and the faster alignment tools that suit large-scale or genome-scale comparisons.
1 min read · Updated
Learning objectives
- Run a BLAST search of a protein or nucleotide query, select the right program and read the output.
- Decide when an iterated search or a faster alignment tool is appropriate and state the risks each adds.
BLAST and FASTA are the search programs that every sequence analysis depends on. They find the database sequences that share a region of similarity with a query, without aligning the query to every entry by full dynamic programming. Lipman and Pearson (1985) introduced FASTA, which seeds the search with short identical words, and Altschul et al. (1990) introduced BLAST, which refines the same idea into a systematic method with statistics for the significance of each hit. This topic covers how the programs are run and how their output is read.
The chapters follow the order of a search. They begin with why a heuristic is needed and how the seeds are chosen, then describe the FASTA steps and the BLAST programs for nucleotides and proteins. The output, the scores and the E-values come next, followed by the iterated search of PSI-BLAST described by Altschul (1997) and the faster tools for large comparisons.
The concepts of the introductory topic are assumed. This topic concentrates on the practical decisions: which program, which database, which thresholds, and how to read the hits that come back.
Chapters in this module
- Heuristic Search and Why It Is Needed
Why a database search cannot align a query to every sequence in a database by full dynamic programming, the cost of an exhaustive search as databases grow, the heuristic idea of finding short exact matches first and extending only the most promising ones and the trade-off between speed and sensitivity that heuristics introduce.
- Word Size and Seeds
How the seeds of a BLAST search are built from short words, the role of the word size in trading sensitivity against speed, the neighbourhood words of proteins that accept similar residues, the difference between the word size used for nucleotides and for proteins and the way a seed is extended into an alignment in both directions.
- The FASTA Steps
The sequence of steps in the FASTA search program, from the identification of matching words by a lookup table, through the scoring of diagonals that carry several words, to the rescoring of the best diagonals with a substitution matrix and the final alignment of the strongest candidates, with the reasons each step reduces the work of the full dynamic programming alignment.
- BLAST Programs for Nucleotides and Proteins
The BLAST programs that search nucleotide and protein databases with nucleotide and protein queries, including blastn, blastp, blastx and tblastn, how each combination of query and database is translated into a search, how the frame translation of blastx and tblastn is handled and how the choice of program follows from the question and the sequence type of the data.
- Reading BLAST Output
How the output of a BLAST search is read, covering the summary table of hits, the query and subject coverage, the percentage identity and the alignment length, the mismatches and gaps shown in each pairwise alignment, the difference between a hit that covers the whole query and one that covers only a fragment and the way a reader chooses which hits to examine and which to set aside.
- E-values and Bit Scores
How the raw alignment score of a BLAST hit is converted into a bit score that is comparable across scoring schemes, how the E-value is calculated from the bit score and the size of the search space, why the E-value depends on the database and the query length, the thresholds used in practice and the errors that follow when an E-value is read as a probability that a hit is homologous.
- PSI-BLAST and Iterated Searches
How PSI-BLAST builds a position-specific scoring matrix from the hits of one round and uses it to search again, how iterated searches find distant relatives that a single search misses, the way a false hit included in the profile can carry further false hits into the next round and the controls that keep an iterated search from drifting away from the query.
- Fast Alignment Tools and When BLAT Helps
The faster alignment tools used for large comparisons, including BLAT for finding near-identical matches such as the placement of a transcript or a read on a genome, the profile hidden Markov model methods of HMMER for finding family members, the speed gains of accelerated profile searches and the choice of tool by the question, the divergence of the sequences and the size of the database.
References
- Lipman, D. J., & Pearson, W. R. (1985). Rapid and Sensitive Protein Similarity Searches. Science, 227(4693), 1435-1441. https://doi.org/10.1126/science.2983426
- Altschul, S. F., Gish, W., Miller, W., Myers, E. W., & Lipman, D. J. (1990). Basic local alignment search tool. Journal of Molecular Biology, 215(3), 403-410. https://doi.org/10.1016/S0022-2836(05)80360-2
- Altschul, S. (1997). Gapped BLAST and PSI-BLAST: a new generation of protein database search programs. Nucleic Acids Research, 25(17), 3389-3402. https://doi.org/10.1093/nar/25.17.3389
- Kent, W. J. (2002). BLAT: The BLAST-like alignment tool. Genome Research, 12(4), 656-664. https://doi.org/10.1101/gr.229202
- Eddy, S. R. (2011). Accelerated Profile HMM Searches. PLoS Computational Biology, 7(10), e1002195. https://doi.org/10.1371/journal.pcbi.1002195
- Sandve, G. K., Nekrutenko, A., Taylor, J., & Hovig, E. (2013). Ten Simple Rules for Reproducible Computational Research. PLoS Computational Biology, 9(10), e1003285. https://doi.org/10.1371/journal.pcbi.1003285
Callouts marked Commentary or Speculation in the lesson separate interpretation and open questions from established findings.