Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2025 Sep 26;15:33288. doi: 10.1038/s41598-025-18897-9

Introduction of FixFRM package for gene-based association test and its innovative application to mixture exposure analysis

Xin Peng 1, Haixin Feng 1, Renhuizi Wei 2, Wenqian Ruan 1, Jun Wu 1, Chulan Ou 1, Zhongxin Zhu 1, Linxi He 1, Bingsong Zhang 1,✉
PMCID: PMC12475290  PMID: 41006765

Abstract

Functional regression-based method (FRM) is an efficient and powerful tool for identifying genetic variants associated with complex traits and diseases by jointly considering the effects of multiple variants within a gene, however, no accessible software has been developed to realize the methods in practice. In this paper, we introduce the FixFRM R package that implements FRMs for gene-based tests. It provides a unified framework for quantitative and dichotomous trait analysis with various options for genetic variant and effect estimation. We use the package to identify gene that significantly associated withasthma using data from SNPassoc R package and compare to SKAT and SKAT-O. We further showcase an innovative application of FRMs to mixture exposure analysis using National Health and Nutrition Examination Survey data, modeling the joint effects of multiple environmental exposures by treating exposure levels as “genetic variants”. FRM achieves acceptable performance in the simulation study and obtains similar p-value as weighted quantile sum regression does in real application. The FixFRM package bridges the gap between the theoretical advantages and practical implementation for gene-based tests and mixture exposure analysis. Its user-friendly interface and comprehensive options facilitate powerful screening of genetic and environmental effects on complex traits.

Keywords: Functional regression model, Mixture exposure analysis, Gene-based association test, R packages, Weighted quantile sum regression

Subject terms: Environmental sciences, Statistics

Introduction

Gene-based association tests have gained popularity in recent years as a powerful approach identifying genetic variants associated with complex traits and diseases. Unlike single-variant association tests, gene-based tests consider the joint effects of multiple genetic variants within a gene, which can increase statistical power and reduce multiple testing burden1. Several methods have been proposed for gene-based association tests, including burden tests2, variance-component tests such as the sequence kernel association test (SKAT)1, and combined tests like SKAT-O3. Burden tests are powerful when the genetic variants within a gene have similar effects on the phenotype, but they lose power when the effects are in opposite directions or the majority of the variants are non-causal1. In contrast, variance-component tests like SKAT are more robust to the presence of both risk and protective variants and can maintain power when a large proportion of the variants are non-causal1. However, these methods often assume that the genetic effects are constant across the gene region, which may not be realistic in practice4.

Functional regression-based methods (FRM) have emerged as a promising alternative to traditional gene-based association tests. These methods model the genetic effects as smooth functions of the physical positions of the variants within the gene, allowing for more flexible and biologically plausible assumptions about the genetic architecture5,6. By incorporating functional data analysis techniques, such as basis function expansions and functional principal component analysis7, FRMs can effectively capture the spatial patterns and correlations among the genetic variants.

In this paper, we introduce the FixFRM package, an R package we develop to implements FRM for gene-based association tests. The package provides a unified framework for fitting fixed-effect FRMs with various options for modeling the genetic variant functions (GVFs) and the genetic effect functions (GEFs). Users can choose from different basis function systems, such as B-splines and Fourier basis8, and different estimation methods, such as ordinary linear squares and functional principal component analysis9. The package also supports different types of phenotypes, including quantitative and dichotomous traits, and allows for covariate adjustment and gene-environment interaction testing.

To demonstrate the utility and flexibility of the FixFRM package, we present an example of real data analysis. Mixture exposure analysis aims to assess the joint effects of multiple environmental exposures on health outcomes, which shares some similarities with gene-based association tests in terms of modeling the collective effects of multiple variables10. We apply the FRM to analyze the association between a mixture of seven xenobiotics and obesity using data from the National Health and Nutrition Examination Survey (NHANES)11. By treating the exposure levels of the xenobiotics as “genetic variants” and the physical locations as the order of the exposures, we demonstrate how the functional regression framework can be adapted to model the mixture effects of environmental exposures. We compare the results from the functional regression-based methods with those from generalized linear models and weighted quantile sum regression12 and show that proposed methods can provide more powerful and robust tests for the overall mixture effects.

In summary, this paper introduces the FixFRM package as a comprehensive and user-friendly tool for conducting gene-based association tests using functional regression-based methods. The package offers a range of options for modeling the genetic effects and accommodates different types of phenotypes and study designs. Through a real data analysis example, we demonstrate the benefits and potential of applying these methods to mixture exposure analysis. The FixFRM package is freely available on GitHub and can be easily installed and used by researchers interested in gene-based association tests and related applications.

Methods

Fixed effect generalized linear functional regression models (FRM)

