sblgwas {sbl} | R Documentation |
Sparse Bayesian Learning for QTL Mapping and Genome-Wide Association Studies
Description
The sparse Bayesian learning (SBL) method for quantitative trait locus (QTL) mapping and genome-wide association studies (GWAS) deals with a linear mixed model. This is also a multiple locus model that includes all markers (random effects) in a single model and detect significant markers simultaneously. SBL method adopts coordinate descent algorithm to update parameters by estimating one parameter at a time conditional on the posterior modes of all other parameters. The parameter estimation process requires multiple iterations and the final estimated parameters take the values when the entire program converges.
Usage
sblgwas(x, y, z, t = -1, max.iter = 200, min.err = 1e-06)
Arguments
x |
a design matrix for fixed effects |
y |
a vector of response variables |
z |
a design matrix for random effects |
t |
a number between [-2,0] to control sparseness of the model, default is -1. |
max.iter |
maximum number of iterations set by user to stop the program, default is 200. |
min.err |
minimum threshold of mean squared error of random effects estimated from the current and the previous iteration to stop the program, default is 1e-6. |
Details
The multiple locus hierarchical linear mixed model of SBL is
where y is an vector of response variables (observations of the trait);
X is an
design matrix for fixed effects;
is a
vector of fixed effect; Z is an
genotype indicator matrix;
is an
vector of marker effects and
is
an
vector of residual errors with an aassumed
distribution. Each marker effect,
for marker k, is treated as a random variable following
distribution, where
is the prior variance. The estimate of
is best linear unbiased prediciton (BLUP). The estimate of
is miximum likelihood estimate (MLE).
Value
iteration |
a matrix storing intermediate results of each iteration before
the entire program converges, including " " " " " |
parm |
a vector containing 5 elements: " " " " " " |
blup |
a matrix containing 4 columns: " " " " " |
Author(s)
Meiyue Wang and Shizhong Xu
Maintainer: Meiyue Wang mwang024@ucr.edu
Examples
# Load example data from sbl package
data(gen)
data(phe)
data(intercept)
# Run sblgwas() to perform association study of example data
# setting t = 0 leads to the most sparse model
fit<-sblgwas(x=intercept, y=phe, z=gen, t=0)
my.blup<-fit$blup
# setting t = -2 leads to the least sparse model
fit<-sblgwas(x=intercept, y=phe, z=gen, t=-2)
my.blup<-fit$blup