
==== Front
PLoS Comput Biol
PLoS Comput Biol
plos
PLOS Computational Biology
1553-734X
1553-7358
Public Library of Science San Francisco, CA USA

39226325
PCOMPBIOL-D-22-01876
10.1371/journal.pcbi.1012301
Methods
Biology and Life Sciences
Genetics
Gene Expression
Research and Analysis Methods
Simulation and Modeling
Biology and Life Sciences
Computational Biology
Genome Analysis
Genome-Wide Association Studies
Biology and Life Sciences
Genetics
Genomics
Genome Analysis
Genome-Wide Association Studies
Biology and Life Sciences
Genetics
Human Genetics
Genome-Wide Association Studies
Medicine and Health Sciences
Clinical Medicine
Clinical Immunology
Autoimmune Diseases
Lupus Erythematosus
Systemic Lupus Erythematosus
Biology and Life Sciences
Immunology
Clinical Immunology
Autoimmune Diseases
Lupus Erythematosus
Systemic Lupus Erythematosus
Medicine and Health Sciences
Immunology
Clinical Immunology
Autoimmune Diseases
Lupus Erythematosus
Systemic Lupus Erythematosus
Medicine and Health Sciences
Rheumatology
Systemic Lupus Erythematosus
Medicine and Health Sciences
Clinical Medicine
Clinical Immunology
Autoimmune Diseases
Multiple Sclerosis
Biology and Life Sciences
Immunology
Clinical Immunology
Autoimmune Diseases
Multiple Sclerosis
Medicine and Health Sciences
Immunology
Clinical Immunology
Autoimmune Diseases
Multiple Sclerosis
Medicine and Health Sciences
Medical Conditions
Demyelinating Disorders
Multiple Sclerosis
Medicine and Health Sciences
Neurology
Demyelinating Disorders
Multiple Sclerosis
Medicine and Health Sciences
Medical Conditions
Neurodegenerative Diseases
Multiple Sclerosis
Medicine and Health Sciences
Neurology
Neurodegenerative Diseases
Multiple Sclerosis
Research and Analysis Methods
Mathematical and Statistical Techniques
Cluster Analysis
Hierarchical Clustering
Biology and Life Sciences
Biochemistry
Proteins
Interferons
Biology and Life Sciences
Genetics
Genetics of Disease
Bayesian clustering with uncertain data
Bayesian clustering with uncertain data
https://orcid.org/0000-0002-4070-1317
Nicholls Kath Data curation Investigation Visualization Writing – original draft 1 2
https://orcid.org/0000-0002-4070-1317
Kirk Paul D. W. Methodology Writing – review & editing 1 2 3
https://orcid.org/0000-0001-9755-1703
Wallace Chris Investigation Supervision Visualization Writing – original draft 1 2 *
1 Cambridge Institute of Therapeutic Immunology and Infectious Disease, University of Cambridge, Cambridge, United Kingdom
2 MRC Biostatistics Unit, University of Cambridge, Cambridge, United Kingdom
3 Cancer Research UK Cambridge Centre, Ovarian Cancer Programme, University of Cambridge, Cambridge, United Kingdom
Ay Ferhat Editor
La Jolla Institute for Allergy and Immunology, UNITED STATES OF AMERICA
This work is supported by the Wellcome Trust (WT220788 to CW, WT220024 to KN) and the Medical Research Council (MC UU 00002/4 to CW, MC UU 00002/13 PDWK). The views expressed are those of the author(s) and not necessarily those of the NHS, the NIHR or the Department of Health and Social Care. For the purpose of open access, the authors have applied a CC BY public copyright licence to any Author Accepted Manuscript version arising from this submission. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

* E-mail: cew54@cam.ac.uk
9 2024
3 9 2024
20 9 e101230120 12 2022
8 7 2024
© 2024 Nicholls et al
2024
Nicholls et al
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.

Clustering is widely used in bioinformatics and many other fields, with applications from exploratory analysis to prediction. Many types of data have associated uncertainty or measurement error, but this is rarely used to inform the clustering. We present Dirichlet Process Mixtures with Uncertainty (DPMUnc), an extension of a Bayesian nonparametric clustering algorithm which makes use of the uncertainty associated with data points. We show that DPMUnc out-performs existing methods on simulated data. We cluster immune-mediated diseases (IMD) using GWAS summary statistics, which have uncertainty linked with the sample size of the study. DPMUnc separates autoimmune from autoinflammatory diseases and isolates other subgroups such as adult-onset arthritis. We additionally consider how DPMUnc can be used to cluster gene expression datasets that have been summarised using gene signatures. We first introduce a novel procedure for generating a summary of a gene signature on a dataset different to the one where it was discovered, which incorporates a measure of the variability in expression across signature genes within each individual. We summarise three public gene expression datasets containing patients with a range of IMD, using three relevant gene signatures. We find association between disease and the clusters returned by DPMUnc, with clustering structure replicated across the datasets. The significance of this work is two-fold. Firstly, we demonstrate that when data has associated uncertainty, this uncertainty should be used to inform clustering and we present a method which does this, DPMUnc. Secondly, we present a procedure for using gene signatures in datasets other than where they were originally defined. We show the value of this procedure by summarising gene expression data from patients with immune-mediated diseases using relevant gene signatures, and clustering these patients using DPMUnc.

Author summary

Identifying groups of items that are similar to each other, a process called clustering, has a range of applications. For example, if patients split into two distinct groups this suggests that a disease may have subtypes which should be treated differently. Real data often has measurement error associated with it, but this error is frequently discarded by clustering methods. We propose a clustering method which makes use of the measurement error and use it to cluster diseases linked to the immune system. Gene expression datasets measure the activity level of all ∼20,000 genes in the human genome. We propose a procedure for summarising gene expression data using gene signatures, lists of genes produced by highly focused studies. For example, a study might list the genes which increase activity after exposure to a particular virus. The genes in the gene signature may not be as tightly correlated in a new dataset, and so our procedure measures the strength of the gene signature in the new dataset, effectively defining measurement error for the summary. We summarise gene expression datasets related to the immune system using relevant gene signatures and find that our method groups patients with the same disease.

http://dx.doi.org/10.13039/100010269 Wellcome Trust WT220788 https://orcid.org/0000-0001-9755-1703
Wallace Chris http://dx.doi.org/10.13039/100010269 Wellcome Trust WT220024 https://orcid.org/0000-0002-4070-1317
Nicholls Kath http://dx.doi.org/10.13039/501100000265 Medical Research Council MC_UU_00002/4 https://orcid.org/0000-0001-9755-1703
Wallace Chris http://dx.doi.org/10.13039/501100000265 Medical Research Council MC UU 00002/13 Kirk Paul D. W. This work is supported by the Wellcome Trust (WT220788 to CW, WT220024 to KN) and the Medical Research Council (MC UU 00002/4 to CW, MC UU 00002/13 to PDWK). PLOS Publication Stagevor-update-to-uncorrected-proof
Publication Update2024-09-13
Data AvailabilityThe datasets were derived from sources in the public domain, as follows: • Ferreira from https://www.ebi.ac.uk/arrayexpress/experiments/E-MTAB-1724 • Lyons from https://www.ebi.ac.uk/arrayexpress/experiments/E-MTAB-145 • Chaussabel from https://www.ebi.ac.uk/arrayexpress/experiments/E-GEOD-11907 We make the implementation of DPMUnc, and the code to generate the analyses in this manuscript, available in github repositories: • DPMUnc software https://github.com/chr1swallace/DPMUnc • DPMUnc simulation study https://github.com/chr1swallace/DPMUnc_simulations • GWAS dataset analysis https://github.com/chr1swallace/DPMUnc_GWAS • Gene expression dataset analysis https://github.com/chr1swallace/clusteringPublicGeneExpr.
Data Availability

