RAREMETALWORKER METHOD: Difference between revisions

From Genome Analysis Wiki
Jump to navigationJump to search
Shuang Feng (talk | contribs)
Abought (talk | contribs)
No edit summary
 
(19 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:RAREMETALWORKER]]
==Useful Links==
Here are some useful links to key pages:
* The [[RAREMETALWORKER | '''RAREMETALWORKER documentation''']]
* The [[RAREMETALWORKER_command_reference | '''RAREMETALWORKER command reference''']]
* The [[RAREMETALWORKER_SPECIAL_TOPICS | '''RAREMETALWORKER special topics''']]
* The [[Tutorial:_RAREMETAL | '''RAREMETALWORKER quick start tutorial''']]
* The [[RAREMETAL_method | '''RAREMETAL method''']]
* The [[RAREMETAL_FAQ | '''FAQ''']]
== Brief Introduction==
== Brief Introduction==


Line 10: Line 21:
We use the following notations to describe our methods:
We use the following notations to describe our methods:


<math>\mathbf{y}</math> is the observed phenotype vector
<math>\mathbf{y}</math> is the vector of observed quantitative trait


<math>\mathbf{X}</math> is the design matrix
<math>\mathbf{X}</math> is the design matrix
Line 25: Line 36:


<math>\boldsymbol{\varepsilon}</math> is the non-shared environmental effects
<math>\boldsymbol{\varepsilon}</math> is the non-shared environmental effects
<math> \hat{\boldsymbol{\Omega}} </math> is the estimated covariance matrix of <math>\mathbf{y}</math>
<math>\mathbf{K}</math> is the kinship matrix
<math>\mathbf{K_X}</math> is the kinship matrix of Chromosome X
<math> \sigma_g^2 </math> is the genetic component
<math> {{\sigma_g}_X}^2 </math> is the genetic component for markers on chromosome X
<math>\sigma_e^2 </math> is the non-shared-environment component.


===SINGLE VARIANT SCORE TEST===
===SINGLE VARIANT SCORE TEST===
Line 32: Line 55:
<math> \mathbf{y}=\mathbf{X}\boldsymbol{\beta_c}+\beta_i(\mathbf{G_i}-\bar{\mathbf{G_i}})+\mathbf{g}+\boldsymbol{\varepsilon} </math>.
<math> \mathbf{y}=\mathbf{X}\boldsymbol{\beta_c}+\beta_i(\mathbf{G_i}-\bar{\mathbf{G_i}})+\mathbf{g}+\boldsymbol{\varepsilon} </math>.


Here, [explain the formula].  
Here, the quantitive trait for an individual is a sum of covariate effects, additive genetic effect from the <math> i^{th} </math> variant and the polygenic background effects together with non-shared environmental effect.


In this model, <math>\beta_i</math> is to measure the additive genetic effect of the <math>i^{th}</math> variant. As usual, the score statistic for testing <math>H_0:\beta_i=0</math> is:
In this model, <math>\beta_i</math> is to measure the additive genetic effect of the <math>i^{th}</math> variant. As usual, the score statistic for testing <math>H_0:\beta_i=0</math> is:
Line 44: Line 67:
The score test statistic, <math>T_i=(U_i^2)/V_{ii}</math>,  is asymptotically distributed as chi-squared with one degree of freedom. The score test p-value is reported in RAREMETALWORKER.
The score test statistic, <math>T_i=(U_i^2)/V_{ii}</math>,  is asymptotically distributed as chi-squared with one degree of freedom. The score test p-value is reported in RAREMETALWORKER.


== Summary Statistics and Covariance Matrices==
===SUMMARY STATISTICS AND COVARIANCE MATRICES===


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


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, size of which can be specified through command line.


== Modeling Relatedness ==
=== MODELING RELATEDNESS ===
we use a variance component model to handle familial relationships. The null model is:  
We use a variance component model to handle familial relationships. We estimate the variance components under the null model:  


<math>\mathbf{y}=\mathbf{X}\boldsymbol{\beta} +\mathbf{g}+ \boldsymbol{\varepsilon}</math>
<math>\mathbf{y}=\mathbf{X}\boldsymbol{\beta} +\mathbf{g}+ \boldsymbol{\varepsilon}</math>
Line 64: Line 87:
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 [http://www.nature.com/nmeth/journal/v8/n10/full/nmeth.1681.html Lippert et. al]. For convenience, let the estimated covariance matrix of <math>\mathbf{y}</math> be <math>\hat{\boldsymbol{\Omega}}=\hat{\sigma_g^2}\mathbf{K}+\hat{\sigma_e^2}\mathbf{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 [http://www.nature.com/nmeth/journal/v8/n10/full/nmeth.1681.html Lippert et. al]. For convenience, let the estimated covariance matrix of <math>\mathbf{y}</math> be <math>\hat{\boldsymbol{\Omega}}=\hat{\sigma_g^2}\mathbf{K}+\hat{\sigma_e^2}\mathbf{I}</math>.


==Chromosome X==
===ANALYZING MARKERS ON 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}}=\hat{\sigma_g^2}\mathbf{K}+\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}}=\hat{\sigma_g^2}\mathbf{K}+\hat{{\sigma_g}_X^2}\mathbf{K_X}+\hat{\sigma_e^2}\mathbf{I}</math>.

Latest revision as of 17:49, 16 March 2018

Useful Links

Here are some useful links to key pages:

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.

Key Statistics for Analysis of Single Study

NOTATIONS

We use the following notations to describe our methods:

𝐲 is the vector of observed quantitative trait

𝐗 is the design matrix

G𝐢 is the genotype vector of the ith variant

G𝐢¯ is the vector of average genotype of the ith variant

βc is the vector of covariate effects

βi is the scalar of fixed genetic effect of the ith variant

𝐠 is the random genetic effects

ε is the non-shared environmental effects

Ω^ is the estimated covariance matrix of 𝐲

𝐊 is the kinship matrix

K𝐗 is the kinship matrix of Chromosome X

σg2 is the genetic component

σgX2 is the genetic component for markers on chromosome X

σe2 is the non-shared-environment component.

SINGLE VARIANT SCORE TEST

We used the following model for the trait:

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

Here, the quantitive trait for an individual is a sum of covariate effects, additive genetic effect from the ith variant and the polygenic background effects together with non-shared environmental effect.

In this model, β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)(𝐆𝐆¯).

The score test statistic, Ti=(Ui2)/Vii, is asymptotically distributed as chi-squared with one degree of freedom. The score test p-value is reported in RAREMETALWORKER.

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, size of which can be specified through command line.

MODELING RELATEDNESS

We use a variance component model to handle familial relationships. We estimate the variance components under the null model:

𝐲=𝐗β+𝐠+ε


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

𝐊=1li=1l(Gi2fi𝟏)(Gi2fi𝟏)4fi(1fi),

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 Ω^=σg2^𝐊+σe2^𝐈.

ANALYZING MARKERS ON 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 Ω^=σg2^𝐊+σgX2^K𝐗+σe2^𝐈.