Consider Inline graphic individuals with sequenced data of a genomic region of Inline graphic variants. We assume that the Inline graphic variants are located in a region with ordered physical locations Inline graphic. We assume that each variant’s physical location Inline graphic is known. For simplicity, we normalized the region Inline graphic to be Inline graphic. For the Inline graphicth individual, let Inline graphic denote the trait, which can be either quantitative or dichotomous, Inline graphic denote the genotype of the Inline graphic variants in which Inline graphic is the number of minor alleles of the individual at Inline graphicth variant located at the position Inline graphic, and Inline graphic denote the covariates.

Under the functional regression framework, we denote Inline graphic as the genetic variant function (GVF) for Inline graphicth individual, which is estimated by the Inline graphic discrete realizations Inline graphic of the observed sample. To relate the genetic variant function to the phenotype while adjusting for covariates, we construct the following functional linear model for quantitative trait,

graphic file with name d33e436.gif 1

The model for dichotomous trait is,

graphic file with name d33e444.gif 2

For simplicity, we use Eq. (3) afterward unless otherwise stated for specific purpose,

graphic file with name d33e455.gif 3

in which Inline graphic is identical link for quantitative traits and logit link for dichotomous traits, Inline graphic is the overall mean, Inline graphic is a Inline graphic vector of regression coefficients for covariates, and Inline graphic is genetic effect of genetic variant Inline graphic at location Inline graphic.

Estimation of genetic variant function

To estimate GVF Inline graphic from observed genotype data Inline graphic, we can use either ordinary linear square (OLS) smoother7 or functional principal component analysis (FPCA)13–15, depending on the necessity of smoothness assumption.

Under OLS framework, we consider three commonly used assumptions for minor allele effect in gene-based association studies, which are all discrete realizations of Inline graphic: (1) define Inline graphic for additive effect, (2) define Inline graphic when Inline graphic, and Inline graphic when Inline graphic for dominant effect, (3) define Inline graphic when Inline graphic, and Inline graphic when Inline graphic for recessive effect. Let Inline graphic, be a series of basis functions, Inline graphic denote Inline graphic matrix containing the values Inline graphic where Inline graphic is the variant location. Then GVF Inline graphic can be estimated by

graphic file with name d33e632.gif 4

where Inline graphic is a column vector of basis functions. Corresponding to the three discrete realizations of minor allele effect, Eq. (4) is called additive, dominant, and recessive, respectively. In this paper, we consider two types of basis functions: (1) the B-spline basis Inline graphic, and (2) the Fourier basis Inline graphic and Inline graphic. For the Fourier basis, Inline graphic is a positive odd integer8,16.

The GVF Inline graphic can also be estimated by FPCA techniques. Let Inline graphic be the covariance function of GVF, which can be estimated from observed genotype data Inline graphic as Inline graphic, where Inline graphic is the sample mean at position Inline graphic. Denote the spectral decomposition of Inline graphic by Inline graphic, where Inline graphic are the nondecreasing eigenvalues and Inline graphic are the corresponding orthonormal eigenfunctions. By truncated Karhunen–Loève expansion, the approximation of Inline graphic is

graphic file with name d33e751.gif 5

where Inline graphic is the truncation lag, Inline graphic, and Inline graphic, which can be estimated using observed genotype data.

Revised functional regression model

In model (3), Inline graphic is defined as the genetic effect function (GEF) of genetic variant Inline graphic at position Inline graphic, or the effect of Inline graphic if Inline graphic is substituted by GVF realization at the position. Followed OLS framework, we expand Inline graphic by a series of basis functions Inline graphic as Inline graphic where Inline graphic is a vector of coefficients. Note that the basis functions to expand Inline graphic can be different from the one for GVF. Let Inline graphic, by replacing Inline graphic and Inline graphic by corresponding OLS expansion we can rewrite Eq. (3) as

graphic file with name d33e863.gif 6

.

In Eq. (6), Inline graphic is readily available in existed R packages15. For computation efficiency, Inline graphic when Inline graphic, that is we use the same set of basis function to expand GVF and GEF.

In the case of FPCA, the GEF Inline graphic is expanded by linear spline basis for accessible computation purpose, which is

graphic file with name d33e905.gif 7

where Inline graphic are knots in the interval Inline graphic, Inline graphic is the indication function, i.e., Inline graphic if Inline graphic and 1 if Inline graphic. In this case, we rewrite Inline graphic and Eq. (3) can be simplified as

graphic file with name d33e958.gif 8

where Inline graphic.

In the beta-smooth only case, Eq. (3) is revised as

graphic file with name d33e977.gif 9

