โญ 10/10 Life Sciences Learning • B10logy = 10 out of 10 in Biology • High-Yield Visual Notes Across 23 Disciplines Explore Subjects →

Exp 1: Pairwise & Database Heuristic Sequence Search: NCBI BLAST (BLASTn, BLASTp), Bit Score Normalization & Karlin-Altschul E-Value Statistics

Experiment 01Sequence SearchHeuristic Algorithms

Pairwise & Database Heuristic Sequence Search: NCBI BLAST (BLASTn, BLASTp), Bit Score Normalization & Karlin-Altschul E-Value Statistics

Duration: 4 Hours • Command-Line & Web BLAST
๐ŸŽฏ Experimental Aim & Learning Objectives
To perform local sequence similarity searches of unknown protein and nucleotide queries against NCBI reference databases using BLASTp and BLASTn; understand the 3-phase seed-extend heuristic algorithm; calibrate substitution matrices (BLOSUM62 vs PAM250); and mathematically evaluate statistical significance via raw alignment score ($S$), normalized bit score ($S’$), and the Karlin-Altschul Expectation value ($E$).
๐Ÿ”ฌ Theoretical Foundation & Statistical Equations

Exact dynamic programming algorithms (Smith-Waterman) are computationally prohibitive ($O(m times n)$) for querying massive genomic databases ($>10^{11}$ letters). The Basic Local Alignment Search Tool (BLAST) achieves orders-of-magnitude acceleration using a heuristic 3-phase strategy:

  • Phase 1 (Seeding / Word Generation): The query sequence is broken into sliding words of length $W$ ($W=3$ amino acids for BLASTp, $W=11$ nucleotides for BLASTn). A neighborhood of similar words scoring $ge T$ when compared with the BLOSUM62 matrix is pre-computed.
  • Phase 2 (Scanning & Two-Hit Triggering): The database is scanned for exact matches to the neighborhood words. Under the Two-Hit method, an extension is triggered only if two non-overlapping words occur on the same diagonal within window distance $A$.
  • Phase 3 (Gapped Extension): The seed is extended bidirectionally without gaps, and then with a restricted dynamic programming band allowing insertions/deletions until the score drops by more than $X$ below the running maximum.
  • Karlin-Altschul Statistical Model: The Expectation value ($E$) represents the number of distinct alignments with score $ge S$ expected to occur by chance alone in a random database search:
    $$E = K cdot m cdot n cdot e^{-lambda S}$$
    where $m$ is effective query length, $n$ is effective database size, and $K$ and $lambda$ are Karlin-Altschul extreme value distribution (Gumbel) scaling parameters.
  • Normalized Bit Score ($S’$): Converts raw score $S$ into an information-theoretic metric independent of scoring matrix or database scale:
    $$S’ = frac{lambda S – ln(K)}{ln(2)} implies E = m cdot n cdot 2^{-S’}$$
    A doubling of the database size requires an increase of 1 bit in $S’$ to maintain the same $E$-value threshold.
HEURISTIC SEQUENCE ALIGNMENT: NCBI BLAST & KARLIN-ALTSCHUL STATISTICSBLAST Heuristic Alignment Pipeline (Seed & Extend)Phase 1: Word Generation (K-mers, W=3 for aa, W=11 for nt)Query: P E P T I D E → Words: PEP, EPT, PTI, TID, IDENeighborhood words matching BLOSUM62 score ≥ Threshold TPhase 2: High-Scoring Segment Pair (HSP) SeedingTwo-hit trigger within window APhase 3: Bidirectional Gapped Dynamic Programming• Extend in both directions• Terminate when score falls > X below maxFinal HSP: Optimal Local AlignmentKARLIN-ALTSCHUL STATISTICAL SIGNIFICANCE1. Expectation Value (E-value):E = K × m × n × e^(−λ × S)m = query length | n = database size | K, λ = Karlin-Altschul parameters2. Normalized Bit Score (S’):S’ = [ (λ × S) − ln(K) ] / ln(2)Independent of scoring matrix and database scale3. E-value Interpretation Thresholds:• E < 10⁻⁵: Extremely significant homology; true evolutionary orthology• 10⁻⁵ ≤ E ≤ 10⁻²: Putative homology; inspect domain architectures• E > 10⁻²: Statistically indistinguishable from random noise

Figure 1.1: NCBI BLAST 3-phase seed-and-extend heuristic search architecture and Karlin-Altschul extreme value distribution statistics for raw alignment score ($S$), normalized bit score ($S’$), and expect value ($E$).
๐Ÿงช Computational Tools & Data Sets
  • Platforms: NCBI Web BLAST Server (blast.ncbi.nlm.nih.gov) and Local NCBI BLAST+ command-line suite (blastp, blastn, makeblastdb version 2.14+).
  • Databases: RefSeq non-redundant protein database (nr), Swiss-Prot/UniProtKB, and PDB sequence database.
  • Query Test Case: Unknown human hemoglobin subunit beta FASTA sequence (P68871) harboring the sickle-cell Glu6Val substitution.
๐Ÿ“‹ Step-by-Step Computational Protocol
  1. FASTA Acquisition: Retrieve the uncharacterized test FASTA sequence. Validate file formatting (single header line starting with >, standard IUPAC single-letter amino acid code).
  2. BLASTp Configuration: Open BLASTp. Select Database: UniProtKB/Swiss-Prot (curated gold-standard). Set Algorithm parameters: Matrix = BLOSUM62, Gap Costs = Existence: 11, Extension: 1, Word size = 6, Expect threshold = 0.05.
  3. Search Execution: Submit query. Inspect the Graphical Distribution of Hits, Hit Table, and pairwise High-Scoring Segment Pair (HSP) alignments.
  4. Matrix Sensitivity Comparison: Re-run the same query using BLOSUM45 (sensitive for distantly related homologs) and PAM30 (strict for close orthologs). Observe how bit scores and identity percentages shift.
  5. Command-Line Execution: Run equivalent search in bash:

    blastp -query query.fasta -db swissprot -out results.tsv -outfmt "6 qseqid sseqid pident length mismatch gapopen qstart qend sstart send evalue bitscore" -evalue 1e-5
๐Ÿ“Š Representative Output & Statistical Evaluation
Subject AccessionDescriptionQuery CoverIdentityRaw Score ($S$)Bit Score ($S’$)$E$-Value
P68871.2Hemoglobin subunit beta [Homo sapiens]100%99.3%774301 bits$4.0 times 10^{-105}$
P02088.2Hemoglobin subunit beta-1 [Mus musculus]100%84.4%642251 bits$1.2 times 10^{-85}$
P69905.2Hemoglobin subunit alpha [Homo sapiens]96%44.1% (Paralog)310124 bits$6.8 times 10^{-35}$

Biological Conclusion: The query is definitively identified as human hemoglobin beta chain with extreme statistical confidence ($E ll 10^{-100}$). The alpha subunit match demonstrates ancient gene duplication paralogy with significant sequence divergence.

{reading_nav}

๐Ÿ“– Key Terms & Comprehensive Glossary

Key Terms in this Lecture • Bioinformatics and Computational Biology

Master the essential vocabulary, core concepts, and biochemical keywords covered in this chapter. Click any key term to inspect its rigorous definition in the Bioinformatics and Computational Biology Comprehensive Glossary.

โญ 10/10 Concept Clarity
Back to Bioinformatics Laboratory Manual: Algorithms, Modeling & Omics Pipelines โšก One Night Revision → Explore All Disciplines