Part 5·5.4·16 min read

The Adaptive Immune System

The adaptive immune system learns to recognize specific pathogens and builds immunological memory — the molecular basis of vaccination and the foundation of immunotherapy.

immunologyadaptive immunityT cellsB cellsantibodies

The innate immune system responds to patterns. The adaptive immune system responds to specific sequences. It takes days to mobilize, but once it recognizes a pathogen, it targets it with precise, high-affinity molecules and remembers it for a lifetime. This specificity is the basis of all vaccines, the mechanism that makes natural infection protective, and the target of essentially all modern immunotherapy.

Understanding adaptive immunity is not optional for bioinformatics practitioners in biology — T and B is a major data type, immune checkpoints are the most successful class of cancer drugs, and patient immune are critical biomarkers for drug response and disease progression.

The Two Branches

The adaptive immune system has two effector branches:

Humoral immunity — mediated by B and the they produce. are secreted that bind specific (molecular targets) with high affinity and neutralize pathogens or mark them for destruction.

Cellular immunity — mediated by T . Cytotoxic T (CD8+) directly kill infected or cancerous . Helper T (CD4+) orchestrate the immune response — activating B , macrophages, and cytotoxic T .

Both branches require initial activation by -presenting (primarily dendritic ), which process and display pathogen-derived peptides to T in lymph nodes.

Antigen Recognition: The Core Molecular Logic

MHC Presentation

Every nucleated in the body constantly displays fragments of its internal on the surface, bound to MHC (Major Histocompatibility Complex) molecules:

MHC class I (HLA-A, HLA-B, HLA-C): Presents peptides from intracellular (~8–10 aa). These include self- (normal), (in infected ), and mutant tumor (neoantigens). Recognized by CD8+ T .

MHC class II (HLA-DR, HLA-DP, HLA-DQ): Presents peptides from extracellular taken up by phagocytosis or endocytosis (~13–25 aa). Found only on professional -presenting (DCs, macrophages, B ). Recognized by CD4+ T .

The MHC are the most polymorphic in the human — hundreds of per locus. This polymorphism means different people's MHC molecules present different peptide repertoires from the same pathogen, explaining some individual differences in infection susceptibility and vaccine response.

HLA typing in bioinformatics

