ESPClust: unsupervised identification of modifiers for the effect size profile in omics association studies
Francisco J Pérez-Reche, Nathan J Cheetham, Ruth C E Bowyer, Ellen J Thompson, Francesca Tettamanzi, Cristina Menni, Claire J Steves

TL;DR
ESPClust is a new method that identifies how different factors modify the strength of associations in omics studies, helping uncover hidden patterns in complex biological data.
Contribution
ESPClust introduces an unsupervised approach to detect effect size modifiers across multiple exposures in omics data.
Findings
ESPClust successfully identifies effect size modifiers in synthetic and real-world datasets.
The method outperforms traditional analyses by uncovering nuanced modifications overlooked otherwise.
It enables robust analysis of complex omics data even with limited sample sizes.
Abstract
High-throughput omics technologies have revolutionized the identification of associations between individual traits and underlying biological characteristics, but still use ‘one effect-size fits all’ approaches. While covariates are often used, their potential as effect modifiers often remains unexplored. We propose ESPClust, a novel unsupervised method designed to identify covariates that modify the effect size of associations between sets of omics variables and outcomes. By extending the concept of moderators to encompass multiple exposures, ESPClust analyses the effect size profile (ESP) to identify regions in covariate space with different ESP, enabling the discovery of subpopulations with distinct associations. Applying ESPClust to synthetic data, insulin resistance and COVID-19 symptom manifestation, we demonstrate its versatility and ability to uncover nuanced effect size…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5| Number of clusters | ||||||
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| Number of regions | 1 | 457 | 13 | 23 | 7 | 0 |
| 2 | 7 | 486 | 7 | 0 | 0 | |
| 3 | 22 | 34 | 394 | 43 | 7 | |
- —Medical Research Council Fellowship
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBioinformatics and Genomic Networks · Mental Health Research Topics · Metabolomics and Mass Spectrometry Studies
1 Introduction
Rapidly expanding high-throughput technologies offer an unprecedented ability to identify associations between observed traits of individuals and biological endpoints via characterisation of various ‘omics’ data. ‘Omics’ represents a range of disciplines including genomics, proteomics, and metabolomics and allows elucidation of mechanisms and processes underpinning health and disease states (Zierer et al. 2015, Misra et al. 2018, Suhre et al. 2021, Uffelmann et al. 2021, Julkunen et al. 2023).
Associations between omics variables and a given phenotypic outcome are often influenced by various covariates—characteristics of individuals or study conditions that may influence the observed association between an exposure (such as a biological measure) and an outcome (such as the presence of a disease). In association studies, effect size quantifies the strength of this relationship, reflecting the practical impact that changes in an exposure may have on the outcome (Kirk 2005, Ellis 2010). Covariates, which can include demographics (such as age, sex, body mass index—BMI—or ethnicity), biological diversity within samples (Gough et al. 2017) or technical variation in the timing of collection, collection method, and processing of samples (Leek et al. 2010), can affect the effect size. It is therefore standard practice to account for the potential confounding effects of such covariates when analysing associations between omics variables and outcomes.
In association studies, it is essential to distinguish between two primary roles of covariates: as confounders or as effect modifiers (or moderators). Confounders are covariates that influence both the exposure and the outcome, potentially leading to a spurious or misleading association if not accounted for. For example, age could confound an association between a gene expression level and a disease outcome if age affects both the gene expression and the risk of the disease (Steves et al. 2012). To isolate the true association between the exposure and outcome, it is standard practice to adjust for confounding (Lash et al. 2021).
Covariates can also act as effect modifiers, altering the effect size of associations rather than simply confounding them (Lash et al. 2021). For instance, a biomarker might show a stronger association with a health outcome in older individuals than in younger ones, indicating age as an effect modifier. However, identifying effect modifiers is not systematically considered in omics association studies, likely due to the limited statistical power of typical datasets. Neglecting effect modification not only risks skewing effect size estimates but also disregards vital heterogeneity linked to covariates, which reflects the diversity within human populations. Recognising such diversity can prove invaluable in identifying target subpopulations for maximising intervention effectiveness or delineating thresholds that differentiate groups based on distinct characteristics. Understanding how effects are different within different subpopulations is the cornerstone of developing personalised medicine.
Here, we present ESPClust, an unsupervised method to identify covariates that modify the effect size of the association between a set of omics variables and an outcome, which can be used in relatively small sample sizes for discovery science. To facilitate this, we define an effect size profile (ESP), which is a collection of effect sizes representing the connections between various omics variables and the outcome. Rather than examining each effect size in isolation as done in classical univariate analysis (Pepe et al. 1999, Uffelmann et al. 2021, Julkunen et al. 2023), the ESP captures the joint profile of effect sizes for multiple exposures. ESPClust works by dividing the space of covariates into regions of approximately homogeneous ESP, thus identifying clusters of individuals who share similar associations between their omics profile and the outcome. In essence, ESPClust extends the concept of effect modification to consider modification of the ESP, thereby capturing how the joint effect sizes of multiple exposures are influenced by covariates.
ESPClust is versatile and can be readily employed to explore connections between different omics datasets and outcomes. We evaluated its performance on synthetic datasets with known ground truth and applied it to real-world data to address specific research questions. The research questions were chosen to illustrate the ability of the method to (a) make discoveries in a highly researched area and (b) identify completely novel findings in an emerging disease. For the former, we investigated the relation between blood metabolomics and insulin resistance, an area which has already been heavily researched (Roberts et al. 2014, Pedersen et al. 2016, Gu et al. 2020), providing a valuable context for our new findings. For the latter, we explored whether and how pre-pandemic blood metabolomics, reflecting pre-infection metabolism, influenced whether someone would become symptomatic after SARS-CoV-2 infection. Although numerous studies have analysed potential relationships between COVID-19 and blood metabolomics, they often concentrate on blood samples collected post-infection or use infection severity (such as hospitalisation) as the primary outcome (Hasan et al. 2021, Julkunen et al. 2021, Marín-Corral et al. 2021, Sindelar et al. 2021, Ceballos et al. 2022). By considering a new question, we showcase the ability of ESPClust to analyse previously unexplored associations.
2 Materials and methods
2.1 The ESPClust method
Given a set of omics variables , we define the effect size profile (ESP) as the set , where each represents the association between an individual omics variable and an outcome (Fig. 1a). Effect sizes can be estimated through various methods depending on the research context (Kirk 2005, Ellis 2010). The method can be applied to any set of effect sizes. However, for our applications, we calculate these using coefficients from linear regression models or odds ratios from logistic regression models. The relationship between and , adjusted for confounders , is modelled as:
where is a normally distributed error. For a continuous outcome, we use linear regression with , giving . For a binary outcome, we use logistic regression with , yielding .
ESPClust method to identify regions in the covariate space with similar effect size profile. (a) Association between M omics variables (exposures) and an outcome Y in terms of pair-wise effect sizes E1,E2,…,EM that may depend on J covariates {Z1,…,ZJ}. (b) Schematic representation of the dependence of the standardized ESP e1,e2,…,eM on the covariates. Panels (c)–(f) illustrate the method for a simple case with two omics variables, X1,X2, which depend on a single continuous covariate, Z. (c) The effect size for each omics variable is calculated within 6 windows, Wll=16 that cover the values taken by the covariate Z. (d) Clustering of the windows in the effect size space. Windows within a cluster have a similar effect size profile. C1 and C2 are the cluster centroids. (e) Window clusters in the covariate space defining regions shown with segments (top) or window midpoints (bottom). (f) Coordinates of the cluster centroids summarising the effect of the covariate z on the association profile of each omics variable with the outcome.
ESPClust standardizes the ESP to a dimensionless set , derived from by subtracting the mean of each variable and normalizing by its standard deviation. We then suppose that each normalized effect size in the ESP can depend on covariates, , which act as effect modifiers. The sets of confounders and effect modifiers may overlap but are not necessarily identical. ESPClust generalizes univariate effect modification (Bovbjerg and Johnson 2020, Lash et al. 2021) to study how the entire ESP, , varies across the covariate space defined by (Fig. 1b).
The main aim of ESPClust is to identify regions in the covariate space where the ESP can be considered homogeneous. Within such regions, analyses that assume homogeneous effect sizes are valid. In contrast, assuming homogeneity for the ESP across distinct regions would not be justified.
ESPClust consists of three steps, outlined below.
2.1.1 Step 1. Evaluation of the ESP as a function of the potential effect modifiers
Accounting for the effect modification of a discrete covariate such as sex or smoking status, simply requires estimating the ESP separately for each value of . However, with continuous covariates, the estimation process requires a more nuanced approach. Consider a scenario with continuous covariates, . Directly estimating the ESP at arbitrary points in the space is often infeasible due to data sparsity.
To address this challenge, we evaluate the ESP within a set of windows that collectively cover the region of the covariate space spanned by the data. These windows, which can overlap, allow data sparsity to be handled. The concept of a ‘cover’ consisting of overlapping windows, rooted in topology (Gamelin and Greene 1999), expands upon the traditional disjoint partitioning used in stratified analysis. Overlapping windows offer advantages: they eliminate the arbitrariness in defining strata that may intersect regions with heterogeneous ESPs, such as conventional age groups. They also provide a more detailed description of the dependence of effect sizes on covariates.
For a single covariate ( ), windows are one-dimensional segments (Fig. 1c). For two covariates, they are rectangles (Fig. 2c). More generally, windows correspond to -dimensional hyperrectangles when covariates are considered.
Illustration of the method for determining gliding window dimensions and step sizes in a dataset with two covariates {Z1,Z2}. (a) Covariate space with N=200 observations (circles). For each observation, the smallest rectangle encompassing the observation and its n−1 nearest neighbours (n=20) is identified. Two example rectangles corresponding to observations i and l are shown. (b) Histograms of rectangle side lengths (d1 and d2) in the two covariate dimensions. The window size in each dimension is defined as the 95th percentile (L1,L2), while the gliding step (Δ1,Δ2) is the minimum observed side length in each dimension. (c) Example of a gliding window with dimensions L1,L2, along with a copy shifted diagonally by (Δ1,Δ2).
Once the set of windows is defined, ESPClust estimates the ESP within each window using the observations it contains and a model appropriate to the data (e.g. regression). For a given window , the ESP is the set of univariate effect sizes, . Step 1 of ESPClust produces a collection of effect size profiles, , one for each window. These profiles are then used for clustering in Step 2, as described below.
We cover the -dimensional covariate space using a gliding hyperrectangle with dimensions . The hyperrectangle shifts incrementally in one or more directions at a time, with step sizes . For instance, in two dimensions ( ), the windows may shift horizontally by , vertically by ), or diagonally by . Figure 2c illustrates a rectangular window in two-dimensional covariate space, along with a copy obtained through a diagonal shift.
Ideally, windows should offer a detailed description of the dependence of ESP on covariates across a wide region of the covariate space while maintaining statistically robust estimates within each window. It is crucial that each window contains enough observations to support robust ESP estimates is critical. To achieve this, we developed an automated method to determine suitable window dimensions and gliding steps, ensuring that each window typically contains at least a pre-specified number of observations, . Figure 2 illustrates the method for two covariates.
Given a dataset with observations and covariates, the method standardizes all covariates and identifies the smallest hyperrectangle containing each observation and its nearest neighbours (Fig. 2a). Once the neighbourhood is determined, we back-transform to non-standardized covariates to obtain side-length estimates for each covariate, , where represents the (non-standardized) length of the th side of the hyperrectangle for the th observation. The th side of the gliding windows is defined as the 95th percentile, , ensuring the window is typically large enough to include at least observations, except in sparse regions (Fig. 2b).
The gliding step in the th direction is defined as the smallest side length of the hyperrectangles for the th covariate, i.e. (Fig. 2b). This definition ensures that the gliding step is finely tuned to the data distribution, allowing for a systematic exploration of the covariate space to effectively capture local heterogeneities in effect sizes.
Once the gliding steps have been calculated, the total number of windows covering the covariate space is given by , where is the number of steps of the gliding window in the -th covariate, . Here, and are the maximum and minimum values of the -th covariate in the dataset, respectively, and is the floor function. The windows are centred at , where for . Some of these windows may contain fewer than observations, particularly in sparse regions of the covariate space. Accordingly, the final number of windows within which the ESP is calculated is .
2.1.2 Step 2. Clustering of windows with similar ESP
The for each window is used as a vector of features that allows windows to be clustered in groups with similar ESP. Figure 1d illustrates the concept: Windows and used in Fig. 1c form a cluster where both and show a positive association across all three windows. In contrast, windows and form a separate cluster where the values of are negative and those of are positive. Agglomerative clustering will be used throughout the article, but ESPClust can be used with any other clustering method (Gan et al. 2007).
The number of clusters identified by ESPClust can be manually set to any positive integer. However, we implemented an automated two-step process to determine a suitable number of clusters:
Determine the most frequent optimal cluster number across four clustering indices: Calinski-Harabasz (Calinski and Harabasz 1974), Davies-Bouldin (Davies and Bouldin 1979), silhouette (Rousseeuw 1987), and elbow (Willmott 2019). If there is no repeated number across the four indices or in the case of a tie, is set to the smallest value among all the scores. The Calinski-Harabasz, Davies-Bouldin, and silhouette methods determine the optimal number of clusters by maximising their respective scores. The elbow method identifies the optimal number of clusters by locating the value for which the change in slope of the clustering quadratic error (inertia, ) is maximal. This corresponds to the most prominent ‘elbow’ in the inertia vs. plot. The slope of the inertia is defined as , and the relative change of the slope as . The optimal corresponds to the maximum of .The clustering indices of step (i) split the windows into more than one group (i.e. ) even when the effect size is homogeneous over the covariate space. To test the statistical significance of splitting the data into clusters compared to a non-clustered null hypothesis ( ), we generate reference datasets, with each feature uniformly distributed within the observed range of values. For each reference dataset, , the slope change is computed. A p-value is then calculated as the proportion of reference datasets where , indicating cases where the observed elbow at is no more prominent than in the reference data. The null hypothesis of one cluster is rejected in favour of if the p-value is below a significance level .
2.1.3 Step 3. Identification of regions in the covariate space with homogeneous ESP
This step uses the window clusters obtained in Step 2 to identify regions in the covariate space with homogeneous ESP. Figure 1e illustrates the process for a case with a single effect modifier. In this example, the covariate space is split into two regions with ‘small’ and ‘large’ . Since the windows covering the covariate space can overlap, hard clustering of windows in the effect size space results in fuzzy clustering in the covariate space (Gan et al. 2007). For instance, in Fig. 1e, segments overlap, allowing a specific value of the modifier to belong to multiple windows simultaneously. Figure 2c exemplifies the overlap of windows in a two-dimensional covariate space. This approach acknowledges that individuals sharing a common modifier (e.g. age) may exhibit varied associations between omics variables and outcomes. Nonetheless, we employ the midpoint of each window, to provide a clearer visualization of regions characterized by homogeneous ESP (see the lower panel in Fig. 1e).
The centroids of the clusters serve as summaries of the ESP within each region, aiding in the interpretation of how covariates influence the relationship between each omics variable and the outcome. In Fig. 1f, the coordinates of the centroids and their dispersion are displayed. In this instance, the influence of the covariate on the association between the pair is significantly greater than that on the pair . This is evident from the larger difference between the centroids and for compared to those for Ultimately, this discrepancy reflects the stronger dependency of on , as illustrated in Fig. 1c.
2.2 Synthetic data
To evaluate the performance of ESPClust, we applied it to synthetic datasets with a known ground truth.
All datasets consider a dichotomous outcome with values and consist of 100 observations for each class. Each observation includes 30 omics variables, , and two effect modifiers, . The values of and were drawn uniformly from (Fig. 2a). Three types of datasets were built which assume different dependences of the omics-outcome associations on the covariates :
Datasets D1: These datasets model situations without effect modification such that the effect sizes do not depend on . This is achieved by drawing the omics variables from a normal distribution with mean and standard deviation 0.5 for all (i.e. ). This distribution was used for observations with both and , ensuring no dependency on or . Datasets D2: The covariate space is divided into two regions with distinct associations between the omics variables and the outcome: Region A, where either or , and region B, where . To make the regions more realistic, the boundary between them was smoothed, creating a gradual transition in membership probabilities near the thresholds (see dashed lines in Fig. 3a). For observations with , the omics variables were generated independently of . These variables were drawn as in D1 ( ). These observations are shown as empty squares in Fig. 3a and b. For observations with :
- In region A, the omics variables followed the same distribution as , indicating no statistical association between the omics variables and the outcome in this region (orange circles in Fig. 3a and b).
- In region B, the 30 omics variables were divided into three mutually exclusive random sets, each containing 10 variables. Within each set, the omics variables were drawn from , with and for the three sets, respectively. This setup reflects the possibility that only a subset of the omics variables are influenced by the effect modifiers and .
Datasets D3: The covariate space is divided into three regions with distinct associations between the omics variables and the outcome: Region A, where , region B, where and region C, where and . The omics variables for were generated as in datasets D2 ( ). This same distribution was also used for observations with in region A. In region B the omics variables were constructed similarly to region B in datasets D2. In region C, the variables were drawn as an independent random sample, following the same distribution as in region B but assigned to new random sets of 10 variables each. This reflects the presence of differential associations between the omics variables and the outcome in Regions B and C, driven by the effect modifiers.
Application of ESPClust to synthetic data of type D2 with a dichotomous outcome, Y∈{0,1}, and two effect modifiers, {Z1,Z2}. (a) Observations in the covariate space, with symbol shapes and colours denoting outcome (Y) and region (A and B) as indicated in the legend. Dashed lines separate regions with distinct associations. Two example windows are shown, each of size L1,L2=(0.4,0.4) and shifted diagonally by Δ1,Δ2=(0.16,0.16). (b) Omics variables for three selected observations with differing outcomes and/or association type (see legend in panel (a)). Symbols ‘+’ and ‘–’ mark omics variables with X¯m=2.7 and X¯m=1.3 for observations with Y=1 in region B. (c) Clusters in the covariate space identified by ESPClust. Symbols indicate the centres of windows. (d) Effect size for omics variables for each region in the covariate space. (e) Coordinates of the cluster centroids. Error bars in (d) and (e) represent 1.96σ, where σ is the standard deviation of centroid coordinates.
2.3 Insulin resistance data
We used ESPClust to investigate the impact of BMI, sex, and gut microbiome gene richness (i.e. the number of unique microbial genes) on the relationship between serum metabolites and insulin resistance (HOMA-IR) among 275 non-diabetic individuals from the Danish MetaHIT study (Metagenomics of the Human Intestinal Tract | METAHIT | Project | Fact sheet | FP7 | CORDIS | European Commission) (see Supplementary Table S1). Results will be presented for two examples using different metabolomic variables as exposures, as described in (Lynch and Pedersen 2016, Pedersen et al. 2018). We restricted our analysis to known metabolites within these datasets.
2.4 COVID-19 symptoms data
We utilized ESPClust to explore the potential of BMI, sex, and age as modifiers for the association between metabolomic variables collected before COVID-19 infection and the manifestation of COVID-19 symptoms (i.e. symptomatic or asymptomatic).
2.4.1 Study population
Participants were selected from the UK Adult Twin Registry (King's College London) based on the following criteria: they had pre-pandemic metabolomic data available, information on COVID-19 symptom status, and evidence of SARS-CoV-2 infection.
2.4.2 Exposure variables
The metabolite concentrations of fasting blood samples collected before the COVID-19 pandemic were measured with two different platforms that yielded the two metabolic datasets used in this study (see Supplementary Table S2).
The first dataset was obtained through a high-throughput nuclear magnetic resonance (NMR) platform (Soininen et al. 2009, Würtz et al. 2017) by Nightingale Health Ltd, Helsinki, Finland. This platform provides the concentration of over 200 circulating metabolic biomarkers including lipids, fatty acids, amino acids, ketone bodies glycolysis-related metabolites as well as lipoprotein subclass distribution and particle size. Specifically, the first dataset consists of 221 biomarkers obtained from the serum of 680 participants of the TwinsUK cohort study(TwinsUK—The biggest twin registry in the UK for the study of ageing-related diseases).
The second dataset (C19-1) was obtained using an untargeted liquid chromatography-mass spectrometry (LC-MS) procedure conducted by Metabolon, Inc., Durham, North Carolina, USA as previously described (Evans et al. 2014, Shin et al. 2014). Our dataset comprises 774 pre-pandemic serum metabolites obtained from 368 TwinsUK participants.
2.4.3 Outcome variable
The outcome variable giving the symptom status was derived from self-reported symptoms (Bowyer et al. 2023) in TwinsUK COVID-19 questionnaires (Suthahar et al. 2021), administered between July 2020 and February 2022, and serology data (Cheetham et al. 2023). Infected participants were classified into two groups: asymptomatic or symptomatic. Participants were labelled as asymptomatic if they reported that had not had COVID-19 but there was evidence of SARS-CoV-2 infection. In contrast, participants were assumed to be symptomatic if there was evidence of natural infection, reported having had COVID-19 and provided the duration of their symptoms (this was imposed to strengthen the evidence that these patients were symptomatic). Information on symptoms was obtained from three TwinsUK COVID-19 questionnaires (Suthahar et al. 2021) administered in July–August 2020 (Q2), October–November 2020 (Q3), and November 2021–February 2022 (Q4). Evidence of SARS-CoV-2 infection was confirmed through antibody testing conducted around the times of Q2 and Q4. Testing data were supplemented with self-reported vaccination records to ensure accuracy; participants were considered infected if they had a positive anti-Nucleocapsid result at any time or a positive anti-Spike result prior to vaccination (Interim Guidelines for COVID-19 Antibody Testing | CDC).
2.4.4 Missing data and data transformation
Metabolites whose concentration was missing for more than 20% of individuals were discarded. Similarly, individuals who missed more than 20% of the metabolites were also discarded. The remaining missing values for metabolites were imputed using k Nearest Neighbours (Mendez et al. 2019) with .
Sex was encoded as a numerical variable (0 for male and 1 for female); the remaining variables are intrinsically numerical. Metabolites were individually transformed by adding one and applying the natural logarithm function. All variables were individually standardized by subtracting the mean value and dividing by the standard deviation.
3 Results
3.1 Synthetic data
To gain statistical insight, we applied ESPClust to identify clusters in the covariate space across 500 datasets of each type (D1–D3). Windows containing at least observations were used. While the value of is chosen by the analyst, it is essential to select sufficiently large values when dealing with dichotomous outcomes. This ensures that both outcome values are represented within the windows, which is necessary for calculating effect sizes. Effect sizes within windows were estimated using univariate logistic regression.
Table 1 shows a contingency matrix summarising the number of inferred clusters for each type of dataset for a significance level in Step 2.ii of ESPClust.
Datasets D1 were designed to simulate a uniform association across the whole covariate space, where one would expect a single cluster with homogeneous association. ESPClust performed well, identifying one cluster in 457 datasets D1 (91% of cases).
For datasets D2, where two clusters corresponding to regions A and B are expected, ESPClust identified two clusters in 486 of the datasets, representing a 97% frequency. Figure 3c shows the clusters discovered by ESPClust for a dataset of type D2, which approximate the predefined regions A and B indicated in Fig. 3a. The lack of points near the boundaries of the covariate space is due to windows containing fewer than observations.
Notably, the differences in the statistical associations of individual omics variables with the outcome across regions A and B are small, as shown in Fig. 3d by the overlapping effect sizes for most metabolites. Similarly, the centroids of the two clusters show only minor statistical differences (Fig. 3e). Despite these subtle variations, ESPClust successfully identified two distinct clusters. This demonstrates its ability to leverage the ESP rather than relying solely on individual effect sizes, overcoming the limitations of traditional stratification and univariate analysis in such scenarios.
For datasets D3, where three clusters corresponding to regions A, B, and C are expected, ESPClust identified three clusters in 394 simulations (79% of cases, Table 1). While the performance is lower than for datasets D2, it remains impressive given the subtle differences between regions A, B, and C at the level of individual omics variables. Supplementary Figure S1 illustrates the results for a particular dataset of type D3.
These results demonstrate the robustness and accuracy of ESPClust in detecting association clusters across diverse datasets, even when individual-level differences in effect sizes are small or indistinguishable.
To obtain the results presented above, ESPClust calculated the window dimensions and gliding steps ) for each dataset as described in Step 1. To assess the sensitivity of ESPClust to variations in window dimensions and gliding steps, we replicated the analysis presented above while varying them from the baseline values of and ) used in the above analysis.
Halving the gliding steps led ESPClust to identify a single cluster in 391 out of 500 datasets of type D1 (Supplementary Table S3), a decline compared to the 457 cases identified using the baseline parameters (Table 1). Similarly, increasing the window dimensions to while keeping the baseline gliding steps resulted in further deterioration, with only 365 datasets of type D1 correctly identified as having one cluster (Supplementary Table S5).
In contrast, increasing the gliding steps to while maintaining the baseline window dimensions improved performance in terms of D1 datasets, with ESPClust identifying a single cluster in 482 datasets of type D1 (Supplementary Table S4). However, this improvement came at the expense of the ability to correctly identify two or three clusters, which deteriorated significantly compared to the baseline parameters (cf. Supplementary Table S4 and Table 1).
Overall, the baseline parameters provide a good balance, achieving robust accuracy for cases with and without effect modifiers.
3.2 Insulin resistance data
For the first application of ESPClust to insulin resistance data, we used 94 polar metabolites from the Danish MetaHIT study as the exposures (Pedersen et al. 2016). The effect sizes of step 1 in ESPClust were calculated with linear regression for each sex, using windows of size and gliding steps (see grey rectangle in Fig. 4c). Only windows containing more than 10 observations ( ) were considered. Within each window, the effect size for every metabolite was calculated as the slope of a linear regression model, adjusting for both BMI and gene richness.
Application of ESPClust to study the association between insulin resistance and 94 serum metabolites. (a) Example of the effect size within windows for aminomalonic acid and decanoic acid in the covariate space (BMI, sex, gene richness). The error bars in the plots for BMI and gene richness indicate the size of the window used to cover these covariates. (b) Visualization of two clusters with different ESP using the first two principal components of the windows effect sizes. (c) Clusters in the covariate space separately shown for males and females. The symbols indicate the middle point of the windows used to estimate the effect sizes. The size of the window used to calculate effect sizes for fixed sex is shown by a grey rectangle. (d) The left panel shows the coordinates of the cluster centroids corresponding to the 20 metabolites that differ the most between clusters. The error bars indicate 1.96σ, where σ is the standard deviation of the centroid coordinates. The central panel shows the effect size for the same metabolites for two groups of individuals representing the two identified clusters. The third panel shows the same effect sizes as in the second panel but the 95% confidence intervals for the effect sizes are shown with error bars.
Figure 4a shows the dependence of the effect size on each of the covariates for two metabolites which exemplify different levels of heterogeneity: the association between aminomalonic acid and insulin resistance exhibits more pronounced variation with the covariates compared to that of decanoic acid.
ESPClust splits the windows into two clusters (P-value ). This also looks appropriate when projecting the window effect sizes onto the two first principal components (Fig. 4b). Figure 4c shows that Cluster 1 comprises female individuals with high BMI and low gene richness. It cannot be established whether Cluster 1 extends to the region of high BMI and low gene richness for males due to insufficient data in this region for this group.
In Fig. 4d (left), the centroid coordinates corresponding to the 20 metabolites with the most significant differences between clusters are shown. This highlights that, in addition to differing in ESP collectively, distinct clusters also diverge at the level of specific individual metabolites (such as cholesterol or glycine).
Previous studies have suggested that elevated levels of cholesterol are linked with obesity (i.e. high BMI), increased insulin resistance (Mc Auley 2020), and reduced gene richness (Cotillard et al. 2013). Our findings suggest that BMI and insulin resistance may not only confound the association between cholesterol and insulin resistance but also act as effect modifiers, amplifying the positive association in cluster 1 (i.e. among individuals with high BMI and low gene diversity). Similarly, ESPClust indicates that the negative association between glycine levels and insulin resistance (Alves et al. 2019) is moderated by BMI and gene diversity.
To compare the results of ESPClust with traditional univariate methods using stratification, we categorised individuals into two groups representing the clusters identified by ESPClust. Cluster 1 was represented by individuals with BMI 26 kg/m^2^ and gene richness 480 000 (Cotillard et al. 2013, Le Chatelier et al. 2013); cluster 0 was represented by the rest of individuals.
Figure 4d (centre) shows that the effect size for the most distinct metabolites exhibits trends similar to those of the centroid coordinates (Fig. 4d (left)). However, the differences in effect sizes do not achieve statistical significance, as evidenced by the overlap of error bars in Fig. 4d (right). This reinforces the idea illustrated above for synthetic data: ESPClust can identify clusters with varying ESP levels that may not be discernible combining traditional stratification and univariate analysis. Indeed, ESPClust may detect collective differences between effect size profiles that may not be prominent at the level of individual omics variables unless large datasets are used to enhance the power of univariate analysis.
As a second example in the context of insulin resistance, we utilised ESPClust with 289 lipids from the Danish MetaHIT study as exposures (Pedersen et al. 2016). Our findings mirrored those obtained with 94 metabolites. Using gliding windows of the same size and step as in the 94 metabolites dataset, the covariate space was again divided into two clusters, splitting the (BMI, gene richness) space in a similar manner. However, with the 289 lipids dataset, cluster 1—corresponding to individuals with high BMI and low gene richness—extended to higher values of gene richness and included the male subspace (Supplementary Fig. S2a).
The coordinates of the cluster centroids for the lipidomic dataset did not exhibit statistically significant differences between the clusters (Supplementary Fig. S2b). However, there is a noticeably tendency for several triglycerides (e.g. TG(56:5)) to show higher effect sizes within Cluster 1. This aligns with previous studies linking elevated triglyceride levels to obesity, low gene richness, and metabolic disorders such as insulin resistance (Le Chatelier et al. 2013, Agus et al. 2021). Our findings suggest that the positive association between triglycerides and insulin resistance is particularly strengthened in regions characterized by high BMI and low gene richness.
3.3 COVID-19 symptoms data
Since the symptomatic/asymptomatic outcome in the COVID-19 datasets is binary, the potential ESP dependence on BMI, age and sex was estimated through univariate logistic regression within windows that cover the covariate space.
For the first dataset, based on 221 NMR metabolites, we applied ESPClust with a minimum of observations per window. This resulted in window sizes and a gliding step of for each sex, which were grouped into two clusters (Fig. 5). Although the clustering seems reasonable in the PCA plot of Fig. 5a, the differences between the two clusters are not easily interpretable in terms of BMI, age, and sex.
Results obtained by employing EPSClust to investigate the potential role of BMI, sex, and age on the association between COVID-19 symptoms manifestation and serum metabolomics. Panels (a–c) show findings from ESPClust analysis using 221 NMR blood biomarkers as exposures, while panels (d–f) present analogous results obtained using 774 LC-MS blood metabolites. (a, d) Visualisation of the clusters for the ESP, using the first two principal components of the window effect sizes. (b, e) Clusters in the covariate space separately shown for male and female individuals. The symbols indicate the middle point of the windows used to estimate effect sizes. The size of the gliding window used to calculate effect sizes for fixed sex is represented by a grey rectangle in the panel for male individuals. (c, f) Coordinates of the cluster centroids corresponding to the 20 metabolites that differ the most between clusters. The error bars indicate 1.96σ, where σ is the standard deviation of the centroid coordinates.
The coordinates of the cluster centroids overlap, and no individual metabolite exhibits a distinctly different effect size across clusters (Fig. 5c). In this application, the differences between the clusters are therefore linked to the EPS as a whole. Nevertheless, there is a notable trend for several VLDL and LDL ratios to show higher effect sizes in Cluster 1. A larger dataset might lead to a statistically clearer trend in this direction.
For the second metabolomics dataset, which includes 774 LC-MS metabolites, imposing yielded window sizes of and gliding steps of for each sex. ESPClust splits the windows into two clusters in the female subspace (Fig. 5e) which appear reasonable separated in the PCA plot (Fig. 5d). No windows in the male subspace contained sufficient data to estimate the ESP (Fig. 5e).
In terms of age, the split of windows in the female subspace obtained using the 774 LC-MS metabolites (Fig. 5e, right) is more intuitive than that obtained using 221 NMR metabolites (Fig. 5b, right). A possible explanation for the enhanced interpretability is that increasing the number of metabolites enhances the resolution of the dependence of the EPS on the covariates. At the level of individual metabolites, however, significant overlap between clusters persists (Fig. 5f).
4 Discussion
We have introduced ESPClust, a flexible method for unsupervised identification of effect size modifiers in omics association studies. The method expands upon the concept of effect size modification, traditionally related to the association between an exposure-outcome pair, to utilise the information provided by a set of effect sizes for the association of multiple omics variables and an outcome. This collection of effect sizes defines the effect size profile, referred to as ESP. ESPClust finds regions in the covariate space with differing ESP, effectively generalising the effect size modification concept for individual omics variables to the concept of ESP modification.
An ESP modifier may function as an effect modifier for individual omics variables, as demonstrated in our analysis of serum metabolites and insulin resistance. However, ESP modification captures phenomena not discernible at the individual omics level, as shown in our synthetic data or the COVID-19 symptom phenotype analysis.
A crucial step in ESPClust is to decide if there is more than one region in the covariate space with differing ESP, i.e. whether there is evidence supporting the split of ESP windows into more than one cluster. ESPClust uses a test that compares the slope changes of the clustering inertia in the observed data with the changes expected for non-clustered data. We explored the possibility of using the gap statistic instead which is often used to test if the data falls into a single cluster (Tibshirani et al. 2001). However, the gap statistic systematically grows with the number of clusters when applied to our synthetic data and does not allow us to identify a single cluster even for datasets of type D1 with homogeneous association across the whole covariate space (Supplementary Fig. S3).
ESPClust offers considerable potential for advancing personalised medicine by identifying subpopulations with distinct biological responses. By detecting covariate-specific effect size modifications even using relatively small datasets, ESPClust reveals subtle heterogeneities that traditional methods may miss. This ability to tailor interventions based on individual biological profiles can enhance treatment efficacy and precision. Consequently, ESPClust facilitates the development of more personalised healthcare strategies, improving patient outcomes and driving progress in the field of personalised medicine.
Although this paper has focused on omics association studies, ESPClust is very versatile and can be applied well beyond this field. Indeed, it can be applied to any problem involving features used to predict outcomes influenced by effect modifiers, as it excels at identifying context-dependent relationships and clustering features based on shared effect size patterns. By accounting for how moderators shape associations, ESPClust provides a framework to uncover nuanced, subgroup-specific insights that are crucial for understanding complex systems and tailoring interventions across diverse domains.
Supplementary Material
btaf065_Supplementary_Data
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Agus A , Clément K, Sokol H et al Gut microbiota-derived metabolites as central regulators in metabolic disorders. Gut 2021;70:1174–82.33272977 10.1136/gutjnl-2020-323071 PMC 8108286 · doi ↗ · pubmed ↗
- 2Alves A , Bassot A, Bulteau A-L et al Glycine metabolism and its alterations in obesity and metabolic diseases. Nutrients 2019;11:1356–84.31208147 10.3390/nu 11061356 PMC 6627940 · doi ↗ · pubmed ↗
- 3Bovbjerg ML. Foundations of Epidemiology. Corvallis, US: Oregon State University, 2021.
- 4Bowyer RCE, , Huggins C, , Toms R et al Characterising patterns of COVID-19 AND long COVID symptoms: evidence from nine UK longitudinal studies. Eur J Epidemiol 2023;38:199–210. 10.1007/s 10654-022-00962-636680646 PMC 9860244 · doi ↗ · pubmed ↗
- 5Calinski T , Harabasz J. A dendrite method for cluster analysis. Commun Stats Theory Methods 1974;3:1–27.
- 6Ceballos FC , Virseda-Berdices A, Resino S et al Metabolic profiling at COVID-19 onset shows disease severity and sex-specific dysregulation. Front Immunol 2022;13:925558.35844615 10.3389/fimmu.2022.925558 PMC 9280146 · doi ↗ · pubmed ↗
- 7Centers for Disease Control and Prevention. Interim Guidelines for COVID-19 Antibody Testing. https://archive.cdc.gov/www_cdc_gov/coronavirus/2019-ncov/hcp/testing/antibody-tests-guidelines.html (7 December 2024, date last accessed)
- 8Cotillard A , Kennedy SP, Kong LC et al; ANR Micro Obes Consortium. Dietary intervention impact on gut microbial gene richness. Nature 2013;500:585–8.23985875 10.1038/nature 12480 · doi ↗ · pubmed ↗
