StepWise USMLE
Immunology · Lymphocytes

B and T Lymphocyte Development: Receptor Diversity, VDJ Recombination, MHC and Thymic Selection

See how B and T cells get their one-of-a-kind receptors, and how the body weeds out the ones that could do harm.

🔑 Key Words First

WordPlain meaning
LymphocyteB cell, T cell, or natural killer cell of the adaptive and innate defense
Naive lymphocyteA mature lymphocyte that has not yet met its antigen
AntigenA molecule the immune system can recognize
Antibody (immunoglobulin, Ig)Y-shaped protein made by B cells that binds an antigen
Isotype (class)The type of antibody, set by the heavy-chain tail: IgM, IgD, IgG, IgA, IgE
IdiotypeThe unique shape of one receptor's antigen-binding site
Heavy chain and light chainThe two kinds of protein chain that build an antibody
Variable domainThe changeable tip of a chain that forms the binding site
Constant domainThe fixed part of a chain that sets the isotype
Hinge regionFlexible joint between the arms of an antibody
Disulfide bondStrong sulfur-to-sulfur link that holds chains together
T-cell receptor (TCR)The antigen receptor of a T cell, made of an alpha chain and a beta chain
MHC (major histocompatibility complex)Gene family coding for molecules that display peptides to T cells
HLA (human leukocyte antigen)The human name for MHC molecules
PeptideA short piece of protein
Antigen-presenting cell (APC)A cell that displays peptides on MHC for T cells to inspect
Signal transductionPassing a message from a receptor on the surface to the cell interior
Co-receptorA helper molecule that works alongside the main receptor
EBV (Epstein-Barr virus)Virus that causes infectious mononucleosis
RecombinationCutting and rejoining pieces of DNA
Germline DNAThe DNA inherited in its original, unrearranged form
V, D, J gene segmentsVariable, diversity, and joining DNA pieces that are shuffled to build a binding site
RAG1 and RAG2Genes for the enzymes that cut and join the V, D, and J segments
RecombinaseThe enzyme complex that performs the cutting and joining
TdT (terminal deoxynucleotidyl transferase)Enzyme that adds random bases at segment junctions
N-nucleotide additionRandom bases inserted at the joints between segments
Allelic exclusionUsing only one of the two inherited gene copies so each cell makes one receptor
Somatic hypermutationPoint mutations in antibody genes after antigen contact, which fine-tune binding
ApoptosisProgrammed, orderly cell death
SCID (severe combined immunodeficiency)Absence of both B and T cell function
Omenn syndromePartial-RAG-function immune disorder with rash and diarrhea
AffinityHow tightly a receptor binds its target
ToleranceNot reacting against the body's own molecules
Clonal deletionKilling self-reactive cells
Clonal anergyKeeping self-reactive cells alive but switched off
Primary lymphoid organSite where lymphocytes are made and mature (marrow, thymus)
ThymusOrgan above the heart where T cells mature
Cortex and medullaOuter and inner regions of the thymus
ThymocyteA developing T cell inside the thymus
Double negative, double positive, single positiveHaving neither, both, or only one of the CD4 and CD8 markers
CD (cluster of differentiation)Numbered surface protein used as a cell label
Positive and negative selectionThymic tests that keep useful cells and remove dangerous ones
Helper T cell (Th)CD4 T cell that directs other immune cells
Cytotoxic T lymphocyte (CTL)CD8 T cell that kills infected cells
Regulatory T cell (Treg)T cell that calms down self-reactive immune responses
FoxP3Master gene switch of regulatory T cells
IL (interleukin) and TGF-βChemical messengers; IL-10 and TGF-β both dampen inflammation
AutoimmunityThe immune system attacking the body's own tissue
Acute lymphoblastic leukemiaCancer of immature lymphocytes

🎯 Antigen Receptors

  • Where this fits:
Lymphocytes mature→Each carries one antigen receptor→Receptor type decides what it can see