The difference between Eqs. (3) and (9) is that the integration term Inline graphic is substituted by summation term Inline graphic, in which no smooth assumption is made for genetic variants. Note that in both cases the GEFs Inline graphic are assumed to be smooth and estimated by OLS or linear spline. Expanding Inline graphicthen Eq. (9) can be revised as

graphic file with name d33e1019.gif 10

By using observed genotype rather than estimating smooth genetic variant function, Eq. (10) is intuitive and straightforward. Additionally, it is computationally efficient and performs similarly compared to Eq. (6) in terms of type I error and power17,18.

In summary, the FRMs consist of two types based on the realization of genetic variant function. Regardless of GVF, genetic effect function Inline graphic is always assumed to be smooth which can be expanded by either OLS smoother or linear spline basis. A detailed comparison of the aforementioned models is shown in Table 1.

Table 1.

Summary of available models based on functional regression framework.

Model Intercept Covariate Genotype
Genetic variants Genetic effect
Beta-smooth only model Inline graphic Inline graphic Inline graphic Inline graphic expanded by OLS smoother
Inline graphic expanded by linear spline basis
Fixed effect model Inline graphic Inline graphic Inline graphic expanded by OLS smoother Inline graphic expanded by OLS smoother
Inline graphic expanded by linear spline basis
FPCA model Inline graphic Inline graphic Inline graphic expanded by functional principal component analysis Inline graphic expanded by OLS smoother
Inline graphic expanded by linear spline basis

Gene–environment interaction model

Gene-environment interaction term can be added to the functional regression association test model. Based on revised Model (6), the interaction model is

graphic file with name d33e1224.gif 11

where Inline graphic is the outer product and Inline graphic is the coefficient of interaction term. Notice that Model (11) assume one general interaction coefficient for computation simplicity.

Statistical test

The goal of gene-based association test is to identify the relationship between genotype and phenotype, typically genetic variant with traits. In Model (3), testing genetic effect is to test the hypothesis Inline graphic versus Inline graphic. By expanding Inline graphic, Model (3) is revised to (6), then the original hypothesis is equivalent to test: Inline graphic versus Inline graphic. In Model (6), Inline graphic can be estimated by maximizing likelihood function and its variance-covariance matrix is estimated by Fisher information as standard multivariate linear regression does. Therefore, we can test he null hypothesis Inline graphic by a Inline graphic-distributed statistic with degree of freedom Inline graphic17. General score test statistic which follows Inline graphic distribution with degree of freedom Inline graphic is accessible, but we use Rao’s efficient score statistics for computation efficiency purpose in this study. Additionally, likelihood ratio test (LRT) statistics with degree of freedom Inline graphic is also available since testing Inline graphic of Model (6) is under nested model framework.

Besides traditional testing statistics, we treat the regression coefficients Inline graphic as a random vector in genetic and genomic statistics. Assume Inline graphic’s are identically, and independently distributed variables follows normal distribution with a mean of zero and variance Inline graphic. Denote Inline graphic the revised genotype data matrix of coefficient Inline graphic. Then, Models (6) and (10) can be viewed as linear-square kernel machine regression with a kernel Inline graphic proposed by Liu et al.18. Under these assumptions, testing genetic effect is equivalent to test the hypothesis Inline graphic versus Inline graphic. A variance-component functional kernel score test below can be used

graphic file with name d33e1385.gif 12

where Inline graphic is a vector of trait values, Inline graphic and Inline graphic are the prediction mean and variance of Inline graphic under the null hypothesis, respectively1,3,21–24. The test statistic Inline graphic follows a mixture Inline graphic distribution which is approximated by a scaled Inline graphic distributed statistics Inline graphic, where Inline graphic is scale parameter and Inline graphic is the degree of freedom23–26.

FixFRM package

functional regression models were extensively validated in prior work through comprehensive simulation studies using COSI coalescent model data across multiple scenarios including rare-only and mixed rare/common causal variants, various effect directions, and sample sizes ranging from 250 to 2000 individuals4,27. In summary, FRMs control type I error rates at preferred levels, Inline graphic-distributed test statistics are more powerful than SKAT-based tests for quantitative traits, while Rao’s efficient score test statistics performs robustly for dichotomous traits. In this section, we will introduce the usage of FixFRM package to conduct functional regression gene-based association test.

The FixFRM package is designed to fit Model (3) to test genetic effect in gene-based studies. Depending on the smoothness assumption of GVF, there are two sets of functions in the package: fixed effect model and beta-smooth only model, corresponding to revised Model (6) and (10), respectively. The typical usage of fixed effect model is.

FLM_fixed_model(pheno, mode = “Additive”, geno, pos, order, bbasis, fbasis, gbasis, covariate, base, interaction = FALSE).