The datasets were derived from sources in the public domain, as follows: • Ferreira from https://www.ebi.ac.uk/arrayexpress/experiments/E-MTAB-1724 • Lyons from https://www.ebi.ac.uk/arrayexpress/experiments/E-MTAB-145 • Chaussabel from https://www.ebi.ac.uk/arrayexpress/experiments/E-GEOD-11907 We make the implementation of DPMUnc, and the code to generate the analyses in this manuscript, available in github repositories: • DPMUnc software https://github.com/chr1swallace/DPMUnc • DPMUnc simulation study https://github.com/chr1swallace/DPMUnc_simulations • GWAS dataset analysis https://github.com/chr1swallace/DPMUnc_GWAS • Gene expression dataset analysis https://github.com/chr1swallace/clusteringPublicGeneExpr.
==== Body
pmcIntroduction

Grouping items by similarity has a variety of applications in bioinformatics. For example, clustering samples according to any molecular measures may help to identify subgroups of disease [1, 2]. In gene expression data, clustering the genes may be useful for inferring gene function using guilt by association and inferring regulatory relationships [3]. Clustering can also be used to cluster diseases themselves. For example, immune-mediated diseases (IMD) have been shown to have a shared genetic basis such that IMD can be clustered according to those shared patterns [4, 5].

Commonly used methods, such as k-means [6, 7] and mclust [8], assume that the observations being clustered are observed without error, or that any errors are identically distributed. In reality we often have not just data points themselves but also a measure of uncertainty about each observation which has the potential to improve clustering accuracy if exploited. Examples include data generated by multiple uncertain experts [9], network clustering where edges have an associated score indicating uncertainty, or the cell type annotation problem in single-cell multiomic data, where different omics layers may assign cells to different clusters. In this work, we focus on quantitative data with associated uncertainty, which may arise for example with random measurement error or the use of summary measures such as the average of three blood pressure readings. To be clear, clustering methods already capture one source of uncertainty as the cluster variance, which describes variability in the location of different objects in the same cluster. Here, when we discuss uncertainty, we will focus on uncertainty attached to each observation, which may vary between observations and/or features. In this case, cluster variance would describe the variability of location of the latent observations which can be thought to represent the “true” locations of the objects whose location we have observed with some measured uncertainty.

A variety of methods have been proposed to deal with uncertainty in observations when clustering, including calculating distance between observations accounting for uncertainty [10], clustering representative objects sampled from the distribution associated with each uncertain observation [11, 12], and adapting the likelihood by integrating over the distribution associated with each uncertain observation [13].

Within clustering approaches generally, the Bayesian methods offer some advantages, in their ability to convey uncertainty about the overall clustering, and particularly to simultaneously infer the number of clusters, K. Here, we propose to adapt a standard model for a Bayesian Dirichlet process mixture model to the setting where the data points have associated uncertainty, “Dirichlet Process Mixtures with Uncertainty (DPMUnc)”. Such adaptation has not been explored previously, to the best of our knowledge.

We show that accounting for uncertainty can alter the clustering solution returned and demonstrate its performance on a range of simulated datasets and real applications. First, we consider clustering IMD using GWAS summary statistics, a problem where the uncertainty associated with each observation generally varies systematically with study sample size. Second, we cluster patients with IMD using gene expression data which can help identify subtypes of disease or predict response to treatment [2]. However, clustering on all ∼20,000 genes can be computationally expensive, and may group patients by disease-irrelevant structure, such as sex or age. Investigations of gene expression in relation to disease or biological processes sometimes produce a gene signature, a list of genes with a shared pattern of gene expression which is relevant to the disease or process. We propose a summary measure of a gene signature, which captures average signature expression and its variance, and show that DPMUnc allows patients to be clustered according to one or more signatures.

Results

DPMUnc model

Our approach follows previous work [14], extended to include both the observations xi, i = 1…n and their respective uncertainty estimates σi2. We model these xi as noisy observations of some latent variables zi: xi∼N(zi,σi2). The latent variables themselves are modelled as coming from a Dirichlet Process Gaussian Mixture Model (DPGMM). We follow the approach of [15], which takes the infinite limit of a Gaussian Mixture Model and can be shown to be equivalent to using Dirichlet Processes directly [15, 16].

In a finite Gaussian Mixture Model the points are generated from K clusters, where points within each cluster are i.i.d. Gaussian variables with some mean μk and variance ρk2: zi|ci=k∼N(μk,ρk2)

where the indicator variables ci show which cluster a variable belongs to. We give these indicator variables a standard categorical distribution with the weights for each category πk having a Dirichlet prior: p(ci=k)=πk;π1,…,πK∼Dirichlet(α/K,…,α/K)

where ∑k=1Kπk=1.

Finally, we define priors α∼Gamma(a0,b0)μk,ρk2∼Normal-InverseGamma(μ0,κ0,α0,β0)

where a0 = 3, b0 = 4, μ0 is the empirical mean of the observed data and α0, β0, κ0 are hyperparameters that should be adjusted according to the spread of the data and the expected cluster structure. Some further discussion of how these values may be chosen is given in the S1 Text.

The joint density factorises as follows: p(c,x,z,π,μ,ρ,α)=p(ϕ)p(c|π)p(π|α)p(α)∏ip(xi|σi2,zi)p(zi|ϕci) (1)

as represented in Fig 1. We now let K tend to infinity, yielding a Gaussian Mixture Model with no constraint on the number of clusters which is equivalent to a Dirichlet Process Gaussian Mixture Model [15, 16].

10.1371/journal.pcbi.1012301.g001 Fig 1 Plate diagram of Gaussian Mixture Model.

When K → ∞ this is the Dirichlet Process Gaussian Mixture Model that is the basis of our model. In the plate diagram, each rectangle (plate) corresponds to a group of variables, and the text at the bottom of each plate shows how many copies of that plate are required for the full model. Circles indicate random variables, which are shaded if the random variable is observed. The variables without circles are hyperparameters for the model.

We use a Gibbs sampling algorithm to sample from the posterior p(c|x,σ2) according to the conditional probability distributions as set out in S1 Text and as described in S1 Fig.

This model is stated for univariate data but can easily be extended for multivariate data, using the assumption that dimensions are independent and have the same distribution, so that the same hyperparameters can be used for every dimension. For multivariate data with p dimensions, the variables xi, zi, μk and ρk2 would all be p-dimensional vectors and the corresponding distributions set out in the S1 Text may be used to sample each dimension independently.

To more directly compare the effect of adjusting for the uncertainty of the points, we also run DPMUnc with adjusted versions of the datasets where the observations themselves were untouched, but the uncertainty estimates were shrunk to 0. Thus the rest of the DPMUnc works as normal, but the latent variables are essentially fixed to be equal to the observed data points throughout and so the only difference compared to DPMUnc is that no adjustment for uncertainty takes place. We call this version of the method DPMZeroUnc.

Simulated study