B-cell receptor (membrane-bound antibody)

  • Four chains in a Y shape
  • Two identical heavy chains
    • Each anchored in the membrane by a short tail
  • Two identical light chains
    • Each pairs with one heavy chain
  • Disulfide bonds hold the chains together
  • Hinge region lets the arms flex
  • Variable tips form two identical binding sites
    • Shape of the site = idiotype
    • Tips (variable domains) decide what is bound
  • Constant tail decides isotype
    • Naive B cell displays IgM and IgD together
    • Both carry the same idiotype
  • One idiotype per cell, in many copies
  • Total possible idiotypes in a person: hundreds of millions
  • The same molecule, in secreted form, becomes circulating antibody

T-cell receptor

  • Two chains only: alpha and beta, similar in length
  • Anchored in the membrane
  • Binding site sits between the two chains
  • No hinge, so the structure is rigid
  • One binding site per molecule
  • Never secreted
  • Sees only a peptide sitting in an MHC groove

Comparison

FeatureB-cell receptorT-cell receptor
Copies per cellAbout 100,000About 100,000
Idiotypes per cell11
Isotypes per cell2 (IgM and IgD)1 (alpha-beta type)
Can be secretedYesNo
Binding sites per molecule21
FlexibilityFlexible hingeRigid
BindsWhole, unprocessed antigen: sugar, protein, lipidProcessed peptide on MHC only
Signaling partnersIg-alpha, Ig-beta, CD19, CD21, CD81CD3 complex

Signaling complexes

  • The receptor itself cannot send a message inward
  • Partner proteins in the membrane do that job
  • B cell
    • Ig-alpha and Ig-beta (unchanging chains)
    • Co-receptor of CD19, CD21, CD81
  • T cell
    • CD3 complex of several chains
  • Binding → partner proteins add phosphate groups inside the cell → cell activates
  • Some partner proteins are viral doorways
    • CD21 is the entry point for EBV
    • CD81 is used by hepatitis C virus and by Plasmodium vivax (a malaria parasite)
Analogy
  • The binding site is a lock, the antigen is a key
  • The partner proteins are the wiring that turns on the light when the key fits
  • A lock with no wiring would fit keys but never trigger anything

🧩 Making Receptor Diversity

  • Where this fits:
Receptors needed in the millions→Genome too small to store them all→DNA shuffling builds them during maturation
  • Why shuffling: coding each idiotype separately would need more DNA than a cell holds
  • Shuffling happens before any antigen is met
  • It occurs while lymphocytes mature in a primary lymphoid organ

Heavy chain (B cell) or beta chain (T cell)

Many V, D, J segments in germline DNA→D joins J→V joins D-J→Transcription→RNA splicing adds constant segment→Translation
  • RAG1 and RAG2 enzymes do the cutting and joining
  • Random pick from hundreds of V, a set of D, and a set of J
  • Heavy chain constant region is spliced on at the RNA level
  • First constant regions used: mu then delta, giving IgM and IgD
  • Both come from the same rearranged variable region, so they share one idiotype

Light chain (B cell) or alpha chain (T cell)

Many V and J segments→V joins J→Transcription→Splicing adds constant segment→Translation
  • Only V and J segments are shuffled (no D)
  • Light chains have two possible constant types: kappa or lambda
  • Only one type is used in any one cell
  • Happens after the heavy chain is made

Extra diversity tricks

  • N-nucleotide addition
    • TdT adds random bases at the joints
    • Base addition needs no template
    • Repair enzymes then fill in the matching strand
    • Adds diversity at the joints between segments
  • Combining chains
    • Any heavy chain can pair with any light chain
    • Total variety = heavy options × light options
  • Somatic hypermutation
    • Happens only in activated B cells
    • Fine-tunes binding after antigen is met
MechanismCells that use it
Many V, D, J segments in the genomeB and T cells
V(D)J recombinationB and T cells
N-nucleotide additionB cells (heavy chain only); T cells (all chains)
Heavy-light chain pairingB and T cells
Somatic hypermutationB cells only, after antigen contact

