Expert systems vs. statistical classification: Assign Classes implements a classic expert system — domain knowledge is encoded as explicit if-then rules. This contrasts with statistical classifiers (Bayesian, SVM, Random Forest) that learn decision boundaries from training data. The tradeoff: expert rules are interpretable and require no training data, but may miss subtle patterns that statistical methods capture. Statistical methods handle ambiguity better but are "black boxes" whose decisions can be hard to explain.
Bayesian classification framework: MIT's Statistical Models chapter shows that optimal classification assigns each observation to the class with the highest posterior probability: P(class|data) ∝ P(data|class) × P(class). Assign Classes implements a simplified version: the gating thresholds define decision boundaries, and the Boolean logic defines the class structure. When gates are set at the population valley (the point where two marker populations are best separated), Assign Classes approximates the Bayes-optimal classifier for well-separated markers.
The hierarchy of classification: In multiplex panels, classification is inherently hierarchical. First distinguish tumor from immune (CK+/−). Within immune, distinguish T cells from B cells (CD3/CD20). Within T cells, distinguish helper from cytotoxic (CD4/CD8). Assign Classes naturally encodes this hierarchy through priority ordering — broader categories (immune) are lower priority than specific ones (cytotoxic T). Cells matching the specific rule are classified there; cells matching only the broad rule fall to the broader category.
Assign Classes is an expert system — you encode biological knowledge as rules. This is the opposite of machine learning classifiers that learn from data. The advantage is total transparency: you know exactly why each cell was classified as it was. The disadvantage is that you must know the rules in advance. For well-defined phenotypes with clear marker combinations, explicit rules often work as well as learned models.