RAREMETALWORKER METHOD: Difference between revisions

From Genome Analysis Wiki
Jump to navigationJump to search
No edit summary
Line 3: Line 3:
[[RAREMETALWORKER]] generates single variant association test statistics for a single study prior to meta-analysis. This page provides a brief description of the statistics that  
[[RAREMETALWORKER]] generates single variant association test statistics for a single study prior to meta-analysis. This page provides a brief description of the statistics that  
RAREMETALWORKER calculates, together with key formulae.
RAREMETALWORKER calculates, together with key formulae.
== Modeling Relatedness ==
we use a variance component model to handle familial relationships. In a sample of n individuals, we model the observed phenotype vector (<math>\mathbf{y}</math>) as a sum of covariate effects (specified by a design matrix <math>\mathbf{X}</math> and a vector of covariate effects <math>\boldsymbol{\beta}</math>), additive genetic effects (modeled in vector <math>\mathbf{g}</math>) and non-shared environmental effects (modeled in vector <math>\boldsymbol{\varepsilon}</math>). Thus the null model is:
<math>\mathbf{y}=\mathbf{X}\boldsymbol{\beta} +\mathbf{g}+ \boldsymbol{\varepsilon}</math>
We assume that genetic effects are normally distributed, with mean <math>\mathbf{0}</math> and covariance <math>\mathbf{K}\sigma_g^2</math> where the matrix <math>\mathbf{K}</math> summarizes kinship coefficients between sampled individuals and  <math>\sigma_g^2</math> is a positive scalar describing the genetic contribution to the overall variance. We assume that non-shared environmental effects are normally distributed with mean <math>\mathbf{0}</math> and covariance <math>\mathbf{I}\sigma_e^2</math>, where <math>\mathbf{I}</math> is the identity matrix.
To estimate <math>\mathbf{K}</math>, we either use known pedigree structure to define <math>\mathbf{K}</math> or else use the empirical estimator <math>\mathbf{K}=\frac{1}{l}\sum_{i=1}^l{(G_i-2f_i\mathbf{1})(G_i-2f_i\mathbf{1})\over 4f_i(1-f_i)} </math>,
where <math>l</math> is the count of variants, <math>G_i</math> and <math>f_i</math> are the genotype vector and estimated allele frequency for the <math>i^{th}</math> variant, respectively. Each element in <math>G_i</math> encodes the minor allele count for one individual. Model parameters <math>\hat{\boldsymbol{\beta}}</math>, <math>\hat{\sigma_g^2}</math> and <math>\hat{\sigma_e^2}</math>, are estimated using maximum likelihood and the efficient algorithm described in Lippert et. al. For convenience, let the estimated covariance matrix of <math>\mathbf{y}</math> be <math>\hat{\boldsymbol{\Omega}}=2\hat{\sigma_g^2}\mathbf{K}+\hat{\sigma_e^2}\mathbf{I}</math>.


== Single Variant Score Tests ==
== Single Variant Score Tests ==
Line 35: Line 24:


RAREMETALWORKER also stores the covariance matrices (<math> \mathbf{V} </math>) of the score statistics of markers within a window.
RAREMETALWORKER also stores the covariance matrices (<math> \mathbf{V} </math>) of the score statistics of markers within a window.
== Modeling Relatedness ==
we use a variance component model to handle familial relationships. In a sample of n individuals, we model the observed phenotype vector (<math>\mathbf{y}</math>) as a sum of covariate effects (specified by a design matrix <math>\mathbf{X}</math> and a vector of covariate effects <math>\boldsymbol{\beta}</math>), additive genetic effects (modeled in vector <math>\mathbf{g}</math>) and non-shared environmental effects (modeled in vector <math>\boldsymbol{\varepsilon}</math>). Thus the null model is:
<math>\mathbf{y}=\mathbf{X}\boldsymbol{\beta} +\mathbf{g}+ \boldsymbol{\varepsilon}</math>
We assume that genetic effects are normally distributed, with mean <math>\mathbf{0}</math> and covariance <math>\mathbf{K}\sigma_g^2</math> where the matrix <math>\mathbf{K}</math> summarizes kinship coefficients between sampled individuals and  <math>\sigma_g^2</math> is a positive scalar describing the genetic contribution to the overall variance. We assume that non-shared environmental effects are normally distributed with mean <math>\mathbf{0}</math> and covariance <math>\mathbf{I}\sigma_e^2</math>, where <math>\mathbf{I}</math> is the identity matrix.
To estimate <math>\mathbf{K}</math>, we either use known pedigree structure to define <math>\mathbf{K}</math> or else use the empirical estimator <math>\mathbf{K}=\frac{1}{l}\sum_{i=1}^l{(G_i-2f_i\mathbf{1})(G_i-2f_i\mathbf{1})\over 4f_i(1-f_i)} </math>,
where <math>l</math> is the count of variants, <math>G_i</math> and <math>f_i</math> are the genotype vector and estimated allele frequency for the <math>i^{th}</math> variant, respectively. Each element in <math>G_i</math> encodes the minor allele count for one individual. Model parameters <math>\hat{\boldsymbol{\beta}}</math>, <math>\hat{\sigma_g^2}</math> and <math>\hat{\sigma_e^2}</math>, are estimated using maximum likelihood and the efficient algorithm described in Lippert et. al. For convenience, let the estimated covariance matrix of <math>\mathbf{y}</math> be <math>\hat{\boldsymbol{\Omega}}=2\hat{\sigma_g^2}\mathbf{K}+\hat{\sigma_e^2}\mathbf{I}</math>.