Quality control

  • Many rearrangements produce broken, non-working proteins
  • Each cell has two chromosomes to try: two chances per chain
  • If both fail
    • Cell is told to undergo apoptosis
  • If one works
    • Rearrangement on the other copy is shut off
    • This is allelic exclusion
    • Result: one receptor type per cell
  • Why it matters: a cell with two receptor types would be unpredictable and could respond to the wrong target
Analogy
  • Each segment type is a deck of cards
  • The cell draws one card from each deck at random
  • Random extra letters added at the seams make every hand even more unique
Exam trap
  • TdT is active in T-cell receptor chains and the B-cell heavy chain, not the B-cell light chain.
  • Rearrangement happens without antigen present.

🩺 When Rearrangement Fails

  • Where this fits:
Shuffling requires RAG enzymes→If RAG fails, no receptors form→Lymphocytes cannot mature
FeatureSCID from RAG null mutationsOmenn syndrome
InheritanceAutosomal recessiveAutosomal recessive
DefectNo RAG1 or RAG2 function (null mutation)Missense mutation: RAG enzymes keep partial activity
B cellsAbsentNearly absent
T cellsAbsentA few, activated and with limited variety; skewed toward Th2
EffectsNo antibody or cell-mediated immunityEarly onset, failure to thrive, generalized red rash, diarrhea, severe immunodeficiency
  • Why SCID is total: no receptors means no functioning B or T cells
  • Why Omenn differs: partial activity makes a few cells, which expand and attack tissues
  • TdT is a marker of immature lymphocytes in acute lymphoblastic leukemia
Exam trap
  • Complete RAG loss gives SCID; partial RAG loss gives Omenn.
  • The 22q11 deletion is a thymus problem, not a RAG problem.

🧬 B-Cell Development and Selection

  • Where this fits:
Receptors built in marrow→Random receptors may bind self→B cells must be tested before release
  • Bone marrow is the primary lymphoid organ for B cells
  • B cells complete their entire early development there
  • Why testing is needed: random receptors often have affinity for body molecules

Stages

Lymphoid stem cell→Pro-B→Pre-B→Immature B→Mature naive B→Activated B→Plasma cell or memory B
StageEventMarker
Pro-BHeavy-chain rearrangement beginsRAG and TdT on
Pre-BHeavy chain madeMu chain inside the cell
Immature BLight-chain rearrangement doneSurface IgM
Mature naive BLeaves marrowSurface IgM and IgD
Activated BMeets antigenRapid division
Plasma cellAntibody factorySecreted antibody
Memory BLong-livedSurface IgG, IgA, or IgE
  • CD19, CD20, CD21, CD40, and MHC class II stay on throughout
  • RAG genes switch off after the immature stage
  • TdT switches off earlier, so light chains get no N-nucleotide addition

Selection against self

  • Marrow support cells test immature B cells against self molecules
  • Binding self too strongly
    • Clonal deletion in the marrow
    • Or clonal anergy in the periphery
  • Anergic cells
    • Surface IgM falls
    • IgD stays
    • Cell is inactive
  • Goal: only self-tolerant B cells leave the marrow
Analogy
  • The marrow is a factory quality-control line
  • Products that jam on the factory floor are scrapped
  • Products that barely pass are shipped switched off

🪧 MHC: Displaying Peptides

  • Where this fits:
T cells see only peptide on MHC→So MHC must be understood first→Then thymic selection makes sense
  • MHC genes sit on the short arm of chromosome 6
  • They are highly polymorphic (many versions in the population)
  • Expressed codominantly: both parental copies show on each cell
  • Products are called HLA in humans
FeatureClass IClass II
GenesHLA-A, HLA-B, HLA-CHLA-DM, HLA-DP, HLA-DQ, HLA-DR
Found onAll nucleated cells and plateletsAntigen-presenting cells: macrophages, B cells, dendritic cells
ChainsHeavy chain (3 outer domains) plus β2-microglobulinAlpha chain plus beta chain, each with 2 outer domains
Groove formed byFirst two domains of heavy chainN-terminal ends of both chains
PresentsPeptides from inside the cellPeptides taken in from outside
Recognized byCD8 T cellsCD4 T cells
  • β2-microglobulin is not coded in the MHC; it helps load and carry class I to the surface
  • HLA-DM is not on the surface; it acts as a helper that loads peptides correctly
  • Each cell has 2 A, 2 B, and 2 C products (one set from each parent)
  • Why two classes: infected body cells need CD8 killers; engulfed antigens need CD4 helpers