Here pheno, geno, covariate, and pos are arguments for trait information, genotype data, covariates, and physical position of variants, respectively. Detailed explanation and entry requirements are shown in Table 2. The mode argument accepts discrete realization of minor allele effect as mentioned in the Method section, with options including additive, dominant, and recessive. The bbasis, fbasis, gbasis, order, and base arguments specify expansion methods for GVF and GEF (as shown in Table 1). In detail, base is a character value to specify the basis function system to expand both GVF and GEF. When specifying B-spline basis function, the order, bbasis, gbasis arguments are needed to decide the order and number of basis functions in the expansion of GVF and GEF, while only fbasis is needed for Fourier spline expansion cases. The last argument, interaction, is a logical value indicating whether an interaction term is included in the model.

Table 2.

Entries of data structures.

Argument Argument label Data type
pheno A vector of traits Numr
geno A matrix of genotype data only Numr
Numr
covariate A data frame of covariates Numr/Chrt
pos A vector of physical position of each variants in geno Numr

Numr, numeric; Chrt, character.

The beta-smooth model (10) assumes no functional expansion for genetic variants, and therefore only arguments of genetic effect function are needed, as shown below:

FLM_beta_smooth_only(pheno, mode = “Additive”, geno, pos, order, bbasis, covariate, base, interaction = FALSE).

The package has been uploaded to GitHub community, in which there are also functions to fit FPCA functional regression models and generalized functional linear models, example datasets to test the functions, and instructions. The installation process is similar to others general packages uploaded to GitHub, readers who are interested can go to: https://github.com/Peng247/FixFRM.

Application

To demonstrate the practical utility of the FixFRM package for gene-based association testing, we applied our method to analyze genetic variants associated with asthma using data from the SNPassoc R package. This dataset contains genotype information for 1578 individuals across 50 SNPs, with asthma case-control status and covariates including gender, age, and BMI. From the available SNPs, we identified 6 gene regions with sufficient variant coverage and compared the performance of traditional burden tests, SKAT, and the proposed FRM approach using beta-smooth only implementation with B-spline basis functions.

The analysis revealed distinct performance patterns across different genes, with FRM demonstrating higher detection capability in several cases (Table 3). Most notably, FRM identified a significant association between PHF11 and asthma (p = 0.0031), while both burden tests (p = 0.649) and SKAT (p = 0.648) failed to detect this association. This finding is consistent with previous research that identified PHF11 through positional cloning as a quantitative trait locus on chromosome 13q14 influencing immunoglobulin E levels and asthma susceptibility28,29, and subsequent studies linking PHF11 polymorphisms to childhood atopic dermatitis30 and asthma-related traits in Chinese populations31. For NPSR1-AS1, FRM also showed enhanced sensitivity (p = 0.099) compared to burden tests (p = 0.478) and SKAT (p = 0.615). The analysis also illustrated a key limitation of FRM: for SPINK5, which contained only one informative variant among four SNPs (three were monomorphic), FRM could not perform the analysis as the functional regression framework requires multiple variants to estimate smooth effect functions.

Table 3.

Comparison of p-values from gene-based association tests for asthma.

Chromosome Gene Number of SNPs Burden SKAT FRM
2 DPP10 7 0.706 0.774 0.736
5 SPINK5 4 0.554 0.554 –
7 NPSR1-AS1 17 0.478 0.615 0.099
7 NPSR1 20 0.438 0.573 0.14
13 PHF11 8 0.649 0.648 0.0031
20 ADAM33 4 0.247 0.251 0.495

Application to mixture exposure analysis

Model formulation

The application of FRM to mixture exposure analysis represents an innovative extension of gene-based association testing methodology. In mixture exposure studies, we aim to test the joint effects of multiple environmental exposures on health outcomes, which shares conceptual similarities with gene-based association tests in modeling the collective effects of multiple variables.

Model construction

Consider Inline graphic individuals with measured data of a mixture of Inline graphic exposure substances. For the Inline graphic-th individual, let Inline graphic denote the health outcome of interest (quantitative or dichotomous), Inline graphic denote the measured levels of Inline graphic exposures, and Inline graphicdenote the covariates. For mixture exposure analysis, we adapt the functional regression framework by treating exposure levels as analogous to “genetic variants” at fixed positions. The exposures are assigned sequential positions Inline graphic in their natural order as they appear in the dataset, and we normalize the interval to Inline graphicfor computational convenience. The model is constructed as Model 9 and parameter estimation is following Model 10. In this study, we apply FRM for continuous outcomes in mixture exposure research.

Hypothesis test

