Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2014 Sep 5.
Published in final edited form as: Stat Appl Genet Mol Biol. 2013 Jun;12(3):309–331. doi: 10.1515/sagmb-2012-0001

Hierarchical Bayesian mixture modelling for antigen-specific T-cell subtyping in combinatorially encoded flow cytometry studies

Lin Lin 1,*, Cliburn Chan 2, Sine R Hadrup 3, Thomas M Froesig 4, Quanli Wang 5, Mike West 6
PMCID: PMC4155753  NIHMSID: NIHMS621186  PMID: 23629459

Abstract

Novel uses of automated flow cytometry technology for measuring levels of protein markers on thousands to millions of cells are promoting increasing need for relevant, customized Bayesian mixture modelling approaches in many areas of biomedical research and application. In studies of immune profiling in many biological areas, traditional flow cytometry measures relative levels of abundance of marker proteins using fluorescently labeled tags that identify specific markers by a single-color. One specific and important recent development in this area is the use of combinatorial marker assays in which each marker is targeted with a probe that is labeled with two or more fluorescent tags. The use of several colors enables the identification of, in principle, combinatorially increasingly numbers of subtypes of cells, each identified by a subset of colors. This represents a major advance in the ability to characterize variation in immune responses involving larger numbers of functionally differentiated cell subtypes. We describe novel classes of Markov chain Monte Carlo methods for model fitting that exploit distributed GPU (graphics processing unit) implementation. We discuss issues of cellular subtype identification in this novel, general model framework, and provide a detailed example using simulated data. We then describe application to a data set from an experimental study of antigen-specific T-cell subtyping using combinatorially encoded assays in human blood samples. Summary comments discuss broader questions in applications in immunology, and aspects of statistical computation.

Keywords: Dirichlet process mixtures, GPU computing, Hierarchical model, Immune profiling, Immune response biomarkers, Large data sets, Markov chain Monte Carlo, Massive mixture models, Multimers, Posterior simulation, Relabeling, T-cell subtyping

1 Introduction

In immune response studies, statistical mixture modelling is becoming established for analysis of increasingly large data sets from flow cytometry technologies (e.g., Chan et al., 2008; Lo et al., 2008; Finak et al., 2009; Pyne et al., 2009; Manolopoulou et al., 2010). Core interests lie in identifying and resolving multiple subtypes of immune cells, differentiated by the levels of activity (and presence/absence) of subsets of cell surface receptor molecules, as well as other phenotypic markers of cell phenotypes. Flow cytometry (FCM) technology provides an ability to assay multiple single cell characteristics on many cells. The work reported here addresses a recent innovation in FCM – a combinatorial encoding method that leads to the ability to substantially increase the numbers of cell subtypes the method can, in principle, define. This new biotechnology motivates the statistical modelling here. We develop structured, hierarchical mixture models that represent a natural, hierarchical partitioning of the multivariate sample space of flow cytometry data based on a partitioning of information from FCM. Model specification respects the biotechnological design by incorporating priors linked to the combinatorial encoding patterns. The model provides recursive dimension reduction, resulting in more incisive mixture modelling analyses of smaller subsets of data across the hierarchy, while the combinatorial encoding-based priors induce a focus on relevant parameter regions of interest.

Key motivations and the need for refined and hierarchical models come from biological and statistical concerns. A key practical motivation lies in automated analysis – critical in enabling access to the opportunity combinatorial methods open up. The traditional laboratory practice of subjective visual gating is hugely challenging and labor intensive even with traditional FCM methods, and simply infeasible with higher-dimensional encoding schemes. The FCM field more broadly is increasingly adapting automated statistical approaches. However, standard mixture models – though hugely important and valuable in FCM studies – have critical limitations in very large data sets when faced with multiple low probability subtypes; masking by large background components can be profound. Combinatorial encoding is designed to increase the ability to mark very rare subtypes, and calls for customized statistical methods to enable that. Our examples in simulated and real data sets clearly demonstrate these issues and the ability of the hierarchical modelling approach to resolve them in an automated manner.

Section 2 discusses flow cytometry phenotypic marker and molecular reporter data, and the new combinatorial encoding method. Section 3 introduces the novel mixture modelling strategy, discusses model specification and aspects of its Bayesian analysis. This includes development of customized MCMC methods and use of GPU implementations of components of the analysis that can be parallelized to exploit desktop distributed computing environments for these increasingly large-scale problems; some technical details are elaborated later, in an appendix. Section 4 provides an illustration using synthetic data simulated to reflect the combinatorial encoded structure. Section 5 discusses an application analysis in a combinatorially encoded validation study of antigen specific T-cell subtyping in human blood samples, as well as a comparative analysis on classical data using the traditional single-color approach. Section 6 provides some summary comments.

2 Flow cytometry in immune response studies

2.1 T-cell biology and FCM

The cellular adaptive immune response is mediated by T-cells, a subclass of lymphocytes. Many, functionally different subtypes of T-cells are characterized by differing cell surface markers (clusters of differentiation, CD markers) and the specificity of a given T-cell is determined by the T-cell receptor (TCR), various protein segments, or peptide epitopes, that are presented by larger major histocompability complex (MHC) molecules. Flow cytometry (FCM) uses fluorescent dyes tagged to molecular reporters to identify cell subsets. The typical use is to identify T-cells expressing a specific receptor by labeling the natural ligand (peptide-MHC) with a fluorescent dye and then detecting the cells that bind it via their cell surface receptors. In practice, multimers of peptide-MHC – involving four or more peptide-MHC molecules – are used to increase binding strength and stability. Each color/dye defines a marker, or reporter, for the specific multimer; resulting FCM measurements are measured via laser excitation of the fluorescent intensities across, typically, millions of cells in a sample.

There are large numbers of T-cells that are phenotypically identical apart from their TCRs and the resulting peptide-MHC antigens that they recognize. Because of this, we distinguish between what are referred to as cell surface phenotypic markers, used to identify phenotypically distinct subtypes, from the multimers, identifying different TCRs. As a specific illustration, the CD3, CD4 and CD8 phenotypic markers help to distinguish between helper (CD3+CD4+) and cytotoxic (CD3+CD8+) T lymphocyte (CTL) subsets, while the Ebstein-Barr virus (EBV) and cytomegalovirus (CMV) multimers distinguish functionally distinct subsets of CTLs: EBV-specific CTLs will only respond to an EBV infection and not to a CMV infection, and vice versa. In fact, there are multiple CMV multimers corresponding to different peptide antigens from the CMV virus, and a given T-cell specific to CMV will typically only bind to one of these CMV multimers.

2.2 T-cell FCM markers and multimers

In addition to broadly relevant cell surface proteins, common phenotypic markers include several measures of light scattered from the surface of the cell, a multiplexed dump channel measurement that can be used to exclude cells not of interest, and a measurement of cell viability that identifies dead cells. In order to identify multimer-specific T-cell subpopulations, standard analysis has relied on a manual strategy that filters cells via serial 2D projections of reporter space (using both phenotypic markers and multimer intensities) using visually defined boundaries known as gates. The process of gating relies heavily on local expertise, and is cumbersome in higher dimensions since the number of possible 2D projections that need to be examined increases rapidly. This poses a bottleneck in the use of higher-dimensional encodings for antigen-specific cell identification with combinatorial multimer strategies. This partly underlies the drive to automatic cell subset identification to overcomes the limitations of manual gating, and the increasing adoption of statistical mixture modelling approaches (e.g., Chan et al., 2008; Lo et al., 2008; Pyne et al., 2009; Frelinger et al., 2010; Manolopoulou et al., 2010; Suchard et al., 2010).

