Manual vs Automated Gating
Gating is the process of drawing boundaries on flow cytometry plots to identify cell populations. Every flow cytometry experiment requires gating. The question is whether a human draws those boundaries by hand or an algorithm does it.
This page compares the two approaches. It explains why manual gating creates reproducibility problems and why modern high-dimensional panels make it impractical.
What is gating?
Section titled “What is gating?”Flow cytometry produces measurements for each cell that passes through the instrument. To identify specific cell types, you draw regions on 2D scatter plots. Each region selects cells that fall within a defined range of marker expression. These regions are called gates.
Gates are applied sequentially. You start with broad gates to remove debris and doublets. Then you progressively narrow the population with marker-specific gates. The result is a hierarchy of gates that identifies specific cell types.
Standard PBMC gating hierarchy
Section titled “Standard PBMC gating hierarchy”When analyzing peripheral blood mononuclear cells, most labs follow the same gating strategy.
Step 1: Remove doublets. Plot FSC-A vs FSC-H. Singlets fall along the diagonal. Doublets have higher area relative to height and fall off the diagonal. Draw a gate around the diagonal to keep only singlets.
Step 2: Identify lymphocytes. Plot FSC-A vs SSC-A. Lymphocytes are small with low granularity. They appear as a tight cluster in the lower left. Monocytes are larger and slightly more granular. Granulocytes are large and highly granular, and the density gradient that isolates PBMCs removes most of them.
Step 3: Separate T cells and B cells. Gate on the lymphocyte population. Plot CD3 vs CD19. CD3+ cells are T cells. CD19+ cells are B cells.
Step 4: Separate CD4 and CD8 T cells. Gate on CD3+ cells. Plot CD4 vs CD8. You get four quadrants: CD4+CD8- (helper T cells), CD4-CD8+ (cytotoxic T cells), double positive, and double negative.
The reproducibility crisis in manual gating
Section titled “The reproducibility crisis in manual gating”Manual gating looks straightforward for a 4-color panel. Draw some polygons, count the cells inside. The problem is that different people draw different gates on the same data.
Inter-operator variability
Section titled “Inter-operator variability”Different analysts put the same boundary in different places on the same file. The harmonisation page measures what that costs on one Bodenmiller file, where a CD3 cut at 2.0 calls 0.650 of the events positive and a cut at 2.5 calls 0.533. The cells did not change. The gate placement did.
This variability comes from subjective decisions. Where exactly does the lymphocyte cloud end? How tight should the singlet gate be? Where is the boundary between CD4-positive and CD4-negative? These decisions vary from person to person and even from day to day for the same analyst.
No standard reporting
Section titled “No standard reporting”Publications rarely report gating strategies in enough detail to reproduce the analysis. The MIFlowCyt (Minimum Information about a Flow Cytometry Experiment) reporting guidelines exist to address this. They specify that gating strategies should be fully described and that representative gating plots should be included. In practice, these guidelines are rarely followed.
FlowCAP benchmarks
Section titled “FlowCAP benchmarks”The FlowCAP (Flow Cytometry: Critical Assessment of Population Identification Methods) challenges compared automated methods on shared datasets. The first FlowCAP challenge, on population identification, scored them against expert manual gates. The 2013 report by Aghaeepour and colleagues in Nature Methods covered it together with a second challenge on sample classification. Several methods performed well against the manual gates or the clinical variables, and the authors concluded that automated methods had reached a sufficient level of maturity and accuracy for reliable use in flow cytometry analysis.
The dimensionality problem
Section titled “The dimensionality problem”Reproducibility is one limit of manual gating. The number of markers is the other.
Every pair of markers
Section titled “Every pair of markers”With N markers, you need N*(N-1)/2 bivariate plots to examine all possible pairs. An 8-marker panel needs 28 plots, which an analyst can read. A 30-marker panel needs 435, and a 40-marker panel needs 780. Spectral flow and mass cytometry routinely reach that size, and the three instrument families are compared on the page about the instrument.
No analyst can systematically examine 435 scatter plots per sample. Populations defined by combinations of many markers become invisible when you can only look at two dimensions at a time.
Populations hide in high dimensions
Section titled “Populations hide in high dimensions”Consider regulatory T cells (Tregs). They are defined as CD3+CD4+CD25+CD127low. That is four markers. A manual gating hierarchy can find them. But what about a subset of Tregs that also express specific chemokine receptors, activation markers, and transcription factors? A population defined by 8 or 10 markers simultaneously cannot be found by looking at 2D plots one pair at a time.
High-dimensional data contains populations that only become visible when you consider many markers together. This is where automated methods excel.
Automated gating approaches
Section titled “Automated gating approaches”Unsupervised clustering
Section titled “Unsupervised clustering”Unsupervised methods analyze all markers simultaneously. They group cells into clusters based on their full expression profiles.
FlowSOM uses self-organizing maps to cluster cells. It first maps cells onto a grid, then performs meta-clustering to group similar grid nodes. FlowSOM is fast and scales well to millions of cells. Weber and Robinson compared 18 clustering methods on flow and mass cytometry data in 2016 and recommended FlowSOM as a first choice, for its speed and its accuracy. The clustering page runs it in R, and runs its map and metaclustering steps in Python.
PhenoGraph builds a nearest-neighbor graph and applies Louvain community detection. It finds the number of clusters from the graph rather than taking it as an argument, and it is slower than FlowSOM on large datasets.
Leiden clustering refines Louvain and guarantees well-connected communities, as Traag and colleagues showed in 2019. scanpy runs it on any AnnData object, so it is the usual choice when cytometry data goes into the Python single-cell tools.
All of these methods find populations across all dimensions simultaneously. They can identify cell types that manual gating would miss. The analysis tools page lists the R and Python packages that implement them.
Template-based automated gating: openCyto
Section titled “Template-based automated gating: openCyto”openCyto takes a different approach. Instead of unsupervised clustering, it automates the traditional gating hierarchy. You define your gating strategy in a CSV template that specifies which markers to gate, in what order, and what algorithm to use for each gate.
The result is a reproducible gating hierarchy that mirrors manual gating but removes the subjective element. Every sample is gated with exactly the same rules. The automated gating page fits a four-gate template to two samples, including a gate that fails.
Advantages of automated gating
Section titled “Advantages of automated gating”| Aspect | Manual | Automated |
|---|---|---|
| Reproducibility | Low. Different analysts, different results. | High. Same algorithm, same result every time. |
| Dimensionality | Limited to 2D plots. Practical up to about 10 markers. | Handles all dimensions simultaneously. No practical limit. |
| Speed | Minutes to hours per sample. | Seconds to minutes per sample. |
| Novel populations | Only finds what you look for. | Can discover unexpected populations. |
| Domain knowledge | Requires deep expertise in marker biology. | Requires understanding of algorithm parameters. |
Disadvantages of automated gating
Section titled “Disadvantages of automated gating”Automated methods are not perfect. They require validation against known biology. A clustering algorithm does not know that CD3+CD4+ cells are helper T cells. It just knows they form a cluster. You still need biological expertise to interpret the results.
Algorithms can also split real populations into multiple clusters. Or they can merge distinct populations into one cluster. The results depend on hyperparameters like the number of clusters, the number of nearest neighbors, or the resolution parameter. Different parameter choices can give different results.
The hybrid approach
Section titled “The hybrid approach”Most experienced cytometrists use a combination of both methods. The practical workflow looks like this:
- Manual gating for cleanup. Use manual gates for singlets, live cells, and the initial lineage gates. These are well-defined populations with clear boundaries.
- Unsupervised clustering for phenotyping. Apply FlowSOM or PhenoGraph to the cleaned population. Let the algorithm find subpopulations across all markers.
- Validation. Check that the clusters correspond to known biology. Examine marker expression heatmaps. Overlay clusters on UMAP or tSNE plots.
This hybrid approach combines the reliability of manual gating for well-known populations with the power of automated methods for high-dimensional discovery.
Key takeaways
Section titled “Key takeaways”Manual gating works for small panels and well-characterized populations. It is intuitive and easy to understand. But it suffers from reproducibility problems and cannot handle modern high-dimensional panels.
Automated gating is reproducible, fast, and handles any number of markers. It can find populations that manual gating misses. But it requires careful parameter tuning and biological validation.
For panels with more than 10 markers, automated approaches are necessary, because the data holds information in combinations of markers that bivariate plots cannot show.
Further reading
Section titled “Further reading”The FlowCAP study by Aghaeepour and colleagues compares population identification and sample classification against reference results. Its separate tasks clarify what a benchmark can establish.
The openCyto template guide defines the population hierarchy, parent gates, dimensions, methods, and sample groups in a CSV template.
The 2019 cytometry guidelines describe gate controls and experimental information needed to interpret population frequencies.