We first used simulated data to explore the effects of differing levels of uncertainty associated with each observation and noise around each cluster location on DPMUnc. Detailed discussion of two illustrative examples is presented in the S1 Text. Briefly, we found that including estimates of uncertainty tended to produce solutions with smaller cluster variances, and with cluster means corresponding to a weighted mean of observations, in which observations with lower uncertainty were given greater weight, rather than unweighted means when uncertainty was ignored.

We then compared the performance of DPMUnc to a variety of clustering approaches which either do not account for uncertainty in observations:

kmeans [17], one of the dominant non-parametric approaches that requires the number of clusters, K to be specified. We estimate K using the maximum gap statistic [18]

mclust [8], based on a mixture of finite Gaussian models. K is chosen as the value which minimises the BIC of a range of models fitted

DPMZeroUnc, which is DMPUnc with all sample uncertainties set to 0

or do account for uncertainty:

hierarchical clustering using the Bhattacharyya distance [19]. We choose K as for kmeans

fuzcluster [13] which implements a similar model to DPMUnc in a maximum likelihood framework, albeit assuming the number of clusters K is known. We estimate K as for kmeans

representative clustering of uncertain data [12] which provides a framework to extend a clustering method to uncertain data by sampling multiple examples of possible latent data, applying a clustering method to each and selecting a representative solution. We use representative clustering to extend kmeans and mclust for uncertain data

DPMUnc outperformed its comparators by a small margin when observation noise and cluster variance were small, with the margin increasing with increasing cluster variance or observation noise (Fig 2). kmeans was the best performing of the comparitor methods, and extension with representative clustering did not improve its performance, whilst representative clustering did have a positive impact on the accuracy of mclust. The methods differed in their ability to infer K. When the true K = 3, DPMUnc and DPMZeroUnc tended to select K = 3 or K = 4, whilst mclust tended to merge clusters and underestimate K, often selecting K = 1 as cluster noise increased (S2 Fig), with kmeans and fuzcluster lying between these extremes. Use of representative clustering improved estimation of K for mclust in particular, and restricting K to its true value improved accuracy of mclust and kmeans often to beyond that seen for DPMUnc. This suggests that the DP part of our model is a considerable contributor to its performance.

10.1371/journal.pcbi.1012301.g002 Fig 2 Accuracy on simulated datasets.

Simulation methods are split according to whether they assumed perfectly observed data or allow for uncertainty. mclust and kmeans do not by default allow for uncertain data, and appear in the second column when used as the clustering engine for representative clustering. The left two columns include results where K is inferred. For methods which allow a known value for K to be supplied, we show these for comparison in the righthand two columns. The first row of plots has the lowest noise N around the cluster mean, and the bottom row has the highest noise. Increasing uncertainty, corresponding to greater difference between latent data and the observed data is shown on the x-axis. The accuracy of the clustering is given by the Adjusted Rand Index (ARI) between the true clustering and the inferred clustering, averaged over 100 simulations. Higher values of ARI are better.

As a Bayesian method, DPMUnc not only provides a clustering of the data, but can quantify the uncertainty about the clustering. This can be captured using the posterior similarity matrix (PSM) whose entry PSMi,j is the proportion of samples from the MCMC sampling in which observation i and observation j were placed in the same cluster [20]. We assessed how well-calibrated the posterior similarity scores were, by binning PSM values into deciles, and examining the proportion of trait pairs in each bin that were truly in the same cluster. We found the two were generally similar, suggesting that DPMUnc was relatively well-calibrated (S3 Fig).

Clustering immune-mediated diseases using GWAS summary statistics

Methodology has been developed to summarise genetic associations shared by multiple diseases using multi-dimensional polygenic scores, such as the summary of IMD by 13 such scores [21]. The paper also calculated these 13-dimensional scores for 1,230 independent GWAS datasets. We ran DPMUnc on 45 traits from these published data that showed significant differences to controls according to the original study (Fig 3). GWAS summary statistics include both an estimate of the strength of association and the uncertainty associated with that estimate. The uncertainty is propagated through to the scores, which is influenced heavily by sample size so each trait has similar uncertainty across all the scores, while uncertainty varies between traits (Fig 3).

10.1371/journal.pcbi.1012301.g003 Fig 3 Clusters inferred by DPMUnc, DPMZeroUnc and mclust alongside the polygenic GWAS scores and the associated uncertainty.

The clusters of DPMZeroUnc and mclust have been coloured to best match the colours of DPMUnc. The dendrogram on the left is formed by applying hierarchical clustering on the posterior similarity matrix from DPMUnc, using complete-linkage.

Six clusters were identified, summarised as classic autoimmune diseases and most arthitides (A), a null cluster with observations lying close to zero or with sufficiently high uncertainty that they might truly lie near zero (B), classic autoinflammatory diseases and coeliac disease (C), multiple sclerosis (D), adult onset arthritis (E), and eosophilic granulomatisos granulomatosis with polyangiitis (EGPA) (F).

The posterior similarity matrix in S4 Fig shows relatively high confidence in the clusters. In particular, even with the uncertainty associated with the location of the rare disease EGPA, the two EGPA subtypes form their own cluster in a high percentage of the samples, perhaps reflecting their extreme location on PC13 which was shown to be related to eosinophils [21]. In contrast, whilst coeliac disease is clustered with other inflammatory bowel conditions (Crohn’s disease and Ulcerative Colitis), it is much less confidently placed in this cluster than the other traits, perhaps reflecting that it is generally considered an autoimmune disease.

Multiple sclerosis (MS) is the only disease to cluster alone, which perhaps reflects that MS is unusual in having both autoinflammatory and autoimmune features [22], although the PSM does show both neuromyelitis optica (NMO) IgG− and systemic JIA have some non-zero probability of clustering with MS.

Clustering patients by gene expression signatures

Gene expression signatures have been linked to several immune-mediated diseases, and we identified three such signatures from recent literature:

SigNK contains genes enriched for expression in NK cells and has been associated with T1D [23]

SigIFN contains genes in the type I interferon pathway, commonly found to show increased expression in SLE patients [24]

SigCD8 genes associated with CD8 T cell exhaustion, which have been shown to predict prognosis in inflammatory bowel disease [25, 26]

We attempted to cluster patients with a range of IMD in three gene expression datasets [24, 27, 28] (Table 1). For each individual, we summarised expression levels of each signature with a mean level and its associated uncertainty, as described in Methods. For some signatures, we anticipated association with specific diseases (such as the interferon signature and SLE) whilst for others we had less clear prior hypotheses. Whilst we did not expect every signature or every clustering to associate with disease, because any clusters found might reflect disease activity, sex or ethnicity, we considered that clusterings which discriminated between diseases would be meaningful, and so assessed the association of each clustering with disease using Fisher’s exact test.

10.1371/journal.pcbi.1012301.t001 Table 1 Sample counts in each gene expression dataset.

Counts for a subtype of a disease are in italics.

	Ferreira [24]	Lyons [28]	Chaussabel [27]	
Healthy controls (HC)	88	25	12	
Systemic lupus erythematosus (SLE)	25	13	103	
Juvenile idiopathic arthritis (JIA)			47	
Melanoma (MEL)			39	
Transplant (RET)			37	
Type 1 diabetes (T1D)	64		20	
Vasculitis		30		
Microscopic Polyangiitis (VWP)		8		
Wegener’s Granulomatosis (VMG)		22		
Infection			40	
Infection (E. Coli) (EColi)			22	
Infection (S. Aureus) (SAureus)			18	
Total	177	68	298	