Current flow cytometers can discriminate around 12–15 different multimer reporters. Multimer labeling requires the use of one optical channel for each peptide epitope, and the optical spillover from one fluorescent dye into the detector channels for others – i.e., frequency interference – limits the number. This therefore severely limits the number of epitopes – corresponding to subtypes of specific T-cells – that can be detected in any one sample. In many applications, such as in screening for candidate epitopes against a pathogen or tumor to be used in an epitope-based vaccine, there is a need to evaluate many potential epitopes with limited samples. This represents a major current challenge to FCM, one that is addressed by combinatorial encoding, as now discussed.

2.3 Combinatorial encoding in FCM

Combinatorial encoding expands the number of antigen-specific T-cells that can be detected (Hadrup and Schumacher, 2010). The basic idea is simple: by using multiple different fluorescent labels for any single epitope, we can identify many more types of antigen-specific T-cells by decoding the color combinations of their bound multimer reporters. For example, using k colors, we can in principle encode 2k−1 different epitope specificities. In one strategy, all 2k−1 combinations would be used to maximize the number of epitope specificities that can be detected (Newell et al., 2009). In a different strategy, only combinations with a threshold number of different multimers would be used to minimize the number of false positive events; for example, with k = 5 colors, we could restrict to only combinations that use at least 3 colors to be considered as valid encoding (Hadrup et al., 2009).

This strategy is especially useful when there is a need to screen potentially hundreds of different peptide-MHC molecules. Standard one-color-per-multimer labeling is limited by the number of distinct colors that can be optically distinguished. In practice, this means that only a very small number of distinct peptide-multimers (typically fewer than 10) can be used. While it is certainly true that a single-color strategy suffices for some applications, the aim to use FCM in increasingly complex studies with increasingly rare subtypes is promoting this interest in refined methods. As antigen-specific T-cells are typically exceedingly rare (often on the order of 1 in 10,000 cells), the robust identification of these cell subsets is challenging both experimentally and statistically with standard FCM analyses. Previous studies have established the feasibility of a 2-color encoding scheme; this paper describes statistical methods to automate the detection of antigen-specific T-cells using data sets from novel 3-color, and higher-dimensional encoding schemes.

Direct application of standard statistical mixture models will typically generate imprecise if not unacceptable results due to the inherent masking of low probability subtypes. All standard statistical mixture fitting approaches suffer from masking problems that are increasingly severe in contexts of huge data sets in expanding dimensions. Estimation and classification results focus heavily on fitting to the bulk of the data, resulting in large numbers of mixture components being identified as modest refinements of the model representation of more prevalent subtypes (Manolopoulou et al., 2010). These approaches just do not have the ability to home-in on small features of the data reflecting low probability components or collections of components that together represent a rare biological subtype of interest. Hence, it is natural to seek hierarchically structured models that successively refine the focus into smaller, select regions of biological reporter space. The conditional specification of hierarchical mixture models now introduced does precisely this, and in a manner that respects the biological context and design of combinatorially encoded FCM.

3 Hierarchical mixture modelling

3.1 Data structure and mixture modelling issues

Begin by representing combinatorially encoded FCM data sets in a general form, with the following notation and definitions.

Consider a sample of size n FCM measurements xi, (i = 1:n), where each xi is a p–vector xi = (xi1, xi2, …, xip)′. The xij are log transformed and standardized measurements of light intensities at specific wavelengths; some are related to several functional FCM phenotypic markers, the rest to light emitted by the fluorescent reporters of multimers binding to specific receptors on the cell surface. As discussed above, both types of measure represent aspects of the cell phenotype that are relevant to discriminating T-cell subtypes. We denote the number of multimers by pt and the number of phenotypic markers by pb, with pt+pb = p. We also order elements of xi so that xi=(bi,ti) where bi is the lead subvector of phenotypic marker measurements and ti is the subvector of fluorescent intensities of each of the multimers being reported via the combinatorial encoding strategy.

Figure 1 shows a random sample of real data from a human blood sample validation study generating measures on pb = 6 phenotypic markers and pt = 4 multimers of key interest. The figure shows a randomly selected subset of the full sample projected into the 3D space of 3 of the multimer encoding colors. Note that the majority of the cells lie in the center of this reporter space; only a small subset is located in the upper corner of the plots. This region of apparent low probability relative to the bulk of the data defines a region where antigen-specific T-cell subsets of interest lie.

Figure 1.

Figure 1

3D scatter plots of a randomly selected subset of the FCM data of Section 5.1 on 3 reporters. Left: Qdot 655-A vs. Qdot 605-A vs. PE-A. Right: Qdot 655-A vs. APC-A vs. PE-A.

Traditional mixture models have difficulties in identifying low probability component structure in fitting large datasets requiring many mixture components; the inherent masking issue makes it difficult to discover and quantify inferences on the biologically interesting but small clusters that deviate from the bulk of the data. We show this in the p = 10 dimensional example using standard dirichlet process (DP) mixtures (West et al., 1994; Escobar and West, 1995; Ishwaran and James, 2001; Chan et al., 2008; Manolopoulou et al., 2010). To fit the DP model, we used a truncated mixture with up to 160 Gaussian components, and the Bayesian expectation-maximization (EM) algorithm to find the highest posterior mode from multiple random starting points (L. Lin et al., submitted for publication; Suchard et al., 2010). The estimated mixture model with these plug-in parameters is shown in Figure 2. Many mixture components are concentrated in the main central region, with only a few components fitting the biologically important corner regions. To adequately estimate the low density corner regions would require a huge increase in the number of Gaussian components and an enormous computational search challenge, and is simply infeasible as a routine analysis.

Figure 2.

Figure 2

Data of Figure 1 on contours of 2-dimensional margins of fitted 10-dimensional DP Gaussian mixture.

3.2 Hierarchical model

We define a novel hierarchical mixture model specification that respects the phenotypic marker/reporter structure of the FCM data and integrates prior information reflecting the combinatorial encoding underlying the multimer reporters. Using f(·|·) as generic notation for any density function, the population density is described via the compositional specification

f(χ1:nΘ)=i=1nf(biΘ)f(tibi,Θ) (1)

where Θ represents all relevant and needed parameters.

This naturally focuses on a hierarchical partition: (i) consider the distribution defined in the subspace of phenotypic markers first, to define understanding of substructure in the data reflecting differences in cell phenotype at that first level; then (ii) given cells localized – and differentiated at this first level – based on their phenotypic markers, understand subtypes within that now based on multimer binding that defines finer substructure among T-cell features.

3.3 Mixture model for phenotypic markers

Heterogeneity in phenotypic marker space is represented via a standard truncated Dirichlet process mixture model (Ishwaran and James, 2001; Chan et al., 2008; Manolopoulou et al., 2010; Suchard et al., 2010). A mixture model at this first level allows for first-stage subtyping of cells according to biological phenotypes defined by the phenotypic markers alone. That is,

f(biΘ)=j=1JπjN(biμb,j,b,j) (2)

where π1:J are the component probabilities, summing to 1, and N(bi|μb, j, Σb, j) is the density of the pb–dimensional Gaussian distribution for bi with mean vector μb, j and covariance matrix Σb, j. The parameters {π1:J, μb, 1:J, Σb, 1:J} are elements of the overall parameter set Θ. Priors on these parameters are taken as standard; that for π1:J is defined by the usual stick breaking representation inherent in the DP model, and we adopt proper, conditionally conjugate normal-inverse Wishart priors for the {μb, j, Σb, j}; see Appendix 7.1 for details and references.

