← Biochemistry Biochemistry · Chapter 5

Genetics and bioinformatics

How genes are passed on, how sequences are compared, and how PCR and gels detect a DNA fragment. These three tools turn inheritance and sequence data into numbers you can check.

1. Read each section and learn the essentials by heart: ratios, the identity formula and the PCR doubling rule.
2. Open the 3D lab for each section, move one slider at a time and compare the bars or the gel with the worked examples.
3. Test yourself with the 30-question quiz and reread the section behind every wrong answer.
Overview

Chapter map

The chapter in one picture. Click a box to jump to its part.

Genetics andbioinformaticsMendelian crossesAa × Aa → 1:2:1product ruleAlignmentidentity = matches/colsmatch, mismatch, gapPCRN = N0 × 2^nTm and controls
  1. Mendelian crossesAa × Aa → 1:2:1 · product rule
  2. Alignmentidentity = matches/cols · match, mismatch, gap
  3. PCRN = N0 × 2^n · Tm and controls
Part 1

Mendelian crosses and ratios

The essentials

  • Each parent passes one of its two alleles at random to each gamete (segregation).
  • Aa × Aa gives genotypes 1 AA : 2 Aa : 1 aa and phenotypes 3 : 1 under complete dominance.
  • A test cross Aa × aa gives 1 : 1; a dihybrid cross AaBb × AaBb gives 9 : 3 : 3 : 1.
  • Independent offspring: multiply probabilities (product rule).
  • AA and Aa share the dominant phenotype; only aa shows the recessive one.

Mendel's first law, the law of segregation, says that each parent carries two alleles of a gene and passes only one, chosen at random, to each gamete. In the lab you follow one autosomal locus with two alleles: A (dominant) and a (recessive). Under complete dominance, AA and Aa look the same; only aa shows the recessive phenotype.

Two sliders choose the genotype of each parent (aa, Aa or AA). The bars show the expected share of offspring in each genotype class, and the summary line gives the dominant and recessive phenotype percentages. Each child is an independent draw: the probabilities do not change with family size or with the outcome of earlier children.

CrossGenotypesPhenotypes
Aa × Aa1 AA : 2 Aa : 1 aa3 dominant : 1 recessive
Aa × aa (test cross)1 Aa : 1 aa1 : 1
AA × aaall Aaall dominant
AA × Aa1 AA : 1 Aaall dominant

Two rules solve most problems. The product rule: the probability of two independent events both happening is the product of their probabilities. The sum rule: the probability of either of two mutually exclusive events is the sum. For two genes on different chromosomes (independent assortment), a dihybrid cross AaBb × AaBb gives the 9 : 3 : 3 : 1 phenotype ratio, because 3/4 × 3/4 = 9/16.

Aa × Aa, two children. P(one child aa) = 1/4. P(both aa) = 1/4 × 1/4 = 1/16. P(at least one dominant) = 1 − 1/16 = 15/16.
In plain words: draw a Punnett square for one child, then multiply when you ask about several children.

What to observe: set both parents to Aa and read 25 / 50 / 25 in the bars and 75% dominant. Switch one parent to aa: the aa bar jumps to 50%. With AA on either side the recessive phenotype disappears.

Interactive 3D model: move the sliders and watch what changes.

Part 2

Sequence alignment and scoring

The essentials

  • Each aligned column is a match, a mismatch or a gap.
  • Percent identity = matches / total columns × 100; state whether gaps count in the denominator.
  • An alignment score adds rewards for matches and penalties for mismatches and gaps.
  • Global alignment covers whole sequences; local alignment (BLAST) finds the best segment.
  • Identity is a measurement; homology (common ancestry) is an inference.

A sequence alignment places two DNA or protein sequences in rows so that related positions sit in the same column. Each column is a match (same residue), a mismatch (different residues) or a gap (an insertion or deletion, shown as a dash in one row).

In the lab the alignment has a fixed length of 20 columns built from symbolic tokens. One slider sets the number of mismatches (0-10), the other the number of gap columns (0-10). The bars count identical, mismatched and gapped columns, and the summary line gives percent identity = matches / 20 × 100, with gaps counted in the denominator. Always state this convention: some tools divide by the ungapped length instead, which gives a higher number.

20 columns, 3 mismatches, 2 gaps → 15 matches. Identity = 15 / 20 × 100 = 75%.

Software does not just count; it maximises a score. A simple scheme gives +1 per match, −1 per mismatch and −2 per gap. Real tools use substitution matrices (BLOSUM62, PAM) for proteins, which reward chemically similar substitutions, and affine gap penalties (a large cost to open a gap, a small cost to extend it).

  • Global alignment (Needleman-Wunsch) aligns the full length of both sequences.
  • Local alignment (Smith-Waterman, the idea behind BLAST) finds the best-matching segment.
Score with +1 / −1 / −2: 15 matches, 3 mismatches, 2 gaps → 15 − 3 − 4 = 8.

Identity and similarity are measurements. Homology is an inference: two sequences share a common ancestor or they do not. High identity supports homology, but it does not prove identical function, and the same percentage can hide very different patterns of matches.

In plain words: count the columns, say what you divided by, and remember that a score depends on the penalties you chose.

Interactive 3D model: move the sliders and watch what changes.

Part 3

PCR, primers and gel interpretation

The essentials

  • One cycle: denaturation ~95 °C, annealing ~50-65 °C, extension 72 °C.
  • Ideal doubling: N = N0 × 2^n; real reactions reach a plateau.
  • Wallace rule: Tm = 2 × (A + T) + 4 × (G + C); anneal about 5 °C below Tm.
  • On a gel DNA runs to the positive pole and small fragments travel farther.
  • A band in the no-template control means contamination: the result is inconclusive.

The polymerase chain reaction (PCR) copies one chosen DNA region many times. Each cycle has three steps: denaturation (about 95 °C, the strands separate), annealing (about 50-65 °C, two primers bind) and extension (72 °C, a heat-stable polymerase such as Taq extends the primers).

In the ideal case the target doubles every cycle: N = N0 × 2n. After 30 cycles one copy becomes about 109. Real efficiency is below 100%, and the reaction reaches a plateau when primers, nucleotides or enzyme run out.

100 template copies, 10 ideal cycles: 100 × 210 = 100 × 1024 = 102 400 copies.

Primers are short single-stranded oligonucleotides (usually 18-25 nt) that flank the target, one on each strand. Their melting temperature Tm is where half of the primer-template duplexes are separated. A quick estimate for short primers is the Wallace rule: Tm = 2 °C × (A + T) + 4 °C × (G + C). G-C pairs have three hydrogen bonds and stack more strongly, so GC-rich primers melt higher. Annealing is usually set about 5 °C below Tm: too low gives non-specific bands, too high gives no product.

Primer with 10 G/C and 10 A/T: Tm ≈ 4 × 10 + 2 × 10 = 60 °C. Anneal near 55 °C.

The 3D lab shows an agarose gel. DNA is negatively charged and runs toward the positive electrode; small fragments move farther. A ladder of known sizes lets you estimate the band length. Sliders set the expected band size (200-900 bp), add a band to the no-template control, or change the sample lane to expected, absent or different band.

What to observe: read the controls first. A clean positive control and an empty no-template control make the sample lane interpretable. A band in the no-template control means contamination, so the result is inconclusive. A matching band size supports the expected product but does not prove its sequence.

In plain words: controls first, ladder second, sample last.

Interactive 3D model: move the sliders and watch what changes.

Test yourself

Quiz

30 questions in random order. The explanation appears after each answer.

Key words

Glossary cards

Read the word, try to say what it means, then tap the card to flip it.