We present an algorithm for modeling flow cytometry data in the presence of large inter-sample variation. Large-scale cytometry datasets often exhibit some within-class variation due to technical effects such as instrumental differences and variations in data acquisition, as well as subtle biological heterogeneity within the class of samples. Failure to account for such variations in the model may lead to inaccurate matching of populations across a batch of samples and poor performance in classification of unlabeled samples. In this paper, we describe the Joint Clustering and Matching (JCM) procedure for simultaneous segmentation and alignment of cell populations across multiple samples. Under the JCM framework, a multivariate mixture distribution is used to model the distribution of the expressions of a fixed set of markers for each cell in a sample such that the components in the mixture model may correspond to the various populations of cells, which have similar expressions of markers (that is, clusters), in the composition of the sample. For each class of samples, an overall class template is formed by the adoption of random-effects terms to model the inter-sample variation within a class. The construction of a parametric template for each class allows for direct quantification of the differences between the template and each sample, and also between each pair of samples, both within or between classes. The classification of a new unclassified sample is then undertaken by assigning the unclassified sample to the class that minimizes the distance between its fitted mixture density and each class density as provided by the class templates. For illustration, we use a symmetric form of the Kullback-Leibler divergence as a distance measure between two densities, but other distance measures can also be applied. We show and demonstrate on four real datasets how the JCM procedure can be used to carry out the tasks of automated clustering and alignment of cell populations, and supervised classification of samples. V C 2015International Society for Advancement of Cytometry Key terms flow cytometry; classification; class template; inter-sample variation; clustering; matching; skew mixture models; EM algorithm; JCM FLOW cytometry (FCM) is a powerful tool in clinical diagnosis of health disorders, in particular, immunological diseases. It offers rapid high-throughput measurements of multiple characteristics on every cell in a sample, enabling biologists to study a variety of biological processes at the cellular level. A critical component in the pipeline of FCM data analysis is the identification of cell populations from the multidimensional FCM dataset, currently performed manually by visually separating regions or gates of interest on a series of sequential bivariate projections of the data, a process known as gating. However, this approach has many problems and limitations, including variability between different analysts, non-standardization and nonreproducibility of results, an unrealistic assumption that bi...