Home▸Molecular Biology▸Clonal Selection: How the Adaptive Immune System Picks a Fighter (2D)

Clonal Selection: How the Adaptive Immune System Picks a Fighter (2D)

Interactive 2D clonal-selection model: a dendritic cell presents an antigen fragment to a diverse repertoire of differently-shaped T-cell and B-cell receptor clones, only the matching clones get activated, the winning T-cell clone expands and hands off help to its matching B-cell clone, which expands, differentiates into plasma cells, and contracts into long-lived memory.

Molecular Biology2DMedium60 FPS📱 Mobile-adapted⇄ 3D version
2d-3d-adaptive-immune-response ↗ Open standalone

This 2D model simulates real clonal selection: a diverse repertoire of T-cell and B-cell clones, each with its own randomly-shaped receptor, sits dormant until a dendritic cell presents a specific antigen fragment. Only the clones whose receptor shape and colour actually fit the antigen cross the affinity threshold and get activated — everything else stays dormant. Watch the winning T-cell clone divide into a clonal army, hand off activation to its matching B-cell clone, and watch that clone expand, differentiate into plasma cells, and contract into memory. Adjust repertoire diversity and the affinity threshold, or roll a new antigen, to see a different clone win each time.

⚙ Under the hood

A 2D agent-based clonal-selection model: a randomly-generated repertoire of receptor "shape + colour" clones is screened against an antigen via an affinity function, matched clones undergo logistic clonal expansion scaled by their own affinity, a population threshold triggers helper T-cell → B-cell handoff, and the response contracts into a memory-sized pool afterward.

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)