Biology and medicine · 12 minutes
Flow lab
A flow cytometer measures tens of thousands of single cells per second and turns each one into a row of numbers. Most immune-cell labels you will ever train on were made this way, by a person drawing boxes on scatter plots. Draw some yourself.
Start here how the machine works
Cells are suspended in liquid and squeezed into a thin stream, so that they pass a laser beam in single file. Each cell takes a few microseconds to cross the beam. During that moment detectors record two kinds of light, and the result is one row of numbers per cell, called an event.
- Forward scatter (FSC)
- Laser light deflected slightly by the cell. Larger cells give more of it, so FSC is read as a rough measure of size.
- Side scatter (SSC)
- Laser light thrown off sideways by structures inside the cell. Cells packed with granules give a lot of it, so SSC is read as internal complexity.
- Fluorescence channels
- Before the run, the cells are stained with antibodies that each stick to one protein and carry a dye. The brightness in each colour says how much of that protein the cell has. Typical experiments measure 10 to 30 proteins per cell.
- Gate
- A region drawn on a plot. Cells inside are kept for the next step, cells outside are dropped. A chain of gates is the classic way to define a cell population.
Scatter needs no staining at all, so it is always the first look. In blood, it already separates three groups: small smooth lymphocytes (T cells, B cells and natural killer cells), larger monocytes, and granule-filled neutrophils. Telling a T cell from a B cell takes fluorescence.
1. Gate a blood sample
Step 1: on the left plot, drag a rectangle around the lymphocytes: the tight cluster with low side scatter, just right of the debris in the corner. Step 2: the right plot then shows only those cells, split by two markers: CD3 (on T cells) and CD19 (on B cells).
- Move the gate a little and watch purity and recovery trade against each other. Nobody can tell you where the right edge is. Two experts will draw two boxes.
- Switch compensation off. The CD3 dye leaks into the CD19 detector, so every T cell also looks a bit CD19-positive and a diagonal smear of fake double-positive cells appears. Compensation subtracts the leak, using a measured spillover matrix.
- Switch the log scale off. Fluorescence spans four orders of magnitude. On a linear axis the negative cells collapse into a line at the edge.
2. What the numbers cannot see: imaging flow cytometry
An imaging flow cytometer adds a camera. Every cell is photographed as it flies past, in brightfield and in each fluorescence colour, at up to a few thousand cells per second. You keep the statistics of flow and gain what a microscope gives: shape, texture, and where inside the cell the signal sits.
Here are six events from the sample above. Read the numbers first and decide what each one is. Then reveal the images.
Event 3 is the lesson. A T cell and a B cell stuck together cross the laser as one event that is positive for both markers. In the table it looks like a new cell type. In the image it is plainly two cells. Conventional flow catches most such doublets with a trick: a doublet has nearly the height of one cell but about twice the area of its signal pulse, so a plot of area against height exposes it. The camera removes the guesswork, and also shows things no pulse can, such as whether a protein sits on the membrane or in the nucleus.
3. The family of instruments
| Instrument | One cell becomes | Speed | Strength | Limit |
|---|---|---|---|---|
| Flow cytometer | 10 to 30 numbers | Tens of thousands of cells per second | Statistics, rare cells, clinical routine | No picture. Dyes overlap spectrally. |
| Spectral flow cytometer | A full emission spectrum, unmixed into 30 to 40 markers | Similar | More markers per tube | Depends on good unmixing references |
| Cell sorter (FACS) | The same numbers, plus a decision | Thousands per second | Physically collects the gated cells, alive, for later experiments | Slower, stressful for cells |
| Mass cytometer (CyTOF) | 40 or more numbers | Hundreds per second | Antibodies carry metal isotopes, read by mass spectrometry, so channels barely overlap | Cells are destroyed. No scatter, no sorting. |
| Imaging flow cytometer | A small multi-channel image | Hundreds to thousands per second | Morphology and location of signal at flow-like numbers | Small images, fewer colours, large files |
4. Why this matters for your model
- The data are a table. A sample is a matrix of events × channels, stored in an FCS file, often with a million rows. Order of rows carries no meaning (apart from time drift), so a sample is a set, not a sequence.
- Transform before you model. Raw fluorescence is roughly log-normal with a noisy region around zero, and compensation produces negative values. The standard choices are arcsinh or "logicle" transforms, which are linear near zero and logarithmic above.
- Labels come from manual gates. They are subjective, hierarchical, and differ between operators and labs. Automated alternatives exist (clustering such as FlowSOM, embedding with UMAP), and they disagree with each other too.
- Rare populations are the interesting ones. A population at 0.01 % means 100 cells in a million events. Class imbalance is extreme, and a handful of doublets or debris events can outnumber the real cells.
- The patient is the unit, not the cell. A million cells from one donor are one sample. Split by donor, and compute statistics per donor.
- Batch effects are large. Laser power, detector voltage, antibody lot and staining day all shift the distributions. Clinical studies use reference beads and control samples to align runs.
- Imaging flow gives you images at scale. Hundreds of thousands of roughly 60 × 60 pixel multi-channel cell images per sample. Popular tasks: classifying cells from brightfield alone (label-free), finding doublets and out-of-focus cells, and reading the cell-cycle phase from shape.
5. Check yourself
Notes and caveats
All data are simulated. Cluster positions and proportions follow the typical picture for human blood after the red cells have been removed, but real scatter plots are messier and differ between instruments. Spillover is shown for a single pair of dyes with one coefficient; real experiments compensate a full matrix. Speeds and marker counts are orders of magnitude and vary by instrument.