Title: | Robust Marginal Bayesian Variable Selection for Gene-Environment Interactions |
---|---|
Description: | Recently, multiple marginal variable selection methods have been developed and shown to be effective in Gene-Environment interactions studies. We propose a novel marginal Bayesian variable selection method for Gene-Environment interactions studies. In particular, our marginal Bayesian method is robust to data contamination and outliers in the outcome variables. With the incorporation of spike-and-slab priors, we have implemented the Gibbs sampler based on Markov Chain Monte Carlo. The core algorithms of the package have been developed in 'C++'. |
Authors: | Xi Lu [aut, cre], Cen Wu [aut] |
Maintainer: | Xi Lu <[email protected]> |
License: | GPL-2 |
Version: | 0.0.3 |
Built: | 2024-11-20 05:35:03 UTC |
Source: | https://github.com/xilustat/marble |
In this package, we provide a set of robust marginal Bayesian variable selection methods for gene-environment interaction analysis. A Bayesian formulation of the quantile regression has been adopted to accommodate data contamination and heavy-tailed distributions in the response. The proposed method conducts a robust marginal variable selection by accounting for structural sparsity. In particular, the spike-and-slab priors are imposed to identify important main and interaction effects. In addition to the default method, users can also choose different structures (robust or non-robust), methods without spike-and-slab priors.
_PACKAGE
The user friendly, integrated interface marble() allows users to flexibly choose the fitting methods they prefer. There are two arguments in marble() that control the fitting method: robust: whether to use robust methods; sparse: whether to use the spike-and-slab priors to create sparsity. The function marble() returns a marble object that contains the posterior estimates of each coefficients. Moreover, it also provides a rank list of the genetic factors and gene-environment interactions. Functions GxESelection() and print.marble() are implemented for marble objects. GxESelection() takes a marble object and returns the variable selection results.
Lu, X., Fan, K., Ren, J., and Wu, C. (2021). Identifying Gene–Environment Interactions With Robust Marginal Bayesian Variable Selection. Frontiers in Genetics, 12:667074 doi:10.3389/fgene.2021.667074
Ren, J., Zhou, F., Li, X., Ma, S., Jiang, Y. and Wu, C. (2020). Robust Bayesian variable selection for gene-environment interactions. doi:10.1111/biom.13670
Zhou, F., Ren, J., Lu, X., Ma, S. and Wu, C. (2020). Gene–Environment Interaction: a Variable Selection Perspective. Epistasis. Methods in Molecular Biology. Humana Press (Accepted) https://arxiv.org/abs/2003.02930
Wu, C., Cui, Y., and Ma, S. (2014). Integrative analysis of gene–environment interactions under a multi–response partially linear varying coefficient model. Statistics in Medicine, 33(28), 4988–4998 doi:10.1002/sim.6287
Shi, X., Liu, J., Huang, J., Zhou, Y., Xie, Y. and Ma, S. (2014). A penalized robust method for identifying gene–environment interactions. Genetic epidemiology, 38(3), 220-230 doi:10.1002/gepi.21795
Chai, H., Zhang, Q., Jiang, Y., Wang, G., Zhang, S., Ahmed, S. E. and Ma, S. (2017). Identifying gene-environment interactions for prognosis using a robust approach. Econometrics and statistics, 4, 105-120 doi:10.1016/j.ecosta.2016.10.004
Simulated gene expression data for demonstrating the features of marble.
data("dat")
data("dat")
dat consists of four components: X, Y, E, clin.
The data model for generating Y
Use subscript to denote the
th subject. Let
(
) be
independent and identically distributed random vectors.
is a continuous response variable representing the
phenotype.
is the
–dimensional vector of genetic factors. The environmental factors and clinical factors
are denoted as the
-dimensional vector
and the
-dimensional vector
, respectively.
The
follows some heavy-tailed distribution. For
(
), the measurement of the
th genetic factor on the
th subject,
considering the following model:
where is the intercept,
's and
's are the regression coefficients corresponding to effects of environmental and clinical factors, respectively.
The
's and
's are the regression coefficients of the genetic variants and G
E interactions effects, correspondingly.
The G
E interactions effects are defined with
With a slight abuse of notation, denote
Denote
,
,
,
,
.
Then model can be written as
data(dat) dim(X)
data(dat) dim(X)
Variable selection for a marble object
GxESelection(obj, sparse)
GxESelection(obj, sparse)
obj |
marble object. |
sparse |
logical flag. If TRUE, spike-and-slab priors will be used to shrink coefficients of irrelevant covariates to zero exactly. |
For class ‘Sparse’, the inclusion probability is used to indicate the importance of predictors.
Here we use a binary indicator to denote that the membership of the non-spike distribution.
Take the main effect of the
th genetic factor,
, as an example.
Suppose we have collected H posterior samples from MCMC after burn-ins. The
th G factor is included
in the marginal G
E model at the
th MCMC iteration if the corresponding indicator is 1, i.e.,
.
Subsequently, the posterior probability of retaining the
th genetic main effect in the final marginal model is defined as the average of all the indicators for the
th G factor among the H posterior samples.
That is,
A larger posterior inclusion probability of
th indicates a stronger empirical evidence that the
th genetic main effect has a non-zero coefficient, i.e., a stronger association with the phenotypic trait.
Here, we use 0.5 as a cutting-off point. If
, then the
th genetic main effect is included in the final model. Otherwise, the
th genetic main effect is excluded in the final model.
For class ‘NonSparse’, variable selection is based on 95% credible interval.
Please check the references for more details about the variable selection.
an object of class ‘GxESelection’ is returned, which is a list with components:
method |
method used for identifying important effects. |
effects |
a list of indicators of selected effects. |
Lu, X., Fan, K., Ren, J., and Wu, C. (2021). Identifying Gene–Environment Interactions With Robust Marginal Bayesian Variable Selection. Frontiers in Genetics, 12:667074 doi:10.3389/fgene.2021.667074
data(dat) max.steps=5000 ## sparse fit=marble(X, Y, E, clin, max.steps=max.steps) selected=GxESelection(fit,sparse=TRUE) selected ## non-sparse fit=marble(X, Y, E, clin, max.steps=max.steps, sparse=FALSE) selected=GxESelection(fit,sparse=FALSE) selected
data(dat) max.steps=5000 ## sparse fit=marble(X, Y, E, clin, max.steps=max.steps) selected=GxESelection(fit,sparse=TRUE) selected ## non-sparse fit=marble(X, Y, E, clin, max.steps=max.steps, sparse=FALSE) selected=GxESelection(fit,sparse=FALSE) selected
fit a robust Bayesian variable selection model for G×E interactions.
marble( X, Y, E, clin, max.steps = 10000, robust = TRUE, sparse = TRUE, debugging = FALSE )
marble( X, Y, E, clin, max.steps = 10000, robust = TRUE, sparse = TRUE, debugging = FALSE )
X |
the matrix of predictors (genetic factors). Each row should be an observation vector. |
Y |
the continuous response variable. |
E |
a matrix of environmental factors. E will be centered. The interaction terms between X (genetic factors) and E will be automatically created and included in the model. |
clin |
a matrix of clinical variables. Clinical variables are not subject to penalty. Clinical variables will be centered and a column of 1 will be added to the Clinical matrix as the intercept. |
max.steps |
the number of MCMC iterations. |
robust |
logical flag. If TRUE, robust methods will be used. |
sparse |
logical flag. If TRUE, spike-and-slab priors will be used to shrink coefficients of irrelevant covariates to zero exactly. |
debugging |
logical flag. If TRUE, progress will be output to the console and extra information will be returned. |
Consider the data model described in "dat
":
Where is the intercept,
's and
's are the regression coefficients corresponding to effects of environmental and clinical factors.
And
's and
's are the regression coefficients of the genetic variants and G
E interactions effects, correspondingly.
When sparse=TRUE (default), spike–and–slab priors are imposed to identify important main and interaction effects. If sparse=FALSE, Laplacian shrinkage will be used.
When robust=TRUE (default), the distribution of is defined as a Laplace distribution with density
, (
), which leads to a Bayesian formulation of LAD regression. If robust=FALSE,
follows a normal distribution.
Here, a rank list of the main and interaction effects is provided. For method incorporating spike-and-slab priors,
the inclusion probability is used to indicate the importance of predictors.
We use a binary indicator to denote that the membership of the non-spike distribution.
Take the main effect of the
th genetic factor,
, as an example.
Suppose we have collected H posterior samples from MCMC after burn-ins. The
th G factor is included
in the marginal G
E model at the
th MCMC iteration if the corresponding indicator is 1, i.e.,
.
Subsequently, the posterior probability of retaining the
th genetic main effect in the final marginal model is defined as the average of all the indicators for the
th G factor among the H posterior samples.
That is,
A larger posterior inclusion probability
th indicates a stronger empirical evidence that the
th genetic main effect has a non-zero coefficient, i.e., a stronger association with the phenotypic trait.
For method without spike-and-slab priors, variable selection is based on different level of credible intervals.
Both ,
and
will be standardized before the generation of interaction terms to avoid the multicollinearity between main effects and interaction terms.
Please check the references for more details about the prior distributions.
an object of class ‘marble’ is returned, which is a list with component:
posterior |
the posterior samples of coefficients from the MCMC. |
coefficient |
the estimated value of coefficients. |
ranklist |
the rank list of main and interaction effects. |
burn.in |
the total number of burn-ins. |
iterations |
the total number of iterations. |
design |
the design matrix of all effects. |
Lu, X., Fan, K., Ren, J., and Wu, C. (2021). Identifying Gene–Environment Interactions With Robust Marginal Bayesian Variable Selection. Frontiers in Genetics, 12:667074 doi:10.3389/fgene.2021.667074
data(dat) ## default method max.steps=5000 fit=marble(X, Y, E, clin, max.steps=max.steps) ## coefficients of parameters fit$coefficient ## Estimated values of main G effects fit$coefficient$G ## Estimated values of interactions effects fit$coefficient$GE ## Rank list of main G effects and interactions fit$ranklist ## alternative: robust selection fit=marble(X, Y, E, clin, max.steps=max.steps, robust=TRUE, sparse=FALSE) fit$coefficient fit$ranklist ## alternative: non-robust sparse selection fit=marble(X, Y, E, clin, max.steps=max.steps, robust=FALSE, sparse=FALSE) fit$coefficient fit$ranklist
data(dat) ## default method max.steps=5000 fit=marble(X, Y, E, clin, max.steps=max.steps) ## coefficients of parameters fit$coefficient ## Estimated values of main G effects fit$coefficient$G ## Estimated values of interactions effects fit$coefficient$GE ## Rank list of main G effects and interactions fit$ranklist ## alternative: robust selection fit=marble(X, Y, E, clin, max.steps=max.steps, robust=TRUE, sparse=FALSE) fit$coefficient fit$ranklist ## alternative: non-robust sparse selection fit=marble(X, Y, E, clin, max.steps=max.steps, robust=FALSE, sparse=FALSE) fit$coefficient fit$ranklist
Print a summary of a GxESelection object
## S3 method for class 'GxESelection' print(x, digits = max(3, getOption("digits") - 3), ...)
## S3 method for class 'GxESelection' print(x, digits = max(3, getOption("digits") - 3), ...)
x |
GxESelection object. |
digits |
significant digits in printout. |
... |
other print arguments. |
No return value, called for side effects.
Print a summary of a marble object
## S3 method for class 'marble' print(x, digits = max(3, getOption("digits") - 3), ...)
## S3 method for class 'marble' print(x, digits = max(3, getOption("digits") - 3), ...)
x |
marble object. |
digits |
significant digits in printout. |
... |
other print arguments. |
No return value, called for side effects.