The mixture model can be interpreted as arising from a clustering procedure depending on underlying latent indicators zb, i for each observation bi. That is, zb, i = j indicates that phenotypic marker vector bi was generated from mixture component j, or bi|zb, i = j~N(bi|μb, j, Σb, j), and with P(zb, i = j) = πj. The mixture model also has the flexibility to represent non-Gaussian T-cell region densities by aggregating a subset of Gaussian densities. This latter point is key in understanding that Gaussian mixtures do not imply Gaussian forms for biological subtypes, and is used in routine FCM applications with traditional mixtures (Chan et al., 2008; Finak et al., 2009).

Bayesian analysis using Markov chain Monte Carlo (MCMC) methods augments the parameter space with the set of latent component indicators zb, i and generates posterior samples of all model parameters together with these indicators. Over the course of the MCMC the zb, i vary to reflect posterior uncertainties, while conditional on any set of their values the data set is conditionally clustered into J groups (some of which may, of course, be empty) reflecting a current set of distinct subpopulations; some of these may reflect one unique biological subtype, though realistically they generally reflect aggregates of subtypes that may then be further evaluated based on the multimer reporters. This is the key point that underlies the second component of the hierarchical mixture model, as follows.

3.4 Conditional mixture models for multimers

Reflecting the biological reality, we posit a mixture model for multimer reporters ti, again utilizing a mixture of Gaussians for flexibility in representing essentially arbitrary non-Gaussian structure; we again note that clustering several Gaussian components together may overlay the analysis in identifying biologically functional subtypes of cells. We assume a mixture of at most K Gaussians, N(ti|μt, k, Σt, k), for k = 1: K. The locations and shapes of these Gaussians reflects the localizations and local patterns of T-cell distributions in multiple regions of multimer. However, recognizing that the above development of a mixture for phenotypic markers has the inherent ability to subdivide T-cells into up to J subsets, we need to reflect that the relative abundance of cells differentiated by multimer reporters will vary across these phenotypic marker subsets. That is, the weights on the K normals for ti will depend on the classification indicator zb, i were they to be known. Since these indicators are part of the augmented model for the bi we therefore condition on them to develop the model for ti.

Specifically, we take the set of J mixtures, each with K components, given by

f(tizb,i=j,bi,Θ)=k=1Kωj,kN(tiμt,k,t,k)

where the ωj, k sum to 1 over k =1:K for each j. As discussed above, the component Gaussians are common across phenotypic marker subsets j, but the mixture weights ωj, k vary and may be very different.

This leads to the natural theoretical development of the conditional density of multimer reporters given the phenotypic markers, defining the second components of each term in the likelihood function of equation (1). This is

f(tibi,Θ)=j=1Jf(ti,zb,i=jbi,Θ)=j=1JP(zb,i=jbi,Θ)f(tizb,i=j,bi,Θ) (3)
=j=1J{πjN(biμb,j,b,,j)f(biΘ)}k=1Kωj,kN(tiμt,k,t,k)=k=1Kωi,k(bi)N(tiμt,k,t,k) (4)

where

ωi,k(bi)=f(biΘ)-1j=1Jωj,kπjN(biμb,j,b,j). (5)

Notice that the ωi, k(bi) are mixing weights for the K multimer components as reflected by equation (4); the model induces latent indicators zt, i in the distribution over multimer reporter outcomes conditional on phenotypic marker outcomes, with P(zt, i = j|bi) = ωi, k(bi). These multimer classification probabilities are now explicitly linked to the phenotypic marker measurements and the affinity of the datum bi for component j in phenotypic marker space.

From the viewpoint of the main applied focus on identifying cells according to subtypes defined by both phenotypic markers and multimers, key interest lies in posterior inferences on the subtype classification probabilities

P(zb,i=c,zt,i=cχi,Θ)(j,k)IcπjN(biμb,j,b,j)ωi,k(bi)N(tiμt,k,t,k), (6)

for each subtype c =1:C, where Ic is the subtype index set containing indices of the Gaussian components that together define subtype c. Here

P(zb,i=j,zt,i=kχi,Θ)πjN(biμb,j,b,j)ωi,k(bi)N(tiμt,k,t,k), (7)

for j =1:J, k =1:K, and the index sets Ic contains phenotypic marker and multimer component indices j and k, respectively. These classification subsets and probabilities will be repeatedly evaluated on each observation i =1:n at each iterate of the MCMC analysis, so building up the posterior profile of subtype classification.

One next aspect of model completion is specification of priors over the J sets of probabilities ωj, 1:K and the component means and variance matrices {μt, 1:K, Σt, 1:K}. This is done using the structure of a standard hierarchical extension of the truncated DP model (Teh et al., 2006). Under a prior from this class, the ω1:J, 1:K are naturally independent of the {μt, 1:K, Σt, 1:K}, and are also naturally linked across phenotypic marker components j; the specification of p(ω1:J, 1:K) is detailed in Appendix 7.2.

We further take the Σt, 1:K as independent of the other parameters and with Σt, k~IWt,k|δt, Φt) for some specified δt, Φt, corresponding to the usual conditionally conjugate prior.

The remaining aspect of the prior specification is that for μt, 1:K, the multimer model component location vectors, and it is here that the structure of the combinatorial encoding design comes into play.

3.5 Priors on multimer component location vectors

The levels of different multimers represented by subtype means μt, 1:K must be structured to reflect the combinatorial design. For any given epitope, reported fluorescent intensity levels are recognized as distributed around zero for cells lacking the corresponding cell surface receptor, in a range of low non-zero values, or at rather higher levels for cells targeted by the reporter. We capture this through a prior on the μt, 1:K linked to corresponding regions in reporter space, structured to also capture the prior knowledge implicit in the strategy of multimer combinatorial encoding.

Define anchor regions in the pt–dimensional multimer reporter space by a set of R = 3pt anchor points, as follows. Represent by 0/L/H anchor points in any one multimer dimension, choosing specific values of L, H on the reporter scale. Set R = 3pt and define the set of R 3–vectors m1:R via

mr=(m1,r,m2,r,,mpt,r),r=1:R,

where mi, r ∈ {0, L, H} and the mr vectors represent all distinct R = 3pt combinations of 0, L, H for each of the pt reporters. Effectively, the mr identify all R subregions of the pt – dimensional reporter space according to possible combinations of absent, low levels and high levels of each of the multimers being reported. For example, in the simplest case with pt = 2, then R = 9, mr vectors are the columns of the matrix

(000LLLHHH0LH0LH0LH).

In some applications, this specification could be simplified to just two levels, e.g., by combining 0 and L levels. However, our data sets contain cell debris with light intensities at much lower levels compared to other cells in most dimensions, so the three levels are needed. In data sets that have been pre-cleaned of debris cells, a reduction to two levels could suffice, with appropriate modification of the following development.

Given the anchor vectors m1:R, the prior for {μt, 1:K, Σt, 1:K} is now defined based on the following idea. We expect to see cell subtypes in a selection of the R regions linked to anchor points, and as earlier anticipate that distributions of reporters within subtypes may be heterogeneous. Hence any one subtype may be represented by a number of the μt, k that are clustered within one of the R regions, so that the resulting aggregate of the corresponding subset of the weighted N(ti|μt, k, Σt, k) distributions reflects the reporter distribution for that cell subpopulation. This means a relevant prior for the μt, k will engender such clustering in the anchored regions reporter space while allowing for variability more globally. The natural model for this is to take the μt, k to be independent with marginal priors

μt,k~r=1RqrN(μt,kmr,Qr)