We first used DPMUnc to cluster three datasets by each of the three individual signatures, i.e. nine clustering tasks overall, and found clusters in each dataset which showed association with disease in the majority of cases (7/9) (Fig 4). All datasets identified a “high” cluster for SigIFN which contained a majority of SLE cases. Clustering by SigCD8 also found a “high” cluster which contained a majority of T1D cases in both datasets (Ferreira and Lyons). For SigNK, the Ferreira dataset identified a low cluster containing primarily T1D cases, as expected given the published associated of this signature with T1D [23], but whilst evidence for differential clustering by disease was found in Chaussabel, there was no enrichment of T1D in the “low” cluster. This difference may reflect time since diagnosis—T1D cases in Ferreira were predominantly newly diagnosed, while the samples in the original study that identified the signature were from children before and around the time of seroconversion. Only limited details are given about the Chaussabel T1D samples [27], but since by definition T1D cases are only newly diagnosed for a short period of time, it is likely these were longer standing cases. Thus this signature may represent an active disease process that resolves in long standing T1D cases.

10.1371/journal.pcbi.1012301.g004 Fig 4 Clustering of samples in 3 gene expression datasets (rows) according to 3 gene signatures (columns).

(a-c) Ferreira (d-f) Chaussabel (g-i) Lyons. In each panel, the left plot shows the observed data, and the right plot shows the fraction of individuals assigned to each cluster. The p value shown relates to the null hypothesis that cluster membership is independent of disease.

Clustering using DPMUnc without uncertainty (DPMZeroUnc) produced very similar clusterings for 7/9 examples, but very different in two cases (S6 Fig). For SigCD8 in the Ferreira dataset, clustering without uncertainty produced two clusters instead of six, while for SigNK in Ferreira, it found eight instead of two. Thus we saw no systematic difference in number of clusters by the two methods. However, while both examples produced clusterings that associated significantly with disease when including uncertainty (p < 10−8), neither was associated with disease when uncertainty was ignored, suggesting that for these two examples accounting for uncertainty was required to reveal biologically meaningful clusterings.

We then clustered the Ferreira and Chaussabel datasets, which had shown association with each signature, across all three signatures simultaneously. We found that in the case of Ferreira, the multiple-signature clustering discriminated more powerfully between diseases than any individual signature clustering (Fig 5). However, in the case of Chaussabel, while the SLE group remained identifiable with high SigIFN values, the T1D cluster that had been identified in SigCD8 clustering alone, was folded into the main cluster with the healthy controls.

10.1371/journal.pcbi.1012301.g005 Fig 5 Clustering of samples in 2 gene expression datasets (rows) using all 3 gene signatures.

In each panel, the left plot shows the observed data, and the right plot shows the fraction of individuals assigned to each cluster. The p value shown relates to the null hypothesis that cluster membership is independent of disease.

When uncertainty was ignored (DPMZeroUnc), the Fereirra results were broadly similar (S7 Fig). Note, however, that we would not have considered multiple signature clustering on the basis of the DPMZeroUnc single dataset clusterings, as only one signature was significantly associated with disease. However, the Chaussabel dataset was clustered into only two groups, defined by IFN alone, with no distinction between samples with lower SigNK values (groups F–I in Fig 5).

Discussion

Taking uncertainty into account can alter clustering solutions. We illustrated with simulated data how the cluster mean inferred by DPMUnc is closer to the points that have lower uncertainty, whereas methods like mclust and k-means place the cluster mean close to the empirical mean of all the points, and also how DPMUnc shifts the latent data points towards the inferred cluster mean, which results in a smaller cluster variance. In a more complicated dataset this could have knock-on consequences, perhaps excluding more distant points from joining the cluster, or splitting one cluster into two. On a range of simulated datasets, DPMUnc out-performed existing methods and the posterior similarity values were shown to be relatively well calibrated, so that if two points have posterior similarity of p, this roughly translates to probability p that they are in the same cluster in the true clustering. We note that because DPMUnc assumes independence between features, its use is likely to be restricted to data that is relatively low dimensional. In the real data examples shown here, we assume there is limited dependence between the genetic features as these were derived using PCA and between the transcriptomic features because there is no overlap of genes between the different signatures.

Our clustering of diseases by the engineered GWAS features recapitulated known divisions and relationships in the immune-mediated diseases. It also suggests further uses for clustering with uncertainty, such as clustering individuals using sets of polygenic risk scores, where the uncertainty in the PRS coefficients could be exploited rather than ignored.

Gene signatures may be defined on one dataset with ideal experimental conditions, such as a timecourse study of the effect of interferon-β. To then use them on a new dataset with more complex structure, such as a dataset with patients with a mix of immune-mediated diseases, typically requires some form of dimension reduction such as WGCNA or PCA used on the new dataset, either using just those genes from the signature [24] or using all genes [26] with the hope that one WGCNA module or variable in PCA will coincide with the signature. Our proposed method of summarising a gene expression across a signature extends the possible uses of signatures, and since the signature may be weaker on a dataset with more complex structure, it may be crucial to take the variability of the signature into account, which DPMUnc allows. In two of the nine examples we examined, ignoring uncertainty led to clusterings which did not associate with disease status. In particular, it allows us to cluster patients simultaneously according to multiple signatures. In the case of the Ferreira dataset, this led to a clearer separation of the two disease and control groups, emphasizing the potential utility of considering multiple signatures, which provide multiple views of the same data.

Methods

Simulations

We simulated a variety of datasets with different characteristics to explore the behaviour of DPMUnc in comparison to other methods when the “truth” was known.

The simulated datasets each consist of thirty points spread across three clusters, and broadly follow the model used by DPMUnc outlined above. The simulation process includes two parameters which are varied between simulations: U controls the magnitude of observation uncertainty and N controls the level of noise around the cluster means, i.e. the levels of observational and biological variation respectively. The process for simulating data is:

Cluster means are the points μ1 = (10, 0), μ2 = (0, 10), μ3 = (α, α) where α=101+32≈14 was chosen so that the cluster means are equidistant.

Points were independently and uniformly assigned to clusters i.e. ci∼i.i.d.Uniform{1,2,3} for i = 1, …, 30.

Latent observations were simulated around the cluster mean, with variance N i.e. zi∣ci=k∼N(μk,N)

Uncertainty for the points was simulated using σi2∼i.i.d.Γ(k=1/2,θ=2U).

Observed data points were simulated about the latent points: xi∼N(zi,σi2)

We simulated for 100 different seeds each combination of U = 5, 7, 10, 13 and N = 4, 9, 12, 16. A grid of simulated datasets is shown in S5 Fig showing the range of the datasets.

We ran DPMUnc and DPMZeroUnc with 10 thousand iterations, saving only every 10th iteration to avoid autocorrelation and discarding the first half of the iterations as burn-in.

Prior for cluster parameters

We used the prior hyperparameters α0 = 2, κ0 = 0.5. μ0 is set to be the empirical mean of all the data. β0 is set to be 0.2 multiplied by the variance of the variable, thus scaling β0 by the variance of the variable. In datasets with multiple variables, we use the mean of the variances to scale β0. If a dataset had variables on vastly different scales, this would not be an appropriate choice of prior but all the datasets in this paper have variables on comparable scales.

