Gene set mediation analysis in high-dimensional epigenetic studies Authors: Yuzhao Gao, Nan Qiao, Lin Yang, Yan Liu, Ruiling Fang, Ningning Shen, Yao Zhang, Gang Wang, Yaoping Li, Yuehua Cui Published: 2026 ABSTRACT AbstractMediation analysis has significantly enhanced the elucidation of underlying epigenetic mechanisms by identifying mediators that influence the effect of an exposure on an outcome. In epigenomics research, the exponential increase in the dimensionality of mediators necessitates the development of advanced high-dimensional mediation models. Here we introduce a novel Gene Set High-Dimensional Mediation Analysis (gHDMA) model to understand the gene-level mediation role of DNA methylations, building upon our previous HDMA method. We begin our analysis by applying functional principal component analysis to capture gene variation signals across regions, thereby enhancing the model's statistical power. Following this, we employ the Sure Independence Screening method, based on Wilks' \varLambda-test, to efficiently reduce the dimensionality to a more manageable level, enabling high-dimensional inference. Our model is distinguished by its minimal reliance on stringent assumptions about the relationship between mediators and the outcome. Extensive simulation studies, by varying the type of basis function, the nature of the outcome variable, and the dimensionality of the gene region, demonstrate the robust performance of the gHDMA model. A corroborative case study further validates the methodology's efficacy. The gHDMA model emerges as a powerful analytical tool, with an enhanced capacity to identify genes characterized by hypermethylation or hypomethylation that mediate the effects of exposure on biological outcomes. Introduction Mediation analysis provides a statistical framework for elucidating the mechanisms through which an exposure variable (X) exerts its influence on an outcome variable (Y) via one or more intermediate variables, known as mediators (M). The primary objective is to identify potential mediators and to quantify the extent to which the total effect of X on Y is transmitted through these mediators. Understanding such mediation mechanisms can reveal key biological pathways and inform the development of targeted interventions across diverse scientific domains. Classical mediation analysis assumes a causal pathway of the form X→M→Y [1], where X represents an environmental exposure and Y represents a disease outcome in epidemiological applications. This chain encapsulates how the mediator M transmits the influence of the exposure on disease onset. In epigenetic studies, DNA methylation (DNAm) is one of the most extensively studied epigenetic mechanisms regulating gene expression without altering the underlying DNA sequence. By influencing chromatin accessibility and transcriptional activity, DNAm plays essential roles in embryonic development, cellular differentiation, genomic stability, and tissue-specific gene regulation. Increasing evidence suggests that environmental exposures are associated with alterations in DNAm patterns (X→M), which, in turn, contribute to disease development (M→Y) [2, 3]. Conducting mediation analysis on DNAm data thus enables the construction of mechanistic chains of the form environmental exposure → DNAm pattern → disease outcome. Investigating these changes deepens our understanding of molecular and epigenetic pathways linking the environment to disease risk, thereby advancing our knowledge of the intricate interplay between environmental factors, the genome, and disease pathogenesis. Aberrant DNAm patterns, including gene hypermethylation and hypomethylation, have been implicated in numerous complex diseases through their effects on gene transcriptional regulation. Although such changes do not alter the DNA sequence itself, they can substantially influence gene transcriptional activity, thereby contributing to disease onset. Consequently, the study of DNAm alterations has become central to large-scale analyses of genome-wide methylation data. Despite its biological importance, elucidating the functional role of DNAm remains challenging because genome-wide methylation data are characterized by extremely high dimensionality, strong correlations among neighboring CpG sites, heterogeneous methylation patterns across genomic regions, and substantial inter-individual variability. Together, these features hinder mediator discovery and demand robust statistical methods tailored to high-dimensional methylation data. Early epigenetic mediation studies primarily focused on single-site analyses, testing each CpG site independently to evaluate whether its methylation level mediates the relationship between an exposure and an outcome [4–6]. While single-site mediation analysis has been widely applied to identify potential CpG mediators, it faces several limitations. First, the biological interpretability of individual CpG sites is limited, as genes, rather than isolated CpGs, represent the functional units of inheritance and regulation. Second, DNAm levels at individual sites can be highly variable across populations, leading to instability and poor reproducibility of single-site findings. Third, single-site models fail to account for the correlation structure among neighboring CpG sites, which often exhibit strong spatial and functional dependencies. Fourth, testing tens of thousands of CpGs individually introduces severe multiple testing burdens and low statistical power to detect subtle but biologically meaningful effects. To overcome these challenges, recent studies have extended mediation analysis to multivariate and gene-based frameworks. Several methods have been proposed to model multiple mediators jointly or to perform variable selection among correlated mediators. For instance, lasso-based mediation models (e.g. Ye et al. [7]) apply regularization to select important CpGs from high-dimensional DNAm data. Group lasso formulations (e.g. Jérolon et al. [8]) incorporate group structures (e.g. CpGs within genes) to improve interpretability. Kernel-based approaches (e.g. Fang et al. [9]) have also been proposed to capture nonlinear effects and complex mediation structures. Despite these advances, several challenges remain. First, many variable-selection or penalized regression approaches treat CpG sites as independent features, neglecting their spatial continuity and correlation within genes. Furthermore, kernel and group-lasso methods often require dense and complete data, making them sensitive to missing CpGs or inconsistent site coverage across studies. In addition, these approaches typically aggregate site-level information using linear combinations or average signals, which may not adequately capture nonlinear methylation patterns within gene regions. Finally, although group-Lasso approaches such as Jérolon et al. [8] can accommodate high-dimensional mediation settings, they remain primarily site-level selection procedures, treating individual CpGs as candidate mediators rather than modeling coordinated methylation patterns across CpGs within a gene. Consequently, they are more suited to identifying individual CpG mediators than to quantifying gene-level mediation driven by jointly varying CpG profiles. To address these challenges, we propose a gene set high-dimensional mediation analysis framework (gHDMA) for identifying gene-level DNAm mediators in high-dimensional epigenetic studies. The proposed framework integrates functional principal component analysis (FPCA) with high-dimensional mediation inference to transform correlated CpG methylation profiles within each gene into low-dimensional gene-level representations modeled as smooth functions [10], while preserving the major regional methylation patterns. Compared with existing approaches, gHDMA improves biological interpretability through gene-level mediation inference, accommodates the spatial correlation among neighboring CpG sites via functional modeling, and enhances computational scalability for large-scale methylation studies. Extensive simulation studies and a real DNAm application demonstrate that the proposed framework achieves accurate, computationally efficient, and biologically interpretable gene-level mediation inference, providing an effective tool for investigating epigenetic mechanisms linking environmental exposures to complex diseases. Statistical method The proposed framework aims to identify gene-level mediators that transmit the effect of an exposure variable (X) on an outcome variable (Y) through changes in DNAm. The use of gene-level DNAm data substantially reduces dimensionality compared to site-level analyses; however, the number of genes typically still far exceeds the available sample size. When each gene is considered as a potential mediator, addressing the high dimensionality of gene-level DNAm data becomes essential to ensure both computational feasibility and statistical interpretability. Building upon the foundation of our previous work [4], this model retains the classical mediation structure originally introduced by Baron and Kenny [11], while extending it to accommodate high-dimensional mediators derived from gene-level DNAm features. The methodological design integrates functional data representation, dimensionality reduction, and sparse estimation to model complex mediation pathways in high-dimensional omics data. The overall structure of the mediation model, including the relationships among the exposure, mediator, and outcome variables, is illustrated schematically in Fig. 1. The gene-based mediation model is illustrated in the path diagram, which depicts the total and direct effects of exposure (X) on the outcome (Y), as well as the indirect effect of exposure on outcome mediated by the gene mediator (G). Single arrows denote the hypothesized causal pathways, where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${a}_k$\end{document} is the effect of X on mediator \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${G}_k$\end{document}, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${b}_k$\end{document} is the effect of \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${G}_k$\end{document} on Y, and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${c}_3$\end{document} is the direct effect of X on Y. The total effect \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\left({c}_1\right)$\end{document} is decomposed into the direct effect and the indirect effect. Let X represent an exposure variable, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${G}_i,i=1,2,\cdots, k$\end{document} denote the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $i\textrm{th}$\end{document} gene containing sites \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${m}_i$\end{document}, with Y denoting an outcome variable. Figure 1 illustrates the mediation analysis model with gene-based mediators. Mediators within the same gene region are typically correlated, and properly accounting for this correlation can enhance the power to detect gene-based mediation effects, regardless of whether the genes exhibit minor or major effects. This gene-based mediation analysis framework therefore motivates the development of a model capable of identifying genes that mediate the effects of an exposure on an outcome. Figure 1 presents the gene-based high-dimensional mediation model employed in this study, in which mediators are represented by genes rather than individual CpG sites. Compared with the model proposed in our previous study [4], the present high-dimensional mediation framework aligns more closely with biological interpretability and gene-level inference. The structure of the model is defined as follows: where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${G}_i,i=1,\dots, k$\end{document} represents the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $i\mathrm{th}$\end{document} mediator variable corresponding to the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $i\mathrm{th}$\end{document} gene region. The parameter \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${c}_1$\end{document} denotes the total effect of the exposure variable X on the outcome variable Y, whereas \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${c}_3$\end{document} represents the direct effect of X on Y, adjusted for the effects of all mediators. Model (1) applies to a continuous Y variable and the total mediation effect can be calculated as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${c}_1-{c}_3$\end{document}. For a categorical Y variable, taking the mathematical expectation of both sides of Model (1) yields: which expresses the mediation relationships in terms of expected outcomes. FPCA plays a key role in transitioning the mediator definition from a single CpG site to a gene. FPCA not only aggregates site-level methylation signals within each gene but also reduces dimensionality while retaining biologically meaningful variation. A detailed explanation of this procedure follows. Extracting functional principal components FPCA is a fundamental tool in functional data analysis, widely used for modeling data that exhibit spatial or temporal continuity. In this context, each gene can be regarded as an autonomous region whose constituent CpG sites display spatial dependence along the genomic coordinate. Treating each gene region as a distinct analytical domain, FPCA provides an effective and biologically justifiable approach to extract the principal functional features within each gene region. In this study, we compare two alternative methodologies for extracting informative components from each gene region. The dataset consists of n individuals whose genomes contain N genes. The CpG sites in the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $i\mathrm{th}$\end{document} gene region are ordered as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${s}_{i1}\le{s}_{i2}\dots \le{s}_{i{m}_i}$\end{document}. For individual j=1,2,…, n, let \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${L}_{ij}=\left({L}_{ij}\left({s}_{i1}\right),\dots, {L}_{ij}\left({s}_{i{m}_i}\right)\right)$\end{document} represent the vector of methylation values in the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $i\mathrm{th}$\end{document} gene region. Each element \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${L}_{ij}\left({s}_{ij}\right)$\end{document} is defined as where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\beta}_{ijq}$\end{document} denotes the DNAm β-value, representing the proportion of methylated signal intensity at site q of gene i for individual j. We define a continuous variant function \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${G}_{ij}(s),s\in \left[1,{m}_i\right]$\end{document}, to represent the methylation trajectory of the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $i\mathrm{th}$\end{document} gene for individual j, estimated from the discrete vector \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${L}_{ij}$\end{document}. The collection of n trajectories on the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $i\mathrm{th}$\end{document} gene is treated as n independent realizations of an integrable stochastic process \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\left\{{G}_{ij}(s),s\in \left[1,{m}_i\right]\right\}$\end{document}. We assume that this process has a mean function μ (s) and a covariance function \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\mathrm{\nu} \left(s,l\right),s,l\in \left[1,{m}_i\right]$\end{document}. By Mercer's theorem, the covariance function admits the eigen-decomposition: where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\rho}_k$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\lambda}_k$\end{document} are eigenfunctions and eigenvalues, respectively. According to the Karhunen–Loève theorem, the stochastic process can be represented as: where the coefficients are the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $k\mathrm{th}$\end{document} functional principal components \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $(FPC_s)$\end{document} for the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $j\mathrm{th}$\end{document} trajectory. We retain the first \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $K_i$\end{document} eigenfunctions such that the cumulative proportion of variance explained satisfies ensuring that the selected \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_s$\end{document} capture approximately 85% of the total variability. To estimate each \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${G}_{ij}(s)$\end{document}, we employ typical basis functions, B-splines or Fourier series, to smooth the observed methylation profiles. The number of basis functions depends on the number of CpG sites within each gene and the basis's ability to reproduce the raw data. The \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $K_i$\end{document} FPC scores are then computed by numerical integration: where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\rho}_{ik}(s)$\end{document} denotes the kth eigenfunction. Between the two bases, B-spline fitting offers greater flexibility for capturing the heterogeneous and aperiodic structure of DNAm signals. In contrast, Fourier series are more suited for periodic phenomena and are less effective in modeling non-periodic patterns. Because DNAm signals lack inherent periodicity, we employ B-spline basis functions to achieve adaptive and smooth approximations that accommodate irregular site spacing and heterogeneous variability across gene regions. Each gene region is thus represented by \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${K}_i$\end{document} uncorrelated \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_s$\end{document}, which serve as gene-level summaries of the original methylation profiles. These FPC scores replace raw methylation vectors as new mediators in the subsequent mediation model. We next extend the classical mediation model to incorporate the FPC-based mediators. If the outcome variable Y is continuous, the modified model (corresponding to Models (1)–(2)) is expressed as: And for a categorical outcome variable Y, taking the expectation yields: Here, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\theta}_{2i}$\end{document} denotes the overall mean effect in the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $i\mathrm{th}$\end{document} gene region, h represents different groups and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${a}_{ih}=\left({a}_{i,h=1},{a}_{i,h=2}\right)$\end{document} represents the group-specific mean effect vector in the ith gene. To the best of our knowledge, while high-dimensional mediation analyses have been extensively studied, gene-based functional mediation modeling remains limited. By conceptualizing each gene region as an autonomous functional unit, FPCA effectively reduces intra-gene dimensionality and mitigates multicollinearity among CpG sites. Nonetheless, the number of gene-level mediators still exceeds the sample size, posing a high-dimensional estimation challenge. Because conventional regression approaches cannot reliably estimate or test the coefficients in the third equation of Models (3)–(4), we adopt a high-dimensional inference framework based on de-sparsified Lasso estimators [12]. The following sections provide detailed descriptions of the high-dimensional testing procedures and the methodological implementation of our proposed gHDMA model. Gene-set high-dimensional mediation analysis model The steps and details of the gHDMA model are as follows: Step 1: Extracting information In the first step, FPCA was applied to extract the main information from each gene. The raw dataset was replaced by the corresponding FPC scores for every gene. Details of FPCA implementation are described elsewhere. After this step, we obtained a new dataset that contained only \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_s$\end{document} with no correlation within each gene region. Step 2: Screening key genes To identify genes with strong effects, we applied the Wilks' \varLambda-test to screen a certain number of genes based on the second equation in Model (3) or (4) [13]. This procedure follows the same principle as the sure independence screening (SIS) method proposed by Fan et al. [14]. Unlike SIS, which predefines the number of sites with the largest effects, our approach identifies genes showing the most significant effects in a data-driven manner. The number of retained genes depends on the response variable Y. When Y is continuous, the number of selected genes is \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $d=\left\lceil \frac{2n}{\mathit{\ln}(n)}\right\rceil\ (\left\lceil \cdot\right\rceil$\end{document} is the Ceiling function); when Y is binary, the number of reserved genes is set to one quarter of d. The screening ensures that no true genes are removed under theoretical assumptions. Screening is conducted based on the Wilks' \varLambda-test, where the primary purpose is to obtain the corresponding P-values. The P-values quantify the magnitude of mediation effects from X to \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_i,i=1,\cdots, k$\end{document}. The P-value can be computed as: where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\varLambda}_i=\frac{\left|{\boldsymbol{W}}_{\boldsymbol{i}}\right|}{\left|{\boldsymbol{B}}_{\boldsymbol{i}}+{\boldsymbol{W}}_{\boldsymbol{i}}\right|}$\end{document} is the Wilks’\varLambda statistic, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\boldsymbol{W}}_i={\sum}_{h=1}^2{n}_h\left({\hat{a}}_{ih}-{\hat{\theta}}_{2i}\right)\\{\left({\hat{a}}_{ih}-{\hat{\theta}}_{2i}\right)}^T$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\boldsymbol{B}}_i={\sum}_{h=1}^2{\sum}_{j=1}^{n_h}\left({FPC}_{ij}-{\hat{a}}_{ih}\right){\left({FPC}_{ij}-{\hat{a}}_{ih}\right)}^T$\end{document}. After screening, the number of genes is shrunk from k to d. We subsequently focused our analysis to these d genes to further evaluate their potential mediation effects with the method. Denote the remaining genes after the screening as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_i,i=1,\cdots, d$\end{document}. Step 3: De-sparsified Lasso for computing P-values After screening, we fit the following model: Since the dimension \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $D={\sum}_{i=1}^d{K}_i$\end{document} can still be relatively large after screening, ordinary least squares estimation is still infeasible. We therefore adopt a de-biased (or de-sparsified) estimator suitable for high-dimensional data [11]. Let \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\hat{b}}_{Lasso}$\end{document} denote the Lasso estimator. For a continuous response Y, the de-biased estimator, also called the de-sparsified estimator, is a bias-corrected estimator which is given as where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\hat{b}}_j$\end{document} is the bias-corrected coefficient of the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $j\mathrm{th}\ {FPC}_j$\end{document}; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\hat{b}}_{Lasso,l}$\end{document} is the coefficient of the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $l\mathrm{th}\ {FPC}_l$\end{document}; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${Z}_j$\end{document} is the regularized residuals obtained by \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${Z}_j={FPC}_j-{FPC}_{-j}{\hat{\gamma}}_{Lasso}$\end{document}, where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\hat{\gamma}}_{Lasso}$\end{document} is the regression coefficients obtained based on a Lasso regression by regressing \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_j$\end{document} on all other FPC’s except the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $j\mathrm{th}\ {FPC}_j$\end{document} denoted as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_{-j}$\end{document}. Van de Geer et al. [15] proved the asymptotic normality of the de-sparsified estimate, i.e. where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${b}_j^0$\end{document} represents the true regression coefficient; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\sigma}_{\epsilon }$\end{document} can be calculated by using the scaled Lasso algorithm [16], and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\Omega}_{jj}$\end{document} can be calculated by, Under the null that \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${H}_0 \!\!:{b}_j^0=0$\end{document}, P-values are computed from the asymptotic distribution. For a binary response, van de Geer et al. also proved the asymptotic normality for the de-sparsified estimates. Let \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $W={\left(X, FPC\right)}^T,\boldsymbol{\beta} ={\left({c}_3,\boldsymbol{b}\right)}^T$\end{document}, and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${L}_{\boldsymbol{\beta}}\left(y,W\right)=L\left(y,W\boldsymbol{\beta} \right)$\end{document} be a loss function and define \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\dot{L}}_{\beta }=\frac{\partial }{\partial \beta }{L}_{\beta }$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\ddot{L}}_{\beta }=\frac{\partial^2}{\partial \beta \partial{\beta}^T}{L}_{\beta }$\end{document}, and further define \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\varphi}_L:= {\sum}_{i=1}^nL\left({y}_i,{w_i}^T\boldsymbol{\beta} \right)/n$\end{document}. The Lasso estimator for the mediation coefficients \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\boldsymbol{\beta}$\end{document} is given as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\hat{\boldsymbol{\beta}}=\underset{\boldsymbol{\beta}}{argmin}\left({\varphi}_L+\lambda{\left\Vert \boldsymbol{\beta} \right\Vert}_1\right)$\end{document}, where λ is a tuning parameter. Define \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\hat{\Sigma}:= \varphi{\ddot{L}}_{\hat{\beta}}$\end{document} and construct \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\hat{\Theta}={\hat{\Theta}}_{Lasso}$\end{document} by doing a nodewise Lasso with \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\hat{\Sigma}$\end{document} as input. Then, the de-sparsified Lasso estimator is given as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\overset{\sim }{\boldsymbol{\beta}}:= \hat{\boldsymbol{\beta}}-\hat{\Theta}{\varphi}_{{\dot{L}}_{\hat{\beta}}}$\end{document}. Van de Geer et al. [15] provided a detailed algorithm for computing the de-sparsified Lasso estimators in a generalized linear model framework. They also proved the asymptotic normality of the de-sparsified estimate, i.e. where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\hat{\sigma}}_j^2={\left(\hat{\Theta}{\varphi}_{{\dot{L}}_{\hat{\beta}}{\dot{L}}_{\hat{\beta}}^T}{\hat{\Theta}}^T\right)}_{j,j}$\end{document}. Similarly, we can get a P-value for each FPC based on the asymptotic normality property. Let the P-values for all the D \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_s$\end{document} denoted as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${P}_g=\left({P}_{1,g},{P}_{2,g},\dots, {P}_{D,g}\right)$\end{document}. \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${P}_{j,g}$\end{document} can be calculated as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${P}_{j,g}=2\left\{1-\Phi \left(\frac{\sqrt{n}{\hat{b}}_j}{\sigma_{\epsilon}\sqrt{\Omega_{jj}}}\right)\right\}$\end{document} for a continuous Y or as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${P}_{j,g}=2\left\{1-\Phi \left(\frac{\sqrt{n}{\hat{b}}_j}{{\hat{\sigma}}_j}\right)\right\}$\end{document} for a discrete Y. Step 4: P-value combination within each gene To assess the overall significance of each gene region, we combine the P-values of all \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_s$\end{document} belonging to that region. Let \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${P}_g=\left({P}_{1,g},{P}_{2,g},\dots, {P}_{D,g}\right)$\end{document} denote the vector of P-values for all D \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_s$\end{document} of a given gene. These \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_s$\end{document} are partitioned into d contiguous regions, with the jth region containing \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${K}_j$\end{document} \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_s$\end{document}, such that \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $D={\sum}_{j=1}^d{K}_j$\end{document}. We define \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\left\{P\right\}}_{K_j}$\end{document} as the vector of P-values for the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_s$\end{document} within the jth region: where each vector \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\left\{P\right\}}_{K_j}$\end{document} has length \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${K}_j$\end{document}. Owing to the independence of \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_s$\end{document} within each region, when the number of \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_s$\end{document} in the jth region, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${K}_j\ge 2$\end{document}, the Fisher's combination method is used to calculate the pooled P-value for that region [17]. Specifically, the statistic \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $-2\sum \mathit{\ln}\left({\left\{P\right\}}_{K_j}\right)$\end{document} follows a \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\chi}^2$\end{document} distribution with \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $2{K}_j$\end{document} degrees of freedom, based on which the P-value at the gene level can be obtained; if \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${K}_j=1$\end{document}, then the P-value of unique FPC within that region is directly taken as the P-value for that gene region. Step 5: Joint significance test To determine genes with significant mediation effects, we perform a joint test combining the P-values obtained from Step 2 (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${P}_{i,a}$\end{document}) and Step 4 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\left({P}_{j,g}\right)$\end{document}. The joint test P-value is defined as: A gene is considered to exhibit a significant mediation effect if \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${P}_{t,M}<\alpha$\end{document}, with significance level α =0.05 [18]. Simulation studies Simulation design We conducted extensive simulations to evaluate the performance of the proposed gHDMA model. Datasets were generated according to Model (2), where each gene region represents a multi-site structure. The model was simplified as follows: where the independent variable X was sampled from a binomial distribution, i.e. \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $X\sim B\left(n,0.5\right)$\end{document}, and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_i$\end{document} respresents the functional principal components summarizing gene region information. The functional trajectory G(t) was generated as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $G(t)=\mu (t)+{\sum}_{i=1}^k{\phi}_i^j(t){FPC}_i+\varepsilon, i=1,\dots k;j=1,2$\end{document}, where μ (t) is the mean function, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\phi}_i^j(t)$\end{document} denotes eigenfunctions, and ɛ is random noise. Two types of basis functions were employed: (i) mutually orthogonal and (ii) mutually nonorthogonal. Specifically, and We considered four gene-level scenarios: (i) \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha \ne 0,\beta = 0$\end{document}; (ii) \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha = 0,\beta \ne0$\end{document}; (iii) \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha =0,\beta = 0$\end{document}; and (iv) \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha \ne 0,\beta \ne 0$\end{document}. The first three scenarios assess Type I error control, while the remaining one evaluates power. The parameter configurations were delineated for two cases, corresponding to binary and continuous outcome variables, respectively. Case 1. Binary outcome variable: Case 2. Continuous outcome variable: We further examined different sample sizes (n=200,400) and numbers of sites per gene region (m=50,100,500). In addition, a more representative setting, partial mediation with direct effect \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${c}_3=0.2,$\end{document}was analyzed. Each gene region was simulated as: where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\varepsilon \sim MVN(0,I)$\end{document}. For binary outcomes, And for continuous outcomes, We evaluated the performance of the gHDMA model in terms of false positive control and power and reported the results in Table 1 to Table 4. Each configuration was replicated 1000 times. For each dataset, P-values of \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_s$\end{document} were obtained via multiple linear regression and combined using Fisher's P-value combination method to compute the gene-level P-value. Table 1List of Type I error rates under the three scenarios when the outcome is binary.Scenario n m Basis functionType I error rate \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha \ne 0,\beta =0$\end{document} 20050Orthogonal0.058Nonorthogonal0.058100Orthogonal0.060Nonorthogonal0.054500Orthogonal0.059Nonorthogonal0.05640050Orthogonal0.055Nonorthogonal0.054100Orthogonal0.049Nonorthogonal0.048500Orthogonal0.051Nonorthogonal0.056 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha =0,\beta \ne 0$\end{document} 20050Orthogonal0.039Nonorthogonal0.053100Orthogonal0.044Nonorthogonal0.043500Orthogonal0.039Nonorthogonal0.04640050Orthogonal0.045Nonorthogonal0.048100Orthogonal0.046Nonorthogonal0.048500Orthogonal0.048Nonorthogonal0.049 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha =0,\beta =0$\end{document} 20050Orthogonal0.004Nonorthogonal0.001100Orthogonal0.001Nonorthogonal0.001500Orthogonal0.002Nonorthogonal0.00140050Orthogonal0.003Nonorthogonal0.006100Orthogonal0.002Nonorthogonal0.003500Orthogonal0.002Nonorthogonal0.002 List of Type I error rates under the three scenarios when the outcome is binary. Table 2List of Type I error rates under the three scenarios when the outcome is continuous.Scenario n m Basis functionType I error rate \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha \ne 0,\beta =0$\end{document} 20050Orthogonal0.050Nonorthogonal0.045100Orthogonal0.052Nonorthogonal0.044500Orthogonal0.049Nonorthogonal0.04540050Orthogonal0.042Nonorthogonal0.043100Orthogonal0.047Nonorthogonal0.041500Orthogonal0.046Nonorthogonal0.044 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha =0,\beta \ne 0$\end{document} 20050Orthogonal0.029Nonorthogonal0.034100Orthogonal0.032Nonorthogonal0.033500Orthogonal0.032Nonorthogonal0.03340050Orthogonal0.047Nonorthogonal0.047100Orthogonal0.046Nonorthogonal0.050500Orthogonal0.047Nonorthogonal0.047 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha =0,\beta =0$\end{document} 20050Orthogonal0.002Nonorthogonal0.003100Orthogonal0.003Nonorthogonal0.003500Orthogonal0.002Nonorthogonal0.00240050Orthogonal0.002Nonorthogonal0.002100Orthogonal0.002Nonorthogonal0.002500Orthogonal0.001Nonorthogonal0.002 List of Type I error rates under the three scenarios when the outcome is continuous. Table 3List of power under the scenario when the outcome is binary.Scenario n m Basis functionPower \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha \ne 0,\beta \ne 0$\end{document} 20050Orthogonal0.775Nonorthogonal0.748100Orthogonal0.770Nonorthogonal0.766500Orthogonal0.778Nonorthogonal0.77440050Orthogonal0.965Nonorthogonal0.966100Orthogonal0.969Nonorthogonal0.966500Orthogonal0.971Nonorthogonal0.966 List of power under the scenario when the outcome is binary. Table 4List of power under the scenario when the outcome is continuous.Scenario n m Basis functionPower \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha \ne 0,\beta \ne 0$\end{document} 20050Orthogonal0.670Nonorthogonal0.674100Orthogonal0.689Nonorthogonal0.669500Orthogonal0.681Nonorthogonal0.67740050Orthogonal0.952Nonorthogonal0.966100Orthogonal0.953Nonorthogonal0.963500Orthogonal0.960Nonorthogonal0.963 List of power under the scenario when the outcome is continuous. Simulation results Type I error control There are several patterns observed from Tables 1 and 2. (i) The choice of basis function has a minimal impact on the analysis results. In almost all cases, the use of orthogonal or non-orthogonal basis functions exerts little influence on Type I error control. For instance, in Scenario 1 (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha \ne 0,\beta =0$\end{document}) with a continuous outcome, n=200 and m=50, the empirical Type I error rates are 0.050 for the orthogonal function and 0.045 for the nonorthogonal function, corresponding to a negligible difference of only 0.005. (ii) The Type I error is effectively controlled at the nominal significance level (α =0.05) in most cases. For Scenarios 1 and 2 (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha \ne 0$\end{document} or \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\beta \ne 0$\end{document}), regardless of the sample size n, number of sites m, or the type of basis function, the empirical Type I error rates for both binary and continuous outcomes consistently converge to 0.05. As an illustration, in Table 2 (continuous outcome), the empirical Type I error rates for these two scenarios mostly range from 0.029 to 0.052, which demonstrates satisfactory Type I error control. (iii) The test exhibits conservatism under the global null hypothesis (Scenario 3, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha =0,\beta =0$\end{document}) for both binary and continuous outcomes. This phenomenon can be attributed to the random independence between α =0 and β =0 in this scenario: the nominal Type I error rate is set at 0.05 for both individual tests of α and β, while the test in Model (7) yields a Type I error only when both \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha \ne 0$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\beta \ne 0$\end{document} simultaneously. Under the assumption of independence between the tests for α and β, the theoretically expected Type I error rate of Model (7) should be approximately 0.0025 (i.e. 0.052), and all the Type I error rates align with this theoretical value. Figure 2 assesses the Type I error control of the gHDMA model for a continuous outcome, examining the interplay between sample size (n), the number of sites (m), and the choice of basis function design (Orthogonal vs. Nonorthogonal). Overall, the empirical Type I error rates are well controlled around the nominal 0.05 level across all conditions. The control becomes more precise and stable as the sample size increases from n=200 to n=400, with error rates converging closely to 0.05. Furthermore, the Nonorthogonal design yields marginally more conservative (slightly lower) error rates compared to the Orthogonal design when the number of sites is small (e.g. m=50), but this subtle difference diminishes as m increases to 100 and 500. Figure 3 further evaluates Type I error control by decomposing it into three specific null scenarios (Scenarios 1, 2, and 3). The results demonstrate that the model reliably controls the Type I error near the 0.05 target in Scenarios 1 and 2, where partial null hypotheses are tested. In contrast, under the complete null hypothesis of Scenario 3, the model produces slightly conservative (lower than 0.05) error rates. This pattern is consistent across different sample sizes and numbers of sites. Type I error rates of the gHDMA model for binary outcomes under null-mediation-effect simulation scenarios, across varying sample sizes, numbers of sites, types of basis functions, and scenarios. The top two panels show the Type I error rates for the case \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha \ne 0,\beta =0$\end{document}; the middle two panels display the results for \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha =0,\beta \ne 0$\end{document}; and the bottom two panels present the findings for \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha =0,\beta =0$\end{document}. Type I error rates of the gHDMA model for continuous outcomes under null-mediation-effect simulation scenarios, across varying sample sizes, numbers of sites, types of basis functions, and scenarios. The top two panels show the Type I error rates for the case \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha \ne 0,\beta =0$\end{document}; the middle two panels display the results for \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha =0,\beta \ne 0$\end{document}; and the bottom two panels present the findings for \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\alpha =0,\beta =0$\end{document}. Statistical power Several clear patterns can be observed from Tables 3 and 4. (i) The choice of basis function has a minimal impact on statistical power. Across all combinations of n and m, the power of gHDMA model for orthogonal and nonorthogonal basis functions are remarkably close. The largest observed difference is 0.027 (0.775 vs. 0.748 for binary outcome, n=200, m=50, in Table 3). In most settings, especially with larger sample sizes (n=400), the difference is negligible, often less than 0.01. (ii) Sample size (n) is the dominant factor influencing power. Increasing the n from 200 to 400 leads to a substantial and consistent increase in power for all configurations. For instance, with a binary outcome and m=50 (Table 3), the power of gHDMA model jumps from approximately 0.76–0.78 to over 0.96. A similar dramatic increase is observed for continuous outcomes (Table 4), where power rises from around 0.67–0.69 to over 0.95. (iii) Increasing the m has a very limited effect on the power of gHDMA model, particularly at larger n. When n=200, the power of gHDMA model shows slight fluctuations as m increases from 50 to 500, but without a clear directional trend. When n=400, power stabilizes at a high level, showing only minimal incremental changes (e.g. from 0.965 to 0.971 for orthogonal functions in Table 3). Figure 4 illustrates the statistical power of the gHDMA model for a binary outcome. The results demonstrate that power is strongly dependent on n, showing a major improvement from n=200 to n=400. In contrast, increasing the number of sites within the gene (m) has a negligible effect on power, as values quickly plateau. Figure 5 displays the corresponding power for a continuous outcome. It reveals an identical trend: sample size is the dominant factor for increasing power, while the number of sites (m) and the choice of basis function (orthogonal vs. nonorthogonal) have minimal impact. A direct comparison of the two figures shows that the model achieves slightly higher power for binary outcomes than for continuous outcomes at the smaller sample size (n=200), but both achieve similarly high power (>0.95) when n=400. Power of the gHDMA model for binary outcomes under non-null-mediation-effect simulation scenario, across varying sample sizes, numbers of sites, and types of basis functions. Power of the gHDMA model for continuous outcomes under non-null-mediation-effect simulation scenario, across varying sample sizes, numbers of sites, and types of basis functions. Overall, across all simulation settings, the proposed gHDMA model performs well. Notably, both the power and Type I error rate tend to plateau once the number of sites reaches a sufficiently large value. The conservative behavior observed is expected due to the use of a joint significance test. In Scenarios 1 and 2, one of the effects is set to zero, and the Type I error rates of the gHDMA model remain close to the 0.05 level, with false positives appearing randomly across the 1000 simulation replicates. In Scenario 3, where both effects are set to zero, false positives arise purely by chance during the testing steps. Because of this randomness, the results from the two-step testing procedure are not perfectly synchronized. Consequently, the overall Type I error rate of the gHDMA model is reasonably controlled at approximately 0.0025. Real data analysis We apply the gHDMA model to a real dataset to identify methylation genes that may serve as underlying mediators. DNAm plays a key role in numerous diseases, highlighting the importance of improving our understanding of pathogenic mechanisms [19]. In this analysis, we evaluate the effect of childhood maltreatment on adult depression, mediated by gene-level DNAm. DNAm may represent a biological mechanism through which early traumatic experiences, such as childhood maltreatment, become embedded and influence later-life outcomes [20]. The data were obtained from the Grady Trauma Project (GTP), which recruited African American participants from inner-city Atlanta. The study was approved by the Institutional Review Board of the Emory University School of Medicine and Grady Memorial Hospital [21]. A growing body of research suggests that DNAm serves as a key intermediary linking environmental exposures to the development of depressive disorders. Early-life adversities, particularly childhood maltreatment, have been shown to induce substantial disruptions in biological developmental processes, leading to a wide range of downstream consequences. Epigenetic modifications, with DNAm as a central component, are increasingly recognized as fundamental mechanisms underlying these deviations from typical development [22]. In this study, we apply the proposed methodology to characterize the relationship between childhood maltreatment and adult depression, with particular attention to the mediating role of DNAm at the gene level. The dataset includes baseline demographic information, estimated cell-type composition, and DNAm measurements. Depression status is determined using the Beck Depression Inventory (BDI), a validated psychometric tool used to classify individuals into case and control groups. Participants with current depressive symptoms are defined as cases if their BDI score is ≥14, whereas controls are defined as individuals with a BDI score <14 despite experiencing trauma exposure [20]. We remove observations with missing values and exclude individuals receiving depression treatment, as such treatment may alter DNAm patterns and complicate mediation analyses. After these exclusions, 138 cases and 145 controls remain for analysis. The overall data analysis steps applied to this cohort is depicted in Fig. 6. Analytical workflow for mediation genes identification using the gHDMA model in the GTP datasets. Table 5 summarizes the demographic characteristics of the study population. The age ranges for cases and controls are (18, 70) and (18, 74), respectively. No statistically significant differences are observed across age, sex, or Body Mass Index (BMI); however, the prevalence of moderate-to-extreme childhood sexual/physical abuse (Childhood Maltreatment) is significantly higher in cases than in controls. Since none of the examined clinical variables show significant differences, we do not include additional covariates in the gHDMA model. Table 5Partial list of covariates and their associations with depression case/control status.CovariatesCase(N = 138)Control(N = 145)Total(N = 283) P-value Age Mean(SD)40.19(12.74)41.45(13.47)40.83(13.11).420 Sex \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $n\left(\%\right)$\end{document}Male97(70.29)102(70.34)199(70.32)1.000Female41(29.71)43(29.66)84(29.68) BMI (kg/m2)Mean(SD)32.42(9.27)32.22(7.57)32.32(8.43).846 Childhood sexual/physical abuse moderate to extreme \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $n\left(\%\right)$\end{document}No67(48.55)99(68.28)166(58.66).0012Yes71(51.45)46(31.72)117(37.39) Partial list of covariates and their associations with depression case/control status. Table 6List of significant genes identified by gHDMA model under distinct scenarios.The number of genes retainedThe number of gene identificationsChromosomeGene name P-valueGene biological function \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${d}_1=26$\end{document} 37 WNT2 .0089Regulates hippocampal neurogenesis and plasticity via WNT/β-catenin signaling; its downregulation under stress increases depression susceptibility [23, 28].20 RAE1 .0438Controls mRNA nucleocytoplasmic transport to sustain neuronal plasticity [24, 25].21 RUNX1 .0135Modulates neurogenesis and immune homeostasis via BDNF regulation and neuroinflammation, mediating depression through gene–environment interactions [26, 27]. \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${d}_2=51$\end{document} 57 WNT2 .0092Same as above20 RAE1 .0330Same as above21 RUNX1 .0285Same as above1 VPS13D .0414A key lipid transfer protein regulating mitochondrial homeostasis and autophagy; its dysfunction induces neuronal autophagy arrest and axonal damage, causing motor, cognitive and neuropsychiatric disorders [29, 30].19 EIF3K .0167Core subunit of the EIF3 complex that represses selective mRNA translation, autophagy and apoptosis. Its dysfunction disrupts neurodevelopment, leading to microcephaly and developmental disorders [31, 32]. \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${d}_3=101$\end{document} 107 WNT2 .0096Same as above20 RAE1 .0209Same as above21 RUNX1 .0339Same as above1 VPS13D .0303Same as above19 EIF3K .0096Same as above4 RAB33B .0300A core member of the Rab small G-protein family localized at the Golgi apparatus. It initiates autophagy via direct binding to Atg16L1 to promote autophagosome formation, and its dysfunction causes skeletal dysplasia and neural homeostasis imbalance [33, 34].19 RPS5 .0307A core protein of the 40S small ribosomal subunit that maintains accurate mRNA-tRNA pairing to ensure translational fidelity. Its mutation or epigenetic alteration impairs translation accuracy, reduces cellular stress tolerance and induces abnormal neurodevelopment [35].21 SPATC1L .0380It encodes a centrosome-associated protein sensitive to environmental stress. Its epigenetic dysregulation contributes to PTSD and major depression [36].21 BRWD1 .0146Acts as an epigenetic reader to regulate chromatin remodeling and cell differentiation [37].22 SLC5A1 .0047A sodium–glucose cotransporter mediating glucose absorption and endothelial protection under stress [38]. \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${d}_4=201$\end{document} 167 WNT2 .0116Same as above20 RAE1 .0354Same as above21 RUNX1 .0190Same as above19 EIF3K .0102Same as above4 RAB33B .0190Same as above19 RPS5 .0238Same as above21 SPATC1L .0249Same as above21 BRWD1 .0206Same as above22 SLC5A1 .0033Same as above1 ACBD6 .0417A myristoyl-CoA binding protein that regulates protein N-terminal myristoylation. Its variants cause neurodevelopmental syndromes [39].3 OXSM .0251A rate-limiting enzyme for mitochondrial fatty acid synthesis that modulates OXPHOS and nutrient sensing [40].6 GLP1R .0379GLP-1 receptor exerting anti-inflammatory and protective effects in the nervous and immune systems [41].6 GRM7 .0156A presynaptic metabotropic glutamate receptor that controls synaptic excitability via negative feedback regulation [42].6 RIMKLB .0258NAAG synthetase II that catalyzes the synthesis of the neuropeptide NAAG in the brain [43].11 RBM4 .0151A selective RNA-binding protein that modulates neural differentiation by regulating RNA splicing [44].19 CYP4F11 .0154A cytochrome P450 ω-hydroxylase involved in anti-inflammatory lipid metabolism [45]. List of significant genes identified by gHDMA model under distinct scenarios. Raw methylation beta values from the HumanMethylation450k BeadChip (Illumina) were obtained using the Illumina BeadStudio software. We excluded samples with probe detection call rates <90% or with an average intensity value <50% of the study-wide mean or <2000 arbitrary units (AU). Beta values were logit-transformed to M-values, and 335 669 CpG sites were retained for downstream processing. After mapping CpG sites to annotated genes, we obtained a total of 13 869 genes. Among them, 9535 genes contained at least five CpG sites, and the remaining 4334 genes had fewer than five CpG sites. Functional principal components (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_s$\end{document}) accounting for at least 90% of total variation were extracted for each gene region containing ≥5 CpG sites and were used in place of raw CpG sets in the gHDMA model. By contrast, gene regions with fewer than five CpG sites were directly incorporated into the model using their original methylation values. Readers may refer to https://gradytraumaproject.com/ for additional information on the dataset. The raw data are available for download at: https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE72680. We applied the proposed gene-level mediation analysis to identify genes mediating the effect of childhood maltreatment on adult depression. The mediation model was fitted while adjusting for cell-type composition whenever \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${FPC}_s$\end{document} were included: Using the first regression equation, we estimated the total effect of childhood maltreatment on depression as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\hat{c}}_{Maltreatment}=0.8245$\end{document}(95% CI: [0.344, 1.313]). During the SIS screening step, we retained four different quantities of mediators including \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${d}_i\in \left\{\left\lceil \frac{n}{2\mathit{\ln}(n)}\right\rceil \!, \left\lceil \frac{n}{\mathit{\ln}(n)}\right\rceil \!, \left\lceil \frac{2n}{\mathit{\ln}(n)}\right\rceil \!,\right. \left. \left\lceil \frac{4n}{\mathit{\ln}(n)}\right\rceil \right\} \!,i=1,2,3,4$\end{document} (where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\left\lceil \cdot\right\rceil$\end{document}denotes the ceiling function and n denotes the sample size) to evaluate the robustness of the final results, given our relatively small sample size. We performed SIS filtering and independent mediation analysis under each of the four scenarios. Genes identified across all four settings were retained by taking their intersection, yielding the final set of candidate methylation genes with potential mediation effects. High-dimensional inference was applied to the final regression model. All results are summarized in Table 6. No genes remained significant after controlling the false discovery rate at the 0.05 level; therefore, we report the three robust candidate genes identified from the intersection analysis (as shown in Fig. 7) that reached suggestive significance. Three methylation genes obtained by taking the intersection of results from four SIS screening scenarios for childhood-maltreatment-related adult depression mediation analysis. As shown in Table 6 and Fig. 7, three genes, WNT2, RAE1, and RUNX1, were identified as potential mediators of the effect of childhood maltreatment on adult depression, located on chromosomes 7, 20 and 21, respectively. Several lines of biological evidence support their potential roles. Specifically, WNT2 activates WNT/β-catenin signaling to support hippocampal neurogenesis, and its reduction in the ventral hippocampus drives stress-induced depression-like behaviors [23]. RAE1 is a well-established regulator of mRNA nuclear export, a process dynamically modulated by cells to cope with environmental stress. We posit that this Rae1-dependent mechanism is equally critical for preserving neuronal synaptic plasticity under chronic CNS stress. Dysregulation of this export pathway could impair the synthesis of key synaptic proteins, thereby driving the pathogenesis of adult depression [24, 25]. RUNX1 contributes to the pathogenesis of depression through both central neural plasticity and peripheral immune regulation. In adult hippocampal excitatory neurons, RUNX1 forms a transcriptional complex with CBFβ to maintain protein stability. Loss of this complex impairs BDNF expression, which subsequently disrupts hippocampal neurogenesis—particularly in females—thereby reducing stress resilience and precipitating anxiety- and depression-like behaviors. Furthermore, as a key regulator of myeloid differentiation, RUNX1 has been significantly associated with depression risk in large-scale genetic studies. Its genetic variants exert gene–environment interactions with childhood maltreatment to drive macrophage activation and systemic immune remodeling. Such peripheral-central immune crosstalk induces low-grade neuroinflammation, collectively fueling the pathological progression of depression [26, 27]. Figure 8 presents the line plots of methylation signals for the three gene regions. The gray lines show the M-values for individual samples across each gene region, while the blue lines represent the average methylation trajectories obtained through B-spline functionalization. As illustrated in the figure, the mean methylation patterns for WNT2 exhibit nonlinear trends, whereas those for RAE1 and RUNX1 appear approximately linear. Tracts of methylation signals for the three gene regions, WNT2, RAE1, and RUNX1, identified by the gHDMA model as potential mediators. Each faint trajectory represents the methylation M-values across CpG sites for an individual, and the highlighted line depicts the mean functional trajectory for each gene region. Finally, we employed a conventional site-level mediation analysis to evaluate the individual CpG sites within the gene regions identified by the gHDMA model. As shown in Fig. 9, no significant difference was observed in the mean methylation level (β value) of these regions between the depression case group and the healthy control group. This finding suggests that site-level mediation models may lack the statistical power to detect individual CpG sites with subtle effects on the pathway from childhood maltreatment to adult depressive symptoms. In contrast, the gHDMA model offers a key advantage: by aggregating signals across all sites within a gene region, it can amplify these minor, individually non-significant effects, thereby enabling the detection of mediation at the gene level that remains undetected by single-site approaches. Comparison of regional mean methylation levels between depression cases and healthy controls. The boxplots with overlaid scatter points show the distribution of the mean β value across CpG sites within each of the three candidate gene regions (WNT2, RAE1, and RUNX1) identified by the gHDMA model. No significant differences were observed between the two groups for any of these regions (all P>.05). Having identified candidate gene regions with significant mediation effects via the gHDMA model, we further conducted bioinformatic enrichment analyses to characterize the biological functions of these implicated genes. Enrichment results revealed that differentially expressed genes including WNT2, RAE1, and RUNX1 were markedly enriched in neuron differentiation, midbrain dopaminergic neuron development, and T cell differentiation, alongside the WNT and mTOR signaling cascades (Fig. 10). These functional annotations align closely with the mechanistic roles outlined above. Collectively, these findings implicate WNT2, RAE1, and RUNX1 as key mediators linking childhood maltreatment to adult depression, likely via disrupted neural plasticity, defective nucleocytoplasmic transport, and dysregulated immune-inflammatory responses. Gene Ontology (biological process) and KEGG pathway enrichment analysis for WNT2, RAE1, and RUNX1 genes. The hypothesized multi-step pathological cascade is visualized in Fig. 11. In brief, childhood maltreatment is significantly coupled with DNAm changes in WNT2, RAE1, and RUNX1. Disturbance of these genes converges to trigger disrupted neural plasticity, dysregulated immune-inflammatory responses, and impaired nucleocytoplasmic mRNA transport, collectively raising susceptibility to adult depression. Proposed epigenetic mechanism linking childhood maltreatment to adult depression via WNT2, RAE1, and RUNX1. Discussion Mediation analysis has become an important methodological tool for elucidating the mechanisms underlying complex diseases. As high-throughput omics technologies continue to advance, high-dimensional mediation analysis has increasingly turned toward identifying biologically meaningful mediators and quantifying their contributions to disease outcomes [4, 5]. From a biological standpoint, genes offer stable and interpretable functional units; gene-level analysis may therefore offer greater biological interpretability and generalizability than analyses at the level of individual CpG sites. In this study, we combined FPCA-based extraction of gene-region DNAm features, SIS screening based on Wilks’ \varLambda-test, de-sparsified Lasso inference, Fisher's P-value combination, and joint significance test to build a gene-level high-dimensional mediation analysis framework. The approach summarizes correlated methylation patterns within gene regions and substantially reduces the dimensionality entering downstream inference. FPCA efficiently captures heterogeneous methylation patterns within gene regions, especially when CpG sites are unevenly spaced or partially missing. By retaining the dominant functional variation, it yields a small number of informative components for subsequent mediation analysis. Our simulations—covering different basis functions, dimensional settings, and both continuous and binary outcomes—showed that the proposed framework maintains satisfactory performance across a wide range of scenarios. However, FPCA can dilute weak, highly localized methylation signals that contribute little to overall regional variation. Moreover, the quality of the functional representation depends on choices of basis functions, knot locations, and smoothing parameters. While our simulations suggest limited sensitivity to these choices, more adaptive, data-driven functional representations could further improve robustness in real methylation datasets. When applied to the GTP cohort, the framework identified gene regions whose methylation patterns may mediate the link between childhood maltreatment and adult depression. These findings offer potential molecular insight into how early-life environmental exposures shape later disease outcomes through epigenetic mechanisms. Still, the identified signals should be viewed as statistical mediation associations rather than definitive causal effects, because residual or unmeasured confounding among exposure, mediators, and outcome cannot be fully ruled out. Future work incorporating causal mediation methods, sensitivity analyses, or independent biological validation will help strengthen any causal interpretation of these results. Several methodological limitations deserve mention. Although FPCA, SIS screening based on Wilks'\varLambda-test, and de-sparsified Lasso are each well-established on their own, combining them creates a hierarchical inferential procedure that extends beyond the theoretical guarantees of the original de-sparsified Lasso framework. In particular, the impact of functional truncation and screening on downstream inference has not yet been fully characterized theoretically. Our simulation studies provided empirical evidence of reasonable Type I error control and statistical power, but developing rigorous asymptotic theory for the entire pipeline remains an important avenue for future research. Finally, the current framework treats gene regions as the primary mediation units and does not explicitly model interactions among multiple mediator genes. Such gene–gene interactions likely play important roles in complex disease mechanisms, but incorporating all pairwise interactions would cause a massive jump in dimensionality. For instance, in our GTP cohort analysis, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${n}_1=13\ 869$\end{document} mediator genes were retained after quality control, yielding \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${n_1 \choose 2}=\frac{n_1\left({n}_1-1\right)}{2}\approx 9.6168\times{10}^7$\end{document} pairwise interaction terms. Designing computationally efficient strategies to accommodate gene–gene and possibly multi-omics interactions is therefore a key direction for future work. Overall, gHDMA offers a scalable, biologically interpretable framework for gene-level high-dimensional mediation analysis while pointing to several opportunities for further methodological development. Key Points We propose a novel gene set high-dimensional mediation analysis model (gHDMA), aiming to explore DNA methylation's mediating role between environmental exposure and disease outcomes at the gene level, which addresses the limitations of single-site CpG analysis (poor biological interpretability and low statistical power). We propose a novel gene set high-dimensional mediation analysis model (gHDMA), aiming to explore DNA methylation's mediating role between environmental exposure and disease outcomes at the gene level, which addresses the limitations of single-site CpG analysis (poor biological interpretability and low statistical power). Integrating functional principal component analysis, SIS screening based on Wilks' \varLambda-test, de-sparsified Lasso, Fisher's P-value combination, and joint significance test, gHDMA identifies methylated genes with potential mediating effects, featuring high statistical power and robust performance. Integrating functional principal component analysis, SIS screening based on Wilks' \varLambda-test, de-sparsified Lasso, Fisher's P-value combination, and joint significance test, gHDMA identifies methylated genes with potential mediating effects, featuring high statistical power and robust performance. Compared with existing methods, gHDMA has advantages in enhanced gene-level biological interpretability, explicit modeling of CpG spatial correlation, robustness to data sparsity, and higher power in detecting weak gene-level mediating effects. Compared with existing methods, gHDMA has advantages in enhanced gene-level biological interpretability, explicit modeling of CpG spatial correlation, robustness to data sparsity, and higher power in detecting weak gene-level mediating effects.