==Chromosome X==
==Chromosome X==


To analyze markers on chromosome X, we fit an extra variance components <math> {{\sigma_g}_X}^2 </math>, to model the variance explained by chromosome X. A kinship for chromosome X, <math> \boldsymbol{K_X} </math>, can be estimated either from a pedigree, or from genotypes of marker from chromosome X. Then the estimated covariance matrix can be written as <math>\hat{\boldsymbol{\Omega}}=2\hat{\sigma_g^2}\mathbf{K}+2\hat{{\sigma_g}_X^2}\mathbf{K_X}+\hat{\sigma_e^2}\mathbf{I}</math>.
To analyze markers on chromosome X, we fit an extra variance components <math> {{\sigma_g}_X}^2 </math>, to model the variance explained by chromosome X. A kinship for chromosome X, <math> \boldsymbol{K_X} </math>, can be estimated either from a pedigree, or from genotypes of marker from chromosome X. Then the estimated covariance matrix can be written as <math>\hat{\boldsymbol{\Omega}}=2\hat{\sigma_g^2}\mathbf{K}+2\hat{{\sigma_g}_X^2}\mathbf{K_X}+\hat{\sigma_e^2}\mathbf{I}</math>.

Revision as of 09:56, 27 March 2014

Brief Introduction

RAREMETALWORKER generates single variant association test statistics for a single study prior to meta-analysis. This page provides a brief description of the statistics that RAREMETALWORKER calculates, together with key formulae.

Single Variant Score Tests

Our single variant association test is the score test using linear mixed model, treating single variants as fixed effects. The alternative model is:

𝐲=𝐗β+γi(G𝐢−G𝐢¯)+𝐠+ε.

In this model, the scalar parameter γi is to measure the additive genetic effect of the ith variant. As usual, the score statistic for testing H0:γi=0 is:

Ui=(G𝐢−Gi¯)TΩ^−1(𝐲−𝐗β)

We further derive the variance-covariance matrix of these statistics as

𝐕=(𝐆−𝐆¯)T(Ω^−1−Ω^−1𝐗(𝐗𝐓Ω^−1𝐗)−1𝐗𝐓Ω^−1)(𝐆−𝐆¯).

Under the null, test statistics Ti=(Ui2)/Vii is asymptotically distributed as chi-squared with one degree of freedom.

Summary Statistics and Covariance Matrices

RAREMETALWORKER automatically stores the score statistics for each marker ( Ui) together with quality information of that marker, including HWE p-value, call rate, and allele counts.

RAREMETALWORKER also stores the covariance matrices (𝐕) of the score statistics of markers within a window.

Modeling Relatedness

we use a variance component model to handle familial relationships. In a sample of n individuals, we model the observed phenotype vector (𝐲) as a sum of covariate effects (specified by a design matrix 𝐗 and a vector of covariate effects β), additive genetic effects (modeled in vector 𝐠) and non-shared environmental effects (modeled in vector ε). Thus the null model is:

𝐲=𝐗β+𝐠+ε


We assume that genetic effects are normally distributed, with mean 𝟎 and covariance 𝐊σg2 where the matrix 𝐊 summarizes kinship coefficients between sampled individuals and σg2 is a positive scalar describing the genetic contribution to the overall variance. We assume that non-shared environmental effects are normally distributed with mean 𝟎 and covariance 𝐈σe2, where 𝐈 is the identity matrix.

To estimate 𝐊, we either use known pedigree structure to define 𝐊 or else use the empirical estimator 𝐊=1l∑i=1l(Gi−2fi𝟏)(Gi−2fi𝟏)4fi(1−fi), where l is the count of variants, Gi and fi are the genotype vector and estimated allele frequency for the ith variant, respectively. Each element in Gi encodes the minor allele count for one individual. Model parameters β^, σg2^ and σe2^, are estimated using maximum likelihood and the efficient algorithm described in Lippert et. al. For convenience, let the estimated covariance matrix of 𝐲 be Ω^=2σg2^𝐊+σe2^𝐈.

Chromosome X

To analyze markers on chromosome X, we fit an extra variance components σgX2, to model the variance explained by chromosome X. A kinship for chromosome X, KX, can be estimated either from a pedigree, or from genotypes of marker from chromosome X. Then the estimated covariance matrix can be written as Ω^=2σg2^𝐊+2σgX2^K𝐗+σe2^𝐈.