Comparing to other methods

We used simulated data to examine the performance of DPMUnc. Simulated data provides access to the true latent observations and so we could use the clustering ability on the latent data as a guide to the best performance possible by DPMUnc: no matter how good the adjustment made for uncertainty of the points is, DPMUnc cannot be expected to do better than its performance on the true latent data. We also used two widely used clustering methods as benchmarks, using the adjusted rand index (ARI) [29] to quantify the accuracy.

k-means [6, 7] can be shown to be equivalent to a GMM with spherical clusters. The R package cluster [30] provides a function clusGap which calculates a goodness of clustering measure called the gap statistic [18], which measures within-cluster similarity. We use this measure to choose the optimal value of k, the number of clusters. We ran kmeans with 25 random starts to avoid convergence to a local optimum.

mclust [8] is a Gaussian Mixture Model (GMM) which does not account for uncertainty and which requires K to be specified. We ran mclust with default settings and chose K by optimising the Bayesian Information Criterion as recommended by the authors.

The Bhattacharyya distance [19] is a measure of similarity between two probability distributions. We take each observation as the centre and the variance-covariance matrix as the variance of a multivariate normal. We then cluster the observations using hierarchical clustering with the R function hclust, choosing K as for k-means.

We ran fuzcluster [13] using the fuzcluster function in the R package sirt. We estimate K as for kmeans.

We implemented the strategy of representative clustering of uncertain data [12] in R, and used it to extend kmeans and mclust for uncertain data.

We ran DPMUnc with the simulated data and with adjusted versions of the datasets where the uncertainty estimates were shrunk to 0. Thus the latent variables are essentially fixed to be equal to the observed data points throughout. We call this version of the method DPMZeroUnc.

GWAS summary statistics features

We downloaded Table S10 from [21] and kept the 186 traits which differed significantly from a control dataset (FDR<0.01), and focused on disease traits. To avoid near duplicates, we retained only one set of results from UK Biobank (UKBB) by excluding the GeneAtlas analysis, and retaining the Neale analyses which had a greater representation of rarer immune traits, leaving us with 45 traits in our final dataset.

We ran DPMUnc and DPMZeroUnc with 100 million iterations, saving only every 1000th iteration to avoid autocorrelation and discarding the first half of the iterations as burn-in.

Preprocessing gene expression data

We first used a variance stabilising transformation [31]vsn2 to minimise the relationship between average gene expression and the variance of gene expression (S8 Fig). We then used median absolute deviation (MAD) scale normalization to make the distribution of expression values similar between genes, dividing all values for gene g by the MAD of the control samples for gene g.

Gene expression signatures

The genes representing each signature were identified as follows

SigNK consists of 87 genes (Supplementary File S6 from [23]).

SigIFN consists of 56 genes identified through differential expression analysis using interferon stimulation of PBMCs and marked as discriminatory in SLE according to Supplementary Table 2 [24].

SigCD8 consists of 12 genes from module 8 and module 9 in [25] Supplemental Table 1 which showed reduced expression with log fold change <−3 only in exhausted CD8 T cells. The signature was defined in mice and we used BioMart to convert from murine (GRCm39) genes to human (GRCh38.p13) genes [32, 33].

The selected signature genes are listed in full in S1 Table and were summarised for each sample by two values, the mean and the variance of the normalised expression value, with the summary measures taken across all genes in a signature.

We ran DPMUnc and DPMZeroUnc with 20 million iterations, saving only every 500th iteration to avoid autocorrelation and discarding the first half of the iterations as burn-in.

MCMC summarisation approach

Whilst DPMUnc and DPMZeroUnc provide samples from a posterior distribution, it is useful to find a single summary clustering for downstream analyses. We first calculate the posterior similarity matrix (PSM). Each entry PSMi,j is the proportion of posterior samples in which observation i and observation j were placed in the same cluster. Secondly, we calculate the clustering of the PSM that optimises the posterior expected adjusted rand index (PEAR) with the true clustering (maxpear [20]), i.e. the clustering that seems the most compatible with the true clustering. This requires a search strategy to explore the space of possible clusters, and we use all possible clusters found via complete hierarchical clustering, using 1 − PSM as a distance matrix, using the mcclust and mcclust.ext packages in R.

Supporting information

S1 Text Supplementary text describing the mathematical details of the model, illustrative examples and runtimes.

(PDF)

S1 Fig MCMC algorithm used by DPMUnc.

(TIFF)

S2 Fig Estimates of K for different methods across simulated datasets. In all cases true K is 3.

(TIFF)

S3 Fig Calibration of posterior similarity scores.

The green line shows perfect calibration, where the posterior similarity score is the same as the proportion of pairs that are in the same cluster in the true clustering. For each collection of pairs of points with posterior similarity score within some bin, the proportion of pairs which are in the same cluster in the true clustering is shown by a dot.

(TIFF)

S4 Fig Posterior similarity matrix for DPMUnc’s clustering.

Both rows and columns correspond to traits and each entry in the grid shows the proportion of samples from the MCMC chain in which the two traits were placed in the same cluster.

(TIFF)

S5 Fig Example simulated datasets with varying levels of true noise N and observation uncertainty U.

The latent data are empty circles, with arrows pointing to the observed values, which are represented by filled circles. The points are coloured by cluster membership. The left column has lowest observation uncertainty, so that the observations are close to their latent points, whereas the right column has high observation uncertainty. The top row has lowest cluster noise, with most latent data lying close to the cluster mean whereas the bottom row has higher cluster noise, with latent data more spread out.

(TIFF)

S6 Fig Clustering of samples in 3 gene expression datasets (rows) according to 3 gene signatures (columns) using DPMZeroUnc.

(a-c) Ferreira (d-f) Chaussabel (g-i) Lyons. In each panel, the left plot shows the observed data, and the right plot shows the fraction of individuals assigned to each cluster. The p value shown relates to the null hypothesis that cluster membership is independent of disease. This can be compared to Fig 4 where clustering used DPMUnc to allow for uncertainty.

(TIFF)

S7 Fig Clustering of samples in 2 gene expression datasets (rows) using all 3 gene signatures using DPMZeroUnc.

In each panel, the left plot shows the observed data, and the right plot shows the fraction of individuals assigned to each cluster. The p value shown relates to the null hypothesis that cluster membership is independent of disease. This can be compared to Fig 5 where clustering used DPMUnc to allow for uncertainty.

(TIFF)

S8 Fig Relationship between mean and standard deviation in the Ferreira dataset, before (a) and after (b) vsn2 transformation.

(TIFF)

S1 Table Genes in each signature used in the gene expression datasets.

(CSV)

This work was performed using resources provided by the Cambridge Service for Data Driven Discovery (CSD3) operated by the University of Cambridge Research Computing Service (www.csd3.cam.ac.uk), provided by Dell EMC and Intel using Tier-2 funding from the Engineering and Physical Sciences Research Council (capital grant EP/P020259/1), and DiRAC funding from the Science and Technology Facilities Council (www.dirac.ac.uk).

10.1371/journal.pcbi.1012301.r001
Decision Letter 0
Ma Jian Section Editor
Ay Ferhat Academic Editor
© 2024 Ma, Ay
2024
Ma, Ay
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Submission Version0
23 Apr 2023