for some variance matrices Qr where, as a default, we take qr = 1/R, for r = 1:R. In addition to allowing for the above described scientific clustering, this also allows for some or many of the R anchored regions to be “empty” in the sense that none of the μt, k are generated from the corresponding N(·|mr, Qr) component of this mixture prior.

Specification of the 3×3 variance matrices Qr defines the expected levels of variation, and patterns of covariation, within a subset of the μt, k allocated to anchor region r. The default specification we make, following a broad study of the impact of variation in the values chosen is to base this on an overall scalar variance q and a set of specified pairwise correlations that relate to the anchor regions. For the latter, high abundance of two specific multimers – represented by H, H – is consistent with positive correlation in the corresponding elements of Qr; low abundance of one and high abundance of the other – i.e., L, H – is consistent with negative correlation; lack of correlation is relevant when either one of the multimers is absent, i.e., 0, X for any X ∈ {0, L, H}. As an example when pt = 3, for the 3 anchor regions r = s, u, v defined by ms = (H, L, H)′, mu = (0, L, L)′ and mv = (0, 0, H)′, we take

Qs=q(1ρnρpρn1ρnρρn1),Qu=q(10001ρp0ρp1),Qv=q(100010001),

respectively, where q controls overall levels of variation and ρp, ρn are specified positive and negative correlations. Following studies to evaluate specification, we take ρp = 0.6 and ρn = −0.6 as a default. The remaining Qr matrices are filled out similarly corresponding to their anchor regions.

The specific anchor values of L, H are chosen to reflect known ranges of mean levels of low/high fluorescent intensities. This could be generalized to allow differing values that are specific to epitopes, and it is also possible to extend the Bayesian analysis to allow for uncertainty in these values by treating them as hyper-parameters. Standardized multimer measurements range from −4 to 10. Though the specific ranges differ somewhat across multimer, we take L = −4 and H = 6 for all multimers, defining prior ranges that allow for all experienced data regions. Similar comments apply to choice of values for the Qr, in that the above specification might be relaxed by treating the ρp, ρn as hyper-parameters or even endowing each Qr with, say, an inverse Wishart hyper-prior. Such extensions may be explored further in future in new applications. However, our current studies suggest that these extensions are overkill and unlikely to materially impact the resulting inferences; the specifications above have been customized to the known characteristics of FCM fluorescent reporter scales and we have evaluated a range of prior specifications and find strong levels of robustness to these specifications. The reasons for this are that the model already allows for uncertainty via the prior variability of the μt, 1:K around the means mr, and overlays this with an ability to add multiple μt, k to any anchor region to fill-out a conditional mixture defining a flexible representation of the reporter distribution for the cell subtype in that region. That is, the model already has substantial degrees-of-freedom in adapting to observed data configurations.

3.6 Posterior computations

3.6.1 Augmented model and MCMC

Posterior computations use customized MCMC methods involving a combination of Gibbs sampling and Metropolis-Hastings. The overall strategy is standard in Bayesian computation, involving augmentation of the model parameter space by sets of mixture component indicators that (i) enable simulation of relevant conditional distributions for model parameters, and (ii) are themselves then imputed from relevant conditional posteriors as the MCMC proceeds. Thus we obtain posterior simulations for model parameters and mixture component indicators jointly, the latter feeding into follow-on inferences on subtype classification for each cell, among other things.

An outline to the augmentation ideas and the overall MCMC strategy is noted here, with full technical details given in Appendix 7.3. The full parameter set Θ is

Θ={(μb,1:J,b,1:J,π1:J-1,αb),(μt,1:K,t,1:K,ω1:J,1:K,αt,γ)}

where the first subset relates to the phenotypic marker mixture model and the second to that for the multimers. In the first, subset, αb is a hyper-parameter underlying the DP prior for the phenotypic marker model whose role and prior are as defined in Appendix 7.1; similarly, the hyper-parameters αt, γt of the multimer hierarchical DP model have roles and priors defined in Appendix 7.2.

The augmented model includes the phenotypic marker mixture component indicators zb, 1:n earlier introduced as well as additional indicators underlying the hierarchical DP mixture for multimer mixture components conditional on the zb, 1:n.

3.6.2 Post-MCMC analysis

MCMC fitting of mixture models suffer from the well-known label switching problem, complicating posterior inference. We address this using the state-of-the-art method for relabeling MCMC samples described and implemented in Cron and West (2011). At iterate s of the MCMC analysis with a current set of all model parameters Θ(s) and sets of mixture component indicators generically denoted by Z(s), this method relabels components in each of the mixtures: first for f(bi|Θ) and then for f(ti|bi, θ). The computationally efficient and statistically effective relabeling strategy aims to match labels between MCMC iterates, so links the labels at iterate s with those at s−1, to best match the assignments of all n observations to labeled mixture components between the two steps. Our structured extension of mixture models requires a stagewise application of the strategy. Components of the phenotypic marker model j=1JπjN(biμb,j,b,j) are relabeled first based on the phenotypic marker indicator matching; the relevant subset of the parameters are relabeled accordingly. Then, relabeling is applied to the multimer model k=1Kωi,k(bi)N(tiμt,k,t,k) with the consequent reording of the relevant parameters. Each of these is a straight application of the method of Cron and West (2011), and posterior inferences follow based on the sets of relabeled parameters.

Given the relabeled set of parameters for the hierarchical mixture model of equation (1), we follow previous work (Chan et al., 2008; Finak et al., 2009) in defining subtypes by aggregating proximate components πjN(bi|μb, j, Σb, j) ωi, k(bi)N(ti|μt, k, Σt, k). That is, if a number of components cluster together and contribute to defining a mode in the mixture in one region of marker space, they are identified as a group and their renormalized average is taken as defining a subtype. This allows for a clear definition of subtypes, that may have quite non-Gaussian shapes, and is implemented by first identifying modes in the mixture of equation (1), and then associating each individual component with one mode based on proximity to the mode. An encompassing set of modes is first identified via numerical search; from some starting value x0, we perform iterative mode search using the BFGS quasi-Newton method for updating the approximation of the Hessian matrix, and the finite difference method in approximating gradient, to identify local modes. This is run in parallel from JK initial values χ0=(μb,jt,μt,kt)t, j = 1:J, k = 1:K, and results in some number CJK unique modes. Grouping components into clusters defining subtypes is then done by associating each of the mixture components with the closest mode, i.e., identifying the components in the basin of attraction of each mode.

3.6.3 Computational implementation

The MCMC implementation is naturally computationally demanding, especially for larger data sets as in our FCM applications. Profiling our MCMC algorithm indicates that there are three main aspects that take up more than 99% of the overall computation time when dealing with moderate to large data sets as we have in FCM studies. These are: (i) Gaussian density evaluation for each observation against each mixture component as part of the computation needed to define conditional probabilities to resample component indicators; (ii) the actual resampling of all component indicators from the resulting sets of conditional multinomial distributions; and (iii) the matrix multiplications that are needed in each of the multivariate normal density evaluations. However, as we have previously shown in standard DP mixture models (Suchard et al., 2010), each of these problems is ideally suited to massively parallel processing on the CUDA/GPU architecture (graphics card processing units). In standard DP mixtures with hundreds of thousands to millions of observations and hundreds of mixture components, and with problems in dimensions comparable to those here, that reference demonstrated CUDA/GPU implementations providing speed-up of several hundred-fold as compared with single CPU implementations, and dramatically superior to multicore CPU analysis.