The primary objective in mixture exposure analysis is to test whether the exposure mixture has any effect on the health outcome. This is to test the hypothesis Inline graphic for all Inline graphic versus Inline graphic for some Inline graphic. Equivalently, using the basis expansion, this becomes Inline graphic versus Inline graphic. If Inline graphic is not rejected, it suggests that Inline graphic, indicating no mixture exposure effect on the outcome. Conversely, rejecting Inline graphic provides evidence for a significant mixture effect. We employ permutation tests to evaluate statistical significance. The permutation testing procedure begins with fitting Model (3) to the original data and calculating the likelihood ratio test statistic Inline graphic. For each permutation Inline graphic, we randomly permute the outcome vector Inline graphic while keeping the exposure matrix Inline graphic and covariate matrix Inline graphic fixed. This preserves the correlation structure among exposures while breaking any association between exposures and outcomes under the null hypothesis. We then fit Model (3) to the permuted data and calculate the test statistic Inline graphic. The permutation p-value is calculated as Inline graphic, where Inline graphicis the indicator function. We typically use Inline graphic permutations to achieve precise p-value estimation with sufficient resolution for standard significance levels.

Simulation study

To evaluate the performance of FRM with permutation testing in mixture exposure analysis, we designed a comprehensive simulation study using realistic exposure correlation structures derived from environmental health data. We utilized the NHANES 2011–2016 dataset as a data pool, which contains measurements of 37 nutrients with complex correlation patterns among 5,960 participants aged 20–60 years. Details about sample selection and summary statistics can be found in Renzetti et al.32.

Type I error rate

For Type I error assessment under the permutation framework, we employed a simulation design that maintains the complex exposure correlation structure while ensuring no true association between exposures and outcomes. We used the original NHANES exposure data with randomly permuted outcomes, ensuring that the null hypothesis of no association is strictly true while preserving the realistic correlation patterns among exposures that could potentially challenge the method’s performance.

We drew random samples of 1000 or 2000 participants from the data pool. For each sample, we applied FRM using age and sex as covariates and all 37 nutrients as mixture exposures. For each dataset, we performed 99 permutations to calculate permutation p-values, balancing computational efficiency with adequate precision. We repeated this entire process 1000 times to obtain robust estimates of empirical Type I error rates. It was calculated as Inline graphic, where Inline graphic is the permutation p-value from the Inline graphic-th replication and Inline graphic is the nominal significance level.

Power

For power evaluation, we generated synthetic outcomes with known mixture effects while preserving the realistic NHANES exposure correlation structure. This approach ensures that power estimates reflect performance under realistic exposure patterns rather than idealized scenarios. The outcome generation model was

graphic file with name d33e1962.gif

where Inline graphic and Inline graphic are continuous and binary covariates, Inline graphic is the set of causal exposures, Inline graphic are exposure effect sizes, and Inline graphic are random errors. Effect patterns included random selection of causal exposures representing 1/2, 1/8, and 1/16 of total exposures, reflecting varying degrees of mixture complexity from sparse effects (where only a few exposures contribute) to dense effects (where most exposures contribute). Effect sizes were calibrated to produce small (R2 = 1/10), medium (R2 = 1/5), and large (R2 = 1/3) mixture effects. Each parameter combination was replicated 1000 times to ensure robust power estimates, resulting in a comprehensive evaluation covering 18 distinct scenarios.

Simulation results

The permutation-based FRM demonstrated conservative and robust Type I error control across all tested scenarios as showed in Table 4. All observed rates remained close to or below the nominal significance level of α = 0.05, with no systematic relationship to sample size or number of basis functions. These results indicate that the permutation-based approach provides reliable and conservative statistical inference, making it a robust choice for mixture exposure analysis.

Table 4.

Simulation results of type I error rate of permutation-based FRM for mixture exposure studies.

Sample size Inline graphic Inline graphic Inline graphic
1000 0.044 0.053 0.042
2000 0.046 0.04 0.051

Inline graphic is the number of basis functions used to expand the genetic effect function in Model 10.

The power simulation results revealed patterns that demonstrate the method’s ability to detect mixture effects under realistic scenarios, which are showed in Fig. 1. For large effects (R2 = 1/3), the method achieved high power across all tested scenarios. Medium effect sizes (R2 = 1/5) demonstrated good to excellent power, with values ranging from 0.612 to 0.925 across different scenarios. The method consistently exceeded the conventional power threshold of 0.80 for medium effects when sample sizes reached 2000 participants and achieved respectable power even with smaller samples of 1000 participants. The increased power observed with lower proportions of causal exposures (moving from 1/16 to 1/2 causal exposures) suggests that the FRM performs better at identifying mixture effects where only a subset of measured exposures contribute meaningfully to the health outcome.

Fig. 1.

Fig. 1

Statistical power by effect size and proportion of causal exposure for different sample size.

Application