MHC are encoded by the HLA (Human Leukocyte ) loci. HLA typing — determining a patient's specific HLA — is required for:

  • Organ transplant matching (mismatched HLA causes rejection)
  • Predicting vaccine response (some HLA types present vaccine better)
  • Predicting drug hypersensitivity (abacavir hypersensitivity in HIV patients with HLA-B*57:01)
  • Neoantigen prediction in cancer immunotherapy (which tumor will be presented to T depends on the patient's HLA type)

HLA typing is now performed computationally from WGS/WES data using tools like HLA-HD, OptiType, or POLYSOLVER.

T Cell Receptors (TCR)

Each T expresses a unique T (TCR) — a surface that recognizes a specific peptide-MHC complex. TCRs are generated by V(D)J recombination: the segments encoding the are cut and spliced together randomly from segments (V, D, J), generating enormous diversity (~10¹⁸ possible combinations for αβ TCRs).

When a TCR recognizes its cognate peptide-MHC, the T is activated — but only with co-stimulation (CD28-CD80/86 interaction). recognition without co-stimulation leads to anergy (tolerance rather than activation). This prevents T from attacking normal self-tissue.

B Cell Receptors (BCR) and Antibodies

B carry B -bound . Like TCRs, they're generated by V(D)J recombination, creating diversity at the binding site.

When a B 's BCR binds its AND receives T help (via CD40L-CD40 and cytokines), the B :

  1. Proliferates (clonal expansion)
  2. Undergoes somatic hypermutation — point are introduced into the -binding region at high frequency
  3. Undergoes affinity maturation in germinal centers — B with higher-affinity outcompete others for limited
  4. Differentiates into plasma ( factories) or memory B

The result is an with exquisitely high affinity for its — often 10,000-fold higher than the initial BCR. This affinity maturation process is what makes the adaptive immune response progressively stronger with each exposure.

Antibody Structure and Function

An is a Y-shaped glycoprotein with:

  • Two Fab regions (Fragment -binding): the "arms" that bind . Each contains variable domains of one heavy chain and one light chain.
  • One Fc region (Fragment crystallizable): the "stem"; recognized by Fc on immune and by complement

The variable domains contain CDRs (Complementarity Determining Regions) — hypervariable loops that directly contact the . CDR3 is the most diverse; in B , it's the site of somatic hypermutation.

classes (isotypes):

ClassLocation/Function
IgMFirst responder; pentamer; efficient complement activation
IgGMost abundant in blood; long half-life; crosses placenta
IgAMucosal surfaces (gut, respiratory tract); dimer in secretions
IgEAllergy/parasites; triggers mast cell degranulation
IgDB cell surface signaling

work through three main mechanisms:

  1. Neutralization: blocking pathogen attachment to host
  2. Opsonization: coating pathogens to enhance phagocytosis (Fc on macrophages recognize Fc)
  3. Complement activation: IgG/IgM bind complement → lytic pores or opsonization

T Cell Subsets

After activation, CD4+ T differentiate into distinct subtypes based on the cytokine environment:

SubsetKey cytokines secretedFunction
Th1IFN-γ, TNF-αFight intracellular pathogens; activate macrophages; support CTL responses
Th2IL-4, IL-5, IL-13Coordinate responses to parasites; drive IgE and eosinophils; allergies
Th17IL-17A, IL-17F, IL-22Mucosal defense against bacteria and fungi
Tfh (follicular helper)IL-21, CXCR5Provide B cell help in germinal centers
Treg (regulatory)TGF-β, IL-10Suppress immune responses; prevent autoimmunity

The balance of these subsets determines the character of the immune response. In autoimmune diseases, Treg function is often impaired; in some cancers, tumor-infiltrating Tregs suppress anti-tumor immunity.

Immunological Memory

After clearing an infection, most effector T and B die, but a subset survives as memory . Memory :

  • Are long-lived (decades)
  • Respond faster and more vigorously to re-exposure
  • Have lower activation thresholds (less co-stimulation required)
  • Are maintained by homeostatic cytokines (IL-7 for T , IL-15 for NK )

This is the cellular basis of vaccination: you give the immune system a preview of the pathogen ( from killed , subunit, encoding the spike ) to generate memory without causing disease. On subsequent exposure to the real pathogen, memory respond within 24–48 hours, clearing the infection before it causes severe disease.

Immune Checkpoints: Brakes on T Cell Activation

T activation requires a "second signal" beyond TCR binding. This co-stimulatory requirement prevents T from being activated by normal tissues. Additionally, regulatory signals downregulate active T to prevent excessive tissue damage:

CTLA-4 (Cytotoxic T-Lymphocyte 4): Expressed on activated T ; competes with CD28 for B7 (CD80/86) binding on APCs. Engagement delivers an inhibitory signal, reducing T activation. Acts primarily in lymph nodes.

PD-1 (Programmed Death-1): Expressed on exhausted or activated T ; binds PD-L1 or PD-L2 on target . Delivers an inhibitory signal, preventing killing. Acts in peripheral tissues — particularly the tumor microenvironment.

Why cancers exploit these checkpoints: Tumors express PD-L1 to shield themselves from cytotoxic T . It's like displaying a "friendly" badge that tells T "don't kill me." CTLA-4 and PD-1 are necessary brakes to prevent autoimmunity in normal physiology but are exploited by tumors.

Immune checkpoint inhibitors: Blocking CTLA-4 (ipilimumab) or PD-1/PD-L1 (nivolumab, pembrolizumab, atezolizumab) releases these brakes, allowing exhausted tumor-infiltrating T to attack the tumor. This has produced durable remissions in metastatic melanoma, lung cancer, and many other cancers. Pembrolizumab is now approved in >20 different cancer types.

TCR and BCR Sequencing in Bioinformatics

The variable regions of TCRs and BCRs are directly sequenceable by high-throughput (TCR-seq, BCR-seq or immunoSEQ). This produces a clonotype repertoire — a list of all unique in a sample and their frequencies.

Applications:

  • Cancer immunotherapy monitoring: tracking expansion of tumor-reactive T clones during checkpoint inhibitor treatment
  • MRD (minimal residual disease) detection: tracking cancer B clones (in CLL, ALL) to detect relapse
  • Vaccine immunogenicity: measuring clonal expansion of vaccine-specific T/B
  • Autoimmunity: identifying autoreactive clones in inflammatory lesions
  • Infection: tracking -specific T responses

Tools: MiXCR ( and clonotype assembly), IMGT/V-QUEST (germline assignment), VDJdb (database of -specific TCRs), ClusTCR/GLIPH2 (grouping TCRs by likely specificity).

Neoantigen prediction pipeline (central to cancer immunotherapy):

  1. Identify somatic from tumor WES vs. normal
  2. Predict which produce novel peptides
  3. Predict which peptides bind the patient's HLA (using NetMHCpan)
  4. Identify neoantigen-reactive T via TCR-seq or functional assays
DECODER
Biology

The adaptive immune system generates highly specific responses against particular antigens using B cells (antibody production) and T cells (direct killing, coordination). It forms immunological memory after first exposure — subsequent encounters with the same antigen trigger a faster, stronger response.

{ } For Developers

The adaptive immune system is a self-learning intrusion detection system with persistent threat intelligence. B cells are the certificate authority: they generate unique antibodies (cryptographic keys) that bind one specific antigen. T cells are the incident response team: killers hunt infected cells, helpers coordinate the response. Memory B and T cells are the threat database: first encounter builds the model, subsequent encounters execute the pre-trained response in hours instead of weeks.

This computational pipeline connects genomics to immunotherapy: knowing which the patient's immune system is likely to recognize guides personalized cancer vaccine design.