Dear Ms Nicholls,

Thank you very much for submitting your manuscript "Bayesian clustering with uncertain data" for consideration at PLOS Computational Biology.

As with all papers reviewed by the journal, your manuscript was reviewed by members of the editorial board and by several independent reviewers. In light of the reviews (below this email), we would like to invite the resubmission of a significantly-revised version that takes into account the reviewers' comments. Specifically, we would like you to address the major concerns about comprehensive comparisons of the method to relevant baselines and other methods, scalability of the method for larger instances and justify the novelty claims related to grouping genes with respect to signatures. 

We cannot make any decision about publication until we have seen the revised manuscript and your response to the reviewers' comments. Your revised manuscript is also likely to be sent to reviewers for further evaluation.

When you are ready to resubmit, please upload the following:

[1] A letter containing a detailed list of your responses to the review comments and a description of the changes you have made in the manuscript. Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out.

[2] Two versions of the revised manuscript: one with either highlights or tracked changes denoting where the text has been changed; the other a clean version (uploaded as the manuscript file).

Important additional instructions are given below your reviewer comments.

Please prepare and submit your revised manuscript within 60 days. If you anticipate any delay, please let us know the expected resubmission date by replying to this email. Please note that revised manuscripts received after the 60-day due date may require evaluation and peer review similar to newly submitted manuscripts.

Thank you again for your submission. We hope that our editorial process has been constructive so far, and we welcome your feedback at any time. Please don't hesitate to contact us if you have any questions or comments.

Sincerely,

Ferhat Ay, Ph.D

Academic Editor

PLOS Computational Biology

Jian Ma

Section Editor

PLOS Computational Biology

***********************

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: Authors extended the use of Dirichlet Process Gaussian Mixture models to incorporate the uncertainty associated with each sample. And they proposed Dirichlet Process Matrix Mixtures with Uncertainty (DPMUnc) as a nonparametric clustering framework. Authors conducted a simulation study that compared DPMUnc with existing methods, and further demonstrated that DPMUnc was effective in classifying immune-mediated diseases using GWAS summary statistics and clustering patients based on relevant gene signatures. The manuscript is well written and easy to follow, with detailed derivations included in the supplementary information. All the analysis pipelines are well-documented, ensuring the reproducibility of the study.

The use of uncertainty as a means of improving cluster assignment is an interesting problem, and the authors’ proposed model appears to be theoretically sound. However, I have some concerns about the comparisons. Authors compared DPMUnc with Gaussian Mixture Model (GMM implementation) and k-means which are two baseline methods, while these two methods are not explicitly designed to handle data uncertainty, which may make the comparisons less persuasive. Moreover, certain details about the experiments need to be clarified.

Major concerns

1. The introduction section may benefit from a brief discussion on clustering the uncertain data, and authors could consider expanding the section to provide a more comprehensive overview. Additionally, there are alternative approaches clustering data with uncertainty that authors could include in the comparison. For instance, a few algorithms can be found via the following link: https://github.com/fgullo/jcludata.

2. In the simulation study, I am wondering if mclust and kmeans were initialized from multiple starting points to avoid local optimal solutions.

3. Authors clustered immune-mediated diseases with the GWAS statistics (Figure 3). DPMUnc and DPMZeroUnc disagree on the the diseases where the variance is relatively small, e.g., UKBB hyperthyroidism thyrotoxicosis, UKBB hypothyroidism myxoedema and UKBB pernicious anaemia. Could you elaborate on this observation?

4. Authors run DPMUnc to classify public gene expression dataset using relevant signatures. It would be helpful to include DPMZeroUnc and mclust to compare with DPMUnc and report corresponding ARI values. These could be included as part of the supplementary information. Another natural baseline here is to use mclust/kmeans to cluster all the genes included in the signature set without aggregation. This is a common practice to address similar clustering problems, and it would be compelling to show that DPMUnc can outperform this standard clustering pipeline.

Minor concerns

1. Authors may consider broadening the scope of possible applications of the DPMUnc method as uncertainty commonly exists in most of the biological measurements. For example

(1) Authors could investigate if DPMUnc can improve upon the problem of clustering data based on multiple uncertain experts.

(2) Authors could experiment with network clustering as every edge/interaction was measured with a confidence score indicating uncertainty [1]

(3) Authors could explore the cell type annotation problem when dealing single-cell multiomic data. In this case, one cell could be assigned different cell types based on different modalities, e.g., RNA-seq and ATAC-seq. DPMUnc may be useful for integrating the annotation and clustering the single-cell data more accurately [2].

2. The uncertainty variable (variance) only influences the latent variable sampling step. Therefore, DPMZeroUnc should be equivalent as the standard Dirichlet Process Gaussian Mixture. It may be beneficial for authors to compare DPMZeroUnc with existing implementations of Dirichlet Process Gaussian Mixture models, such as sklearn, to verify if the convergence behavior is similar.

3. Sampling algorithms in general are computationally intensive. Authors can include some basic statistics on the running time and include a short discussion in the last section.

4. Supplementary figures S1 and S2 are really intuitive and helpful. It would enhance the clarity of the figures and make the respective legends more reader friendly if different panels can be labeled by letters.

Reference

1. Jonsson, Pall F., and Paul A. Bates. "Global topological features of cancer proteins in the human interactome." Bioinformatics 22.18 (2006): 2291-2297.

2. Azimuth, https://azimuth.hubmapconsortium.org/

Reviewer #2: The review is uploaded as an attachment. See "Comments to authors.pdf".

Reviewer #3: Review is attached as a pdf

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #3: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

Reviewer #3: No

Figure Files:

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at figures@plos.org.

Data Requirements:

Please note that, as a condition of publication, PLOS' data policy requires that you make available all data used to draw the conclusions outlined in your manuscript. Data must be deposited in an appropriate repository, included within the body of the manuscript, or uploaded as supporting information. This includes all numerical values that were used to generate graphs, histograms etc.. For an example in PLOS Biology see here: http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5.

Reproducibility:

To enhance the reproducibility of your results, we recommend that you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option to publish peer-reviewed clinical study protocols. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

Attachment Submitted filename: Comments to authors.pdf

Attachment Submitted filename: review.pdf

10.1371/journal.pcbi.1012301.r002
Author response to Decision Letter 0
Submission Version1
14 Sep 2023

Attachment Submitted filename: DPMunc-response1.pdf

10.1371/journal.pcbi.1012301.r003
Decision Letter 1
Ma Jian Section Editor
Ay Ferhat Academic Editor
© 2024 Ma, Ay
2024
Ma, Ay
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Submission Version1
14 Oct 2023

Dear Ms Nicholls,

Thank you very much for submitting your manuscript "Bayesian clustering with uncertain data" for consideration at PLOS Computational Biology.

As with all papers reviewed by the journal, your manuscript was reviewed by members of the editorial board and by several independent reviewers. In light of the reviews (below this email), we would like to invite the resubmission of a version that takes into account the reviewers' comments. As you will see, there are only a few major concerns remaining but minor concerns such as leaving out TODO mark etc. also need to be addressed carefully.

We cannot make any decision about publication until we have seen the revised manuscript and your response to the reviewers' comments. Your revised manuscript is also likely to be sent to reviewers for further evaluation.

When you are ready to resubmit, please upload the following:

[1] A letter containing a detailed list of your responses to the review comments and a description of the changes you have made in the manuscript. Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out.

[2] Two versions of the revised manuscript: one with either highlights or tracked changes denoting where the text has been changed; the other a clean version (uploaded as the manuscript file).

Important additional instructions are given below your reviewer comments.

Please prepare and submit your revised manuscript within 60 days. If you anticipate any delay, please let us know the expected resubmission date by replying to this email. Please note that revised manuscripts received after the 60-day due date may require evaluation and peer review similar to newly submitted manuscripts.

Thank you again for your submission. We hope that our editorial process has been constructive so far, and we welcome your feedback at any time. Please don't hesitate to contact us if you have any questions or comments.

Sincerely,

Ferhat Ay, Ph.D

Academic Editor

PLOS Computational Biology

Jian Ma

Section Editor

PLOS Computational Biology

***********************

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: I appreciate the authors' comprehensive response, which effectively addressed most of my concerns. Overall, my impression is positive. While I acknowledge the arguments presented in response to my primary concern #4, I would like to underscore the importance of comparing the diverse outcomes yielded by different methods on the real datasets. Simulation experiments offer a controlled and constrained environment for showcasing the superior performance of the proposed method. The objective of real experiments, however, is not to identify the "best" model, given the potential variability in their outputs. Rather, it is to address the question: what novel insights can be exclusively derived through the application of DPMUnc as opposed to alternative approaches? This inquiry aims to provide an intuitive grasp of DPMUnc's behavior within a practical context. I hope this clarification will alleviate any confusion stemming from my initial inquiry.

Upon careful review of the response, I observed several placeholders labeled as TODO within the response document. I strongly recommend a thorough examination prior to finalizing and submitting the document.

Reviewer #2: The review is uploaded as an attachment.

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: None

Reviewer #2: None

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

Figure Files:

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at figures@plos.org.

Data Requirements:

Please note that, as a condition of publication, PLOS' data policy requires that you make available all data used to draw the conclusions outlined in your manuscript. Data must be deposited in an appropriate repository, included within the body of the manuscript, or uploaded as supporting information. This includes all numerical values that were used to generate graphs, histograms etc.. For an example in PLOS Biology see here: http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5.

Reproducibility:

To enhance the reproducibility of your results, we recommend that you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option to publish peer-reviewed clinical study protocols. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

Attachment Submitted filename: Comments to the Authors.pdf

10.1371/journal.pcbi.1012301.r004
Author response to Decision Letter 1
Submission Version2
1 May 2024

Attachment Submitted filename: DPMUnc_response2.pdf

10.1371/journal.pcbi.1012301.r005
Decision Letter 2
Ma Jian Section Editor
Ay Ferhat Academic Editor
© 2024 Ma, Ay
2024
Ma, Ay
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Submission Version2
8 Jul 2024

Dear Dr. Wallace,

We are pleased to inform you that your manuscript 'Bayesian clustering with uncertain data' has been provisionally accepted for publication in PLOS Computational Biology.

Before your manuscript can be formally accepted you will need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch with a set of requests.

Please note that your manuscript will not be scheduled for publication until you have made the required changes, so a swift response is appreciated.

IMPORTANT: The editorial review process is now complete. PLOS will only permit corrections to spelling, formatting or significant scientific errors from this point onwards. Requests for major changes, or any which affect the scientific understanding of your work, will cause delays to the publication date of your manuscript.

Should you, your institution's press office or the journal office choose to press release your paper, you will automatically be opted out of early publication. We ask that you notify us now if you or your institution is planning to press release the article. All press must be co-ordinated with PLOS.

Thank you again for supporting Open Access publishing; we are looking forward to publishing your work in PLOS Computational Biology. 

Best regards,

Ferhat Ay, Ph.D

Academic Editor

PLOS Computational Biology

Jian Ma

Section Editor

PLOS Computational Biology

***********************************************************

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: My concerns have been properly addressed, and I have no further comments on the methods or the results part. A few minor edits need attention later:

1. There are placeholders in the latest response as “Fig SX and Fig SX”, which should refer to S6 Fig and S7 Fig.

2. The proposed updates to the Discussion, specifically “Our proposed method of summarizing a gene expression across a signature extends the possible uses of signatures, and since the signature may be weaker on a dataset with more complex structure, it is crucial to take the variability of the signature into account, which DPMUnc allows.” are confusing. Authors may revise this sentence for clarity.

3. Currently, S6 Fig lacks dataset names as panel titles or corresponding descriptions in the legend (similar to Fig. 4) to describe the correspondence between panels and the datasets included.

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: None

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

10.1371/journal.pcbi.1012301.r006
Acceptance letter
Ma Jian Section Editor
Ay Ferhat Academic Editor
© 2024 Ma, Ay
2024
Ma, Ay
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
26 Aug 2024

PCOMPBIOL-D-22-01876R2

Bayesian clustering with uncertain data

Dear Dr Wallace,

I am pleased to inform you that your manuscript has been formally accepted for publication in PLOS Computational Biology. Your manuscript is now with our production department and you will be notified of the publication date in due course.

The corresponding author will soon be receiving a typeset proof for review, to ensure errors have not been introduced during production. Please review the PDF proof of your manuscript carefully, as this is the last chance to correct any errors. Please note that major changes, or those which affect the scientific understanding of the work, will likely cause delays to the publication date of your manuscript.

Soon after your final files are uploaded, unless you have opted out, the early version of your manuscript will be published online. The date of the early version will be your article's publication date. The final article will be published to the same URL, and all versions of the paper will be accessible to readers.

Thank you again for supporting PLOS Computational Biology and open-access publishing. We are looking forward to publishing your work!

With kind regards,

Olena Szabo

PLOS Computational Biology | Carlyle House, Carlyle Road, Cambridge CB4 3DN | United Kingdom ploscompbiol@plos.org | Phone +44 (0) 1223-442824 | ploscompbiol.org | @PLOSCompBiol
==== Refs
References

1 Jiang D , Tang C , Zhang A . Cluster Analysis for Gene Expression Data: A Survey. IEEE Transactions on Knowledge and Data Engineering. 2004 Nov;16 (11 ):1370–1386. doi: 10.1109/TKDE.2004.68
2 Golub TR , Slonim DK , Tamayo P , Huard C , Gaasenbeek M , Mesirov JP , et al . Molecular Classification of Cancer: Class Discovery and Class Prediction by Gene Expression Monitoring. Science. 1999 Oct;286 (5439 ):531–537. doi: 10.1126/science.286.5439.531 10521349
3 Saelens W , Cannoodt R , Saeys Y . A Comprehensive Evaluation of Module Detection Methods for Gene Expression Data. Nature Communications. 2018 Mar;9 (1 ):1–12. doi: 10.1038/s41467-018-03424-4 29545622
4 Cotsapas C , Voight BF , Rossin E , Lage K , Neale BM , Wallace C , et al . Pervasive Sharing of Genetic Effects in Autoimmune Disease. PLoS genetics. 2011 Aug;7 (8 ):e1002254. doi: 10.1371/journal.pgen.1002254 21852963
5 Majumdar A , Haldar T , Bhattacharya S , Witte JS . An Efficient Bayesian Meta-Analysis Approach for Studying Cross-Phenotype Genetic Associations. PLoS genetics. 2018 Feb;14 (2 ):e1007139. doi: 10.1371/journal.pgen.1007139 29432419
6 Lloyd S . Least Squares Quantization in PCM. IEEE Transactions on Information Theory. 1982 Mar;28 (2 ):129–137. doi: 10.1109/TIT.1982.1056489
7 MacQueen J. Some Methods for Classification and Analysis of Multivariate Observations. In: Proc. Fifth Berkeley Sympos. Math. Statist. and Probability (Berkeley, Calif., 1965/66), Vol. I: Statistics. Univ. California Press, Berkeley, Calif.; 1967. p. 281–297.
8 Scrucca L , Fop M , Murphy TB , Raftery AE . mclust 5: Clustering, Classification and Density Estimation Using Gaussian Finite Mixture Models. The R Journal. 2016;8 (1 ):289–317. doi: 10.32614/RJ-2016-021 27818791
9 Chang Y, Chen J, Cho M, Castaldi P, Silverman E, Dy J. Clustering from multiple uncertain experts. In: Artificial Intelligence and Statistics. PMLR; 2017. p. 28–36.
10 Gullo F, Ponti G, Tagarelli A. Clustering uncertain data via k-medoids. In: International Conference on Scalable Uncertainty Management. Springer; 2008. p. 229–242.
11 Gullo F, Tagarelli A. Uncertain centroid based partitional clustering of uncertain data. arXiv preprint arXiv:12036401. 2012;.
12 Züfle A, Emrich T, Schmid KA, Mamoulis N, Zimek A, Renz M. Representative clustering of uncertain data. In: Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining; 2014. p. 243–252.
13 Denoeux T . Maximum likelihood estimation from uncertain data in the belief function framework. IEEE Transactions on knowledge and data engineering. 2011;25 (1 ):119–130. doi: 10.1109/TKDE.2011.201
14 Escobar MD , West M . Bayesian Density Estimation and Inference Using Mixtures. Journal of the American Statistical Association. 1995 Jun;90 (430 ):577–588. doi: 10.1080/01621459.1995.10476550
15 Rasmussen CE. The Infinite Gaussian Mixture Model. In: Proceedings of the 12th International Conference on Neural Information Processing Systems. NIPS’99. Cambridge, MA, USA: MIT Press; 1999. p. 554–560.
16 Neal RM . Markov Chain Sampling Methods for Dirichlet Process Mixture Models. Journal of Computational and Graphical Statistics. 2000 Jun;9 (2 ):249. doi: 10.1080/10618600.2000.10474879
17 Lloyd S . Least squares quantization in PCM. IEEE Transactions on Information Theory. 1982;28 (2 ):129–137. doi: 10.1109/TIT.1982.1056489
18 Tibshirani R , Walther G , Hastie T . Estimating the Number of Clusters in a Data Set via the Gap Statistic. Journal of the Royal Statistical Society Series B (Statistical Methodology). 2001;63 (2 ):411–423. doi: 10.1111/1467-9868.00293
19 Bhattacharyya A . On a Measure of Divergence between Two Multinomial Populations. Sankhyā: The Indian Journal of Statistics (1933-1960). 1946;7 (4 ):401–406. Available from: http://www.jstor.org/stable/25047882.
20 Fritsch A , Ickstadt K . Improved Criteria for Clustering Based on the Posterior Similarity Matrix. Bayesian Analysis. 2009 Jun;4 (2 ):367–391. doi: 10.1214/09-BA414
21 Burren OS , Reales G , Wong L , Bowes J , Lee JC , Barton A , et al . Genetic Feature Engineering Enables Characterisation of Shared Risk Factors in Immune-Mediated Diseases. Genome Medicine. 2020 Nov;12 (1 ):106. doi: 10.1186/s13073-020-00797-4 33239102
22 Wootla B , Eriguchi M , Rodriguez M . Is Multiple Sclerosis an Autoimmune Disease? Autoimmune Diseases. 2012;2012 :1–12. doi: 10.1155/2012/969657 22666554
23 Xhonneux LP , Knight O , Lernmark Å , Bonifacio E , Hagopian WA , Rewers MJ , et al . Transcriptional Networks in At-Risk Individuals Identify Signatures of Type 1 Diabetes Progression. Science translational medicine. 2021 Mar;13 (587 ):eabd5666. doi: 10.1126/scitranslmed.abd5666 33790023
24 Ferreira RC , Guo H , Coulson RMR , Smyth DJ , Pekalski ML , Burren OS , et al . A Type I Interferon Transcriptional Signature Precedes Autoimmunity in Children Genetically at Risk for Type 1 Diabetes. Diabetes. 2014 Jul;63 (7 ):2538–2550. doi: 10.2337/db13-1777 24561305
25 Wherry EJ , Ha SJ , Kaech SM , Haining WN , Sarkar S , Kalia V , et al . Molecular Signature of CD8+ T Cell Exhaustion during Chronic Viral Infection. Immunity. 2007 Oct;27 (4 ):670–684. doi: 10.1016/j.immuni.2007.09.006 17950003
26 McKinney EF , Lee JC , Jayne DRW , Lyons PA , Smith KGC . T-Cell Exhaustion, Co-Stimulation and Clinical Outcome in Autoimmunity and Infection. Nature. 2015 Jul;523 (7562 ):612–616. doi: 10.1038/nature14468 26123020
27 Chaussabel D , Quinn C , Shen J , Patel P , Glaser C , Baldwin N , et al . A Modular Analysis Framework for Blood Genomics Studies: Application to Systemic Lupus Erythematosus. Immunity. 2008 Jul;29 (1 ):150–164. doi: 10.1016/j.immuni.2008.05.012 18631455
28 Lyons PA , McKinney EF , Rayner TF , Hatton A , Woffendin HB , Koukoulaki M , et al . Novel Expression Signatures Identified by Transcriptional Analysis of Separated Leucocyte Subsets in Systemic Lupus Erythematosus and Vasculitis. Annals of the Rheumatic Diseases. 2010 Jun;69 (6 ):1208–1213. doi: 10.1136/ard.2009.108043 19815495
29 Hubert L , Arabie P . Comparing Partitions. Journal of Classification. 1985 Dec;2 (1 ):193–218. doi: 10.1007/BF01908075
30 Maechler M, Rousseeuw P, Struyf A, Hubert M, Hornik K. cluster: Cluster Analysis Basics and Extensions; 2022. R package version 2.1.4—For new features, see the’Changelog’ file (in the package source). Available from: https://CRAN.R-project.org/package=cluster.
31 Huber W , von Heydebreck A , Sültmann H , Poustka A , Vingron M . Variance Stabilization Applied to Microarray Data Calibration and to the Quantification of Differential Expression. Bioinformatics. 2002 Jul;18 (suppl_1 ):S96–S104. doi: 10.1093/bioinformatics/18.suppl_1.S96 12169536
32 Durinck S , Moreau Y , Kasprzyk A , Davis S , De Moor B , Brazma A , et al . BioMart and Bioconductor: A Powerful Link between Biological Databases and Microarray Data Analysis. Bioinformatics. 2005 Aug;21 (16 ):3439–3440. doi: 10.1093/bioinformatics/bti525 16082012
33 Durinck S , Spellman PT , Birney E , Huber W . Mapping Identifiers for the Integration of Genomic Datasets with the R/Bioconductor Package biomaRt. Nature Protocols. 2009;4 (8 ):1184–1191. doi: 10.1038/nprot.2009.97 19617889