To evaluate the impact of mixture exposure of seven xenobiotics (three phthalate metabolites, two phenols, and two pesticides) on obesity, Zhang et al.33 applied generalized linear regression, weighted quantile sum (WQS) regression, and Bayesian kernel machine regression (BKMR) models to analyze the U.S.-based National Health and Nutrition Examination Survey (NHANES) from 2013 to 2014 data. In their study, generalized linear regression was established for single chemical analysis and three chemical substances were found significantly associated with obesity. In WQS regression analysis, the WQS index indicated that the mixture exposure was significantly associated with obesity. In BKMR analysis, the overall effect of mixture was significantly associated with general obesity when all the chemicals were at their 60th percentile or above it, compared to all of them at their 50th percentile.

We follow the same workflow to extract subjects from NHANES 2013–2014 cycle and reanalyze them by using FRM. We treat age, sex (female, male), ethnicity (Hispanic, non-Hispanic white, non-Hispanic black, and others), education levels (lower than high school, high school, some college or AA degree, college graduation, or above), family income-to-poverty ratio (Inline graphic, smoking status (never smoker: < 100 cigarettes in life; former smoker: > 100 cigarettes in life and did not smoke at the time of survey; current smoker: > 100 cigarettes in life and smoked every day or some days at the time of survey), physical activity (< 600, 600–1199, Inline graphic1200 Met min per week), total energy intake (males: < 2000, 2000–3000, >3000 kcal/day; females: < 1600, 1600–2400, >2400 kcal/day), and log-transformed creatinine as covariates, the original value or quartile of the urinary levels of seven chemical substances as “genotype data” by fitting Model (9). The p-values shows significance of the association between the overall exposure effect and obesity.

Table 5 shows that all three methods detected significant associations between the xenobiotic mixture and obesity. GLM yielded a p-value of 0.0078, while WQS regression provided stronger evidence with a p-value of 2.1 × 10− 6. FRM demonstrated the strongest statistical evidence, though we report the p-value as < 10− 6 rather than an exact value. This is because FRM uses permutation testing for statistical inference - even after conducting 106 permutations, we did not observe any permuted likelihood ratio test statistics that exceeded the value calculated from the observed data. This indicates extremely strong evidence against the null hypothesis of no mixture effect, but the permutation-based approach cannot provide a more precise p-value estimate without conducting an impractically large number of additional permutations.

Table 5.

Analysis result of testing the mixture exposure effect on obesity, NHANES, 2013–2014.

GLM WQS FRM
P-value 0.0078 2.1Inline graphic10−6 < 10− 6

GLM, generalized linear model; WQS, weighted quantile sum regression model; FRM, functional regression-based model. Model is adjusted for age, gender, ethnicity, education levels, family income-to-poverty ratio, smoking status, physical activity, total energy intake, and log-transformed creatinine level.

To investigate the impact of exposure ordering, we examined all 5,040 possible orderings of the seven xenobiotics. The minimum F statistic across all orderings was 6.12, while the maximum F statistic under the null distribution (106 permutations) was 1.3. This demonstrates that every possible ordering yields p-values < 10− 6, providing strong evidence that our significant mixture effect finding is robust to exposure arrangement and validating the FRM approach for mixture exposure analysis.

Discussion

In this paper, we introduced the FixFRM package, an R package that implements FRM for gene-based association tests, providing a unified framework for analyzing quantitative and dichotomous traits with various options for modeling genetic variants and effects. The package addresses a critical gap between the theoretical advantages of FRMs and their practical implementation, as no accessible software had been previously developed for these methods despite their demonstrated superior performance over traditional approaches like SKAT and burden tests. Most notably, we present an innovative application of FRMs to mixture exposure analysis, representing the first adaptation of gene-based functional regression methodology to environmental health research. By treating exposure levels as “genetic variants” and applying permutation-based hypothesis testing, we demonstrate how established genetic analysis methods can be extended to address complex environmental health questions involving multiple correlated exposures.

Based on the simulation study results, we provide practical recommendations for implementing FRM in mixture exposure analysis. For study design, we recommend sample sizes of at least 1500 participants for detecting moderate mixture effects, with 2,000 or more participants preferred for optimal statistical power across various scenarios. Regarding methodological specifications, our results demonstrate robust performance with 5 to 9 basis functions, as this provides an appropriate balance between model flexibility and computational efficiency. The method shows conservative Type I error control regardless of sample size or basis function choice, making it a reliable approach for mixture exposure screening in environmental health research.

Despite these promising results, our study has several important limitations. First, the current FRM implementation focuses on hypothesis testing to detect mixture effects rather than quantifying effect sizes or individual exposure contributions, requiring complementary methods for detailed effect estimation. Second, the permutation-based approach can lead to imprecise p-value estimation for very small ones, as demonstrated by our inability to provide exact values beyond p < 10− 6 even after millions of permutations. Additionally, the method assumes mixture effects can be captured through smooth functions, which may not hold for all exposure patterns, and computational requirements increase substantially with high-dimensional exposure data. Another limitation is that the FRM framework cannot be applied to single-variant analysis. Unlike SKAT, which reduces to standard single-variant association tests when only one variant is present, our method fundamentally requires multiple variants to estimate the smooth genetic effect function β(t). The functional regression approach depends on fitting smooth curves across variant positions, which is impossible with a single data point. Finally, the method’s performance with missing data or measurement error also requires further evaluation.

In conclusion, the FixFRM package provides a valuable and accessible implementation of functional regression methods for both gene-based association testing and mixture exposure analysis. The innovative application of FRM to environmental health research demonstrates the potential for cross-disciplinary methodological adaptation, offering researchers a computationally efficient and statistically robust tool for detecting complex mixture effects. While the method has limitations in effect size estimation and p-value precision, it serves as an alternative screening tool for identifying significant mixture associations in environmental epidemiology. The package bridges an important gap between advanced statistical methodology and practical application, facilitating broader adoption of functional regression approaches in genetic and environmental health research.

Acknowledgements

We thank sincerely Dr. Ruzong Fan from Georgetown University, Dr. Chi-yang Chiu from University of Tennessee Health Science Center, and Dr. Shuqi Wang from University of Wisconsin, Madison for their contributions and suggestion to this paper.

Author contributions

X.P. analyzed the mixture exposure data and generated plots of the simulation results. H.X.F. analyzed the genetic data. R.W. collected and cleaned the mixture exposure data. W.R. and J.W. developed and tested the R package. C.O., Z.Z., and L.H. collected and cleaned the genetic data. B.Z. supervised the project, provided resources, and edited the manuscript.

Funding

This work was supported by the PhD Starting Project of Guangdong Medical University (Grant No. GDMUB2022054); the Young Scientists Fund of the National Natural Science Foundation of China (Grant No. 82304253); the Foundation for Young Talents in Higher Education of Guangdong Province (Grant No. 2022KQNCX021).

Data availability

The datasets analyzed during the current study are available in the NHANES, https://www.cdc.gov/nchs/nhanes/index.htm. The data analysis codes of the NHANES Application is also provided as an example to demonstrate the implementation of the package to mixture exposure study.

Declarations

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Xin Peng and Haixin Feng contributed equally to this work.

References

  • 1.Wu, M. C. et al. Rare-variant association testing for sequencing data with the sequence kernel association test. Am. J. Hum. Genet.89, 82–93. 10.1016/j.ajhg.2011.05.029 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Li, B. & Leal, S. M. Methods for detecting associations with rare variants for common diseases: application to analysis of sequence data. Am. J. Hum. Genet.83, 311–321. 10.1016/j.ajhg.2008.06.024 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Lee, S., Wu, M. C. & Lin, X. Optimal tests for rare variant effects in sequencing association studies. Biostatistics. 13, 762–775. 10.1093/biostatistics/kxs014 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Fan, R. et al. Functional linear models for association analysis of quantitative traits. Genet. Epidemiol.37, 726–742. 10.1002/gepi.21757 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Luo, L., Zhu, Y. & Xiong, M. Quantitative trait locus analysis for next-generation sequencing with the functional linear models. J. Med. Genet.49, 513–524. 10.1136/jmedgenet-2012-100798 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Svishcheva, G. R., Belonogova, N. M. & Axenovich, T. I. Region-Based association test for Familial data under functional linear models. PLoS One. 10, e0128999. 10.1371/journal.pone.0128999 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Ramsay, J. O. & Silverman, B. W. Functional Data Analysis, 2nd edn (Springer, 2005).
  • 8.de Boor, C. A Practical Guide to Splines, vol. 27 (Springer, 2001).
  • 9.Yao, F., Müller, H. G. & Wang, J. L. Functional data analysis for sparse longitudinal data. J. Am. Stat. Assoc.100, 577–590. 10.1198/016214504000001745 (2005). [Google Scholar]
  • 10.Carlin, D. J., Rider, C. V., Woychik, R. & Birnbaum, L. S. Unraveling the health effects of environmental mixtures: an NIEHS priority. Environ. Health Perspect.121, A6–8. 10.1289/ehp.1206182 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.CDC. About the national health and nutrition examination survey (2023). https://www.cdc.gov/nchs/nhanes/about_nhanes.htm [DOI] [PMC free article] [PubMed]
  • 12.Carrico, C., Gennings, C., Wheeler, D. C. & Factor-Litvak, P. Characterization of weighted quantile sum regression for highly correlated data in a risk analysis setting. J. Agric. Biol. Environ. Stat.20, 100–120. 10.1007/s13253-014-0180-3 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Goldsmith, J., Bobb, J., Crainiceanu, C. M., Caffo, B. & Reich, D. Penalized functional regression. J. Comput. Graph Stat.20, 830–851. 10.1198/jcgs.2010.10007 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Horváth, L. & Kokoszka, P. Inference for Functional Data with Applications, vol. 200 (Springer Science & Business Media, 2012).
  • 15.Ramsay, J. O., Hooker, G. & Graves, S. Functional Data Analysis with R and MATLAB (Springer USA, 2009).
  • 16.Ferraty, F. & Romain, Y. The Oxford Handbook of Functional Data Analaysis (Oxford University Press, 2011).
  • 17.Fan, R. et al. Functional linear models for association analysis of quantitative traits. Genet. Epidemiol.37 (7), 726–742. 10.1002/gepi.21757 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Fan, R. et al. Generalized functional linear models for gene-based case‐control association studies. Genet. Epidemiol.38, 622–637. 10.1002/gepi.21840 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Weisberg, S. Applied Linear Regression, vol. 528 (Wiley, 2005).
  • 20.Liu, D., Lin, X. & Ghosh, D. Semiparametric regression of multidimensional genetic pathway data: least-squares kernel machines and linear mixed models. Biometrics. 63, 1079–1088. 10.1111/j.1541-0420.2007.00799.x (2007). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Kwee, L. C., Liu, D., Lin, X., Ghosh, D. & Epstein, M. P. A powerful and flexible multilocus association test for quantitative traits. Am. J. Hum. Genet.82, 386–397. 10.1016/j.ajhg.2007.10.010 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Lee, S. et al. Optimal unified approach for rare-variant association testing with application to small-sample case-control whole-exome sequencing studies. Am. J. Hum. Genet.91, 224–237. 10.1016/j.ajhg.2012.06.007 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Liu, D., Ghosh, D. & Lin, X. Estimation and testing for the effect of a genetic pathway on a disease outcome using logistic kernel machine regression via logistic mixed models. BMC Bioinform.9, 292. 10.1186/1471-2105-9-292 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Wu, M. C. et al. Powerful SNP-set analysis for case-control genome-wide association studies. Am. J. Hum. Genet.86, 929–942. 10.1016/j.ajhg.2010.05.002 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Davies, R. B. The distribution of a linear combination of χ2 random variables. J. R. Stat. Soc. Ser. C Appl. Stat.29, 323–333. 10.2307/2346911 (1980). [Google Scholar]
  • 26.Duchesne, P. & De Micheaux, P. L. Computing the distribution of quadratic forms: further comparisons between the Liu–Tang–Zhang approximation and exact methods. Comput. Stat. Data Anal.54, 858–862. 10.1016/j.csda.2009.11.025 (2010). [Google Scholar]
  • 27.Lin, X. Variance component testing in generalised linear models with random effects. Biometrika84, 309–326. 10.1093/biomet/84.2.309 (1997). [Google Scholar]
  • 28.Zhang, Y. et al. Positional cloning of a quantitative trait locus on chromosome 13q14 that influences Immunoglobulin E levels and asthma. Nat. Genet.34(2), 181–186. 10.1038/ng1166 (2003). [DOI] [PubMed]
  • 29.Holt, R. J. et al. Allele-specific transcription of the asthma-associated PHD finger protein 11 gene (PHF11) modulated by octamer-binding transcription factor 1 (Oct-1). J. Allergy Clin. Immunol. 127 (4), 1054–62e1. 10.1016/j.jaci.2010.12.015 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Jang, N. et al. Polymorphisms within the PHF11 gene at chromosome 13q14 are associated with childhood atopic dermatitis. Genes Immun.6 (3), 262–264. 10.1038/sj.gene.6364169 (2005). [DOI] [PubMed] [Google Scholar]
  • 31.Gao, J. et al. Polymorphisms of PHF11 and DPP10 are associated with asthma and related traits in a Chinese population. Respir. Int. Rev. Thorac. Dis. 79 (1), 17–24. 10.1159/000235545 (2010). [DOI] [PubMed] [Google Scholar]
  • 32.Renzetti, S., Gennings, C. & Calza, S. A weighted quantile sum regression with penalized weights and two indices. Front. Public. Health. 11, 1151821. 10.3389/fpubh.2023.1151821 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Zhang, Y. et al. Association between exposure to a mixture of phenols, pesticides, and phthalates and obesity: comparison of three statistical models. Environ. Int.123, 325–336. 10.1016/j.envint.2018.11.076 (2019). [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The datasets analyzed during the current study are available in the NHANES, https://www.cdc.gov/nchs/nhanes/index.htm. The data analysis codes of the NHANES Application is also provided as an example to demonstrate the implementation of the package to mixture exposure study.


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES