Title: | Multi-Trait and Multi-Trial Genome Wide Association Studies |
---|---|
Description: | Fast multi-trait and multi-trail Genome Wide Association Studies (GWAS) following the method described in Zhou and Stephens. (2014), <doi:10.1038/nmeth.2848>. One of a series of statistical genetic packages for streamlining the analysis of typical plant breeding experiments developed by Biometris. |
Authors: | Bart-Jan van Rossum [aut, cre] , Willem Kruijer [aut] , Fred van Eeuwijk [ctb] , Martin Boer [ctb] , Daniela Bustos-Korts [ctb] , Emilie J Millet [ctb] , Joao Paulo [ctb] , Maikel Verouden [ctb] , Ron Wehrens [ctb] , Choazhi Zheng [ctb] |
Maintainer: | Bart-Jan van Rossum <[email protected]> |
License: | GPL-3 |
Version: | 1.0.2 |
Built: | 2024-11-26 06:49:44 UTC |
Source: | CRAN |
A gData
object based on a subset of the DROPS data
set used in the statgenGWAS package. The data is restricted to 3 traits and
10% (just over 4000) of the available markers. For a full description of the
data set see dropsData
.
gDataDropsRestr
gDataDropsRestr
An object of class gData
of length 5.
Millet, E. J., Pommier, C., et al. (2019). A multi-site experiment in a network of European fields for assessing the maize yield response to environmental scenarios - Data set. doi:10.15454/IASSTN
Ganal MW, et al. (2011) A Large Maize (Zea mays L.) SNP Genotyping Array: Development and Germplasm Genotyping, and Genetic Mapping to Compare with the B73 Reference Genome. PLoS ONE 6(12): e28334. doi:10.1371/journal.pone.0028334
runMultiTraitGwas
performs multi-trait or multi-environment Genome
Wide Association mapping on phenotypic and genotypic data contained in a
gData
object.
runMultiTraitGwas( gData, trials = NULL, traits = NULL, covar = NULL, snpCov = NULL, kin = NULL, kinshipMethod = c("astle", "IBS", "vanRaden", "identity"), GLSMethod = c("single", "multi"), estCom = FALSE, useMAF = TRUE, MAF = 0.01, MAC = 10, genomicControl = FALSE, fitVarComp = TRUE, covModel = c("unst", "pw", "fa"), VeDiag = TRUE, maxIter = 2e+05, mG = 1, mE = 1, Vg = NULL, Ve = NULL, thrType = c("bonf", "fixed", "small", "fdr"), alpha = 0.05, LODThr = 4, nSnpLOD = 10, pThr = 0.05, rho = 0.4, sizeInclRegion = 0, minR2 = 0.5, parallel = FALSE, nCores = NULL )
runMultiTraitGwas( gData, trials = NULL, traits = NULL, covar = NULL, snpCov = NULL, kin = NULL, kinshipMethod = c("astle", "IBS", "vanRaden", "identity"), GLSMethod = c("single", "multi"), estCom = FALSE, useMAF = TRUE, MAF = 0.01, MAC = 10, genomicControl = FALSE, fitVarComp = TRUE, covModel = c("unst", "pw", "fa"), VeDiag = TRUE, maxIter = 2e+05, mG = 1, mE = 1, Vg = NULL, Ve = NULL, thrType = c("bonf", "fixed", "small", "fdr"), alpha = 0.05, LODThr = 4, nSnpLOD = 10, pThr = 0.05, rho = 0.4, sizeInclRegion = 0, minR2 = 0.5, parallel = FALSE, nCores = NULL )
gData |
An object of class |
trials |
A vector specifying the environment on which to run GWAS.
This can be either a numeric index or a character name of a list item in
|
traits |
A vector of traits on which to run GWAS. These can be either
numeric indices or character names of columns in |
covar |
An optional vector of covariates taken into account when
running GWAS. These can be either numeric indices or character names of
columns in |
snpCov |
An optional character vector of SNP-names to be included as
covariates. SNP-names should match those used in |
kin |
An optional kinship matrix or list of kinship matrices. These
matrices can be from the |
kinshipMethod |
An optional character indicating the method used for
calculating the kinship matrix(ces). Currently "astle" (Astle and Balding,
2009), "IBS", "vanRaden" (VanRaden, 2008), and "identity" are supported.
If a kinship matrix is supplied either in |
GLSMethod |
A character string indicating the method used to estimate
the marker effects. Either |
estCom |
Should the common SNP-effect model be fitted? If |
useMAF |
Should the minor allele frequency be used for selecting SNPs
for the analysis. If |
MAF |
The minor allele frequency (MAF) threshold used in GWAS. A
numerical value between 0 and 1. SNPs with MAF below this value are not taken
into account in the analysis, i.e. p-values and effect sizes are put to
missing ( |
MAC |
A numerical value. SNPs with minor allele count below this value
are not taken into account for the analysis, i.e. p-values and effect sizes
are set to missing ( |
genomicControl |
Should genomic control correction as in Devlin and Roeder (1999) be applied? |
fitVarComp |
Should the variance components be fitted? If |
covModel |
A character string indicating the covariance model for the
genetic background (Vg) and residual effects (Ve); see details.
Either |
VeDiag |
Should there be environmental correlations if covModel = "unst"
or "pw"? If traits are measured on the same individuals, put |
maxIter |
An integer for the maximum number of iterations. Only used
when |
mG |
An integer. The order of the genetic part of the factor analytic
model. Only used when |
mE |
An integer. The order of the environmental part of the factor
analytic model. Only used when |
Vg |
An optional matrix with genotypic variance components. |
Ve |
An optional matrix with environmental variance components.
|
thrType |
A character string indicating the type of threshold used for
the selection of candidate loci. Either |
alpha |
A numerical value used for calculating the LOD-threshold for
|
LODThr |
A numerical value used as a LOD-threshold when
|
nSnpLOD |
A numerical value indicating the number of SNPs with the
smallest p-values that are selected when |
pThr |
A numerical value just as the cut off value for p-Values for
|
rho |
A numerical value used a the minimum value for SNPs to be
considered correlated when using |
sizeInclRegion |
An integer. Should the results for SNPs close to significant SNPs be included? If so, the size of the region in centimorgan or base pairs. Otherwise 0. |
minR2 |
A numerical value between 0 and 1. Restricts the SNPs included
in the region close to significant SNPs to only those SNPs that are in
sufficient Linkage Disequilibrium (LD) with the significant snp, where LD
is measured in terms of |
parallel |
Should the computation of variance components be done in
parallel? Only used if |
nCores |
A numerical value indicating the number of cores to be used by
the parallel part of the algorithm. If |
An object of class GWAS
.
runMultiTraitGwas estimates the effect of a SNP in different trials or on different traits, one SNP at a time. Genetic and residual covariances are fitted only once, for a model without SNPs. Following the diagonalization scheme of Zhou and Stephens (2014), the following model is fit
where is a
vector of phenotypic values for
genotypes and
traits or trials.
is the
vector of scores for the marker under consideration, and
the
design matrix for the other covariates. By default only a
trait (environment) specific intercept is included. The vector of genetic
background effects
(
) is
Gaussian with zero mean and covariance
, where
is a
matrix of genetic (co)variances, and
an
kinship matrix. Similarly, the residual errors
(
)
have covariance
, for a
matrix
of residual (co)variances.
For each SNP, the null-hypothesis is
tested, using the likelihood ratio test (LRT) described in Zhou and
Stephens (2014). If
estCom = TRUE
, additional tests for a common
effect and for QTL x E are performed, using the parameterization
.
As in Korte et al (2012), we use likelihood ratio tests, but not restricted
to the bivariate case. For the common effect, we fit the reduced
model
, and test if
.
For QTL-by-environment interaction, we test if
.
and
can be provided by the user
(
fitVarComp = FALSE
);
otherwise one of the following models is used, depending on covModel.
If covModel = "unst"
, an unstructured model is assumed, as in Zhou and
Stephens (2014): and
can be any positive-definite matrix,
requiring a total of
parameters per matrix.
If
covModel = "fa"
, a factor-analytic model is fitted using an
EM-algorithm, as in Millet et al (2016). and
are assumed
to be of the form
, where
is a
matrix
of factor loadings and
a diagonal matrix with trait or environment
specific values.
is the order of the model, and the parameters
mG
and mE
specify the order used for respectively
and
.
maxIter
sets the maximum number of iterations used
in the EM-algorithm.
Finally, if covModel = "pw"
, and
are estimated
'pairwise', as in Furlotte and Eskin (2015). Looping over pairs of traits
or trials
,
and
are estimated assuming a bivariate mixed model. The diagonals of
and
are fitted assuming univariate mixed models. If the
resulting
or
is not positive-definite, they are
replaced by the nearest positive-definite matrix.
In case
covModel = "unst"
or "pw"
it is possible to assume
that is diagonal (
VeDiag = TRUE
)
Dahl et al. (2013). Network inference in matrix-variate Gaussian models with non-independent noise. arXiv preprint arXiv:1312.1622.
Furlotte, N.A. and Eskin, E. (2015). Efficient multiple-trait association and estimation of genetic correlation using the matrix-variate linear mixed model. Genetics, May 2015, Vol.200-1, p. 59-68.
Korte et al. (2012). A mixed-model approach for genome-wide association studies of correlated traits in structured populations. Nature Genetics, 44(9), 1066–1071. doi:10.1038/ng.2376
Millet et al. (2016). Genome-wide analysis of yield in Europe: allelic effects as functions of drought and heat scenarios. Plant Physiology, pp.00621.2016. doi:10.1104/pp.16.00621
Thoen et al. (2016). Genetic architecture of plant stress resistance: multi-trait genome-wide association mapping. New Phytologist, 213(3), 1346–1362. doi:10.1111/nph.14220
Zhou, X. and Stephens, M. (2014). Efficient multivariate linear mixed model algorithms for genome-wide association studies. Nature Methods, February 2014, Vol. 11, p. 407–409.
## First create a gData object. ## See the vignette for a detailed description. ## Here we use the gData object included in the package ## Run multi-trait GWAS ## Use a factor analytic model to estimate variance components. mtg0 <- runMultiTraitGwas(gDataDropsRestr, trial = "Mur13W", covModel = "fa") ## Plot the results. ## For details on the different plots see plot.GWAS plot(mtg0, plotType = "qq") plot(mtg0, plotType = "manhattan") plot(mtg0, plotType = "qtl", yThr = 3.5) ## Run multi-trait GWAS ## Use a pairwise model to estimate variance components. ## Estimate common effects and set a fixed threshold for significant SNPs mtg1 <- runMultiTraitGwas(gDataDropsRestr, trial = "Mur13W", covModel = "pw", estCom = TRUE, thrType = "fixed", LODThr = 3) ## Run multi-trait GWAS ## Use an unstructured model to estimate variance components. ## Identify the 5 SNPs with smallest p-values as significant SNPs. ## Compute the kinship matrix using the vanRaden method. mtg2 <- runMultiTraitGwas(gDataDropsRestr, trial = "Mur13W", kinshipMethod = "vanRaden", covModel = "unst", thrType = "small", nSnpLOD = 5)
## First create a gData object. ## See the vignette for a detailed description. ## Here we use the gData object included in the package ## Run multi-trait GWAS ## Use a factor analytic model to estimate variance components. mtg0 <- runMultiTraitGwas(gDataDropsRestr, trial = "Mur13W", covModel = "fa") ## Plot the results. ## For details on the different plots see plot.GWAS plot(mtg0, plotType = "qq") plot(mtg0, plotType = "manhattan") plot(mtg0, plotType = "qtl", yThr = 3.5) ## Run multi-trait GWAS ## Use a pairwise model to estimate variance components. ## Estimate common effects and set a fixed threshold for significant SNPs mtg1 <- runMultiTraitGwas(gDataDropsRestr, trial = "Mur13W", covModel = "pw", estCom = TRUE, thrType = "fixed", LODThr = 3) ## Run multi-trait GWAS ## Use an unstructured model to estimate variance components. ## Identify the 5 SNPs with smallest p-values as significant SNPs. ## Compute the kinship matrix using the vanRaden method. mtg2 <- runMultiTraitGwas(gDataDropsRestr, trial = "Mur13W", kinshipMethod = "vanRaden", covModel = "unst", thrType = "small", nSnpLOD = 5)