Our implementation exploits massive parallelization and GPU implementation. We take advantage of the Matlab programming/user interface, via Matlab scripts dealing with the non-computationally intensive parts of the MCMC analysis, while a Matlab/Mex/GPU library serves as a compute engine to handle the dominant computations in a massively parallel manner. The implementation of the library code includes storing persistent data structures in GPU global memory to reduce the overheads that would otherwise require significant time in transferring data between Matlab CPU memory and GPU global memory. In examples with dimensions comparable to those of the studies here, this library and our customized code delivers expected levels of speed-up; the MCMC computations are very demanding in practical contexts, but are accessible in GPU-enabled implementations. To give some insights using a data set with n = 500,000, p = 10, and a model with J = 100 and K = 160 clusters, a typical run time on a standard desktop CPU is around 35,000 s per 10 iterations. On a GPU enabled comparable machine with a GTX275 card (240 cores, 2G memory), this reduces to around 1250 s; with a more recent GTX680 card (1536 cores, 2G memory) this reduces further to about 520 s. The software will be available at the publication web site.

4 Simulation study

The simulation study conducted in the Section is to demonstrate the capability and usefulness of the conditional mixture model under the context of the combinatorial encoding data set. The simulation design mimics the characteristics of the combinatorial FCM context. Multiple other such simulations based on various parameters settings lead to very similar conclusions, so only one example is shown here. A sample of size 10,000 with p = 8 dimensions was drawn such that the first 5 dimensions was generated from a mixture of 7 normal distributions, such that, the last two normal distributions have approximate equal mean vectors (0, 5.5, 5.5, 0, 0)′, (0, 6, 6, 0, 0)′, and common diagonal covariance matrix 2I with component proportions 0.02 and 0.01. The remaining normal components have very different mean vectors and larger variances compared with the last two normal components. So bi is the subvector of the first 5 dimensions, with pb = 5. The last three dimensions are generated from a mixture of 10 normal distributions, where only two of them have high mean values across all three dimensions. The component proportions vary according to which normal component bi was generated from. So ti is the subvector of the last three dimensions, and pt = 3. The data was designed to have a distinct mode such that all the five dimensions b2, b3, t1, t2 and t3 are of positive values, the rest are negative. The cluster of interest with size 140 is indicated in red in Figure 3.

Figure 3.

Figure 3

Pairwise scatter plots and one 3-dimensional scatter plot of simulated data. The cluster of cells of interest is plotted in red. Here bi is the ith dimension in the phenotypic marker subvector, and ti is the ith dimension in the tetramer subvector. The lower right plot indicates that the cluster of interest is the outer layer of the sample under b2, t1 and t2. The other 3 subplots show that the cluster is hard to identify with traditional 2-D gating.

We first fit the sample with the standard DP Gaussian mixture model. Analysis allows up to 64 components using default, relatively vague priors, so encouraging smaller components. The Bayesian expectation-maximization algorithm was run repeatedly from many random starting points; the highest posterior mode identified 14 Gaussian components. Using parameters set at this mode leads to posterior classification probability matrix for the entire sample. The cluster representing the synthetic subtype of interest was completely masked as is shown in Figure 4.

Figure 4.

Figure 4

Scatter plots of synthetic data example as in Figure 3. Using standard DP mixture analysis, a relatively large subtype is identified. Cells assigned to this subtype are colored blue, and this blue region extends to include much of the actual subtype region, in red, in this synthetic data set. The analysis is unable to identify the correct subtype region.

We contrast the above with results from analysis using the new hierarchical mixture model. Model specification uses J = 10 and K = 16 components in phenotypic marker and multimer model components, respectively. In the phenotypic marker model, priors favor smaller components: we take eb = 50, fb = 1, m = 05, δb = 26, Φb = 10I. Similarly, under multimer model, we chose et = 50, ft = 1, δt = 24, Φt = 10I, L = −4, H = 6. We constructed m1:R and Q1:R for μt, k following Section 3.5, with q = 5, ρp = 0.6 and ρn = −0.6. The MCMC computations were initialized based on the specified prior distributions. Across multiple numerical experiments, we have found it useful to initialize the MCMC by using the Metropolis-Hastings proposal distributions as if they are exact conditional posteriors – i.e., by using the MCMC as described but, for a few hundred initial iterations, simply accepting all proposals. This has been found to be very beneficial in moving into the region of the posterior, and then running the full accept/reject MCMC thereafter. This analysis saved 20,000 MCMC draws for summary inferences. Global visuals addressing MCMC convergence, such as the trace plots of some log-likelihood components exemplified in Figure 5, are encouraging.

Figure 5.

Figure 5

Trace plot over the last 5000 MCMC iterates of computed values of the model of equation (1) on seven randomly selected data points.

After relabeling and aggregating components based on the parameters at the last iterate this identified C = 29 modes in this “current” posterior sample. The posterior classification probabilities of equation (6) were computed for the last 3000 iterates, and data classification based on the resulting approximate posterior means. As shown in Figure 6, the hierarchical model analysis correctly identified 133 observations out of the 140 target sample.

Figure 6.

Figure 6

Scatter plots of synthetic data example as in Figures 3 and 4. The cluster of interest is plotted in red, and almost wholly overlays that identified by the hierarchical mixture model in blue.

5 Study of FCM data

5.1 Study of data from human blood samples

Peripheral blood samples were obtained from healthy volunteers for validation studies of the combinatorial encoding strategy. Peripheral blood mononuclear cells (PBMC) were labeled using the encoding strategy described; that is, with a mixture of fluorescent reporters indicating cell phenotype in phenotypic marker space and ability to recognize specific peptide-MHC epitopes in multimer space. The data set comprises n = 752,835 samples cells in p = 10 dimensions; the 10 measured features are the pb = 6 phenotypic markers labeled FSC-A, FSC-H, SSC-A, Dump FITC-A, CD8 and Viability APC-Cy7-A, and the pt = 4 multimers labeled Qdot 655-A, Qdot 605-A, APC-A and PE-A. The primary interest is to detect T-cells specific for CMV, EBV and influenza (Flu) virus peptides with the following combinatorial encoding scheme, where high intensities of the multimers in each define the T-cell subtype in reporter space:

CMV=(PE-A,Qdot655-A,Qdot605-A),EBV=PE-A,APC-A,Qdot655-A),FLU=(PE-A,Qdot605-A,APC-A).

A subset of the data on some of the key features was already noted in Figure 1 in discussion of small probability structure of biologically interesting cell subtypes. Figure 7 illustrates the events determined to be positive for the targeted tetramer combinations for CMV, EBV and FLU using a standard manual gating procedure that is used as a reference plot for comparing with the model-based analysis here.

Figure 7.

Figure 7

Reference plot indicating clusters/subtypes of interest in the T-cell human blood data. A subset of the data is shown in gray, CD8+ T cells are plotted in yellow, CMV, EBV and FLU groups are plotted in green, red, and blue, respectively. These latter three identified subtypes contained 2739, 66 and 59 observations, respectively. Subtypes of interest are CD8+ and positive also in the three corresponding multimer features.

Model specification uses J = 100 and K = 100 components in the phenotypic marker and multimer model components, respectively. These are expected to be encompassing values with the model intrinsically able to cut-back to lower, data-relevant values based on the Bayesian DP mixture structure. In the phenotypic marker model component, priors favor larger numbers of smaller components: eb = 50, fb = 1, m = 0pb×1, λ = 5, δb = pb+1+10, Φb = 10I. Similarly, for the multimer model, et = 50, ft = 1, δt = pt+1+20, Φt = 10I, L = −4, and H = 6. We constructed m1:R and Q1:R for μt,k following Section 3.5 with q = 5, ρp = 0.6 and ρn = −0.6. The MCMC computations were initialized as detailed in the study of the synthetic data above and run for a total of 15,000 iterates. Posterior classification probabilities and individual parameters based the last 1000 iterate are used, again with exploration of visual diagnostics of convergence, e.g., Figures 8 and 9. While the overall MCMC certainly experiences mixing challenges, these convergence plots (and others, not shown) suggest we are at an acceptable phase of the MCMC for posterior inferences; longer and repeat runs support this.

Figure 8.

Figure 8

Trace plot over the last 1000 MCMC iterates of model density values on five randomly selected data points in analysis of human blood data.

Figure 9.

Figure 9

Trace plot over the last 1000 MCMC iterates of μt. Colors correspond to different randomly selected non-empty Gaussian components, with one dimension in μt selected for the trace plot.

The MCMC analysis outputs deliver the opportunity to enquire about a broad range of model characteristics; these include aspects of the mixture structure over phenotypic markers, while the primary biological focus rests on characteristics of the mixture structure over multimers and the classification of cells according to subtypes in multimer space. Some aspects of the former are worth noting initially. The fitted model indicates that there are approximately 1021 modes in the distribution. Contour plots of the estimated model in selected dimensions in Figure 10 show that a smaller number of Gaussian components can now represent the sample space much more effectively than with the original model as depicted in Figure 2.

Figure 10.

Figure 10

Scatter plots of the real data. The contours are the 2-dimensional margins on each Gaussian component in the full 10-dimensional mixture.

The MCMC analysis also delivers posterior samples of the zb,i and zt,i themselves; these are useful for exploring posterior inferences on the number of effective components out of the maximum (encompassing) value JK specified. Clusters that have high intensities for multimer combinations mapping to the multimer encodings are identified and shown in Figure 11. Our estimated CMV, EBV and FLU groups contains 12, 3 and 11 product of Gaussian components, respectively. The structured, hierarchical mixture model can flexibly capture many smaller Gaussian components as well as over-coming the masking issues of standard approaches. Some of the modes here have as few as 10 observations, reflecting the ability of the hierarchical approach to successfully identify quite rare events of potential interest.

Figure 11.

Figure 11

Identified clusters of interest. A subset of the data is shown in gray. CMV, EBV and FLU groups are plotted in green, red, and blue, respectively. The identified three groups contain 2849, 4 and 216 observations, respectively. The group with 4 events does not meet the cut-off of 10 events and 0.002% of CD8 for positive events we have suggested (Andersen et al., 2012) and may represent false positive or background events.

5.2 Study of data using classical single color FCM

We discuss aspects of one further example – a benchmark analysis on standard, single-color FCM data. Frelinger et al. (2010) used the truncated dirichlet process mixture model to analyze this standard data. As we discussed in Section 2, combinatorial encoding increases the ability to resolve subtypes. Suppose, for example, six “free” colors for peptide-MHC multimers. In the classical single-color approach, we could identify six different TCR specificities. In contrast, using a 3-color combinatorial approach, we could identify 20 different 3-color combinations and hence 20 different TCR specificities with a single blood sample. To identify 20 specificities with the classical approach would require testing four times as much blood from the same subject – clearly undesirable, and in many cases, impracticable.

We apply our hierarchical model analysis to a classical data set to show its utility with single-color FCM, on top of its main aim and ability to resolve combinatorially encoded subtypes. The data comes from a subject with prostate cancer vaccinated with a set of tumor antigens (the data are post-vaccination) (Feyerabend et al., 2009); the sample size is n = 752,940. The assay has four phenotypic markers (FSC, SSC, CD4, CD8) and two multimers that report the prostate specific antigen PSA 141–150 FLTPKKLQCV, and the prostate specific membrane antigen PSMA 711–719 ALFDIESKV, respectively. The primary interest is to identify T-cells subtypes with high intensities of PSA and PSMA, respectively. Figure 12 illustrates the events determined to be positive for the PSA (labeled as tetramer 1, or Tet1 in the plot) and PSMA (Tet2) using a standard manual gating procedure; we use this simply as a reference plot for comparing with the model-based analysis here.

Figure 12.

Figure 12

Reference plot indicating clusters/subtypes of interest in the single-color encoded prostate cancer data.

Model specification uses J = 100 and K = 100 components in the phenotypic marker and multimer models, respectively. The prior specifications and the MCMC computations were as detailed in Section 5.1. Following burn-in, posterior classification probabilities based on the last 1000 iterate are used. Based on thresholded probabilities, the two identified cell subtypes are shown in the bottom panel of Figure 13; these have cluster sizes of 68 and 1282, respectively, so represent extremely low probability subtypes. Comparing with the top panel of Figure 13, this demonstrates the ability of the hierarchical model to successfully identify cell clusters of interest in classical single-color data sets.

Figure 13.

Figure 13

Identified clusters of interest compared with manual analysis. The real data is shown in blue and the two clusters of interest are shown in red and orange, respectively. The top panel are the results from the manual gating, the bottom panel are the results from the hierarchical model.

6 Summary comments

We have defined and explored a novel class of structured, hierarchical mixture models with the applied goals of automated inference to identify specific cellular subtypes in very large samples of T-cells. The approach (i) involves a natural, model-based hierarchical partitioning of FCM phenotypic marker and multimer reporter measurements, and (ii) integrates a second stage hierarchical prior for the latter customized to the new biotechnological design of combinatorial encoding of multimers. The first step (i) represents key aspects of the biological reality: important cell subtypes defined by cell surface receptor function – as reported by the multimer data – are differentially represented across what is typically a large number of subtypes defined by phenotypic markers. Model-based stratification in phenotypic marker space effectively leads to sample dimension reduction that can overcome the inherent challenges of estimating what are typically low subtype probabilities. The second step (ii) addresses the specific features introduced in the recently proposed encoding method, a method that can greatly increase the number of T-cell antigen specificities distinguishable in limited biological samples using flow cytometry.

Combinatorial encoding can impact broadly on FCM studies by allowing a huge increase in the numbers of cell types detectable. This is particularly relevant in screening of optimal peptide epitopes in several areas, including vaccine design where the diversity of potential antigen-specific T cell subsets is substantial. Using conventional FCM methods with one fluorescent marker for each multimer-complex would require the collection and analysis of large (and infeasible) volumes of peripheral blood from each patient, and the sample sparing advantages of combinatorial encoding are key to a feasible screening strategy. Previous studies have shown the practicality of a dual encoding scheme (Hadrup et al., 2009; Newell et al., 2009; Hadrup and Schumacher, 2010; Andersen et al., 2012), and we are now able to appreciate the practical opportunities available with higher-order encoding.

We stress the key practical motivation lies in automated analysis and that this is critical in enabling access to the opportunity combinatorial methods open up. Standard visual gating is infeasible in higher-dimensional encoding schemes, and the broader FCM field is increasingly driving towards more relevant automated statistical approaches. Standard mixture models, however, lack the ability to identify the very small and subtle subtype structure of combinatorially encoded multimer events when applied to very large data sets; the masking by large background components can be profound. This is a key feature of the new model: as demonstrated in the examples: it is by design able to identify and quantify subpopulation structure related to relatively rare cell subtypes, i.e., to generate fitted models in which low probability mixture components are appropriately located in weakly populated regions of the p – dimensional sample space, and that are essentially undetectable using standard mixture approaches.

The hierarchical mixture model can in principle be customized for use in other FCM areas, such as in common laboratory studies using a “gating hierarchy” followed by “Boolean gating”. One example context uses first-stage phenotypic markers to home-in on smaller cell subsets characterized by functional cytokines, and this could be extended to use of the approach to distinguish combinations of different cytokines. We are considering some such developments in current research.