Analogy
  • MHC is a display stand with a groove for a small item
  • The T-cell receptor only inspects items sitting on a stand
  • Class I stands show what is made inside; class II stands show what was picked up outside

🫀 T-Cell Development and Selection

  • Where this fits:
B cells finish in marrow→T-cell precursors travel to the thymus→Thymus runs two selection tests
  • Thymus = second primary lymphoid organ
  • Bilobed organ above the heart
  • Outer cortex: packed with immature T cells
  • Inner medulla: where cells go as they mature
  • Epithelial cells, dendritic cells, and macrophages touch the thymocytes throughout

Journey of a T cell

Precursor leaves marrow→Double negative (no CD4, no CD8)→Double positive (CD3, CD4, CD8; TCR rearranged)→Selection tests→Single positive: CD4 or CD8→Leaves to periphery
  • Beta chain is rearranged first, then alpha chain
  • RAG genes are active in the cortex
  • TdT is on from the pre-thymic stage until the medulla
  • CD3, CD2, and the TCR stay on in mature T cells

The two selection tests

TestWhat happensOutcome
Positive selectionDouble positive cells meet self peptide on self MHCWeak binding = survive and multiply; no binding = no survival signal
Negative selectionCells binding self MHC with self peptide too stronglyApoptosis
Lineage choiceBinds class I → keeps CD8; binds class II → keeps CD4Cytotoxic or helper fate
  • Why positive selection: a T cell must recognize MHC to be useful
  • Why negative selection: strong self-binding would cause autoimmunity
  • About 95 to 99 percent of precursors die in the thymus
  • CD4 cells become helper T cells; CD8 cells become cytotoxic T lymphocytes

Regulatory T cells

  • A small number of self-reactive cells survive as regulatory T cells instead of dying
  • Marked by CD4, CD25, and the FoxP3 gene switch
  • Release IL-10 and TGF-β, which calm inflammation
  • Leave the thymus to hold self-reactive cells in check
  • Key defense against autoimmunity (peripheral tolerance)
Analogy
  • The thymus is a strict training academy
  • Cadets who cannot follow orders at all are dismissed
  • Cadets who follow any order, even harmful ones, are also dismissed
  • A few borderline cadets become referees who keep others in line

⚠️ Traps, Pearls, Recap

Exam traps
  • IgM and IgD on one naive B cell share the same idiotype.
  • TCR binds only peptide on MHC; the B-cell receptor binds whole antigen.
  • Class I goes to CD8 cells; class II goes to CD4 cells.
  • Positive selection tests for weak self-MHC binding; negative selection removes strong binders.
  • Light chains in B cells are not given extra bases by TdT.
Clinical pearls
  • RAG null mutation → SCID with no B or T cells.
  • Partial RAG function → Omenn syndrome with rash and diarrhea.
  • TdT marks immature lymphocytes in acute lymphoblastic leukemia.
  • FoxP3 loss removes regulatory T cells and promotes autoimmunity.
Recap
  • B cells display IgM and IgD; T cells display the TCR.
  • Each lymphocyte has one idiotype.
  • V(D)J recombination, N-nucleotide addition, and chain pairing make receptor variety.
  • RAG1 and RAG2 drive recombination.
  • Failed rearrangement on both chromosomes means apoptosis.
  • Allelic exclusion ensures one receptor per cell.
  • Complete RAG loss causes SCID; partial loss causes Omenn syndrome.
  • B cells mature and are tested in the bone marrow.
  • Class I MHC shows internal peptides to CD8 cells; class II shows external peptides to CD4 cells.
  • T cells pass positive and negative selection in the thymus; most die.
  • Regulatory T cells express CD25 and FoxP3 and release IL-10 and TGF-β.