Part of the cost in application of the new, customized class of models is the implied computational burden; the structured MCMC is quite expensive in that respect. Efficient computational implementations are key, and we have developed coding strategies to maximally exploit the inherent opportunities for within MCMC parallelization customized to GPU processors. The code is optimized for CUDA/GPU processing with an accessible Matlab front-end (provided under an open source license) for implementing the model analysis as presented.

Acknowledgments

Research reported here was partially supported by grants from the US National Science Foundation (DMS 1106516 of M.W.) and National Institutes of Health [P50-GM081883 of M.W., and RC1 AI086032 of C.C. & M.W., and the Danish Cancer Society (DP06031)].

7 Appendix

7.1 Priors for parameters of phenotypic marker mixture

In the DP mixture model of Section 3.3, the traditional prior specification is as follows. Further background can be found in, for example Ishwaran and James (2001) or the summary appendix in Ji et al. (2009).

First, π1 = ν1, πj = (1−ν1)…(1−νj−1)νj, where νj, jJ~Be(1, αb),νJ = 1, and the hyper-parameter αb~Ga(eb, fb) for some specified eb and fb. Second, independently of the πj the normal mean and variance matrices are independent across components with priors

(μb,j,b,j)~N(μb,jm,λb,j)IW(b,jδb,Φb)

for some specified hyper-parameters m, λ, δb, Φb.

7.2 Priors for mixing weights in multimer mixtures

In the hierarchical DP mixture model of Section 3.4, the J sets of probabilities ωj,1:K have priors defined from an underlying (truncated) hierarchical DP model as discussed in Teh et al. (2006). This extends the stick-breaking prior for mixture component weights to the set of J mixtures and links across them, with details as follows.

First, generate a K-vector of probabilities η1:K via the stick-breaking construction

ηk=ϕkl=1k=1(1-ϕl),k=1,,K-1,

where ϕk~Beta(1, γt), k = 1, …, K−1 and ϕK = 1 and where γt~G(et, ft) for some given hyper-parameters et, ft.

Then, for each phenotypic marker component j = 1:J, generate the multimer mixture weights ωj,1:K via

ωj,k=ϕj,kl=1k-1(1-ϕk,l),k=1,,K-1,

where ϕj,k~Beta(αtηk,αt(1-l=1kηl)), k =1, …, K−1, and ϕj, K = 1. We use hyper-priors αt~G(a, c) for given hyper-parameters a, c.

7.3 MCMC analysis

Under the hierarchical mixture model specification, the MCMC analysis introduced in Section 3.6 has technical components as detailed here.

The use of an augmented model based on underlying, sample-specific, component indicator variables that induce the mixtures is, of course, key. We have already introduced the phenotypic marker mixture indicators zb,i, latent indicators that underlie the assignment of each data point bi to one of the j = 1:J components in the mixture of equation (2). At the second stage, we can apply the same strategy to the mixture for the ti conditional on bi of equation (4) by utilizing indicators zt, i.

At each MCMC iterate, we resample subsets of Θ and the two sets of indicators Z = {zb,i, zt,i, i = 1:n} via the following sequence of sampling steps. In each conditional distribution the conditioning … represent the data and all other parameters and/or indicators; in some cases the need to be explicit about some of conditioning quantities is reflected in the use of the superscript for their values at the preview MCMC iterate.

7.3.1 Update component indicator variables

For each i = 1:n in parallel due to conditional independence, update zb,i and zt, i by sampling from their conditional multinomial (number of trials = 1 in each case) posteriors defined by probabilities as follows:

P(zb,i=j)πjN(biμb,j,b,j),j=1:J;P(zt,i=k)ωi,k(bi)N(tiμt,k,t,k),k=1:K.

As zb,i is conditionally independent of zt,i, sampling the multimer model indicators is done in parallel with the phenotypic marker indicators.

7.3.2 Update phenotypic marker model parameters

7.3.2.1 Update phenotypic marker mixture weights and hyperparameter

Sampling mixture probabilities π1:J and the hyperparameter of the DP model use a Metropolis-Hastings extension of the standard component distributions (Ishwaran and James, 2001; Ji et al., 2009), as follows. The mixture probabilities πj are obtained from underlying beta variates ν1:J−1 as detailed in Appendix 7.1. Hence new π1:J samples are computed directly from resampled ν1:J−1 samples. For the latter, we have

p(vj)Be(vjab,j+1,αb+s=j+1Jab,s)k=1:K,i:zt,i=kωi,k(bi).

where ab,j=i=1N1zb,j=j for each j = 1:J−1. The complications here are that, since the πj are functions of the νj, then νj is implicitly involved in both numerator and denominator terms of the product expression multiplying the base beta distributions. Hence we use a Metropolis-Hastings sampler for this step, based on a customized proposal distribution

vj~Be(vjab,j+au,j+1,αb+s=j+1Jab,s+au,s)

with

au,s=i=1n1ut,i=s,j=1:J-1(ut,i=s)=maxr=1:JπrN(biμb,r,r)ωr,zb,i

This proposal distribution is an approximation of p(νj|…) by taking off the denominator f(bi|Θ)−1 in the product expression and assuming that πutiN(bi|μuti Σuti)ωutizb,i dominates the rest of the component values. Our experience with examples and the data analysis reported is that this generates acceptable convergence with acceptance rates for these components of the MCMC around 10–50%.

The weights π1:J are then evaluated by the formula in Appendix 7.1. Next, the hyperparameter αb is resampled from

(αb)~Ga(J+eb-1,fb-j=1J-1log(1-νj)).
7.3.2.2 Update phenotypic marker component means and variance matrices

For each j = 1:J the mean μb,j has conditional posterior

p(μb,j)N(μb,jμ¯b,¯b)k=1:K,i:Zt,i=kωi,k(bi)

with

μ¯b,j=cj(m/λ+i:zb,i=jbi)and¯b=cjb,j

where cj = λ/(1+λa1,j). Again we need a Metropolis-Hastings sampler for this step as the base normal distribution here is multiplied by a term that depends in complicated ways on μb,j. We use the customized proposal distribution μb,j~N(μb,jμ¯b,¯b) where

μ¯b,j=cj(m/λ+i:zb,i=jbi+i:ut,i=jbi)and¯b=cjb,j

with cj=λ/(1+λa1,j+λau,j).

A similar structure and MCMC strategy arises for each of the j = 1:J variance matrices Σb,j; the conditional posteriors are

p(b,j)IW(b,jδb+ab,j+1,Φb+Ψb,j)k=1:K,i:zt,i=kωi,k(bi)

where

Ψb,j=(μb,j-m)(μb,j-m)/λ+i:zb,i=j(bi-μb,j)(bi-μb,j).

We use the customized proposal distribution

b,j~IW(b,jδb+ab,j+au,j+1,Φb+Ψb,j)

with

Ψb,j=Ψb,j+i:ut,i=j(bi-μb,j)(bi-μb,j)).

We update the pair (μb,j, Σb,j) together each iterate. We achieve acceptable convergence with acceptance rates for these components of the MCMC around 20–45%.

7.3.3 Update multimer model parameters

7.3.3.1 Update multimer mixture weights and hyperparameter

With the definitions and notation of the multimer mixture model parameters of Appendix 7.2, the logic and details of the MCMC steps are as follows.

For each k = 1:K ϕk has conditional posterior

p(ϕk)Be(ϕk1,γt)j=1:J,k=1:KBe(ϕj,k-αtηk,αt(1-l=1kηl)).

To choose a proposal distribution, first, for each i = 1:n and independently over i, generate a set of auxiliary indicator variables qi from conditional multinomials on k = 1:K cells with number of trials = 1 and

(qi=k)ηkN(ti;μt,k,t,k),k=1:K.

Given these sampled values, generate

(ϕk)~Be(aq,k+1,γt+h=k+1Kaq,h),k=1:K-1,

where aq,r=i=1n1qi=r for each r = 1:K. We achieve acceptable convergence with acceptance rates for these components of the MCMC around 10–40%.

The sets of weights ωj,k and the η1:K probabilities are then evaluated by the formulæ given in Appendix 7.2. Further, the hyper-parameter γt is resampled from

(γt)~Ga(K+et-1,ft+k=1K-1log(1-ϕk)).

Next, for each j = 1:J and k = 1:K, the latent probabilities ϕj,k of Appendix 7.2 have conditional posterior

p(ϕj,k)Be(ϕj,kαtηk,αt(1-l=1kηl))k=1:K,i:zt,i=kωi,k(bi)

We use the customized proposal distribution

(ϕj,k)~Be(αtηk+gj,k,αt(1-h=1kηh)+h=k+1Kgj,l),

where gj,k=i=1n1zt,i=k,ut,i=j. We achieve acceptable convergence with acceptance rates for these components of the MCMC around 5–50%.

7.3.3.2 Update multimer component means and variance matrices

For each k = 1:K the mean μt,k is sampled using an additional auxiliary random quantity that allocates the multimer to one of the K anchor regions based on current parameters and indicators. That is, for each k independently, draw an auxiliary indicator τk from the multinomial with one trial and probabilities on k = 1:K given by

P(τk=rμt,k-,)qrN(μt,k-mr,Qr),k=1:K.

Then draw (μt,k|Ck = r, …)~N (μt, k|mt,k, Mt,k) where

mt,k=Mt,k(Qr-1mr+t,k-1i:zt,i=kti)andMt,k-1=Qr-1+at,kt,k-1

with at,k=i=1n1zt,i=k.

Finally, resample the variance matrices from

(t,k)~IW(t,kδt+at,k,Φt+i:zt,i=k(ti-μt,k)(ti-μt,k))

Footnotes

Any opinions, findings and conclusions or recommendations expressed in this work are those of the authors and do not necessarily reflect the views of the NIH and/or NSF.

Contributor Information

Lin Lin, Department of Statistical Science, Duke University, Durham, NC, 27708-0251, USA.

Cliburn Chan, Department of Biostatistics and Bioinformatics, Duke University Medical Center, 2424 Erwin Road, 11078 Hock Plaza, Durham, NC 27705-3858, USA.

Sine R. Hadrup, Center for Cancer Immune Therapy, Department of Hematology, University Hospital Herlev, DK-2730 Herlev, Denmark

Thomas M. Froesig, Center for Cancer Immune Therapy, Department of Hematology, University Hospital Herlev, DK-2730 Herlev, Denmark

Quanli Wang, Department of Statistical Science, Duke University, Durham, NC, 27708-0251, USA.

Mike West, Department of Statistical Science, Duke University, Durham, NC, 27708-0251, USA.

References

  1. Andersen RS, Kvistborg P, Frøsig TM, Pedersen NW, Lyngaa R, Bakker AH, Shu Pthor Straten CJ, Schumacher TN, Hadrup SR. Parallel detection of antigen-specific t cell responses by combinatorial encoding of mhc multimers. Nature Protocols. 2012;7:891–902. doi: 10.1038/nprot.2012.037. [DOI] [PubMed] [Google Scholar]
  2. Chan C, Feng F, West M, Kepler TB. Statistical mixture modelling for cell subtype identification inflow cytometry. Cytometry A. 2008;73:693–701. doi: 10.1002/cyto.a.20583. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Cron AJ, West M. Efficient classification-based relabeling in mixture models. Am Stat. 2011;65:16–20. doi: 10.1198/tast.2011.10170. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Escobar MD, West M. Bayesian density estimation and inference using mixtures. J Am Stat Assoc. 1995;90:577–588. [Google Scholar]
  5. Feyerabend S, Stevanovic S, Gouttefangeas C, Wernet D, Hennenlotter J, Bedke J, Dietz K, Pascolo S, Kuczyk M, Rammensee HG, Stenzl A. Novel multi-peptide vaccination in hla-a2+ hormone sensitive patients with biochemical relapse of prostate cancer. Prostate. 2009;69:917–927. doi: 10.1002/pros.20941. [DOI] [PubMed] [Google Scholar]
  6. Finak G, Bashashati A, Brinkman R, Gottardo R. Merging mixture components for cell population identification in flow cytometry. Adv Bioinform. 2009:Article ID 247646. doi: 10.1155/2009/247646. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Frelinger J, Ottinger J, Gouttefangeas C, Chan C. Modeling flow cytometry data for cancer vaccine immune monitoring. Cancer Immunol Immun. 2010;59:1435–1441. doi: 10.1007/s00262-010-0883-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Hadrup SR, Bakker AH, Shu CJ, Andersen RS, van Veluw J, Hombrink P, Castermans E, thor Straten P, Blank C, Haanen JB, Heemskerk MH, Schumacher TN. Parallel detection of antigen-specific T-cell responses by multidimensional encoding of MHC multimers. Nat Methods. 2009;6:520–528. doi: 10.1038/nmeth.1345. [DOI] [PubMed] [Google Scholar]
  9. Hadrup SR, Schumacher TN. MHC-based detection of antigen-specific CD8+ T cell responses. Cancer Immunol Immun. 2010;59:1425–1433. doi: 10.1007/s00262-010-0824-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Ishwaran H, James LF. Gibbs sampling methods for stick-breaking priors. J Am Stat Assoc. 2001;96:161–173. [Google Scholar]
  11. Ji C, Merl D, Kepler TB, West M. Spatial mixture modelling for unobserved point processes: application to immunofluorescence histology. Bayesian Analysis. 2009;4:297–316. doi: 10.1214/09-ba411. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Lo K, Brinkman RR, Gottardo R. Automated gating of flow cytometry data via robust model-based clustering. Cytometry A. 2008;73:321–332. doi: 10.1002/cyto.a.20531. [DOI] [PubMed] [Google Scholar]
  13. Manolopoulou I, Chan C, West M. Selection sampling from large datasets for targeted inference in mixture modeling (with discusion) Bayesian Analysis. 2010;5:429–450. [PMC free article] [PubMed] [Google Scholar]
  14. Newell EW, Klein LO, Yu W, Davis MM. Simultaneous detection of many T-cell specificities using combinatorial tetramer staining. Nat Methods. 2009;6:497–499. doi: 10.1038/nmeth.1344. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Pyne S, Hu X, Wang K, Rossin E, Lin T, Maier LM, Baecher-Allan C, McLachlan GJ, Tamayo P, Hafler DA, DeJager PL, Mesirov JP. Automated high-dimensional flow cytometric data analysis. Proc Natl Acad Sci. 2009;106:8519. doi: 10.1073/pnas.0903028106. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Suchard MA, Wang Q, Chan C, Frelinger J, Cron AJ, West M. Understanding GPU programming for statistical computation: studies in massively parallel massive mixtures. J Comput Graph Stat. 2010;19:419–438. doi: 10.1198/jcgs.2010.10016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Teh YW, Jordan MI, Beal MJ, Blei DM. Hierarchical Dirichlet processes. J Am Stat Assoc. 2006;101:1566–1581. [Google Scholar]
  18. West M, Müller P, Escobar MD. Hierarchical priors and mixture models, with application in regression and density estimation. In: Smith AFM, Freeman PR, editors. Aspects of Uncertainty: A Tribute to D. V. Lindley. London: Wiley; 1994. pp. 363–386. [Google Scholar]

RESOURCES