<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://genome.sph.umich.edu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Saichen</id>
	<title>Genome Analysis Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://genome.sph.umich.edu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Saichen"/>
	<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/wiki/Special:Contributions/Saichen"/>
	<updated>2026-09-24T06:47:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=File:Raremetal.4.13.6.tar.gz&amp;diff=14815</id>
		<title>File:Raremetal.4.13.6.tar.gz</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=File:Raremetal.4.13.6.tar.gz&amp;diff=14815"/>
		<updated>2017-07-13T17:03:04Z</updated>

		<summary type="html">&lt;p&gt;Saichen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14814</id>
		<title>RAREMETAL DOWNLOAD &amp; BUILD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14814"/>
		<updated>2017-07-13T17:01:39Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* OLD VERSIONS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL FAQ | &#039;&#039;&#039;FAQ&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Change_Log | &#039;&#039;&#039;Change Log&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Where to Download ==&lt;br /&gt;
&lt;br /&gt;
* University of Michigan CSG users can go to the following:&lt;br /&gt;
  /net/wonderland/home/saichen/Raremetal/&lt;br /&gt;
&lt;br /&gt;
===GIT HUB===&lt;br /&gt;
&lt;br /&gt;
Please clone or download from GitHub:&lt;br /&gt;
&lt;br /&gt;
 https://github.com/traxexx/Raremetal&lt;br /&gt;
&lt;br /&gt;
Since v4.13.6, MAC and WINDOWS version are no longer updated. Please download old versions from here:&lt;br /&gt;
&lt;br /&gt;
* [[Media:MAC_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for MAC OS X&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:CYGWIN64_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/CygWin64&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:MINGW_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/MinGW&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
From version 4.13.6, RAREMETALWORKER and RAREMETAL are distributed within the same package.&lt;br /&gt;
&lt;br /&gt;
===SCRIPTS===&lt;br /&gt;
&lt;br /&gt;
====Calculating Odds Ratio from RAREMETALWORKER output====&lt;br /&gt;
*If you want to estimate &#039;&#039;&#039;Odds Ratios&#039;&#039;&#039; of variants analyzed by RAREMETALWORKER, the script [[Media:CalculateOddsRatio.tgz|&#039;&#039;&#039;calculateOddsRatio.pl&#039;&#039;&#039;]] can help you augment RAREMETALWORKER output with estimated odds ratio to the last column. &lt;br /&gt;
*The script can also be found in the RAREMETAL package 4.13.6 and later, under directory &#039;&#039;&#039;raremetal/script/calculateOddsRatio.pl&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== How to Compile ==&lt;br /&gt;
&lt;br /&gt;
* gfortran is necessary to build RAREMETAL. If your system does not have it yet, please go to [http://gcc.gnu.org/wiki/GFortranBinaries &#039;&#039;&#039;GNU gfortran&#039;&#039;&#039;] for download.&lt;br /&gt;
&lt;br /&gt;
* If you prefer to build from scratch, then do the following in your Raremetal directory:&lt;br /&gt;
  prompt&amp;gt; make clean&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This builds RAREMETAL and RAREMETALWORKER under bin/ directory. &lt;br /&gt;
&lt;br /&gt;
* If you prefer to build individual tool:&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetalworker/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetal/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETAL under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If your compiler is adaptable to openmp (parallel computing), then use the following to build RAREMETALWORKER that allows parallel computing. For more about openmp, please refer to [http://openmp.org/wp/openmp-compilers/ openMP].&lt;br /&gt;
  prompt&amp;gt; cd raremetalworker/src&lt;br /&gt;
  prompt&amp;gt; make openmp&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If you prefer to use the binary file downloaded above, then no compiling is needed, but it is not guaranteed to work due to system and library requirements.&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
&lt;br /&gt;
For compiling questions, please go to [http://genome.sph.umich.edu/wiki/RAREMETAL_FAQ &#039;&#039;&#039; FAQ&#039;&#039;&#039;] for more information.&lt;br /&gt;
&lt;br /&gt;
==OLD VERSIONS==&lt;br /&gt;
(All linux versions)&lt;br /&gt;
* [[Media:Raremetal.4.13.8.tar.gz ‎|&#039;&#039;&#039;v4.13.8&#039;&#039;&#039;]]&lt;br /&gt;
* [[Media:Raremetal.4.13.6.tar.gz ‎|&#039;&#039;&#039;v4.13.6&#039;&#039;&#039;]]&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14813</id>
		<title>RAREMETAL DOWNLOAD &amp; BUILD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14813"/>
		<updated>2017-07-13T17:01:31Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* OLD VERSIONS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL FAQ | &#039;&#039;&#039;FAQ&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Change_Log | &#039;&#039;&#039;Change Log&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Where to Download ==&lt;br /&gt;
&lt;br /&gt;
* University of Michigan CSG users can go to the following:&lt;br /&gt;
  /net/wonderland/home/saichen/Raremetal/&lt;br /&gt;
&lt;br /&gt;
===GIT HUB===&lt;br /&gt;
&lt;br /&gt;
Please clone or download from GitHub:&lt;br /&gt;
&lt;br /&gt;
 https://github.com/traxexx/Raremetal&lt;br /&gt;
&lt;br /&gt;
Since v4.13.6, MAC and WINDOWS version are no longer updated. Please download old versions from here:&lt;br /&gt;
&lt;br /&gt;
* [[Media:MAC_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for MAC OS X&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:CYGWIN64_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/CygWin64&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:MINGW_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/MinGW&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
From version 4.13.6, RAREMETALWORKER and RAREMETAL are distributed within the same package.&lt;br /&gt;
&lt;br /&gt;
===SCRIPTS===&lt;br /&gt;
&lt;br /&gt;
====Calculating Odds Ratio from RAREMETALWORKER output====&lt;br /&gt;
*If you want to estimate &#039;&#039;&#039;Odds Ratios&#039;&#039;&#039; of variants analyzed by RAREMETALWORKER, the script [[Media:CalculateOddsRatio.tgz|&#039;&#039;&#039;calculateOddsRatio.pl&#039;&#039;&#039;]] can help you augment RAREMETALWORKER output with estimated odds ratio to the last column. &lt;br /&gt;
*The script can also be found in the RAREMETAL package 4.13.6 and later, under directory &#039;&#039;&#039;raremetal/script/calculateOddsRatio.pl&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== How to Compile ==&lt;br /&gt;
&lt;br /&gt;
* gfortran is necessary to build RAREMETAL. If your system does not have it yet, please go to [http://gcc.gnu.org/wiki/GFortranBinaries &#039;&#039;&#039;GNU gfortran&#039;&#039;&#039;] for download.&lt;br /&gt;
&lt;br /&gt;
* If you prefer to build from scratch, then do the following in your Raremetal directory:&lt;br /&gt;
  prompt&amp;gt; make clean&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This builds RAREMETAL and RAREMETALWORKER under bin/ directory. &lt;br /&gt;
&lt;br /&gt;
* If you prefer to build individual tool:&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetalworker/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetal/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETAL under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If your compiler is adaptable to openmp (parallel computing), then use the following to build RAREMETALWORKER that allows parallel computing. For more about openmp, please refer to [http://openmp.org/wp/openmp-compilers/ openMP].&lt;br /&gt;
  prompt&amp;gt; cd raremetalworker/src&lt;br /&gt;
  prompt&amp;gt; make openmp&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If you prefer to use the binary file downloaded above, then no compiling is needed, but it is not guaranteed to work due to system and library requirements.&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
&lt;br /&gt;
For compiling questions, please go to [http://genome.sph.umich.edu/wiki/RAREMETAL_FAQ &#039;&#039;&#039; FAQ&#039;&#039;&#039;] for more information.&lt;br /&gt;
&lt;br /&gt;
==OLD VERSIONS==&lt;br /&gt;
(All linux versions)&lt;br /&gt;
* [[Media:Raremetal.4.13.8.tar.gz ‎|&#039;&#039;&#039;v4.13.8&#039;&#039;&#039;]]&lt;br /&gt;
* [[Media:raremetal.4.13.6.tar.gz ‎|&#039;&#039;&#039;v4.13.6&#039;&#039;&#039;]]&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=File:Raremetal.4.13.8.tar.gz&amp;diff=14812</id>
		<title>File:Raremetal.4.13.8.tar.gz</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=File:Raremetal.4.13.8.tar.gz&amp;diff=14812"/>
		<updated>2017-07-13T17:00:58Z</updated>

		<summary type="html">&lt;p&gt;Saichen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14811</id>
		<title>RAREMETAL DOWNLOAD &amp; BUILD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14811"/>
		<updated>2017-07-13T17:00:36Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* OLD VERSIONS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL FAQ | &#039;&#039;&#039;FAQ&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Change_Log | &#039;&#039;&#039;Change Log&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Where to Download ==&lt;br /&gt;
&lt;br /&gt;
* University of Michigan CSG users can go to the following:&lt;br /&gt;
  /net/wonderland/home/saichen/Raremetal/&lt;br /&gt;
&lt;br /&gt;
===GIT HUB===&lt;br /&gt;
&lt;br /&gt;
Please clone or download from GitHub:&lt;br /&gt;
&lt;br /&gt;
 https://github.com/traxexx/Raremetal&lt;br /&gt;
&lt;br /&gt;
Since v4.13.6, MAC and WINDOWS version are no longer updated. Please download old versions from here:&lt;br /&gt;
&lt;br /&gt;
* [[Media:MAC_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for MAC OS X&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:CYGWIN64_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/CygWin64&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:MINGW_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/MinGW&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
From version 4.13.6, RAREMETALWORKER and RAREMETAL are distributed within the same package.&lt;br /&gt;
&lt;br /&gt;
===SCRIPTS===&lt;br /&gt;
&lt;br /&gt;
====Calculating Odds Ratio from RAREMETALWORKER output====&lt;br /&gt;
*If you want to estimate &#039;&#039;&#039;Odds Ratios&#039;&#039;&#039; of variants analyzed by RAREMETALWORKER, the script [[Media:CalculateOddsRatio.tgz|&#039;&#039;&#039;calculateOddsRatio.pl&#039;&#039;&#039;]] can help you augment RAREMETALWORKER output with estimated odds ratio to the last column. &lt;br /&gt;
*The script can also be found in the RAREMETAL package 4.13.6 and later, under directory &#039;&#039;&#039;raremetal/script/calculateOddsRatio.pl&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== How to Compile ==&lt;br /&gt;
&lt;br /&gt;
* gfortran is necessary to build RAREMETAL. If your system does not have it yet, please go to [http://gcc.gnu.org/wiki/GFortranBinaries &#039;&#039;&#039;GNU gfortran&#039;&#039;&#039;] for download.&lt;br /&gt;
&lt;br /&gt;
* If you prefer to build from scratch, then do the following in your Raremetal directory:&lt;br /&gt;
  prompt&amp;gt; make clean&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This builds RAREMETAL and RAREMETALWORKER under bin/ directory. &lt;br /&gt;
&lt;br /&gt;
* If you prefer to build individual tool:&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetalworker/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetal/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETAL under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If your compiler is adaptable to openmp (parallel computing), then use the following to build RAREMETALWORKER that allows parallel computing. For more about openmp, please refer to [http://openmp.org/wp/openmp-compilers/ openMP].&lt;br /&gt;
  prompt&amp;gt; cd raremetalworker/src&lt;br /&gt;
  prompt&amp;gt; make openmp&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If you prefer to use the binary file downloaded above, then no compiling is needed, but it is not guaranteed to work due to system and library requirements.&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
&lt;br /&gt;
For compiling questions, please go to [http://genome.sph.umich.edu/wiki/RAREMETAL_FAQ &#039;&#039;&#039; FAQ&#039;&#039;&#039;] for more information.&lt;br /&gt;
&lt;br /&gt;
==OLD VERSIONS==&lt;br /&gt;
(All linux versions)&lt;br /&gt;
* [[Media:raremetal.4.13.8.tar.gz ‎|&#039;&#039;&#039;v4.13.8&#039;&#039;&#039;]]&lt;br /&gt;
* [[Media:raremetal.4.13.6.tar.gz ‎|&#039;&#039;&#039;v4.13.6&#039;&#039;&#039;]]&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14810</id>
		<title>RAREMETAL DOWNLOAD &amp; BUILD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14810"/>
		<updated>2017-07-13T15:12:43Z</updated>

		<summary type="html">&lt;p&gt;Saichen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL FAQ | &#039;&#039;&#039;FAQ&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Change_Log | &#039;&#039;&#039;Change Log&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Where to Download ==&lt;br /&gt;
&lt;br /&gt;
* University of Michigan CSG users can go to the following:&lt;br /&gt;
  /net/wonderland/home/saichen/Raremetal/&lt;br /&gt;
&lt;br /&gt;
===GIT HUB===&lt;br /&gt;
&lt;br /&gt;
Please clone or download from GitHub:&lt;br /&gt;
&lt;br /&gt;
 https://github.com/traxexx/Raremetal&lt;br /&gt;
&lt;br /&gt;
Since v4.13.6, MAC and WINDOWS version are no longer updated. Please download old versions from here:&lt;br /&gt;
&lt;br /&gt;
* [[Media:MAC_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for MAC OS X&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:CYGWIN64_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/CygWin64&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:MINGW_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/MinGW&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
From version 4.13.6, RAREMETALWORKER and RAREMETAL are distributed within the same package.&lt;br /&gt;
&lt;br /&gt;
===SCRIPTS===&lt;br /&gt;
&lt;br /&gt;
====Calculating Odds Ratio from RAREMETALWORKER output====&lt;br /&gt;
*If you want to estimate &#039;&#039;&#039;Odds Ratios&#039;&#039;&#039; of variants analyzed by RAREMETALWORKER, the script [[Media:CalculateOddsRatio.tgz|&#039;&#039;&#039;calculateOddsRatio.pl&#039;&#039;&#039;]] can help you augment RAREMETALWORKER output with estimated odds ratio to the last column. &lt;br /&gt;
*The script can also be found in the RAREMETAL package 4.13.6 and later, under directory &#039;&#039;&#039;raremetal/script/calculateOddsRatio.pl&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== How to Compile ==&lt;br /&gt;
&lt;br /&gt;
* gfortran is necessary to build RAREMETAL. If your system does not have it yet, please go to [http://gcc.gnu.org/wiki/GFortranBinaries &#039;&#039;&#039;GNU gfortran&#039;&#039;&#039;] for download.&lt;br /&gt;
&lt;br /&gt;
* If you prefer to build from scratch, then do the following in your Raremetal directory:&lt;br /&gt;
  prompt&amp;gt; make clean&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This builds RAREMETAL and RAREMETALWORKER under bin/ directory. &lt;br /&gt;
&lt;br /&gt;
* If you prefer to build individual tool:&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetalworker/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetal/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETAL under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If your compiler is adaptable to openmp (parallel computing), then use the following to build RAREMETALWORKER that allows parallel computing. For more about openmp, please refer to [http://openmp.org/wp/openmp-compilers/ openMP].&lt;br /&gt;
  prompt&amp;gt; cd raremetalworker/src&lt;br /&gt;
  prompt&amp;gt; make openmp&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If you prefer to use the binary file downloaded above, then no compiling is needed, but it is not guaranteed to work due to system and library requirements.&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
&lt;br /&gt;
For compiling questions, please go to [http://genome.sph.umich.edu/wiki/RAREMETAL_FAQ &#039;&#039;&#039; FAQ&#039;&#039;&#039;] for more information.&lt;br /&gt;
&lt;br /&gt;
==OLD VERSIONS==&lt;br /&gt;
(All linux versions)&lt;br /&gt;
* [[Media:raremetal.4.13.8.tgz ‎|&#039;&#039;&#039;v4.13.8&#039;&#039;&#039;]]&lt;br /&gt;
* [[Media:raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;v4.13.6&#039;&#039;&#039;]]&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14481</id>
		<title>RAREMETAL Change Log</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14481"/>
		<updated>2016-11-27T20:11:02Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Main Wiki Page==&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Change Log ==&lt;br /&gt;
&lt;br /&gt;
* [[Raremetal Incoming updates | Known issues and incoming update in next version]]&lt;br /&gt;
&lt;br /&gt;
* Version 4.14.0 released (11/27/2016)&lt;br /&gt;
** &#039;&#039;&#039;Optimized method for unbalanced studies with no family structure (--useExact)&#039;&#039;&#039;. Check [[RAREMETAL METHOD]]&lt;br /&gt;
** bug fixes in conditional analysis&lt;br /&gt;
** fixed headers&lt;br /&gt;
** more methods in burden test&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.9 released (07/14/2016)&lt;br /&gt;
** The source code has been optimized to prepare for incoming new meta-analysis method in next version.&lt;br /&gt;
** Reduced running time when reading  &amp;gt;10,000s individuals from vcf&lt;br /&gt;
** &#039;&#039;&#039;Fixed seg fault in raremetalworker for calculating SNP HWE p value when sample size &amp;gt; 40k&#039;&#039;&#039;&lt;br /&gt;
** A seg fault: sometimes you only have very few variants but raremetal still tries to calculate GC.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.8 released (12/13/2015)&lt;br /&gt;
** when grouping from vcf, raremetal now obtains information only from &amp;quot;ANNOFULL&amp;quot; field.&lt;br /&gt;
** fixed seg fault in matching --annotation option to vcf annotation.&lt;br /&gt;
** with empty --annotation option, raremetal now groups all non-intergenic variants.&lt;br /&gt;
** &#039;&#039;&#039;fixed a bug in conditional analysis when there are multiple variants to condition on&#039;&#039;&#039;.&lt;br /&gt;
** fixed a seg fault in calculating genomic control.&lt;br /&gt;
** add --variantList option in RaremetalWorker to only calculate variance-covariance matrix between certain markers.&lt;br /&gt;
** add --range option in both Raremetal and RaremetalWorker to focus on given region only.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.7 released. (9/18/2015).&lt;br /&gt;
** group file generated from annotated vcf is now stored in &amp;quot;test.groupfile&amp;quot; under current running directory.&lt;br /&gt;
** use -O0 option in compiling. In very rare situations, gcc optimization will affect the results.&lt;br /&gt;
** tabix RMW output with --zip toggled.&lt;br /&gt;
** In SKAT meta analysis, skip the variant when all its lambdas are zero.&lt;br /&gt;
** bug fixes in conditional analysis: in very rare situation raremetal takes rvtest input as raremetalworker input.&lt;br /&gt;
** add --altMAF option to exclude studies in which a variant is not present.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.6 released. (3/8/2015)&lt;br /&gt;
** add a new option --mergedVCFID to recognize VCF files with sample IDs in &amp;quot;FAMID_PID&amp;quot; format&lt;br /&gt;
** add a new option --flagDosage to flag the field name to label dosage in VCF file.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.5 released. (9/29/2014)&lt;br /&gt;
** a bug fixed in conditional analysis in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.4 released.&lt;br /&gt;
** store beta estimates of intercept and fixed effects in rarmetalworker *.singlevar.score.txt header.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.3 released.&lt;br /&gt;
** read rvtest output format correctly in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.2.&lt;br /&gt;
** fixed sqrt_V output when analyzing unrelated individuals without kinship and --inverseNormal is not used and trait variance is not one.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.1.&lt;br /&gt;
** fixed a bug affecting output format when ped/dat files are used together with --dominant --recessive options.&lt;br /&gt;
&lt;br /&gt;
* version 4.13&lt;br /&gt;
** fixed bug when using --vcX option.&lt;br /&gt;
** Fixed bug estimating kinshipX with female samples.&lt;br /&gt;
** Added --kinOnly option for generating kinship only without association analysis.&lt;br /&gt;
** Added --geneMap option to allow user input for gene-mapping file.&lt;br /&gt;
&lt;br /&gt;
* version 4.12.1&lt;br /&gt;
** fixed command interface display issue in raremetalworker.&lt;br /&gt;
&lt;br /&gt;
* version 4.12&lt;br /&gt;
** improved make file for better compilation.&lt;br /&gt;
&lt;br /&gt;
* version 4.11&lt;br /&gt;
** fixed a bug for inverse-normalizing traits (a bug only in version 4.9 and later).&lt;br /&gt;
&lt;br /&gt;
* version 4.10&lt;br /&gt;
** fixed a bug when analyzing multiple traits is requested in raremetalworker (bug only in version 4.9 and later, and doesn&#039;t affect results).&lt;br /&gt;
&lt;br /&gt;
===Version 4.8 and before===&lt;br /&gt;
* Released version 0.4.7 (4/24/2014).&lt;br /&gt;
** optimized code to increase analysis efficiency and reduce memory use.&lt;br /&gt;
** added --separateX option to provide another choice of analyzing chromosome X.&lt;br /&gt;
** added --kinxFile option to allow kinship X matrix file with different prefix from the autosomal kinship.&lt;br /&gt;
** merged raremetal and raremetalworker in one package following version number of raremetalworker.&lt;br /&gt;
** completed testing compiling on various platforms. &lt;br /&gt;
* Released version 0.4.6 binary. Fixed a bug in recessive and dominant results. (4/1/2014)&lt;br /&gt;
* Released version 0.4.5. Fixed a bug when generating plots for recessive results. (3/18/2014)&lt;br /&gt;
* Released version 0.4.4. (3/17/2014)&lt;br /&gt;
** bug fixed when alleles are flipped in group file.&lt;br /&gt;
** fixed hwe=0.0 issue for monomorphic sites.&lt;br /&gt;
* Released version 0.4.3. Fixed a few typo in messages. Added --noeof option for VCF files that does not have a BGZF EOF marker.&lt;br /&gt;
* Released version 0.4.2. (3/10/2014)&lt;br /&gt;
** fixed a bug that could possibly cause compiling error in some Linux system. male heterozygous &lt;br /&gt;
** male genotypes on chromosome X are considered missing.&lt;br /&gt;
** bug fixed for SKAT when there are two variants in a group&lt;br /&gt;
** bug fixed in Makefile for easy compiling.&lt;br /&gt;
* Released version 0.4.1. Fixed a bug handling variants in nonPAR region on chromosome X when all samples are male.&lt;br /&gt;
* Released version 0.4.0.&lt;br /&gt;
** added phone home function. Saved Recessive and dominant results in separate files.&lt;br /&gt;
** a few bugs fixed to properly handling missing genotypes.&lt;br /&gt;
** Major change in command options.&lt;br /&gt;
** allow user to specify list of summary statistics files and covariance files separately using --summaryFiles and --covFiles options.&lt;br /&gt;
* Released version 0.3.7. Added dominant and recessive models as options. The default model is additive. (1/7/2014)&lt;br /&gt;
* Released version 0.3.6 and fixed a minor bug that caused by code upgrades from version 0.3.5. (12/4/2013)&lt;br /&gt;
* Fixed a few bugs handling chromosome X. Generated warning messages when male genotypes are coded wrong in VCF file. (11/25/2013)&lt;br /&gt;
* Version 0.3.1 released to fix a bug when one of the alleles coded as missing.&lt;br /&gt;
* Version 0.2.9 released after fixing a bug in SKAT and writing PDF when all variants are monomorphic. (10/7/2013)&lt;br /&gt;
* Fixed the bug which causes crash when writing PDF when all variants are monomorphic. (10/6/2013)&lt;br /&gt;
* Added support for analyzing dosages from VCF in version 2.9. (8/27/2013)&lt;br /&gt;
* Version 0.1.2 released after fixing a few bugs, adding conditional analysis and automatic graphing to the tool. (8/5/2013)&lt;br /&gt;
* Fixed bug in handling chromosome X. Added sanity checking steps before analysis. Added graphic support by generating QQ and manhattan plots automatically. Upgraded tool to version 2.8. (till 8/12/2013)&lt;br /&gt;
* Updated code to report allele frequencies calculated only from selected samples. (3/3/2013)&lt;br /&gt;
* Optimized code to speed up the process of calculating empirical kinship. (3/3/2013)&lt;br /&gt;
* Fixed a bug when handling chromosome X. Added sex labels option. (3/2/2013)&lt;br /&gt;
* Version 0.0.1 released. (2/24/2013)&lt;br /&gt;
* Version 0.0.1 released to U of M CSG group. (2/13/2013)&lt;br /&gt;
* Fixed a bug when there is missing genotype from VCF file. (2/2013)&lt;br /&gt;
* Fixed a bug when reading vcf file with ref or alt allele is missing. (2/5/2013)&lt;br /&gt;
* Changed executable name into bin/raremetalworker. Version 0.0.7 released. (12/10/2012)&lt;br /&gt;
* Updated output format for monomorphic sites. (12/7/2012)&lt;br /&gt;
* Version 0.0.6 released. (12/6/2012)&lt;br /&gt;
* Bug fixed for empirical kinship calculation when genotypes are read from VCF file. Version 0.0.5 released. (12/6/2012)&lt;br /&gt;
* Version 0.0.4 released. (12/5/2012)&lt;br /&gt;
* More messages coded into log file. (12/4/2012)&lt;br /&gt;
* Updated output format. Version 0.0.3 released. (12/3/2012)&lt;br /&gt;
* Bugs fixed to solve compiling errors on some machines (Thank you Mary Kate!). Version 0.0.2 released. (11/30/2012)&lt;br /&gt;
* Added HWE pvalue and call rate in summary statistics output. (11/27/2012)&lt;br /&gt;
* Forced sample IDs to be matched when reading in kinship from a file. Perform a sanity check before reading in kinship file. If a sample of interest is not included in kinship file, then fatal error will occur. (11/19/2012)&lt;br /&gt;
* Enabled writing log file by defalut. (11/18/2012)&lt;br /&gt;
* Uploaded to public wiki. (11/16/2012)&lt;br /&gt;
* Modified Rare-Metal-Worker to let it output LD matrix by a sliding window. (11/14/2012)&lt;br /&gt;
* Version 0.0.1 was released on 11/13/2012.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Command_Reference&amp;diff=14480</id>
		<title>RAREMETAL Command Reference</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Command_Reference&amp;diff=14480"/>
		<updated>2016-11-27T20:09:20Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Association Methods for Meta-analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Useful Pages==&lt;br /&gt;
* The [[RAREMETAL| Home Page]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL_Documentation|RAREMETAL Documentation]]&lt;br /&gt;
&lt;br /&gt;
* The [[Tutorial:_RAREMETAL|RAREMETAL Tutorial]] &lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL FAQ]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | RAREMETALWORKER documentation]]&lt;br /&gt;
&lt;br /&gt;
==Command References==&lt;br /&gt;
=== Overview of Options ===&lt;br /&gt;
 Options:&lt;br /&gt;
       List of Studies : --studyName []&lt;br /&gt;
      Grouping Methods : --groupFile [], --annotatedVcf [], --annotation [],&lt;br /&gt;
                         --writeVcf&lt;br /&gt;
            QC Options : --hwe [1.0e-05], --callRate [0.95]&lt;br /&gt;
   Association Methods : --burden, --MB, --SKAT, --VT, --condition []&lt;br /&gt;
         Other Options : --labelHits, --correctGC, --prefix [],&lt;br /&gt;
                         --mapFile [../src/refFlat_hg19.txt], --maf [0.05],&lt;br /&gt;
                         --longOutput, --tabulateHits, --hitsCutoff [1.0e-06]&lt;br /&gt;
                         --altMAF&lt;br /&gt;
&lt;br /&gt;
=== Describing Studies ===&lt;br /&gt;
   --studyName [your.list.of.studies.file]&lt;br /&gt;
&lt;br /&gt;
Additional details on this option is [[Rare-Metal#List_of_Studies_2|available]].&lt;br /&gt;
&lt;br /&gt;
=== Methods to Group Rare Variants ===&lt;br /&gt;
&lt;br /&gt;
 --groupFile      [your.groups.file]&lt;br /&gt;
 --annotatedVcf   [your.annotated.vcf]&lt;br /&gt;
 --annotation     [nonsyn/stop/splice]&lt;br /&gt;
 --writeVcf       [ON|OFF]&lt;br /&gt;
&lt;br /&gt;
Additional details on [[Rare-Metal#Grouping_from_a_Group_File|groupFile]], [[Rare-Metal#Grouping_from_an_Annotated_VCF_File|annotatedVcf, annotation]] and [[Rare-Metal#Generate_a_VCF_File_to_Annotate_Outside_of_Rare_Metal|writeVcf]] options are available.&lt;br /&gt;
&lt;br /&gt;
=== QC Options ===&lt;br /&gt;
   --hwe            [hwe.pvalue.cutoff]                     (default = 1e-05)&lt;br /&gt;
   --callRate      [variant.call.rate.cutoff]               (default = 0.95)&lt;br /&gt;
&lt;br /&gt;
Additional details on these options are [[Rare-Metal#QC_Options|available]].&lt;br /&gt;
&lt;br /&gt;
=== Association Methods for Meta-analysis ===&lt;br /&gt;
   --useExact   optimized method for unbalanced studies with unrelated samples,&lt;br /&gt;
                            described [[RAREMETAL METHOD#SINGLE_VARIANT_SCORE_TEST]].&lt;br /&gt;
   --burden      burden test with equal weight        &lt;br /&gt;
   --MAB         burden test with MAF as weight&lt;br /&gt;
   --MB          burden test with sqrt(maf(1-maf)) as weight&lt;br /&gt;
   --BBeta     beta distribution as weight&lt;br /&gt;
   --VT           variant threshold test&lt;br /&gt;
   --SKAT         standard SKAT test&lt;br /&gt;
   --condition   [your.list.of variants.to.be.conditioned.upon]&lt;br /&gt;
Additional details for these options are [[Rare-Metal#Association_Methods|available]].&lt;br /&gt;
&lt;br /&gt;
=== Other Options for Performance and Amenities ===&lt;br /&gt;
  --labelHits    [ON|OFF]&lt;br /&gt;
  --correctGC    [ON|OFF]&lt;br /&gt;
  --prefix       [your.prefix]&lt;br /&gt;
  --maf          [your.maf.threshold.for.gene-level.tests]    (default = 0.05)&lt;br /&gt;
  --longOutput   [ON|OFF]&lt;br /&gt;
  --tabulateHits [ON|OFF]&lt;br /&gt;
  --hitsCutoff   [your.cutoff.for.hits]                       (default = 1e-06)&lt;br /&gt;
  --altMAF       [if specified, studies that do not contain the variant will be excluded.]&lt;br /&gt;
&lt;br /&gt;
Additional details for these options are [[Rare-Metal#Other_Options|available]].&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Command_Reference&amp;diff=14479</id>
		<title>RAREMETAL Command Reference</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Command_Reference&amp;diff=14479"/>
		<updated>2016-11-27T20:08:56Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Association Methods for Meta-analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Useful Pages==&lt;br /&gt;
* The [[RAREMETAL| Home Page]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL_Documentation|RAREMETAL Documentation]]&lt;br /&gt;
&lt;br /&gt;
* The [[Tutorial:_RAREMETAL|RAREMETAL Tutorial]] &lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL FAQ]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | RAREMETALWORKER documentation]]&lt;br /&gt;
&lt;br /&gt;
==Command References==&lt;br /&gt;
=== Overview of Options ===&lt;br /&gt;
 Options:&lt;br /&gt;
       List of Studies : --studyName []&lt;br /&gt;
      Grouping Methods : --groupFile [], --annotatedVcf [], --annotation [],&lt;br /&gt;
                         --writeVcf&lt;br /&gt;
            QC Options : --hwe [1.0e-05], --callRate [0.95]&lt;br /&gt;
   Association Methods : --burden, --MB, --SKAT, --VT, --condition []&lt;br /&gt;
         Other Options : --labelHits, --correctGC, --prefix [],&lt;br /&gt;
                         --mapFile [../src/refFlat_hg19.txt], --maf [0.05],&lt;br /&gt;
                         --longOutput, --tabulateHits, --hitsCutoff [1.0e-06]&lt;br /&gt;
                         --altMAF&lt;br /&gt;
&lt;br /&gt;
=== Describing Studies ===&lt;br /&gt;
   --studyName [your.list.of.studies.file]&lt;br /&gt;
&lt;br /&gt;
Additional details on this option is [[Rare-Metal#List_of_Studies_2|available]].&lt;br /&gt;
&lt;br /&gt;
=== Methods to Group Rare Variants ===&lt;br /&gt;
&lt;br /&gt;
 --groupFile      [your.groups.file]&lt;br /&gt;
 --annotatedVcf   [your.annotated.vcf]&lt;br /&gt;
 --annotation     [nonsyn/stop/splice]&lt;br /&gt;
 --writeVcf       [ON|OFF]&lt;br /&gt;
&lt;br /&gt;
Additional details on [[Rare-Metal#Grouping_from_a_Group_File|groupFile]], [[Rare-Metal#Grouping_from_an_Annotated_VCF_File|annotatedVcf, annotation]] and [[Rare-Metal#Generate_a_VCF_File_to_Annotate_Outside_of_Rare_Metal|writeVcf]] options are available.&lt;br /&gt;
&lt;br /&gt;
=== QC Options ===&lt;br /&gt;
   --hwe            [hwe.pvalue.cutoff]                     (default = 1e-05)&lt;br /&gt;
   --callRate      [variant.call.rate.cutoff]               (default = 0.95)&lt;br /&gt;
&lt;br /&gt;
Additional details on these options are [[Rare-Metal#QC_Options|available]].&lt;br /&gt;
&lt;br /&gt;
=== Association Methods for Meta-analysis ===&lt;br /&gt;
   --useExact   optimized method for unbalanced studies with unrelated samples,&lt;br /&gt;
                            described [[RAREMETAL METHOD#SINGLE_VARIANT_SCORE_TEST]].&lt;br /&gt;
   --burden      burden test with equal weight        &lt;br /&gt;
   --MAB         burden test with MAF as weight&lt;br /&gt;
   --MB          burden test with sqrt(maf(1-maf)) as weight&lt;br /&gt;
   --VT           variant threshold test&lt;br /&gt;
   --SKAT         standard SKAT test&lt;br /&gt;
   --condition   [your.list.of variants.to.be.conditioned.upon]&lt;br /&gt;
Additional details for these options are [[Rare-Metal#Association_Methods|available]].&lt;br /&gt;
&lt;br /&gt;
=== Other Options for Performance and Amenities ===&lt;br /&gt;
  --labelHits    [ON|OFF]&lt;br /&gt;
  --correctGC    [ON|OFF]&lt;br /&gt;
  --prefix       [your.prefix]&lt;br /&gt;
  --maf          [your.maf.threshold.for.gene-level.tests]    (default = 0.05)&lt;br /&gt;
  --longOutput   [ON|OFF]&lt;br /&gt;
  --tabulateHits [ON|OFF]&lt;br /&gt;
  --hitsCutoff   [your.cutoff.for.hits]                       (default = 1e-06)&lt;br /&gt;
  --altMAF       [if specified, studies that do not contain the variant will be excluded.]&lt;br /&gt;
&lt;br /&gt;
Additional details for these options are [[Rare-Metal#Other_Options|available]].&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Command_Reference&amp;diff=14478</id>
		<title>RAREMETAL Command Reference</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Command_Reference&amp;diff=14478"/>
		<updated>2016-11-27T20:08:44Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Association Methods for Meta-analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Useful Pages==&lt;br /&gt;
* The [[RAREMETAL| Home Page]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL_Documentation|RAREMETAL Documentation]]&lt;br /&gt;
&lt;br /&gt;
* The [[Tutorial:_RAREMETAL|RAREMETAL Tutorial]] &lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL FAQ]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | RAREMETALWORKER documentation]]&lt;br /&gt;
&lt;br /&gt;
==Command References==&lt;br /&gt;
=== Overview of Options ===&lt;br /&gt;
 Options:&lt;br /&gt;
       List of Studies : --studyName []&lt;br /&gt;
      Grouping Methods : --groupFile [], --annotatedVcf [], --annotation [],&lt;br /&gt;
                         --writeVcf&lt;br /&gt;
            QC Options : --hwe [1.0e-05], --callRate [0.95]&lt;br /&gt;
   Association Methods : --burden, --MB, --SKAT, --VT, --condition []&lt;br /&gt;
         Other Options : --labelHits, --correctGC, --prefix [],&lt;br /&gt;
                         --mapFile [../src/refFlat_hg19.txt], --maf [0.05],&lt;br /&gt;
                         --longOutput, --tabulateHits, --hitsCutoff [1.0e-06]&lt;br /&gt;
                         --altMAF&lt;br /&gt;
&lt;br /&gt;
=== Describing Studies ===&lt;br /&gt;
   --studyName [your.list.of.studies.file]&lt;br /&gt;
&lt;br /&gt;
Additional details on this option is [[Rare-Metal#List_of_Studies_2|available]].&lt;br /&gt;
&lt;br /&gt;
=== Methods to Group Rare Variants ===&lt;br /&gt;
&lt;br /&gt;
 --groupFile      [your.groups.file]&lt;br /&gt;
 --annotatedVcf   [your.annotated.vcf]&lt;br /&gt;
 --annotation     [nonsyn/stop/splice]&lt;br /&gt;
 --writeVcf       [ON|OFF]&lt;br /&gt;
&lt;br /&gt;
Additional details on [[Rare-Metal#Grouping_from_a_Group_File|groupFile]], [[Rare-Metal#Grouping_from_an_Annotated_VCF_File|annotatedVcf, annotation]] and [[Rare-Metal#Generate_a_VCF_File_to_Annotate_Outside_of_Rare_Metal|writeVcf]] options are available.&lt;br /&gt;
&lt;br /&gt;
=== QC Options ===&lt;br /&gt;
   --hwe            [hwe.pvalue.cutoff]                     (default = 1e-05)&lt;br /&gt;
   --callRate      [variant.call.rate.cutoff]               (default = 0.95)&lt;br /&gt;
&lt;br /&gt;
Additional details on these options are [[Rare-Metal#QC_Options|available]].&lt;br /&gt;
&lt;br /&gt;
=== Association Methods for Meta-analysis ===&lt;br /&gt;
   --useExact   optimized method for unbalanced studies with unrelated samples,&lt;br /&gt;
                            described [[RAREMETAL METHOD#SINGLE_VARIANT_SCORE_TEST]].&lt;br /&gt;
   --burden      burden test with equal weight        &lt;br /&gt;
   --MAB         burden test with MAF as weight&lt;br /&gt;
   --MB            burden test with sqrt(maf(1-maf)) as weight&lt;br /&gt;
   --VT             variant threshold test&lt;br /&gt;
   --SKAT         standard SKAT test&lt;br /&gt;
   --condition   [your.list.of variants.to.be.conditioned.upon]&lt;br /&gt;
Additional details for these options are [[Rare-Metal#Association_Methods|available]].&lt;br /&gt;
&lt;br /&gt;
=== Other Options for Performance and Amenities ===&lt;br /&gt;
  --labelHits    [ON|OFF]&lt;br /&gt;
  --correctGC    [ON|OFF]&lt;br /&gt;
  --prefix       [your.prefix]&lt;br /&gt;
  --maf          [your.maf.threshold.for.gene-level.tests]    (default = 0.05)&lt;br /&gt;
  --longOutput   [ON|OFF]&lt;br /&gt;
  --tabulateHits [ON|OFF]&lt;br /&gt;
  --hitsCutoff   [your.cutoff.for.hits]                       (default = 1e-06)&lt;br /&gt;
  --altMAF       [if specified, studies that do not contain the variant will be excluded.]&lt;br /&gt;
&lt;br /&gt;
Additional details for these options are [[Rare-Metal#Other_Options|available]].&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Command_Reference&amp;diff=14477</id>
		<title>RAREMETAL Command Reference</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Command_Reference&amp;diff=14477"/>
		<updated>2016-11-27T20:08:32Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Association Methods for Meta-analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Useful Pages==&lt;br /&gt;
* The [[RAREMETAL| Home Page]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL_Documentation|RAREMETAL Documentation]]&lt;br /&gt;
&lt;br /&gt;
* The [[Tutorial:_RAREMETAL|RAREMETAL Tutorial]] &lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL FAQ]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | RAREMETALWORKER documentation]]&lt;br /&gt;
&lt;br /&gt;
==Command References==&lt;br /&gt;
=== Overview of Options ===&lt;br /&gt;
 Options:&lt;br /&gt;
       List of Studies : --studyName []&lt;br /&gt;
      Grouping Methods : --groupFile [], --annotatedVcf [], --annotation [],&lt;br /&gt;
                         --writeVcf&lt;br /&gt;
            QC Options : --hwe [1.0e-05], --callRate [0.95]&lt;br /&gt;
   Association Methods : --burden, --MB, --SKAT, --VT, --condition []&lt;br /&gt;
         Other Options : --labelHits, --correctGC, --prefix [],&lt;br /&gt;
                         --mapFile [../src/refFlat_hg19.txt], --maf [0.05],&lt;br /&gt;
                         --longOutput, --tabulateHits, --hitsCutoff [1.0e-06]&lt;br /&gt;
                         --altMAF&lt;br /&gt;
&lt;br /&gt;
=== Describing Studies ===&lt;br /&gt;
   --studyName [your.list.of.studies.file]&lt;br /&gt;
&lt;br /&gt;
Additional details on this option is [[Rare-Metal#List_of_Studies_2|available]].&lt;br /&gt;
&lt;br /&gt;
=== Methods to Group Rare Variants ===&lt;br /&gt;
&lt;br /&gt;
 --groupFile      [your.groups.file]&lt;br /&gt;
 --annotatedVcf   [your.annotated.vcf]&lt;br /&gt;
 --annotation     [nonsyn/stop/splice]&lt;br /&gt;
 --writeVcf       [ON|OFF]&lt;br /&gt;
&lt;br /&gt;
Additional details on [[Rare-Metal#Grouping_from_a_Group_File|groupFile]], [[Rare-Metal#Grouping_from_an_Annotated_VCF_File|annotatedVcf, annotation]] and [[Rare-Metal#Generate_a_VCF_File_to_Annotate_Outside_of_Rare_Metal|writeVcf]] options are available.&lt;br /&gt;
&lt;br /&gt;
=== QC Options ===&lt;br /&gt;
   --hwe            [hwe.pvalue.cutoff]                     (default = 1e-05)&lt;br /&gt;
   --callRate      [variant.call.rate.cutoff]               (default = 0.95)&lt;br /&gt;
&lt;br /&gt;
Additional details on these options are [[Rare-Metal#QC_Options|available]].&lt;br /&gt;
&lt;br /&gt;
=== Association Methods for Meta-analysis ===&lt;br /&gt;
   --useExact   optimized method for unbalanced studies with unrelated samples,&lt;br /&gt;
                            described [[RAREMETAL METHOD#SINGLE_VARIANT_SCORE_TEST]].&lt;br /&gt;
   --burden      burden test with equal weight        &lt;br /&gt;
   --MAB           burden test with MAF as weight&lt;br /&gt;
   --MB             burden test with sqrt(maf(1-maf)) as weight&lt;br /&gt;
   --VT              variant threshold test&lt;br /&gt;
   --SKAT         standard SKAT test&lt;br /&gt;
   --condition   [your.list.of variants.to.be.conditioned.upon]&lt;br /&gt;
Additional details for these options are [[Rare-Metal#Association_Methods|available]].&lt;br /&gt;
&lt;br /&gt;
=== Other Options for Performance and Amenities ===&lt;br /&gt;
  --labelHits    [ON|OFF]&lt;br /&gt;
  --correctGC    [ON|OFF]&lt;br /&gt;
  --prefix       [your.prefix]&lt;br /&gt;
  --maf          [your.maf.threshold.for.gene-level.tests]    (default = 0.05)&lt;br /&gt;
  --longOutput   [ON|OFF]&lt;br /&gt;
  --tabulateHits [ON|OFF]&lt;br /&gt;
  --hitsCutoff   [your.cutoff.for.hits]                       (default = 1e-06)&lt;br /&gt;
  --altMAF       [if specified, studies that do not contain the variant will be excluded.]&lt;br /&gt;
&lt;br /&gt;
Additional details for these options are [[Rare-Metal#Other_Options|available]].&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Command_Reference&amp;diff=14476</id>
		<title>RAREMETAL Command Reference</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Command_Reference&amp;diff=14476"/>
		<updated>2016-11-27T20:08:10Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Association Methods for Meta-analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Useful Pages==&lt;br /&gt;
* The [[RAREMETAL| Home Page]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL_Documentation|RAREMETAL Documentation]]&lt;br /&gt;
&lt;br /&gt;
* The [[Tutorial:_RAREMETAL|RAREMETAL Tutorial]] &lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL FAQ]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | RAREMETALWORKER documentation]]&lt;br /&gt;
&lt;br /&gt;
==Command References==&lt;br /&gt;
=== Overview of Options ===&lt;br /&gt;
 Options:&lt;br /&gt;
       List of Studies : --studyName []&lt;br /&gt;
      Grouping Methods : --groupFile [], --annotatedVcf [], --annotation [],&lt;br /&gt;
                         --writeVcf&lt;br /&gt;
            QC Options : --hwe [1.0e-05], --callRate [0.95]&lt;br /&gt;
   Association Methods : --burden, --MB, --SKAT, --VT, --condition []&lt;br /&gt;
         Other Options : --labelHits, --correctGC, --prefix [],&lt;br /&gt;
                         --mapFile [../src/refFlat_hg19.txt], --maf [0.05],&lt;br /&gt;
                         --longOutput, --tabulateHits, --hitsCutoff [1.0e-06]&lt;br /&gt;
                         --altMAF&lt;br /&gt;
&lt;br /&gt;
=== Describing Studies ===&lt;br /&gt;
   --studyName [your.list.of.studies.file]&lt;br /&gt;
&lt;br /&gt;
Additional details on this option is [[Rare-Metal#List_of_Studies_2|available]].&lt;br /&gt;
&lt;br /&gt;
=== Methods to Group Rare Variants ===&lt;br /&gt;
&lt;br /&gt;
 --groupFile      [your.groups.file]&lt;br /&gt;
 --annotatedVcf   [your.annotated.vcf]&lt;br /&gt;
 --annotation     [nonsyn/stop/splice]&lt;br /&gt;
 --writeVcf       [ON|OFF]&lt;br /&gt;
&lt;br /&gt;
Additional details on [[Rare-Metal#Grouping_from_a_Group_File|groupFile]], [[Rare-Metal#Grouping_from_an_Annotated_VCF_File|annotatedVcf, annotation]] and [[Rare-Metal#Generate_a_VCF_File_to_Annotate_Outside_of_Rare_Metal|writeVcf]] options are available.&lt;br /&gt;
&lt;br /&gt;
=== QC Options ===&lt;br /&gt;
   --hwe            [hwe.pvalue.cutoff]                     (default = 1e-05)&lt;br /&gt;
   --callRate      [variant.call.rate.cutoff]               (default = 0.95)&lt;br /&gt;
&lt;br /&gt;
Additional details on these options are [[Rare-Metal#QC_Options|available]].&lt;br /&gt;
&lt;br /&gt;
=== Association Methods for Meta-analysis ===&lt;br /&gt;
   --useExact   optimized method for unbalanced studies with unrelated samples, described [[RAREMETAL METHOD#SINGLE_VARIANT_SCORE_TEST]].&lt;br /&gt;
   --burden      burden test with equal weight        &lt;br /&gt;
   --MAB           burden test with MAF as weight&lt;br /&gt;
   --MB             burden test with sqrt(maf(1-maf)) as weight&lt;br /&gt;
   --VT              variant threshold test&lt;br /&gt;
   --SKAT         standard SKAT test&lt;br /&gt;
   --condition   [your.list.of variants.to.be.conditioned.upon]&lt;br /&gt;
Additional details for these options are [[Rare-Metal#Association_Methods|available]].&lt;br /&gt;
&lt;br /&gt;
=== Other Options for Performance and Amenities ===&lt;br /&gt;
  --labelHits    [ON|OFF]&lt;br /&gt;
  --correctGC    [ON|OFF]&lt;br /&gt;
  --prefix       [your.prefix]&lt;br /&gt;
  --maf          [your.maf.threshold.for.gene-level.tests]    (default = 0.05)&lt;br /&gt;
  --longOutput   [ON|OFF]&lt;br /&gt;
  --tabulateHits [ON|OFF]&lt;br /&gt;
  --hitsCutoff   [your.cutoff.for.hits]                       (default = 1e-06)&lt;br /&gt;
  --altMAF       [if specified, studies that do not contain the variant will be excluded.]&lt;br /&gt;
&lt;br /&gt;
Additional details for these options are [[Rare-Metal#Other_Options|available]].&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14475</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14475"/>
		<updated>2016-11-27T19:42:52Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant in &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {\delta_{k}} &amp;lt;/math&amp;gt; is the deviation of trait value of &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Optimized method for unbalanced studies (--useExact)&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}^{2}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}={\sigma^{2}}\sum_{k=1}^S{(V_{ii,k}{\Omega_{k}}-4n_{k}(ff&#039;-f_{k}f_{k}&#039;))}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{\sigma^{2}}=\sum_{k=1}^S{((n_{k}-1){\Omega_{k}}+n_{k}{\delta_{k}^{2}})}/(n-1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14474</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14474"/>
		<updated>2016-11-27T19:42:34Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant in &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {\delta_{k}} &amp;lt;/math&amp;gt; is the deviation of trait value of &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Optimized method for unbalanced studies (--useExact)&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}^{2}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}={\sigma^{2}}\sum_{k=1}^S{(V_{ii,k}{\Omega_{k}}-4n_{k}(ff&#039;-f_{k}f_{k}&#039;))}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{\sigma^{2}}=\sum_{k=1}^S{((n_{k}-1){\Omega_{k}}+n_{k}{\delta_{k}})}/(n-1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14473</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14473"/>
		<updated>2016-11-27T19:41:33Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant in &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {\delta_{k}} &amp;lt;/math&amp;gt; is the deviation of trait value of &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Optimized method for unbalanced studies (--useExact)&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}^{2}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}={\sigma^{2}}\sum_{k=1}^S{(V_{ii,k}{\Omega_{k}}-4n_{k}(ff&#039;-f_{k}f_{k}&#039;))}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{\sigma^{2}}=\sum_{k=1}^S{((n_{k}-1){\Omega_{k}}+n_{k}{\delta_{k}_{2}})}/(n-1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14472</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14472"/>
		<updated>2016-11-27T19:41:20Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant in &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {\delta_{k}} &amp;lt;/math&amp;gt; is the deviation of trait value of &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Optimized method for unbalanced studies (--useExact)&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}^{2}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}={\sigma^{2}}\sum_{k=1}^S{(V_{ii,k}{\Omega_{k}}-4n_{k}(ff&#039;-f_{k}f_{k}&#039;))}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{\sigma^{2}}=\sum_{k=1}^S{((n_{k}-1){\Omega_{k}}+n_{k}{\delta_{k}})}/(n-1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14471</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14471"/>
		<updated>2016-11-27T19:40:44Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant in &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {\delta_{k}} &amp;lt;/math&amp;gt; is the deviation of trait value of &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Optimized method for unbalanced studies (--useExact)&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}={\sigma^{2}}\sum_{k=1}^S{(V_{ii,k}{\Omega_{k}}-4n_{k}(ff&#039;-f_{k}f_{k}&#039;))}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{\sigma^{2}}=\sum_{k=1}^S{((n_{k}-1){\Omega_{k}}+n_{k}{\delta_{k}})}/(n-1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14470</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14470"/>
		<updated>2016-11-27T19:39:50Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant in &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {\delta_{k}} &amp;lt;/math&amp;gt; is the deviation of trait value of &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Optimized method for unbalanced studies (--useExact)&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}={\sigma^{2}}\sum_{k=1}^S{(V_{ii,k}{\Omega_{k}}-4n_{k}(ff&#039;-f_{k}f_{k}&#039;))}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{\sigma^{2}}=\sum_{k=1}^S{((n_{k}-1){\Omega_{k}})}/(n-1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14469</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14469"/>
		<updated>2016-11-27T19:37:28Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant in &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {\delta_{k}} &amp;lt;/math&amp;gt; is the deviation of trait value of &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Optimized method for unbalanced studies (--useExact)&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}={\sigma^{2}}\sum_{k=1}^S{(V_{ii,k}{\Omega_{k}}-4n_{k}(ff&#039;-f_{k}f_{k}&#039;))}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14468</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14468"/>
		<updated>2016-11-27T19:35:45Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant in &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {\delta_{k}} &amp;lt;/math&amp;gt; is the deviation of trait value of &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Optimized method for unbalanced studies (--useExact)&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}={\sigma^{2}}\sum_{k=1}^S{(V_{ii,k}-4n_{k}(ff&#039;-f_{k}f_{k}&#039;))}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14467</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14467"/>
		<updated>2016-11-27T19:35:06Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant in &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {\delta_{k}} &amp;lt;/math&amp;gt; is the deviation of trait value of &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Optimized method for unbalanced studies (--useExact)&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}={\sigma^{2}}\sum_{k=1}^S{V_{ii,k}-4n_{k}(ff&#039;-f_{k}f_{k}&#039;)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14466</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14466"/>
		<updated>2016-11-27T19:32:35Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant in &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {\delta_{k}} &amp;lt;/math&amp;gt; is the deviation of trait value of &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Optimized method for unbalanced studies (--useExact)&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14465</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14465"/>
		<updated>2016-11-27T19:32:09Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* NOTATIONS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant in &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {\delta_{k}} &amp;lt;/math&amp;gt; is the deviation of trait value of &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Optimized method for unbalanced studies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14464</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14464"/>
		<updated>2016-11-27T19:31:26Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* NOTATIONS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;\math&amp;gt; variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of &amp;lt;math&amp;gt;i^{th}&amp;lt;\math&amp;gt; variant in &amp;lt;math&amp;gt;k^{th}&amp;lt;\math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {\delta_{k}} &amp;lt;/math&amp;gt; is the deviation of trait value of &amp;lt;math&amp;gt;k^{th}&amp;lt;\math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Optimized method for unbalanced studies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14463</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14463"/>
		<updated>2016-11-27T19:30:36Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* NOTATIONS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of i^{th} variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of i^{th} variant in k^{th} study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {\delta_{k}} &amp;lt;/math&amp;gt; is the deviation of trait value of k^{th} study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Optimized method for unbalanced studies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14462</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14462"/>
		<updated>2016-11-27T19:30:18Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* NOTATIONS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of i^{th} variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of i^{th} variant in k^{th} study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {\delta_{k}} &amp;lt;/math&amp;gt; is the deviation of trait value of study k&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Optimized method for unbalanced studies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14461</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14461"/>
		<updated>2016-11-27T19:29:16Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* NOTATIONS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i} &amp;lt;/math&amp;gt; is the pooled allele frequency of i^{th} variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; f_{i,k} &amp;lt;/math&amp;gt; is the allele frequency of i^{th} variant in k^{th} study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Optimized method for unbalanced studies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14460</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14460"/>
		<updated>2016-11-27T19:27:17Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Optimized method for unbalanced studies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f_{i}-f_{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14459</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14459"/>
		<updated>2016-11-27T19:27:04Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Optimized method for unbalanced studies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f_{i}-f{i,k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14458</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14458"/>
		<updated>2016-11-27T19:26:20Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Optimized method for unbalanced studies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\Omega_{k}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f-f{k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14457</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14457"/>
		<updated>2016-11-27T19:25:59Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Optimized method for unbalanced studies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}/\hat{\boldsymbol{\Omega_{k}}}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f-f{k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14456</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14456"/>
		<updated>2016-11-27T19:23:50Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Optimized method for unbalanced studies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}-\sum_{k=1}^S{2n_{k}{\delta_{k}(f-f{k})}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14455</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14455"/>
		<updated>2016-11-27T19:23:01Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Optimized method for unbalanced studies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}-\sum_{k=1}^S{2n_{k}{\delta_{k}}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14454</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14454"/>
		<updated>2016-11-27T19:22:18Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Optimized method for unbalanced studies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}-sum_{k=1}^S{2n_{k}{\delta}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14453</id>
		<title>RAREMETAL METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=14453"/>
		<updated>2016-11-27T19:14:11Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* SINGLE VARIANT META ANALYSIS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==INTRODUCTION==&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.ncbi.nlm.nih.gov/pubmed/24336170 &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;]. The main formulae are tabulated in the following:&lt;br /&gt;
&lt;br /&gt;
==KEY FORMULAE==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
We denote the following to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; is the score statistic for the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; is the covariance of the score statistics between the &amp;lt;math&amp;gt;i^{th} &amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;j^{th} &amp;lt;/math&amp;gt; variant from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{i,k} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{ij,k} &amp;lt;/math&amp;gt; are described in detail in [[RAREMETALWORKER_method#SINGLE_VARIANT_SCORE_TEST|&#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{U_k}&amp;lt;/math&amp;gt; is the vector of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{V_k}&amp;lt;/math&amp;gt; is the variance-covariance matrix of score statistics of rare variants in a gene from the &amp;lt;math&amp;gt; k^{th} &amp;lt;/math&amp;gt; study, or &amp;lt;math&amp;gt;\mathbf{V_k} = cov(\mathbf{U_k})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; is the number of studies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{w^T} = (w_1,w_2,...,w_m)^T&amp;lt;/math&amp;gt; is the vector of weights for &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rare variants in a gene.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT META ANALYSIS===&lt;br /&gt;
Single variant meta-analysis score statistic can be reconstructed from score statistics and their variances generated by each study, assuming that samples are unrelated across studies. Define meta-analysis score statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;U_{meta_i}=\sum_{k=1}^S {U_{i,k}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its variance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V_{meta_i}=\sum_{k=1}^S{V_{ii,k}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then the score test statistics for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &amp;lt;math&amp;gt;T_{meta_i}&amp;lt;/math&amp;gt; asymptotically follows standard normal distribution &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_i}=U_{meta_i}\bigg/\sqrt{V_{meta_i}}=\sum_{k=1}^S {U_{i,k}}\bigg/\sqrt{\sum_{k=1}^S{V_{ii,k}}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Optimized method for unbalanced studies:&lt;br /&gt;
&lt;br /&gt;
===BURDEN META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Burden test has been shown to be powerful detecting a group of rare variants that are unidirectional in effects. Once single variant meta analysis statistics are constructed, burden test score statistic for a gene can be easily reconstructed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{burden}}=\mathbf{w^TU_{meta}}\bigg/\sqrt{\mathbf{w^TV_{meta}w}} \sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{U_{meta}} = (U_{meta_1},U_{meta_2},...,U_{meta_m})^T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \mathbf{V_{meta}}=cov(\mathbf{U_{meta}})&amp;lt;/math&amp;gt;, representing a vector of single variant meta-analysis scores of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants in a gene and the covariance matrix of the scores across &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; variants.&lt;br /&gt;
&lt;br /&gt;
===VT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
Including variants that are not associated to phenotype can hurt power. Variable threshold test is designed to choose the optimal allele frequency threshold amongst rare variants in a gene, to gain power. The test statistic is defined as the maximum burden score statistic calculated using every possible frequency threshold&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{meta_{VT}}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)})&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;T_{b\left(f_i\right)}&amp;lt;/math&amp;gt; is the burden test statistic under allele frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;, and can be constructed from single variant meta-analysis statistics using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{U_{meta}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; represents any allele frequency in a group of rare variants, &amp;lt;math&amp;gt;\boldsymbol{\phi}_{f_j}&amp;lt;/math&amp;gt; is a vector of 0 and 1, indicating if a variant is included in the analysis using frequency threshold &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As described by [http://www.ncbi.nlm.nih.gov/pubmed/21885029 &#039;&#039;&#039;Lin et. al&#039;&#039;&#039;], the p-value of this test can be calculated analytically using the fact that the burden test statistics together follow a multivariate normal distribution with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\boldsymbol{\Omega}&amp;lt;/math&amp;gt;, written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \left(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}\right)&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\sim\mathbf{MVN}\left(\mathbf{0},\boldsymbol{\Omega}\right) &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\mathbf{V_{meta}}\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===SKAT META ANALYSIS===&lt;br /&gt;
&lt;br /&gt;
SKAT is most powerful when detecting genes with rare variants having opposite directions in effect sizes. Meta-analysis statistic can also be re-constructed using single variant meta-analysis scores and their covariances&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}=\mathbf{{U_{meta}}^T}\mathbf{W}\mathbf{U_{meta}}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{W}&amp;lt;/math&amp;gt; is a diagonal matrix of weights of rare variants included in a gene.&lt;br /&gt;
&lt;br /&gt;
As shown in [http://www.ncbi.nlm.nih.gov/pubmed/21737059  &#039;&#039;&#039;Wu et. al&#039;&#039;&#039;], the null distribution of the &amp;lt;math&amp;gt; \mathbf{Q} &amp;lt;/math&amp;gt; statistic follows a mixture chi-sqaured distribution described as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2}, &amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)&amp;lt;/math&amp;gt; are eigen values of &amp;lt;math&amp;gt;\mathbf{V_{meta}^\frac{1}{2}}\mathbf{W}\mathbf{V_{meta}^\frac{1}{2}}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Documentation&amp;diff=14452</id>
		<title>RAREMETAL Documentation</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Documentation&amp;diff=14452"/>
		<updated>2016-11-27T19:13:29Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Useful Wiki Pages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
* Git hub page: https://github.com/traxexx/Raremetal&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL_Change_Log | Change Log]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL_DOWNLOAD_%26_BUILD | DOWNLOAD page]]&lt;br /&gt;
&lt;br /&gt;
* The [[Tutorial:_RAREMETAL|RAREMETAL Quick Start Tutorial]]&lt;br /&gt;
* The [[RAREMETAL METHOD]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL FAQ]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL Command Reference]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER|RAREMETALWORKER documentation]]&lt;br /&gt;
&lt;br /&gt;
The [http://genome.sph.umich.edu/wiki/Rvtests &#039;&#039;&#039;rvtests&#039;&#039;&#039;] tool for rare-variant association analysis can also generate output compatible with RAREMETAL.&lt;br /&gt;
&lt;br /&gt;
== Brief Description ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; is a computationally efficient tool for meta-analysis of rare variants using sequencing or genotyping array data. It takes summary statistics and LD matrices generated by [[Rare-Metal-Worker|&#039;&#039;&#039;RAREMETALWORKER&#039;&#039;&#039;]] or [http://genome.sph.umich.edu/wiki/Rvtests &#039;&#039;&#039;rvtests&#039;&#039;&#039;], handles related and unrelated individuals, and supports both single variant and burden meta-analysis. It generates high quality plots by default and has options that allow users to build reports at different levels.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; is developed by Shuang Feng, Dajiang Liu and Gonçalo Abecasis. A R-package written by Dajiang Liu using the same methodology is [[RareMetals|&#039;&#039;&#039;available&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
== Key Features ==&lt;br /&gt;
&#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; has the following features:&lt;br /&gt;
* Performs gene-based or region-based meta analysis using Burden tests with the following methods: CMC_counts, Madsen-Browning, SKAT, and Variable Threshold. &lt;br /&gt;
* Performs single variant metal-analysis by default. &lt;br /&gt;
* Allows customized groups of variants to be tested.&lt;br /&gt;
* Allows conditional analysis to be performed in both gene-level meta-analysis and single variants meta-analysis.&lt;br /&gt;
* Generate QQ plots and manhattan plots by default.&lt;br /&gt;
&lt;br /&gt;
== Approach ==&lt;br /&gt;
&lt;br /&gt;
The key idea behind meta-analysis with RAREMETAL is that various gene-level test statistics can be reconstructed from single variant score statistics and that, when the linkage disequilibrium relationships between variants are known, the distribution of these gene-level statistics can be derived and used to evaluate signifi-cance. Single variant statistics are calculated using the Cochran-Mantel-Haenszel method. Our method has been published in [http://www.nature.com/ng/journal/v46/n2/abs/ng.2852.html &#039;&#039;&#039;Liu et. al&#039;&#039;&#039;] in Nature Genetics. Please go to [http://genome.sph.umich.edu/wiki/RAREMETAL_method &#039;&#039;&#039;method&#039;&#039;&#039;] for details.&lt;br /&gt;
&lt;br /&gt;
== Download and Installation ==&lt;br /&gt;
* University of Michigan CSG users can go to the following:&lt;br /&gt;
  /net/wonderland/home/saichen/Raremetal/bin/&lt;br /&gt;
&lt;br /&gt;
=== Where to Download ===&lt;br /&gt;
&lt;br /&gt;
We have tested compilation using our source code on several platforms including Linux, MAC OS X, and Windows. &lt;br /&gt;
&lt;br /&gt;
For source code and executables together with instructions of building from source, please go to [[RAREMETAL_DOWNLOAD_%26_BUILD |&#039;&#039;&#039;DOWNLOAD source and executables&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
For questions about compilation, please go to [[RAREMETAL_FAQ | &#039;&#039;&#039;FAQ&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Instructions ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; is a command line tool. It is typically run from a Linux or Unix prompt by invoking the command &amp;lt;code&amp;gt;raremetal&amp;lt;/code&amp;gt;. In the following are descriptions of basic usage for meta analysis. A detailed [[Tutorial:_RareMETAL|&#039;&#039;&#039;TUTORIAL&#039;&#039;&#039;]] with toy data are also available.&lt;br /&gt;
&lt;br /&gt;
==== Prepare Input Files====&lt;br /&gt;
&#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; requires the following basic input files: summary statistics and covariance matrices of score statistics generated by &#039;&#039;&#039;RAREMETALWORKER&#039;&#039;&#039; or [http://genome.sph.umich.edu/wiki/Rvtests &#039;&#039;&#039;rvtests&#039;&#039;&#039;], a file with list of studies to be included and a group file if gene-level meta-analysis is expected. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Summary Statistics=====&lt;br /&gt;
Files containing summary statistics and LD matrices generated by &#039;&#039;&#039;RAREMETALWORKER&#039;&#039;&#039; should be compressed and [http://samtools.sourceforge.net/tabix.shtml &#039;&#039;&#039;tabix&#039;&#039;&#039;] indexed using the following commands (Note in RAREMETALWORKER, if --zip is specified, these .gz and .tbi files will be automatically generated):&lt;br /&gt;
&lt;br /&gt;
 bgzip study1.singlevar.score.txt&lt;br /&gt;
 tabix -s 1 -b 2 -e 2 -c &amp;quot;#&amp;quot; study1.singlevar.score.txt.gz&lt;br /&gt;
 bgzip study1.singlevar.cov.txt&lt;br /&gt;
 tabix -s 1 -b 2 -e 2 -c &amp;quot;#&amp;quot; study1.singlevar.cov.txt.gz&lt;br /&gt;
&lt;br /&gt;
Files containing summary statistics and LD matrices generated by &#039;&#039;&#039;rvtests&#039;&#039;&#039; should be compressed and [http://samtools.sourceforge.net/tabix.shtml &#039;&#039;&#039;tabix&#039;&#039;&#039;] indexed using the following commands:&lt;br /&gt;
&lt;br /&gt;
 bgzip study1.MetaScore.assoc&lt;br /&gt;
 tabix -s 1 -b 2 -e 2 -S 1 study1.MetaScore.assoc.gz&lt;br /&gt;
 tabix -s 1 -b 2 -e 2 -S 1 study1.MetaCov.assoc.gz&lt;br /&gt;
&lt;br /&gt;
=====List of Studies=====&lt;br /&gt;
* --summaryFiles option is crucial for &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; to work. Ignoring this option would lead to FATAL ERROR and &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; would stop. &lt;br /&gt;
* The file should contain the path and prefix of the studies you want to include. &lt;br /&gt;
* If there is one or more studies that you want to excluded from your list, but want to save some effort of generating a new file, you can put a &amp;quot;#&amp;quot; in front of the line of record. &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; would automatically exclude that study from meta analysis. An example list of summary file is in the following:&lt;br /&gt;
&lt;br /&gt;
  /net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/TwinsUK/TwinsUK.TG.singlevar.score.txt.gz&lt;br /&gt;
  #/net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/HUNT/RareMetalWorker/HUNT_MI_case.TG.singlevar.score.txt.gz&lt;br /&gt;
&lt;br /&gt;
* When gene-level analysis is requested, --covFiles option should be used to specify the covariance files. An example file is:&lt;br /&gt;
&lt;br /&gt;
  /net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/TwinsUK/TwinsUK.TG.singlevar.cov.txt.gz&lt;br /&gt;
  #/net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/HUNT/RareMetalWorker/HUNT_MI_case.TG.singlevar.cov.txt.gz&lt;br /&gt;
&lt;br /&gt;
* The above example study name file guides &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; to look for summary statistics from TwinsUK study only, because &amp;quot;HUNT&amp;quot; study is commented out. The following two files are needed for &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; to perform further analysis together with their tabix index file are needed.&lt;br /&gt;
&lt;br /&gt;
* Please sepcify --dosage option if input files were generated from dosage instead of genotype.&lt;br /&gt;
&lt;br /&gt;
=====Group Rare Variants=====&lt;br /&gt;
&lt;br /&gt;
====== From a Group File ======&lt;br /&gt;
* Grouping methods are only necessary when doing gene-based or group-based burden tests in meta-analysis. &lt;br /&gt;
* If none of the grouping method is specified, then only single variant meta-analysis will be performed. &lt;br /&gt;
* With --groupFile option, you can specify particular set of variants to be grouped for burden tests.&lt;br /&gt;
* The group file must be a tab or space delimited file in the following format:&lt;br /&gt;
  GROUP_ID MARKER1_ID MARKER2_ID MARKER3_ID ... &lt;br /&gt;
* MARKER_ID must be in the following format:&lt;br /&gt;
  CHR:POS:REF:ALT&lt;br /&gt;
* An example group file is:&lt;br /&gt;
  PLEKHN1 1:901922:G:A    1:901923:C:A    1:902088:G:A    1:902128:C:T    1:902133:C:G    1:902176:C:T    1:905669:C:G        &lt;br /&gt;
  HES4    1:934735:A:C    1:934770:G:A    1:934801:C:T    1:935085:G:A    1:935089:C:G&lt;br /&gt;
  ISG15   1:949422:G:A    1:949491:G:A    1:949502:C:T    1:949608:G:A    1:949802:G:A    1:949832:G:A&lt;br /&gt;
  AGRN    1:970687:C:T    1:976963:A:G    1:977028:G:T    1:977356:C:T    1:977396:G:A    1:978628:C:T    1:978645:G:A             &lt;br /&gt;
  C1orf159        1:1021285:G:T   1:1021302:T:C   1:1021315:A:C   1:1021386:G:A   1:1022534:C:T   1:1025751:C:T   1:1026913:C:T&lt;br /&gt;
&lt;br /&gt;
====== From an Annotated VCF File ======&lt;br /&gt;
If --groupFile option is &#039;&#039;&#039;NOT&#039;&#039;&#039; specified, &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; will look for an annotated vcf file as blue print for variants to group. Users are also allowed to generate a vcf file based on the superset of variants from pooled samples, and annotate outside RAREMETAL. Then, annotated vcf file can be used as input for RAREMETAL for gene-level meta-analysis, or group files can be generated based on the annotated vcf file. Detailed description of these options are [[Rare-Metal#Group_Rare_Variants_from_Annotated_VCF|&#039;&#039;&#039;available&#039;&#039;&#039;]]. There are also [[Rare-Metal#Example_Command_lines|&#039;&#039;&#039;examples&#039;&#039;&#039;]] of this usage at the bottom of this page.&lt;br /&gt;
&lt;br /&gt;
==== QC Options ====&lt;br /&gt;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; allows filtering of variants from individual studies by their HWE pvalue and call rate, which are generated as part of the output from &#039;&#039;&#039;RAREMETALWORKER&#039;&#039;&#039; or [http://genome.sph.umich.edu/wiki/Rvtests &#039;&#039;&#039;rvtests&#039;&#039;&#039;].&lt;br /&gt;
* To filter by HWE p-values, --hwe option should be used. The default is 0.0, which means not filtering any of the variants.&lt;br /&gt;
* To filter by call rate, --callRate option can be specified. The default is 0.0, which allows no filtering utilized.&lt;br /&gt;
&lt;br /&gt;
==== Association Options====&lt;br /&gt;
* Currently, CMC type burden test, Madsen-Browning burden test, Variable Threshold burden test and SKAT are provided in &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039;, by specifying --burden, --MB, --VT and --SKAT.&lt;br /&gt;
* --maf specifies the minor allele frequency cutoff when doing gene-based or group-based burden tests. Variants with maf &#039;&#039;&#039;above&#039;&#039;&#039; this threshold will be ignored. The default is maf&amp;lt;0.05.&lt;br /&gt;
* In &#039;&#039;&#039;a single study&#039;&#039;&#039; of sample size N, if a site is monomorphic or not reported in vcf/ped, it is considered that the sample size of this study is not large enough to sample the rare allele. Thus, this study contributes 2*N reference alleles and 0 alternative allele towards meta-analysis. To let such studies contribute no alleles towards pooled allele frequency, specify --altMAF.&lt;br /&gt;
&lt;br /&gt;
==== Conditional Analysis====&lt;br /&gt;
* To decide whether a signal is caused by shadowing a significant common variant nearby, &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; also enables conditional analysis with a list of variants to be conditioned upon provided in a file as input for --condition option. An example input file should be space or tab delimited as in the following. When alleles do not match the ref and alt alleles from samples, the variant will be skipped from conditional analysis.&lt;br /&gt;
&lt;br /&gt;
 1:861349:C:T 1:905901:G:A 20:986998:G:C 22:3670691:A:G&lt;br /&gt;
&lt;br /&gt;
== Additional Analysis Options ==&lt;br /&gt;
&lt;br /&gt;
=== Generate a VCF File to Annotate Outside RAREMETAL ===&lt;br /&gt;
* --writeVCF allows user to write a VCF file including pooled single variants from all studies. Then users can use their favorite annotation tool to annotate the VCF file. After annotating the VCF file, users can use that file as input for &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; for further gene-based or region-based meta analysis.&lt;br /&gt;
* The output vcf file will be name as: yourPrefix.pooled.variants.vcf. An example output vcf file is in the following:&lt;br /&gt;
  #CHROM    POS     ID      REF     ALT     QUAL    FILTER  INFO&lt;br /&gt;
  1       115658497       115658497       G       A       .       .       ALT_AF=0.380906;&lt;br /&gt;
  2       74688884        74688884        G       A       .       .       ALT_AF=8.33611e-05;&lt;br /&gt;
  3       121414217       121414217       C       A       .       .       ALT_AF=0.0747833;&lt;br /&gt;
===Annotation===&lt;br /&gt;
* RAREMETAL automatically recognizes the annotation format generated by [[TabAnno | &#039;&#039;&#039;ANNO&#039;&#039;&#039;]] or [[EPACTS#Annotating_VCF_file_using_EPACTS | &#039;&#039;&#039;EPACTS&#039;&#039;&#039;]].&lt;br /&gt;
* To annotate a the VCF generated in previous step, you can use the following command:&lt;br /&gt;
 ./anno --in your.in.vcf.gz --out your.out.vcf.gz&lt;br /&gt;
&lt;br /&gt;
=== Group Rare Variants from Annotated VCF ===&lt;br /&gt;
* If --groupFile option is &#039;&#039;&#039;NOT&#039;&#039;&#039; specified, &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; will look for an annotated vcf file as blue print for variants to group.&lt;br /&gt;
* The annotated VCF file should be specified using --annotatedVcf option. &lt;br /&gt;
* --annotation should be used with --annotatedVcf together when specific category of functional variants are of interest to be grouped. For example, if grouping nonsynonymous and splicing variants are of interests, the following should be included in command line:&lt;br /&gt;
* (! only available after v4.13.8) when --annotation is not specified, raremetal groups all non-intergenic variants.&lt;br /&gt;
&lt;br /&gt;
  --annotatedVcf your.annotated.vcf --annotation nonsyn/splicing&lt;br /&gt;
  Note: this allows you to group variants that are annotated starting with nonsyn or splicing (not case-sensitive).&lt;br /&gt;
&lt;br /&gt;
* Special format for the annotated VCF file is required: all annotation information should be coded in INFO field in VCF file, starting with the key &amp;quot;ANNO=&amp;quot;. An example annotated VCF file is in the following:&lt;br /&gt;
&lt;br /&gt;
  #CHROM    POS     ID      REF     ALT     QUAL    FILTER  INFO&lt;br /&gt;
  1       19208194        .       G       A       100     PASS      &lt;br /&gt;
  AC=3;&#039;&#039;&#039;ANNO=&#039;&#039;&#039;nonsynonymous:ALDH4A1:NM_170726:exon8:c.C866T:p.P289L,ALDH4A1:NM_001161504:exon8:c.C686T:p.P229L,ALDH4A1:NM_003748:exon8:c.C866T:p.P289L,;&lt;br /&gt;
  &#039;&#039;&#039;ANNO=&#039;&#039;&#039;splicing:ALDH4A1&lt;br /&gt;
  1       19208293        .       G       C       100     PASS    AC=7;STUDIES=5;MAC=7;MAF=0.001;DESIGN=TBD_ASSAY;DSCORE=1.00;&lt;br /&gt;
  &#039;&#039;&#039;ANNO=&#039;&#039;&#039;nonsynonymous:ALDH4A1:NM_170726:exon8:c.C767G:p.P256R,ALDH4A1:NM_001161504:exon8:c.C587G:p.P196R,ALDH4A1:NM_003748:exon8:c.C767G:p.P256R,&lt;br /&gt;
&lt;br /&gt;
* Notice that each variant is allowed to have more than one annotations; but each annotation should start with a new key &amp;quot;ANNO=&amp;quot; followed by annotation:genename:other transcript information.&lt;br /&gt;
* Generated group file will be named test.groupfile under your running directory.&lt;br /&gt;
&lt;br /&gt;
===Options for Report Generation=== &lt;br /&gt;
* --correctGC generates QQ plots and manhattan plots with pvalues corrected using genomic control.&lt;br /&gt;
* --prefix allows customized prefix for output files. &lt;br /&gt;
* --longOutput allows users to output not only burden test results but also the single variant results (allele frequencies, effect sizes, and p-values) for the variants being grouped together. Please refer to the output files section for detailed explanation and examples.&lt;br /&gt;
* --tabulateHits works with --hitsCutoff together to generate reports for genes that have p-value less than specified cutoff from burden tests or SKAT. The default cutoff of p-value for genes to be reported is 1.0e-06, which can be specified by --hitsCutoff option. For more explanations and examples, please go to [[Rare-Metal#TABULATED_HITS| Tabulated Hits]].&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous Options===&lt;br /&gt;
* --tabix allows rapid analysis when number of groups/genes of interests are small. Currently, when number of groups is less than 100, --tabix option is automatically turned on.&lt;br /&gt;
&lt;br /&gt;
== Reports Generated by RAREMETAL ==&lt;br /&gt;
=== Single Variant Meta Analysis Output ===&lt;br /&gt;
&lt;br /&gt;
==== TABLES ====&lt;br /&gt;
&lt;br /&gt;
* Single variant meta analysis output has the following components: header, results and footnote. &lt;br /&gt;
* Header lines start with &amp;quot;##&amp;quot; shows summary of the meta analysis including method used, number of studies, and total sample size. &lt;br /&gt;
* Header line starts with &amp;quot;#&amp;quot; are column headers for results table.&lt;br /&gt;
* Footnote also starts with &amp;quot;#&amp;quot;, where genomic controls from each study and the overall sample are reported.&lt;br /&gt;
* An example single variant meta analysis output is shown below:&lt;br /&gt;
&lt;br /&gt;
  ##Method=SinglevarScore&lt;br /&gt;
  ##STUDY_NUM=2&lt;br /&gt;
  ##TotalSampleSize=14308&lt;br /&gt;
  #CHROM  POS     REF     ALT     POOLED_ALT_AF   EFFECT_SIZE     DIRECTION_BY_STUDY      PVALUE&lt;br /&gt;
  1       115658497       G       A       0.380906        0.00954332      ++      0.45828&lt;br /&gt;
  2       74688884        G       A       8.33611e-05     -0.196387       -!      0.845372&lt;br /&gt;
  3       121414217       C       A       0.0747833       0.0216982       -+      0.34453&lt;br /&gt;
  6       137245814       G       C       0.000803746     0.105693        ++      0.601805&lt;br /&gt;
* A detailed explanation of each column is in the following:&lt;br /&gt;
&lt;br /&gt;
  CHROM:              Chromosome Name&lt;br /&gt;
  POS:                Variant Position&lt;br /&gt;
  REF:                Reference Allele Label&lt;br /&gt;
  ALT:                Alternative Allele Label&lt;br /&gt;
  POOLED_ALT_AF:      Pooled Alternative Allele Frequency&lt;br /&gt;
  EFFECT_SIZE:        Alternative Allele Effect Size&lt;br /&gt;
  DIRECTION_BY_STUDY: Effect size direction of alternative allele from each study. &lt;br /&gt;
                      The order of study is consistent with the order of studies listed in the input file for option --summaryFiles. &lt;br /&gt;
                      &amp;quot;?&amp;quot; means the variant is not observed or monomorphic from the study. &lt;br /&gt;
                      &amp;quot;!&amp;quot; means the variant observed from this study has different alleles from those in the first study.&lt;br /&gt;
&lt;br /&gt;
==== PLOTS====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; generates QQ plots and manhattan plots from single variant meta-analysis by default. Three QQ plots are generated, one with all variants included, one of variants with maf&amp;lt;0.05 and one of variants with maf&amp;lt;0.01. All plots are saved in a pdf file named yourPrefix.meta.plots.pdf. Genomic controls are also reported in the title of plots. When --correctGC option is specified, GC corrected plots are also generated.&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; | [[File:QQ.png]]&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; width=&amp;quot;200&amp;quot; | [[File:Single_var_manhattan.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Gene-level Tests Meta-Analysis Output ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== LONG TABLES ====&lt;br /&gt;
When --longOutput is used, output includes both burden test results of genes and single variant results of the variants included in burden tests. Here is an example of output file from SKAT when --longOutput is specified. &lt;br /&gt;
  ##Method=Burden&lt;br /&gt;
  ##STUDY_NUM=2&lt;br /&gt;
  ##TotalSampleSize=14308&lt;br /&gt;
  #GROUPNAME      NUM_VAR VARs    MAFs    SINGLEVAR_EFFECTs       SINGLEVAR_PVALUEs       AVG_AF  MIN_AF  MAX_AF  EFFECT_SIZE     PVALUE&lt;br /&gt;
  NOC2L   7       1:880502:C:T;1:881918:G:A;1:887799:C:T;1:888659:T:C;1:889238:G:A;1:891591:C:T;1:892380:G:A        0.000166722,0.0242172,0.0109203,0.0355845,0.0333729,0.00700233,0.00200067       -0.183575,-0.00228307,-0.0598337,0.0220595,0.0229464,-0.0302768,-0.0200417      0.790161,0.953446,0.515806,0.503548,0.499251,0.791773,0.926625  0.0161807       0.000166722     0.0355845       0.00667875      0.662531&lt;br /&gt;
  KLHL17  2       1:897285:A:G;1:898869:C:T       0.0148408,0.00108369    -0.0502034,-0.0256403   0.528269,0.934606       0.00796222      0.00108369      0.0148408       -0.0484494      0.528878&lt;br /&gt;
&lt;br /&gt;
==== SHORT TABLES ====&lt;br /&gt;
Otherwise, single variant results of variants included in burden tests will not be included in the output. Here is an example of output file from SKAT when --longOutput is not specified.&lt;br /&gt;
&lt;br /&gt;
  ##Method=Burden&lt;br /&gt;
  ##STUDY_NUM=2&lt;br /&gt;
  ##TotalSampleSize=14308&lt;br /&gt;
  #GROUPNAME      NUM_VAR VARs    AVG_AF  MIN_AF  MAX_AF  EFFECT_SIZE     PVALUE&lt;br /&gt;
  NOC2L   7       1:880502:C:T;1:881918:G:A;1:887799:C:T;1:888659:T:C;1:889238:G:A;1:891591:C:T;1:892380:G:A      0.0161807       0.000166722     0.0355845       0.00667875      0.662531&lt;br /&gt;
  KLHL17  2       1:897285:A:G;1:898869:C:T       0.00796222      0.00108369      0.0148408       -0.0484494      0.528878&lt;br /&gt;
&lt;br /&gt;
==== TABULATED HITS ====&lt;br /&gt;
* When --tabulateHits is specified, top hits from Burden tests will be generated. Each method will have an individual tabulated file generated. The purpose of this tabulated file is to list burden test results of top hits together with single variant results from variants being grouped in burden tests. The difference between this file and the standard long-format output file from burden test is that each row of the file represents a single variant that is included in the gene for burden test. This format allows each sorting on users end. &lt;br /&gt;
&lt;br /&gt;
* Tabulated top hits are saved in the file:&lt;br /&gt;
  yourPrefix.meta.tophits.youMethod.tbl (example files names: TG.meta.tophits.burden.tbl, LDL.meta.tophits.SKAT.tbl)&lt;br /&gt;
&lt;br /&gt;
* The following items are tabulated in the output:&lt;br /&gt;
  GENE: Gene name.&lt;br /&gt;
  METHOD: Burden test used.&lt;br /&gt;
  GENE_PVALUE: P-value from gene-based burden tests.&lt;br /&gt;
  MAF_CUTOFF: MAF cutoff used when doing gene-based tests.&lt;br /&gt;
  ACTUAL_CUTOFF: Actual MAF cutoff used. (This will be different from MAF_CUTOFF only for Variable Threshold method.&lt;br /&gt;
                 Otherwise, it will be the same as MAF_CUTOFF.)&lt;br /&gt;
  VAR: Variant name in CHR:POS:REF:ALT format.&lt;br /&gt;
  MAF: Single variant pooled MAF from all samples.&lt;br /&gt;
  EFFSIZE: Effect size from single variant meta analysis. &lt;br /&gt;
  PVALUE: Pvalue from single variant meta analysis.&lt;br /&gt;
&lt;br /&gt;
* An example of tabulated hits from a standard burden test with maf&amp;lt;0.05 as criterion is shown in the following:&lt;br /&gt;
&lt;br /&gt;
  GENE    METHOD  GENE_PVALUE     MAF_CUTOFF      ACTUAL_CUTOFF   VARS    MAFS    EFFSIZES        PVALUES&lt;br /&gt;
  PCSK9   BURDEN_0.050    7.54587e-11     0.05    0.05    1:55505647:G:T  0.0396631       -0.442192       2.10159e-46&lt;br /&gt;
  PCSK9   BURDEN_0.050    7.54587e-11     0.05    0.05    1:55518371:G:A  0.0237138       0.0548733       0.430246&lt;br /&gt;
  PCSK9   BURDEN_0.050    7.54587e-11     0.05    0.05    1:55529187:G:A  0.0433324       0.0946321       0.00129942&lt;br /&gt;
  APOE    BURDEN_0.050    2.83457e-72     0.05    0.05    19:45412079:C:T 0.0413056       -0.554561       2.83457e-72&lt;br /&gt;
&lt;br /&gt;
* According to the example above, PCSK9 had a p-value of 7.54587e-11 from the gene-based burden test, where three variants from this gene were included. Another hit from this meta analysis is APOE, where only one variant was included in the burden test.&lt;br /&gt;
&lt;br /&gt;
==== PLOTS ====&lt;br /&gt;
&#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; generates QQ plots and manhattan plots from single variant and gene-level meta-analysis by default. Example QQ plots and manhattan plots are:&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; width=&amp;quot;200&amp;quot; | [[File:manhattan.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== LOG ====&lt;br /&gt;
&lt;br /&gt;
* A log file is automatically generated by &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; to save the parameters in effect. An example is in the following:&lt;br /&gt;
&lt;br /&gt;
  The following parameters are in effect:&lt;br /&gt;
  &lt;br /&gt;
  List of Studies:&lt;br /&gt;
  ============================&lt;br /&gt;
  --studyName [studyName.SardiNia]&lt;br /&gt;
  &lt;br /&gt;
  Grouping Methods:&lt;br /&gt;
  ============================&lt;br /&gt;
  --groupFile [genes.file]&lt;br /&gt;
  --annotatedVcf []&lt;br /&gt;
  --annotation []&lt;br /&gt;
  --writeVcf [OFF]&lt;br /&gt;
  &lt;br /&gt;
  QC Options:&lt;br /&gt;
  ============================&lt;br /&gt;
  --hwe [0]&lt;br /&gt;
  --callRate [0] &lt;br /&gt;
  &lt;br /&gt;
  Association Methods:&lt;br /&gt;
  ============================&lt;br /&gt;
  --burden [true]&lt;br /&gt;
  --MB [false]&lt;br /&gt;
  --SKAT [false]&lt;br /&gt;
  --VT [false]&lt;br /&gt;
  --condition [condition.file]&lt;br /&gt;
  &lt;br /&gt;
  Other Options:&lt;br /&gt;
  ============================&lt;br /&gt;
  --tabix [OFF]&lt;br /&gt;
  --correctGC [ON]&lt;br /&gt;
  --prefix [test]&lt;br /&gt;
  --maf [0.05]&lt;br /&gt;
  --longOutput [false]&lt;br /&gt;
  --tabulateHits [false]&lt;br /&gt;
  --hitsCutoff [1e-06]&lt;br /&gt;
  --dosage [false]&lt;br /&gt;
  --altMAF [false]&lt;br /&gt;
&lt;br /&gt;
==Example Command lines==&lt;br /&gt;
&lt;br /&gt;
* Here is an example command line to do single variant meta analysis only:&lt;br /&gt;
  ./raremetal --summaryFiles your.list.of.summary.files --prefix yourPrefix &lt;br /&gt;
&lt;br /&gt;
* When you want to do all burden tests using a group file to specify which variants to group:&lt;br /&gt;
  ./raremetal --summaryFiles your.list.of.summary.files --covFiles your.list.of.cov.files --groupFile your.groupfile --burden --MB --SKAT --VT --maf 0.01 --prefix yourPrefix&lt;br /&gt;
  (NOTE: this will generate single variant meta analysis result and the short format output for burden test results.)&lt;br /&gt;
&lt;br /&gt;
* Here is how to do all SKAT meta analysis using a group file and request a long format output together with tabulated hits:&lt;br /&gt;
  ./raremetal --summaryFiles your.list.of.summary.files --covFiles your.list.of.cov.files --groupFile your.groupfile --SKAT --longOutput --tabulateHits --hitsCutoff 1.0e-07 --prefix yourPrefix&lt;br /&gt;
&lt;br /&gt;
* Here is an example of adding QC filters to variants when doing meta analysis.&lt;br /&gt;
  ./raremetal --summaryFiles your.list.of.summary.files --covFiles your.list.of.cov.files --groupFile your.groupfile --SKAT --longOutput --tabulateHits --hitsCutoff 1.0e-07 --hwe 1e-06 --callRate 0.98 --prefix yourPrefix&lt;br /&gt;
&lt;br /&gt;
* Here is how to do the same thing but reading grouping information from an annotated VCF file:&lt;br /&gt;
  ./raremetal --summaryFiles your.list.of.summary.files --covFiles your.list.of.cov.files --annotatedVcf your.annotated.vcf --annotation nonsyn/stop/splicing --SKAT --longOutput --tabulateHits --hitsCutoff 1.0e-07 --hwe 1e-06 --callRate 0.98 --prefix yourPrefix&lt;br /&gt;
&lt;br /&gt;
* If you want to write a VCF file of pooled variants from all studies, annotate them using your favorite annotation program, and then come back to &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; with the annotate VCF file to do burden tests:&lt;br /&gt;
  First, use the following command to write the VCF file:&lt;br /&gt;
  ./raremetal --summaryFiles your.list.of.summary.files --writeVcf --prefix yourPrefix&lt;br /&gt;
  Second, annotate the VCF file using your favorite annotation program. (Annotated VCF file has to follow the format described here: [[Rare-Metal#Group_Rare_Variants_from_Annotated_VCF|annotated VCF format]])&lt;br /&gt;
  Third, use the following command to do meta analysis:&lt;br /&gt;
  ./raremetal --summaryFiles your.list.of.summary.files --covFiles your.list.of.cov.files --annotatedVcf your.annotated.vcf --annotation nonsyn/splicing/stop --burden --MB --SKAT --VT --maf 0.01 --prefix yourPrefix&lt;br /&gt;
&lt;br /&gt;
==Other Useful Info==&lt;br /&gt;
&lt;br /&gt;
* Summary specs can be found [[Summary Files Specification for RAREMETAL]]&lt;br /&gt;
&lt;br /&gt;
==TUTORIAL==&lt;br /&gt;
* For a comprehensive tutorial of RAREMETALWORKER and RAREMETAL using example data sets, please go to the following:&lt;br /&gt;
&lt;br /&gt;
  [http://genome.sph.umich.edu/wiki/Tutorial:_RareMETAL &#039;&#039;&#039;RAREMETAL Tutorial&#039;&#039;&#039;]&lt;br /&gt;
&lt;br /&gt;
* For a brief tutorial of rvtests, please go to:&lt;br /&gt;
&lt;br /&gt;
  [http://genome.sph.umich.edu/wiki/Rvtests &#039;&#039;&#039;rvtests&#039;&#039;&#039;]&lt;br /&gt;
&lt;br /&gt;
==CONTACT==&lt;br /&gt;
&lt;br /&gt;
Please email Sai Chen (saichen at umich dot edu) for questions.&lt;br /&gt;
&lt;br /&gt;
Also check  [[Raremetal Incoming updates | &#039;&#039;&#039;Known issues and incoming update in next version&#039;&#039;&#039;]] to see if your problem has been reported before&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Command_Reference&amp;diff=14451</id>
		<title>RAREMETAL Command Reference</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Command_Reference&amp;diff=14451"/>
		<updated>2016-11-27T19:12:20Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Association Methods for Meta-analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Useful Pages==&lt;br /&gt;
* The [[RAREMETAL| Home Page]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL_Documentation|RAREMETAL Documentation]]&lt;br /&gt;
&lt;br /&gt;
* The [[Tutorial:_RAREMETAL|RAREMETAL Tutorial]] &lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL FAQ]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | RAREMETALWORKER documentation]]&lt;br /&gt;
&lt;br /&gt;
==Command References==&lt;br /&gt;
=== Overview of Options ===&lt;br /&gt;
 Options:&lt;br /&gt;
       List of Studies : --studyName []&lt;br /&gt;
      Grouping Methods : --groupFile [], --annotatedVcf [], --annotation [],&lt;br /&gt;
                         --writeVcf&lt;br /&gt;
            QC Options : --hwe [1.0e-05], --callRate [0.95]&lt;br /&gt;
   Association Methods : --burden, --MB, --SKAT, --VT, --condition []&lt;br /&gt;
         Other Options : --labelHits, --correctGC, --prefix [],&lt;br /&gt;
                         --mapFile [../src/refFlat_hg19.txt], --maf [0.05],&lt;br /&gt;
                         --longOutput, --tabulateHits, --hitsCutoff [1.0e-06]&lt;br /&gt;
                         --altMAF&lt;br /&gt;
&lt;br /&gt;
=== Describing Studies ===&lt;br /&gt;
   --studyName [your.list.of.studies.file]&lt;br /&gt;
&lt;br /&gt;
Additional details on this option is [[Rare-Metal#List_of_Studies_2|available]].&lt;br /&gt;
&lt;br /&gt;
=== Methods to Group Rare Variants ===&lt;br /&gt;
&lt;br /&gt;
 --groupFile      [your.groups.file]&lt;br /&gt;
 --annotatedVcf   [your.annotated.vcf]&lt;br /&gt;
 --annotation     [nonsyn/stop/splice]&lt;br /&gt;
 --writeVcf       [ON|OFF]&lt;br /&gt;
&lt;br /&gt;
Additional details on [[Rare-Metal#Grouping_from_a_Group_File|groupFile]], [[Rare-Metal#Grouping_from_an_Annotated_VCF_File|annotatedVcf, annotation]] and [[Rare-Metal#Generate_a_VCF_File_to_Annotate_Outside_of_Rare_Metal|writeVcf]] options are available.&lt;br /&gt;
&lt;br /&gt;
=== QC Options ===&lt;br /&gt;
   --hwe            [hwe.pvalue.cutoff]                     (default = 1e-05)&lt;br /&gt;
   --callRate      [variant.call.rate.cutoff]               (default = 0.95)&lt;br /&gt;
&lt;br /&gt;
Additional details on these options are [[Rare-Metal#QC_Options|available]].&lt;br /&gt;
&lt;br /&gt;
=== Association Methods for Meta-analysis ===&lt;br /&gt;
   --useExact   [ON|OFF]&lt;br /&gt;
   --burden      [ON|OFF]                  &lt;br /&gt;
   --MB          [ON|OFF]       &lt;br /&gt;
   --VT          [ON|OFF]&lt;br /&gt;
   --SKAT        [ON|OFF]&lt;br /&gt;
   --condition   [your.list.of variants.to.be.conditioned.upon]&lt;br /&gt;
Additional details for these options are [[Rare-Metal#Association_Methods|available]].&lt;br /&gt;
&lt;br /&gt;
=== Other Options for Performance and Amenities ===&lt;br /&gt;
  --labelHits    [ON|OFF]&lt;br /&gt;
  --correctGC    [ON|OFF]&lt;br /&gt;
  --prefix       [your.prefix]&lt;br /&gt;
  --maf          [your.maf.threshold.for.gene-level.tests]    (default = 0.05)&lt;br /&gt;
  --longOutput   [ON|OFF]&lt;br /&gt;
  --tabulateHits [ON|OFF]&lt;br /&gt;
  --hitsCutoff   [your.cutoff.for.hits]                       (default = 1e-06)&lt;br /&gt;
  --altMAF       [if specified, studies that do not contain the variant will be excluded.]&lt;br /&gt;
&lt;br /&gt;
Additional details for these options are [[Rare-Metal#Other_Options|available]].&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14450</id>
		<title>RAREMETAL Change Log</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14450"/>
		<updated>2016-11-27T19:09:17Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Main Wiki Page==&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Change Log ==&lt;br /&gt;
&lt;br /&gt;
* [[Raremetal Incoming updates | Known issues and incoming update in next version]]&lt;br /&gt;
&lt;br /&gt;
* Version 4.14.0 released (11/27/2016)&lt;br /&gt;
** &#039;&#039;&#039;Optimized method for unbalanced studies with no family structure (--useExact)&#039;&#039;&#039;&lt;br /&gt;
** bug fixes in conditional analysis&lt;br /&gt;
** fixed headers&lt;br /&gt;
** more methods in burden test&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.9 released (07/14/2016)&lt;br /&gt;
** The source code has been optimized to prepare for incoming new meta-analysis method in next version.&lt;br /&gt;
** Reduced running time when reading  &amp;gt;10,000s individuals from vcf&lt;br /&gt;
** &#039;&#039;&#039;Fixed seg fault in raremetalworker for calculating SNP HWE p value when sample size &amp;gt; 40k&#039;&#039;&#039;&lt;br /&gt;
** A seg fault: sometimes you only have very few variants but raremetal still tries to calculate GC.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.8 released (12/13/2015)&lt;br /&gt;
** when grouping from vcf, raremetal now obtains information only from &amp;quot;ANNOFULL&amp;quot; field.&lt;br /&gt;
** fixed seg fault in matching --annotation option to vcf annotation.&lt;br /&gt;
** with empty --annotation option, raremetal now groups all non-intergenic variants.&lt;br /&gt;
** &#039;&#039;&#039;fixed a bug in conditional analysis when there are multiple variants to condition on&#039;&#039;&#039;.&lt;br /&gt;
** fixed a seg fault in calculating genomic control.&lt;br /&gt;
** add --variantList option in RaremetalWorker to only calculate variance-covariance matrix between certain markers.&lt;br /&gt;
** add --range option in both Raremetal and RaremetalWorker to focus on given region only.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.7 released. (9/18/2015).&lt;br /&gt;
** group file generated from annotated vcf is now stored in &amp;quot;test.groupfile&amp;quot; under current running directory.&lt;br /&gt;
** use -O0 option in compiling. In very rare situations, gcc optimization will affect the results.&lt;br /&gt;
** tabix RMW output with --zip toggled.&lt;br /&gt;
** In SKAT meta analysis, skip the variant when all its lambdas are zero.&lt;br /&gt;
** bug fixes in conditional analysis: in very rare situation raremetal takes rvtest input as raremetalworker input.&lt;br /&gt;
** add --altMAF option to exclude studies in which a variant is not present.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.6 released. (3/8/2015)&lt;br /&gt;
** add a new option --mergedVCFID to recognize VCF files with sample IDs in &amp;quot;FAMID_PID&amp;quot; format&lt;br /&gt;
** add a new option --flagDosage to flag the field name to label dosage in VCF file.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.5 released. (9/29/2014)&lt;br /&gt;
** a bug fixed in conditional analysis in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.4 released.&lt;br /&gt;
** store beta estimates of intercept and fixed effects in rarmetalworker *.singlevar.score.txt header.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.3 released.&lt;br /&gt;
** read rvtest output format correctly in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.2.&lt;br /&gt;
** fixed sqrt_V output when analyzing unrelated individuals without kinship and --inverseNormal is not used and trait variance is not one.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.1.&lt;br /&gt;
** fixed a bug affecting output format when ped/dat files are used together with --dominant --recessive options.&lt;br /&gt;
&lt;br /&gt;
* version 4.13&lt;br /&gt;
** fixed bug when using --vcX option.&lt;br /&gt;
** Fixed bug estimating kinshipX with female samples.&lt;br /&gt;
** Added --kinOnly option for generating kinship only without association analysis.&lt;br /&gt;
** Added --geneMap option to allow user input for gene-mapping file.&lt;br /&gt;
&lt;br /&gt;
* version 4.12.1&lt;br /&gt;
** fixed command interface display issue in raremetalworker.&lt;br /&gt;
&lt;br /&gt;
* version 4.12&lt;br /&gt;
** improved make file for better compilation.&lt;br /&gt;
&lt;br /&gt;
* version 4.11&lt;br /&gt;
** fixed a bug for inverse-normalizing traits (a bug only in version 4.9 and later).&lt;br /&gt;
&lt;br /&gt;
* version 4.10&lt;br /&gt;
** fixed a bug when analyzing multiple traits is requested in raremetalworker (bug only in version 4.9 and later, and doesn&#039;t affect results).&lt;br /&gt;
&lt;br /&gt;
===Version 4.8 and before===&lt;br /&gt;
* Released version 0.4.7 (4/24/2014).&lt;br /&gt;
** optimized code to increase analysis efficiency and reduce memory use.&lt;br /&gt;
** added --separateX option to provide another choice of analyzing chromosome X.&lt;br /&gt;
** added --kinxFile option to allow kinship X matrix file with different prefix from the autosomal kinship.&lt;br /&gt;
** merged raremetal and raremetalworker in one package following version number of raremetalworker.&lt;br /&gt;
** completed testing compiling on various platforms. &lt;br /&gt;
* Released version 0.4.6 binary. Fixed a bug in recessive and dominant results. (4/1/2014)&lt;br /&gt;
* Released version 0.4.5. Fixed a bug when generating plots for recessive results. (3/18/2014)&lt;br /&gt;
* Released version 0.4.4. (3/17/2014)&lt;br /&gt;
** bug fixed when alleles are flipped in group file.&lt;br /&gt;
** fixed hwe=0.0 issue for monomorphic sites.&lt;br /&gt;
* Released version 0.4.3. Fixed a few typo in messages. Added --noeof option for VCF files that does not have a BGZF EOF marker.&lt;br /&gt;
* Released version 0.4.2. (3/10/2014)&lt;br /&gt;
** fixed a bug that could possibly cause compiling error in some Linux system. male heterozygous &lt;br /&gt;
** male genotypes on chromosome X are considered missing.&lt;br /&gt;
** bug fixed for SKAT when there are two variants in a group&lt;br /&gt;
** bug fixed in Makefile for easy compiling.&lt;br /&gt;
* Released version 0.4.1. Fixed a bug handling variants in nonPAR region on chromosome X when all samples are male.&lt;br /&gt;
* Released version 0.4.0.&lt;br /&gt;
** added phone home function. Saved Recessive and dominant results in separate files.&lt;br /&gt;
** a few bugs fixed to properly handling missing genotypes.&lt;br /&gt;
** Major change in command options.&lt;br /&gt;
** allow user to specify list of summary statistics files and covariance files separately using --summaryFiles and --covFiles options.&lt;br /&gt;
* Released version 0.3.7. Added dominant and recessive models as options. The default model is additive. (1/7/2014)&lt;br /&gt;
* Released version 0.3.6 and fixed a minor bug that caused by code upgrades from version 0.3.5. (12/4/2013)&lt;br /&gt;
* Fixed a few bugs handling chromosome X. Generated warning messages when male genotypes are coded wrong in VCF file. (11/25/2013)&lt;br /&gt;
* Version 0.3.1 released to fix a bug when one of the alleles coded as missing.&lt;br /&gt;
* Version 0.2.9 released after fixing a bug in SKAT and writing PDF when all variants are monomorphic. (10/7/2013)&lt;br /&gt;
* Fixed the bug which causes crash when writing PDF when all variants are monomorphic. (10/6/2013)&lt;br /&gt;
* Added support for analyzing dosages from VCF in version 2.9. (8/27/2013)&lt;br /&gt;
* Version 0.1.2 released after fixing a few bugs, adding conditional analysis and automatic graphing to the tool. (8/5/2013)&lt;br /&gt;
* Fixed bug in handling chromosome X. Added sanity checking steps before analysis. Added graphic support by generating QQ and manhattan plots automatically. Upgraded tool to version 2.8. (till 8/12/2013)&lt;br /&gt;
* Updated code to report allele frequencies calculated only from selected samples. (3/3/2013)&lt;br /&gt;
* Optimized code to speed up the process of calculating empirical kinship. (3/3/2013)&lt;br /&gt;
* Fixed a bug when handling chromosome X. Added sex labels option. (3/2/2013)&lt;br /&gt;
* Version 0.0.1 released. (2/24/2013)&lt;br /&gt;
* Version 0.0.1 released to U of M CSG group. (2/13/2013)&lt;br /&gt;
* Fixed a bug when there is missing genotype from VCF file. (2/2013)&lt;br /&gt;
* Fixed a bug when reading vcf file with ref or alt allele is missing. (2/5/2013)&lt;br /&gt;
* Changed executable name into bin/raremetalworker. Version 0.0.7 released. (12/10/2012)&lt;br /&gt;
* Updated output format for monomorphic sites. (12/7/2012)&lt;br /&gt;
* Version 0.0.6 released. (12/6/2012)&lt;br /&gt;
* Bug fixed for empirical kinship calculation when genotypes are read from VCF file. Version 0.0.5 released. (12/6/2012)&lt;br /&gt;
* Version 0.0.4 released. (12/5/2012)&lt;br /&gt;
* More messages coded into log file. (12/4/2012)&lt;br /&gt;
* Updated output format. Version 0.0.3 released. (12/3/2012)&lt;br /&gt;
* Bugs fixed to solve compiling errors on some machines (Thank you Mary Kate!). Version 0.0.2 released. (11/30/2012)&lt;br /&gt;
* Added HWE pvalue and call rate in summary statistics output. (11/27/2012)&lt;br /&gt;
* Forced sample IDs to be matched when reading in kinship from a file. Perform a sanity check before reading in kinship file. If a sample of interest is not included in kinship file, then fatal error will occur. (11/19/2012)&lt;br /&gt;
* Enabled writing log file by defalut. (11/18/2012)&lt;br /&gt;
* Uploaded to public wiki. (11/16/2012)&lt;br /&gt;
* Modified Rare-Metal-Worker to let it output LD matrix by a sliding window. (11/14/2012)&lt;br /&gt;
* Version 0.0.1 was released on 11/13/2012.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14449</id>
		<title>RAREMETAL Change Log</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14449"/>
		<updated>2016-11-27T19:09:12Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Main Wiki Page==&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Change Log ==&lt;br /&gt;
&lt;br /&gt;
* [[Raremetal Incoming updates | Known issues and incoming update in next version]]&lt;br /&gt;
&lt;br /&gt;
* Version 4.14.0 released (11/27/2016)&lt;br /&gt;
** &#039;&#039;&#039;Optimized method for unbalanced studies with no family structure (--useExact)&#039;&#039;&#039;&lt;br /&gt;
** bug fixes in conditional analysis&lt;br /&gt;
** fixed headers&lt;br /&gt;
** more method in burden test&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.9 released (07/14/2016)&lt;br /&gt;
** The source code has been optimized to prepare for incoming new meta-analysis method in next version.&lt;br /&gt;
** Reduced running time when reading  &amp;gt;10,000s individuals from vcf&lt;br /&gt;
** &#039;&#039;&#039;Fixed seg fault in raremetalworker for calculating SNP HWE p value when sample size &amp;gt; 40k&#039;&#039;&#039;&lt;br /&gt;
** A seg fault: sometimes you only have very few variants but raremetal still tries to calculate GC.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.8 released (12/13/2015)&lt;br /&gt;
** when grouping from vcf, raremetal now obtains information only from &amp;quot;ANNOFULL&amp;quot; field.&lt;br /&gt;
** fixed seg fault in matching --annotation option to vcf annotation.&lt;br /&gt;
** with empty --annotation option, raremetal now groups all non-intergenic variants.&lt;br /&gt;
** &#039;&#039;&#039;fixed a bug in conditional analysis when there are multiple variants to condition on&#039;&#039;&#039;.&lt;br /&gt;
** fixed a seg fault in calculating genomic control.&lt;br /&gt;
** add --variantList option in RaremetalWorker to only calculate variance-covariance matrix between certain markers.&lt;br /&gt;
** add --range option in both Raremetal and RaremetalWorker to focus on given region only.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.7 released. (9/18/2015).&lt;br /&gt;
** group file generated from annotated vcf is now stored in &amp;quot;test.groupfile&amp;quot; under current running directory.&lt;br /&gt;
** use -O0 option in compiling. In very rare situations, gcc optimization will affect the results.&lt;br /&gt;
** tabix RMW output with --zip toggled.&lt;br /&gt;
** In SKAT meta analysis, skip the variant when all its lambdas are zero.&lt;br /&gt;
** bug fixes in conditional analysis: in very rare situation raremetal takes rvtest input as raremetalworker input.&lt;br /&gt;
** add --altMAF option to exclude studies in which a variant is not present.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.6 released. (3/8/2015)&lt;br /&gt;
** add a new option --mergedVCFID to recognize VCF files with sample IDs in &amp;quot;FAMID_PID&amp;quot; format&lt;br /&gt;
** add a new option --flagDosage to flag the field name to label dosage in VCF file.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.5 released. (9/29/2014)&lt;br /&gt;
** a bug fixed in conditional analysis in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.4 released.&lt;br /&gt;
** store beta estimates of intercept and fixed effects in rarmetalworker *.singlevar.score.txt header.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.3 released.&lt;br /&gt;
** read rvtest output format correctly in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.2.&lt;br /&gt;
** fixed sqrt_V output when analyzing unrelated individuals without kinship and --inverseNormal is not used and trait variance is not one.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.1.&lt;br /&gt;
** fixed a bug affecting output format when ped/dat files are used together with --dominant --recessive options.&lt;br /&gt;
&lt;br /&gt;
* version 4.13&lt;br /&gt;
** fixed bug when using --vcX option.&lt;br /&gt;
** Fixed bug estimating kinshipX with female samples.&lt;br /&gt;
** Added --kinOnly option for generating kinship only without association analysis.&lt;br /&gt;
** Added --geneMap option to allow user input for gene-mapping file.&lt;br /&gt;
&lt;br /&gt;
* version 4.12.1&lt;br /&gt;
** fixed command interface display issue in raremetalworker.&lt;br /&gt;
&lt;br /&gt;
* version 4.12&lt;br /&gt;
** improved make file for better compilation.&lt;br /&gt;
&lt;br /&gt;
* version 4.11&lt;br /&gt;
** fixed a bug for inverse-normalizing traits (a bug only in version 4.9 and later).&lt;br /&gt;
&lt;br /&gt;
* version 4.10&lt;br /&gt;
** fixed a bug when analyzing multiple traits is requested in raremetalworker (bug only in version 4.9 and later, and doesn&#039;t affect results).&lt;br /&gt;
&lt;br /&gt;
===Version 4.8 and before===&lt;br /&gt;
* Released version 0.4.7 (4/24/2014).&lt;br /&gt;
** optimized code to increase analysis efficiency and reduce memory use.&lt;br /&gt;
** added --separateX option to provide another choice of analyzing chromosome X.&lt;br /&gt;
** added --kinxFile option to allow kinship X matrix file with different prefix from the autosomal kinship.&lt;br /&gt;
** merged raremetal and raremetalworker in one package following version number of raremetalworker.&lt;br /&gt;
** completed testing compiling on various platforms. &lt;br /&gt;
* Released version 0.4.6 binary. Fixed a bug in recessive and dominant results. (4/1/2014)&lt;br /&gt;
* Released version 0.4.5. Fixed a bug when generating plots for recessive results. (3/18/2014)&lt;br /&gt;
* Released version 0.4.4. (3/17/2014)&lt;br /&gt;
** bug fixed when alleles are flipped in group file.&lt;br /&gt;
** fixed hwe=0.0 issue for monomorphic sites.&lt;br /&gt;
* Released version 0.4.3. Fixed a few typo in messages. Added --noeof option for VCF files that does not have a BGZF EOF marker.&lt;br /&gt;
* Released version 0.4.2. (3/10/2014)&lt;br /&gt;
** fixed a bug that could possibly cause compiling error in some Linux system. male heterozygous &lt;br /&gt;
** male genotypes on chromosome X are considered missing.&lt;br /&gt;
** bug fixed for SKAT when there are two variants in a group&lt;br /&gt;
** bug fixed in Makefile for easy compiling.&lt;br /&gt;
* Released version 0.4.1. Fixed a bug handling variants in nonPAR region on chromosome X when all samples are male.&lt;br /&gt;
* Released version 0.4.0.&lt;br /&gt;
** added phone home function. Saved Recessive and dominant results in separate files.&lt;br /&gt;
** a few bugs fixed to properly handling missing genotypes.&lt;br /&gt;
** Major change in command options.&lt;br /&gt;
** allow user to specify list of summary statistics files and covariance files separately using --summaryFiles and --covFiles options.&lt;br /&gt;
* Released version 0.3.7. Added dominant and recessive models as options. The default model is additive. (1/7/2014)&lt;br /&gt;
* Released version 0.3.6 and fixed a minor bug that caused by code upgrades from version 0.3.5. (12/4/2013)&lt;br /&gt;
* Fixed a few bugs handling chromosome X. Generated warning messages when male genotypes are coded wrong in VCF file. (11/25/2013)&lt;br /&gt;
* Version 0.3.1 released to fix a bug when one of the alleles coded as missing.&lt;br /&gt;
* Version 0.2.9 released after fixing a bug in SKAT and writing PDF when all variants are monomorphic. (10/7/2013)&lt;br /&gt;
* Fixed the bug which causes crash when writing PDF when all variants are monomorphic. (10/6/2013)&lt;br /&gt;
* Added support for analyzing dosages from VCF in version 2.9. (8/27/2013)&lt;br /&gt;
* Version 0.1.2 released after fixing a few bugs, adding conditional analysis and automatic graphing to the tool. (8/5/2013)&lt;br /&gt;
* Fixed bug in handling chromosome X. Added sanity checking steps before analysis. Added graphic support by generating QQ and manhattan plots automatically. Upgraded tool to version 2.8. (till 8/12/2013)&lt;br /&gt;
* Updated code to report allele frequencies calculated only from selected samples. (3/3/2013)&lt;br /&gt;
* Optimized code to speed up the process of calculating empirical kinship. (3/3/2013)&lt;br /&gt;
* Fixed a bug when handling chromosome X. Added sex labels option. (3/2/2013)&lt;br /&gt;
* Version 0.0.1 released. (2/24/2013)&lt;br /&gt;
* Version 0.0.1 released to U of M CSG group. (2/13/2013)&lt;br /&gt;
* Fixed a bug when there is missing genotype from VCF file. (2/2013)&lt;br /&gt;
* Fixed a bug when reading vcf file with ref or alt allele is missing. (2/5/2013)&lt;br /&gt;
* Changed executable name into bin/raremetalworker. Version 0.0.7 released. (12/10/2012)&lt;br /&gt;
* Updated output format for monomorphic sites. (12/7/2012)&lt;br /&gt;
* Version 0.0.6 released. (12/6/2012)&lt;br /&gt;
* Bug fixed for empirical kinship calculation when genotypes are read from VCF file. Version 0.0.5 released. (12/6/2012)&lt;br /&gt;
* Version 0.0.4 released. (12/5/2012)&lt;br /&gt;
* More messages coded into log file. (12/4/2012)&lt;br /&gt;
* Updated output format. Version 0.0.3 released. (12/3/2012)&lt;br /&gt;
* Bugs fixed to solve compiling errors on some machines (Thank you Mary Kate!). Version 0.0.2 released. (11/30/2012)&lt;br /&gt;
* Added HWE pvalue and call rate in summary statistics output. (11/27/2012)&lt;br /&gt;
* Forced sample IDs to be matched when reading in kinship from a file. Perform a sanity check before reading in kinship file. If a sample of interest is not included in kinship file, then fatal error will occur. (11/19/2012)&lt;br /&gt;
* Enabled writing log file by defalut. (11/18/2012)&lt;br /&gt;
* Uploaded to public wiki. (11/16/2012)&lt;br /&gt;
* Modified Rare-Metal-Worker to let it output LD matrix by a sliding window. (11/14/2012)&lt;br /&gt;
* Version 0.0.1 was released on 11/13/2012.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14448</id>
		<title>RAREMETAL Change Log</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14448"/>
		<updated>2016-11-27T19:08:50Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Main Wiki Page==&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Change Log ==&lt;br /&gt;
&lt;br /&gt;
* [[Raremetal Incoming updates | Known issues and incoming update in next version]]&lt;br /&gt;
&lt;br /&gt;
* Version 4.14.0 released (11/27/2016)&lt;br /&gt;
** &#039;&#039;&#039;Optimized method for unbalanced studies with no family structure (--useExact)&#039;&#039;&#039;&lt;br /&gt;
** bug fixes in conditional analysis&lt;br /&gt;
** fixed headers&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.9 released (07/14/2016)&lt;br /&gt;
** The source code has been optimized to prepare for incoming new meta-analysis method in next version.&lt;br /&gt;
** Reduced running time when reading  &amp;gt;10,000s individuals from vcf&lt;br /&gt;
** &#039;&#039;&#039;Fixed seg fault in raremetalworker for calculating SNP HWE p value when sample size &amp;gt; 40k&#039;&#039;&#039;&lt;br /&gt;
** A seg fault: sometimes you only have very few variants but raremetal still tries to calculate GC.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.8 released (12/13/2015)&lt;br /&gt;
** when grouping from vcf, raremetal now obtains information only from &amp;quot;ANNOFULL&amp;quot; field.&lt;br /&gt;
** fixed seg fault in matching --annotation option to vcf annotation.&lt;br /&gt;
** with empty --annotation option, raremetal now groups all non-intergenic variants.&lt;br /&gt;
** &#039;&#039;&#039;fixed a bug in conditional analysis when there are multiple variants to condition on&#039;&#039;&#039;.&lt;br /&gt;
** fixed a seg fault in calculating genomic control.&lt;br /&gt;
** add --variantList option in RaremetalWorker to only calculate variance-covariance matrix between certain markers.&lt;br /&gt;
** add --range option in both Raremetal and RaremetalWorker to focus on given region only.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.7 released. (9/18/2015).&lt;br /&gt;
** group file generated from annotated vcf is now stored in &amp;quot;test.groupfile&amp;quot; under current running directory.&lt;br /&gt;
** use -O0 option in compiling. In very rare situations, gcc optimization will affect the results.&lt;br /&gt;
** tabix RMW output with --zip toggled.&lt;br /&gt;
** In SKAT meta analysis, skip the variant when all its lambdas are zero.&lt;br /&gt;
** bug fixes in conditional analysis: in very rare situation raremetal takes rvtest input as raremetalworker input.&lt;br /&gt;
** add --altMAF option to exclude studies in which a variant is not present.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.6 released. (3/8/2015)&lt;br /&gt;
** add a new option --mergedVCFID to recognize VCF files with sample IDs in &amp;quot;FAMID_PID&amp;quot; format&lt;br /&gt;
** add a new option --flagDosage to flag the field name to label dosage in VCF file.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.5 released. (9/29/2014)&lt;br /&gt;
** a bug fixed in conditional analysis in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.4 released.&lt;br /&gt;
** store beta estimates of intercept and fixed effects in rarmetalworker *.singlevar.score.txt header.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.3 released.&lt;br /&gt;
** read rvtest output format correctly in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.2.&lt;br /&gt;
** fixed sqrt_V output when analyzing unrelated individuals without kinship and --inverseNormal is not used and trait variance is not one.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.1.&lt;br /&gt;
** fixed a bug affecting output format when ped/dat files are used together with --dominant --recessive options.&lt;br /&gt;
&lt;br /&gt;
* version 4.13&lt;br /&gt;
** fixed bug when using --vcX option.&lt;br /&gt;
** Fixed bug estimating kinshipX with female samples.&lt;br /&gt;
** Added --kinOnly option for generating kinship only without association analysis.&lt;br /&gt;
** Added --geneMap option to allow user input for gene-mapping file.&lt;br /&gt;
&lt;br /&gt;
* version 4.12.1&lt;br /&gt;
** fixed command interface display issue in raremetalworker.&lt;br /&gt;
&lt;br /&gt;
* version 4.12&lt;br /&gt;
** improved make file for better compilation.&lt;br /&gt;
&lt;br /&gt;
* version 4.11&lt;br /&gt;
** fixed a bug for inverse-normalizing traits (a bug only in version 4.9 and later).&lt;br /&gt;
&lt;br /&gt;
* version 4.10&lt;br /&gt;
** fixed a bug when analyzing multiple traits is requested in raremetalworker (bug only in version 4.9 and later, and doesn&#039;t affect results).&lt;br /&gt;
&lt;br /&gt;
===Version 4.8 and before===&lt;br /&gt;
* Released version 0.4.7 (4/24/2014).&lt;br /&gt;
** optimized code to increase analysis efficiency and reduce memory use.&lt;br /&gt;
** added --separateX option to provide another choice of analyzing chromosome X.&lt;br /&gt;
** added --kinxFile option to allow kinship X matrix file with different prefix from the autosomal kinship.&lt;br /&gt;
** merged raremetal and raremetalworker in one package following version number of raremetalworker.&lt;br /&gt;
** completed testing compiling on various platforms. &lt;br /&gt;
* Released version 0.4.6 binary. Fixed a bug in recessive and dominant results. (4/1/2014)&lt;br /&gt;
* Released version 0.4.5. Fixed a bug when generating plots for recessive results. (3/18/2014)&lt;br /&gt;
* Released version 0.4.4. (3/17/2014)&lt;br /&gt;
** bug fixed when alleles are flipped in group file.&lt;br /&gt;
** fixed hwe=0.0 issue for monomorphic sites.&lt;br /&gt;
* Released version 0.4.3. Fixed a few typo in messages. Added --noeof option for VCF files that does not have a BGZF EOF marker.&lt;br /&gt;
* Released version 0.4.2. (3/10/2014)&lt;br /&gt;
** fixed a bug that could possibly cause compiling error in some Linux system. male heterozygous &lt;br /&gt;
** male genotypes on chromosome X are considered missing.&lt;br /&gt;
** bug fixed for SKAT when there are two variants in a group&lt;br /&gt;
** bug fixed in Makefile for easy compiling.&lt;br /&gt;
* Released version 0.4.1. Fixed a bug handling variants in nonPAR region on chromosome X when all samples are male.&lt;br /&gt;
* Released version 0.4.0.&lt;br /&gt;
** added phone home function. Saved Recessive and dominant results in separate files.&lt;br /&gt;
** a few bugs fixed to properly handling missing genotypes.&lt;br /&gt;
** Major change in command options.&lt;br /&gt;
** allow user to specify list of summary statistics files and covariance files separately using --summaryFiles and --covFiles options.&lt;br /&gt;
* Released version 0.3.7. Added dominant and recessive models as options. The default model is additive. (1/7/2014)&lt;br /&gt;
* Released version 0.3.6 and fixed a minor bug that caused by code upgrades from version 0.3.5. (12/4/2013)&lt;br /&gt;
* Fixed a few bugs handling chromosome X. Generated warning messages when male genotypes are coded wrong in VCF file. (11/25/2013)&lt;br /&gt;
* Version 0.3.1 released to fix a bug when one of the alleles coded as missing.&lt;br /&gt;
* Version 0.2.9 released after fixing a bug in SKAT and writing PDF when all variants are monomorphic. (10/7/2013)&lt;br /&gt;
* Fixed the bug which causes crash when writing PDF when all variants are monomorphic. (10/6/2013)&lt;br /&gt;
* Added support for analyzing dosages from VCF in version 2.9. (8/27/2013)&lt;br /&gt;
* Version 0.1.2 released after fixing a few bugs, adding conditional analysis and automatic graphing to the tool. (8/5/2013)&lt;br /&gt;
* Fixed bug in handling chromosome X. Added sanity checking steps before analysis. Added graphic support by generating QQ and manhattan plots automatically. Upgraded tool to version 2.8. (till 8/12/2013)&lt;br /&gt;
* Updated code to report allele frequencies calculated only from selected samples. (3/3/2013)&lt;br /&gt;
* Optimized code to speed up the process of calculating empirical kinship. (3/3/2013)&lt;br /&gt;
* Fixed a bug when handling chromosome X. Added sex labels option. (3/2/2013)&lt;br /&gt;
* Version 0.0.1 released. (2/24/2013)&lt;br /&gt;
* Version 0.0.1 released to U of M CSG group. (2/13/2013)&lt;br /&gt;
* Fixed a bug when there is missing genotype from VCF file. (2/2013)&lt;br /&gt;
* Fixed a bug when reading vcf file with ref or alt allele is missing. (2/5/2013)&lt;br /&gt;
* Changed executable name into bin/raremetalworker. Version 0.0.7 released. (12/10/2012)&lt;br /&gt;
* Updated output format for monomorphic sites. (12/7/2012)&lt;br /&gt;
* Version 0.0.6 released. (12/6/2012)&lt;br /&gt;
* Bug fixed for empirical kinship calculation when genotypes are read from VCF file. Version 0.0.5 released. (12/6/2012)&lt;br /&gt;
* Version 0.0.4 released. (12/5/2012)&lt;br /&gt;
* More messages coded into log file. (12/4/2012)&lt;br /&gt;
* Updated output format. Version 0.0.3 released. (12/3/2012)&lt;br /&gt;
* Bugs fixed to solve compiling errors on some machines (Thank you Mary Kate!). Version 0.0.2 released. (11/30/2012)&lt;br /&gt;
* Added HWE pvalue and call rate in summary statistics output. (11/27/2012)&lt;br /&gt;
* Forced sample IDs to be matched when reading in kinship from a file. Perform a sanity check before reading in kinship file. If a sample of interest is not included in kinship file, then fatal error will occur. (11/19/2012)&lt;br /&gt;
* Enabled writing log file by defalut. (11/18/2012)&lt;br /&gt;
* Uploaded to public wiki. (11/16/2012)&lt;br /&gt;
* Modified Rare-Metal-Worker to let it output LD matrix by a sliding window. (11/14/2012)&lt;br /&gt;
* Version 0.0.1 was released on 11/13/2012.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14447</id>
		<title>RAREMETAL Change Log</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14447"/>
		<updated>2016-11-27T19:08:16Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Main Wiki Page==&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Change Log ==&lt;br /&gt;
&lt;br /&gt;
* [[Raremetal Incoming updates | Known issues and incoming update in next version]]&lt;br /&gt;
&lt;br /&gt;
* Version 4.14.0 released (11/27/2016)&lt;br /&gt;
** &#039;&#039;&#039;Optimized method for unbalanced studies with no family structure (--useExact)&#039;&#039;&#039;&lt;br /&gt;
** bug fixes in conditional analysis&lt;br /&gt;
** fix some headers&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.9 released (07/14/2016)&lt;br /&gt;
** The source code has been optimized to prepare for incoming new meta-analysis method in next version.&lt;br /&gt;
** Reduced running time when reading  &amp;gt;10,000s individuals from vcf&lt;br /&gt;
** &#039;&#039;&#039;Fixed seg fault in raremetalworker for calculating SNP HWE p value when sample size &amp;gt; 40k&#039;&#039;&#039;&lt;br /&gt;
** A seg fault: sometimes you only have very few variants but raremetal still tries to calculate GC.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.8 released (12/13/2015)&lt;br /&gt;
** when grouping from vcf, raremetal now obtains information only from &amp;quot;ANNOFULL&amp;quot; field.&lt;br /&gt;
** fixed seg fault in matching --annotation option to vcf annotation.&lt;br /&gt;
** with empty --annotation option, raremetal now groups all non-intergenic variants.&lt;br /&gt;
** &#039;&#039;&#039;fixed a bug in conditional analysis when there are multiple variants to condition on&#039;&#039;&#039;.&lt;br /&gt;
** fixed a seg fault in calculating genomic control.&lt;br /&gt;
** add --variantList option in RaremetalWorker to only calculate variance-covariance matrix between certain markers.&lt;br /&gt;
** add --range option in both Raremetal and RaremetalWorker to focus on given region only.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.7 released. (9/18/2015).&lt;br /&gt;
** group file generated from annotated vcf is now stored in &amp;quot;test.groupfile&amp;quot; under current running directory.&lt;br /&gt;
** use -O0 option in compiling. In very rare situations, gcc optimization will affect the results.&lt;br /&gt;
** tabix RMW output with --zip toggled.&lt;br /&gt;
** In SKAT meta analysis, skip the variant when all its lambdas are zero.&lt;br /&gt;
** bug fixes in conditional analysis: in very rare situation raremetal takes rvtest input as raremetalworker input.&lt;br /&gt;
** add --altMAF option to exclude studies in which a variant is not present.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.6 released. (3/8/2015)&lt;br /&gt;
** add a new option --mergedVCFID to recognize VCF files with sample IDs in &amp;quot;FAMID_PID&amp;quot; format&lt;br /&gt;
** add a new option --flagDosage to flag the field name to label dosage in VCF file.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.5 released. (9/29/2014)&lt;br /&gt;
** a bug fixed in conditional analysis in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.4 released.&lt;br /&gt;
** store beta estimates of intercept and fixed effects in rarmetalworker *.singlevar.score.txt header.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.3 released.&lt;br /&gt;
** read rvtest output format correctly in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.2.&lt;br /&gt;
** fixed sqrt_V output when analyzing unrelated individuals without kinship and --inverseNormal is not used and trait variance is not one.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.1.&lt;br /&gt;
** fixed a bug affecting output format when ped/dat files are used together with --dominant --recessive options.&lt;br /&gt;
&lt;br /&gt;
* version 4.13&lt;br /&gt;
** fixed bug when using --vcX option.&lt;br /&gt;
** Fixed bug estimating kinshipX with female samples.&lt;br /&gt;
** Added --kinOnly option for generating kinship only without association analysis.&lt;br /&gt;
** Added --geneMap option to allow user input for gene-mapping file.&lt;br /&gt;
&lt;br /&gt;
* version 4.12.1&lt;br /&gt;
** fixed command interface display issue in raremetalworker.&lt;br /&gt;
&lt;br /&gt;
* version 4.12&lt;br /&gt;
** improved make file for better compilation.&lt;br /&gt;
&lt;br /&gt;
* version 4.11&lt;br /&gt;
** fixed a bug for inverse-normalizing traits (a bug only in version 4.9 and later).&lt;br /&gt;
&lt;br /&gt;
* version 4.10&lt;br /&gt;
** fixed a bug when analyzing multiple traits is requested in raremetalworker (bug only in version 4.9 and later, and doesn&#039;t affect results).&lt;br /&gt;
&lt;br /&gt;
===Version 4.8 and before===&lt;br /&gt;
* Released version 0.4.7 (4/24/2014).&lt;br /&gt;
** optimized code to increase analysis efficiency and reduce memory use.&lt;br /&gt;
** added --separateX option to provide another choice of analyzing chromosome X.&lt;br /&gt;
** added --kinxFile option to allow kinship X matrix file with different prefix from the autosomal kinship.&lt;br /&gt;
** merged raremetal and raremetalworker in one package following version number of raremetalworker.&lt;br /&gt;
** completed testing compiling on various platforms. &lt;br /&gt;
* Released version 0.4.6 binary. Fixed a bug in recessive and dominant results. (4/1/2014)&lt;br /&gt;
* Released version 0.4.5. Fixed a bug when generating plots for recessive results. (3/18/2014)&lt;br /&gt;
* Released version 0.4.4. (3/17/2014)&lt;br /&gt;
** bug fixed when alleles are flipped in group file.&lt;br /&gt;
** fixed hwe=0.0 issue for monomorphic sites.&lt;br /&gt;
* Released version 0.4.3. Fixed a few typo in messages. Added --noeof option for VCF files that does not have a BGZF EOF marker.&lt;br /&gt;
* Released version 0.4.2. (3/10/2014)&lt;br /&gt;
** fixed a bug that could possibly cause compiling error in some Linux system. male heterozygous &lt;br /&gt;
** male genotypes on chromosome X are considered missing.&lt;br /&gt;
** bug fixed for SKAT when there are two variants in a group&lt;br /&gt;
** bug fixed in Makefile for easy compiling.&lt;br /&gt;
* Released version 0.4.1. Fixed a bug handling variants in nonPAR region on chromosome X when all samples are male.&lt;br /&gt;
* Released version 0.4.0.&lt;br /&gt;
** added phone home function. Saved Recessive and dominant results in separate files.&lt;br /&gt;
** a few bugs fixed to properly handling missing genotypes.&lt;br /&gt;
** Major change in command options.&lt;br /&gt;
** allow user to specify list of summary statistics files and covariance files separately using --summaryFiles and --covFiles options.&lt;br /&gt;
* Released version 0.3.7. Added dominant and recessive models as options. The default model is additive. (1/7/2014)&lt;br /&gt;
* Released version 0.3.6 and fixed a minor bug that caused by code upgrades from version 0.3.5. (12/4/2013)&lt;br /&gt;
* Fixed a few bugs handling chromosome X. Generated warning messages when male genotypes are coded wrong in VCF file. (11/25/2013)&lt;br /&gt;
* Version 0.3.1 released to fix a bug when one of the alleles coded as missing.&lt;br /&gt;
* Version 0.2.9 released after fixing a bug in SKAT and writing PDF when all variants are monomorphic. (10/7/2013)&lt;br /&gt;
* Fixed the bug which causes crash when writing PDF when all variants are monomorphic. (10/6/2013)&lt;br /&gt;
* Added support for analyzing dosages from VCF in version 2.9. (8/27/2013)&lt;br /&gt;
* Version 0.1.2 released after fixing a few bugs, adding conditional analysis and automatic graphing to the tool. (8/5/2013)&lt;br /&gt;
* Fixed bug in handling chromosome X. Added sanity checking steps before analysis. Added graphic support by generating QQ and manhattan plots automatically. Upgraded tool to version 2.8. (till 8/12/2013)&lt;br /&gt;
* Updated code to report allele frequencies calculated only from selected samples. (3/3/2013)&lt;br /&gt;
* Optimized code to speed up the process of calculating empirical kinship. (3/3/2013)&lt;br /&gt;
* Fixed a bug when handling chromosome X. Added sex labels option. (3/2/2013)&lt;br /&gt;
* Version 0.0.1 released. (2/24/2013)&lt;br /&gt;
* Version 0.0.1 released to U of M CSG group. (2/13/2013)&lt;br /&gt;
* Fixed a bug when there is missing genotype from VCF file. (2/2013)&lt;br /&gt;
* Fixed a bug when reading vcf file with ref or alt allele is missing. (2/5/2013)&lt;br /&gt;
* Changed executable name into bin/raremetalworker. Version 0.0.7 released. (12/10/2012)&lt;br /&gt;
* Updated output format for monomorphic sites. (12/7/2012)&lt;br /&gt;
* Version 0.0.6 released. (12/6/2012)&lt;br /&gt;
* Bug fixed for empirical kinship calculation when genotypes are read from VCF file. Version 0.0.5 released. (12/6/2012)&lt;br /&gt;
* Version 0.0.4 released. (12/5/2012)&lt;br /&gt;
* More messages coded into log file. (12/4/2012)&lt;br /&gt;
* Updated output format. Version 0.0.3 released. (12/3/2012)&lt;br /&gt;
* Bugs fixed to solve compiling errors on some machines (Thank you Mary Kate!). Version 0.0.2 released. (11/30/2012)&lt;br /&gt;
* Added HWE pvalue and call rate in summary statistics output. (11/27/2012)&lt;br /&gt;
* Forced sample IDs to be matched when reading in kinship from a file. Perform a sanity check before reading in kinship file. If a sample of interest is not included in kinship file, then fatal error will occur. (11/19/2012)&lt;br /&gt;
* Enabled writing log file by defalut. (11/18/2012)&lt;br /&gt;
* Uploaded to public wiki. (11/16/2012)&lt;br /&gt;
* Modified Rare-Metal-Worker to let it output LD matrix by a sliding window. (11/14/2012)&lt;br /&gt;
* Version 0.0.1 was released on 11/13/2012.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14446</id>
		<title>RAREMETAL Change Log</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14446"/>
		<updated>2016-11-27T19:07:52Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Main Wiki Page==&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Change Log ==&lt;br /&gt;
&lt;br /&gt;
* [[Raremetal Incoming updates | Known issues and incoming update in next version]]&lt;br /&gt;
&lt;br /&gt;
* Version 4.14.0 released (11/27/2016)&lt;br /&gt;
** Released an exact method for unbalanced studies with no family structure (--useExact)&lt;br /&gt;
** bug fixes in conditional analysis&lt;br /&gt;
** fix some headers&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.9 released (07/14/2016)&lt;br /&gt;
** The source code has been optimized to prepare for incoming new meta-analysis method in next version.&lt;br /&gt;
** Reduced running time when reading  &amp;gt;10,000s individuals from vcf&lt;br /&gt;
** &#039;&#039;&#039;Fixed seg fault in raremetalworker for calculating SNP HWE p value when sample size &amp;gt; 40k&#039;&#039;&#039;&lt;br /&gt;
** A seg fault: sometimes you only have very few variants but raremetal still tries to calculate GC.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.8 released (12/13/2015)&lt;br /&gt;
** when grouping from vcf, raremetal now obtains information only from &amp;quot;ANNOFULL&amp;quot; field.&lt;br /&gt;
** fixed seg fault in matching --annotation option to vcf annotation.&lt;br /&gt;
** with empty --annotation option, raremetal now groups all non-intergenic variants.&lt;br /&gt;
** &#039;&#039;&#039;fixed a bug in conditional analysis when there are multiple variants to condition on&#039;&#039;&#039;.&lt;br /&gt;
** fixed a seg fault in calculating genomic control.&lt;br /&gt;
** add --variantList option in RaremetalWorker to only calculate variance-covariance matrix between certain markers.&lt;br /&gt;
** add --range option in both Raremetal and RaremetalWorker to focus on given region only.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.7 released. (9/18/2015).&lt;br /&gt;
** group file generated from annotated vcf is now stored in &amp;quot;test.groupfile&amp;quot; under current running directory.&lt;br /&gt;
** use -O0 option in compiling. In very rare situations, gcc optimization will affect the results.&lt;br /&gt;
** tabix RMW output with --zip toggled.&lt;br /&gt;
** In SKAT meta analysis, skip the variant when all its lambdas are zero.&lt;br /&gt;
** bug fixes in conditional analysis: in very rare situation raremetal takes rvtest input as raremetalworker input.&lt;br /&gt;
** add --altMAF option to exclude studies in which a variant is not present.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.6 released. (3/8/2015)&lt;br /&gt;
** add a new option --mergedVCFID to recognize VCF files with sample IDs in &amp;quot;FAMID_PID&amp;quot; format&lt;br /&gt;
** add a new option --flagDosage to flag the field name to label dosage in VCF file.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.5 released. (9/29/2014)&lt;br /&gt;
** a bug fixed in conditional analysis in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.4 released.&lt;br /&gt;
** store beta estimates of intercept and fixed effects in rarmetalworker *.singlevar.score.txt header.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.3 released.&lt;br /&gt;
** read rvtest output format correctly in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.2.&lt;br /&gt;
** fixed sqrt_V output when analyzing unrelated individuals without kinship and --inverseNormal is not used and trait variance is not one.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.1.&lt;br /&gt;
** fixed a bug affecting output format when ped/dat files are used together with --dominant --recessive options.&lt;br /&gt;
&lt;br /&gt;
* version 4.13&lt;br /&gt;
** fixed bug when using --vcX option.&lt;br /&gt;
** Fixed bug estimating kinshipX with female samples.&lt;br /&gt;
** Added --kinOnly option for generating kinship only without association analysis.&lt;br /&gt;
** Added --geneMap option to allow user input for gene-mapping file.&lt;br /&gt;
&lt;br /&gt;
* version 4.12.1&lt;br /&gt;
** fixed command interface display issue in raremetalworker.&lt;br /&gt;
&lt;br /&gt;
* version 4.12&lt;br /&gt;
** improved make file for better compilation.&lt;br /&gt;
&lt;br /&gt;
* version 4.11&lt;br /&gt;
** fixed a bug for inverse-normalizing traits (a bug only in version 4.9 and later).&lt;br /&gt;
&lt;br /&gt;
* version 4.10&lt;br /&gt;
** fixed a bug when analyzing multiple traits is requested in raremetalworker (bug only in version 4.9 and later, and doesn&#039;t affect results).&lt;br /&gt;
&lt;br /&gt;
===Version 4.8 and before===&lt;br /&gt;
* Released version 0.4.7 (4/24/2014).&lt;br /&gt;
** optimized code to increase analysis efficiency and reduce memory use.&lt;br /&gt;
** added --separateX option to provide another choice of analyzing chromosome X.&lt;br /&gt;
** added --kinxFile option to allow kinship X matrix file with different prefix from the autosomal kinship.&lt;br /&gt;
** merged raremetal and raremetalworker in one package following version number of raremetalworker.&lt;br /&gt;
** completed testing compiling on various platforms. &lt;br /&gt;
* Released version 0.4.6 binary. Fixed a bug in recessive and dominant results. (4/1/2014)&lt;br /&gt;
* Released version 0.4.5. Fixed a bug when generating plots for recessive results. (3/18/2014)&lt;br /&gt;
* Released version 0.4.4. (3/17/2014)&lt;br /&gt;
** bug fixed when alleles are flipped in group file.&lt;br /&gt;
** fixed hwe=0.0 issue for monomorphic sites.&lt;br /&gt;
* Released version 0.4.3. Fixed a few typo in messages. Added --noeof option for VCF files that does not have a BGZF EOF marker.&lt;br /&gt;
* Released version 0.4.2. (3/10/2014)&lt;br /&gt;
** fixed a bug that could possibly cause compiling error in some Linux system. male heterozygous &lt;br /&gt;
** male genotypes on chromosome X are considered missing.&lt;br /&gt;
** bug fixed for SKAT when there are two variants in a group&lt;br /&gt;
** bug fixed in Makefile for easy compiling.&lt;br /&gt;
* Released version 0.4.1. Fixed a bug handling variants in nonPAR region on chromosome X when all samples are male.&lt;br /&gt;
* Released version 0.4.0.&lt;br /&gt;
** added phone home function. Saved Recessive and dominant results in separate files.&lt;br /&gt;
** a few bugs fixed to properly handling missing genotypes.&lt;br /&gt;
** Major change in command options.&lt;br /&gt;
** allow user to specify list of summary statistics files and covariance files separately using --summaryFiles and --covFiles options.&lt;br /&gt;
* Released version 0.3.7. Added dominant and recessive models as options. The default model is additive. (1/7/2014)&lt;br /&gt;
* Released version 0.3.6 and fixed a minor bug that caused by code upgrades from version 0.3.5. (12/4/2013)&lt;br /&gt;
* Fixed a few bugs handling chromosome X. Generated warning messages when male genotypes are coded wrong in VCF file. (11/25/2013)&lt;br /&gt;
* Version 0.3.1 released to fix a bug when one of the alleles coded as missing.&lt;br /&gt;
* Version 0.2.9 released after fixing a bug in SKAT and writing PDF when all variants are monomorphic. (10/7/2013)&lt;br /&gt;
* Fixed the bug which causes crash when writing PDF when all variants are monomorphic. (10/6/2013)&lt;br /&gt;
* Added support for analyzing dosages from VCF in version 2.9. (8/27/2013)&lt;br /&gt;
* Version 0.1.2 released after fixing a few bugs, adding conditional analysis and automatic graphing to the tool. (8/5/2013)&lt;br /&gt;
* Fixed bug in handling chromosome X. Added sanity checking steps before analysis. Added graphic support by generating QQ and manhattan plots automatically. Upgraded tool to version 2.8. (till 8/12/2013)&lt;br /&gt;
* Updated code to report allele frequencies calculated only from selected samples. (3/3/2013)&lt;br /&gt;
* Optimized code to speed up the process of calculating empirical kinship. (3/3/2013)&lt;br /&gt;
* Fixed a bug when handling chromosome X. Added sex labels option. (3/2/2013)&lt;br /&gt;
* Version 0.0.1 released. (2/24/2013)&lt;br /&gt;
* Version 0.0.1 released to U of M CSG group. (2/13/2013)&lt;br /&gt;
* Fixed a bug when there is missing genotype from VCF file. (2/2013)&lt;br /&gt;
* Fixed a bug when reading vcf file with ref or alt allele is missing. (2/5/2013)&lt;br /&gt;
* Changed executable name into bin/raremetalworker. Version 0.0.7 released. (12/10/2012)&lt;br /&gt;
* Updated output format for monomorphic sites. (12/7/2012)&lt;br /&gt;
* Version 0.0.6 released. (12/6/2012)&lt;br /&gt;
* Bug fixed for empirical kinship calculation when genotypes are read from VCF file. Version 0.0.5 released. (12/6/2012)&lt;br /&gt;
* Version 0.0.4 released. (12/5/2012)&lt;br /&gt;
* More messages coded into log file. (12/4/2012)&lt;br /&gt;
* Updated output format. Version 0.0.3 released. (12/3/2012)&lt;br /&gt;
* Bugs fixed to solve compiling errors on some machines (Thank you Mary Kate!). Version 0.0.2 released. (11/30/2012)&lt;br /&gt;
* Added HWE pvalue and call rate in summary statistics output. (11/27/2012)&lt;br /&gt;
* Forced sample IDs to be matched when reading in kinship from a file. Perform a sanity check before reading in kinship file. If a sample of interest is not included in kinship file, then fatal error will occur. (11/19/2012)&lt;br /&gt;
* Enabled writing log file by defalut. (11/18/2012)&lt;br /&gt;
* Uploaded to public wiki. (11/16/2012)&lt;br /&gt;
* Modified Rare-Metal-Worker to let it output LD matrix by a sliding window. (11/14/2012)&lt;br /&gt;
* Version 0.0.1 was released on 11/13/2012.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Raremetal_Incoming_updates&amp;diff=14445</id>
		<title>Raremetal Incoming updates</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Raremetal_Incoming_updates&amp;diff=14445"/>
		<updated>2016-11-27T19:07:39Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Incoming update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Main Wiki Page==&lt;br /&gt;
&lt;br /&gt;
* [[RAREMETAL_Change_Log | RAREMETAL Change log]]&lt;br /&gt;
&lt;br /&gt;
==Incoming update==&lt;br /&gt;
* Add an option to store group file from vcf&lt;br /&gt;
* Take snpeff as annotation input&lt;br /&gt;
* When no conditional variant is available, warning is generated but not written to log file.&lt;br /&gt;
* enable reading from .gz annotated vcf&lt;br /&gt;
* add SKAT-O&lt;br /&gt;
* solve the numeric issue of lambda = 0 in SKAT&lt;br /&gt;
* In conditional analysis, when cov matrix between the test variant and its conditioned variants is not invertible, MathSVD still tries to invert that matrix and that leads to weird conditional p values.&lt;br /&gt;
* &#039;&#039;&#039;Optimization for binary traits&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Memory optimization for gene-based test in large panel&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Raremetal_Incoming_updates&amp;diff=14444</id>
		<title>Raremetal Incoming updates</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Raremetal_Incoming_updates&amp;diff=14444"/>
		<updated>2016-11-27T19:07:19Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Finished in test version */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Main Wiki Page==&lt;br /&gt;
&lt;br /&gt;
* [[RAREMETAL_Change_Log | RAREMETAL Change log]]&lt;br /&gt;
&lt;br /&gt;
==Incoming update==&lt;br /&gt;
* Add an option to store group file from vcf&lt;br /&gt;
* Take snpeff as annotation input&lt;br /&gt;
* When no conditional variant is available, warning is generated but not written to log file.&lt;br /&gt;
* SKAT conditional analysis misses the last 3 column names. They should be cond_statistics, cond_pvalue_davis, cond_p_value_liu.&lt;br /&gt;
* enable reading from .gz annotated vcf&lt;br /&gt;
* add SKAT-O&lt;br /&gt;
* solve the numeric issue of lambda = 0 in SKAT&lt;br /&gt;
* In conditional analysis, when cov matrix between the test variant and its conditioned variants is not invertible, MathSVD still tries to invert that matrix and that leads to weird conditional p values.&lt;br /&gt;
* &#039;&#039;&#039;Optimization for binary traits&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Memory optimization for gene-based test in large panel&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14443</id>
		<title>RAREMETAL Change Log</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14443"/>
		<updated>2016-11-27T19:07:05Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Main Wiki Page==&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Change Log ==&lt;br /&gt;
&lt;br /&gt;
* [[Raremetal Incoming updates | Known issues and incoming update in next version]]&lt;br /&gt;
&lt;br /&gt;
* Version 4.14.0 released (11/27/2016)&lt;br /&gt;
** Released an exact method for unbalanced studies with no family structure (--useExact)&lt;br /&gt;
** bug fixes in conditional analysis&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.9 released (07/14/2016)&lt;br /&gt;
** The source code has been optimized to prepare for incoming new meta-analysis method in next version.&lt;br /&gt;
** Reduced running time when reading  &amp;gt;10,000s individuals from vcf&lt;br /&gt;
** &#039;&#039;&#039;Fixed seg fault in raremetalworker for calculating SNP HWE p value when sample size &amp;gt; 40k&#039;&#039;&#039;&lt;br /&gt;
** A seg fault: sometimes you only have very few variants but raremetal still tries to calculate GC.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.8 released (12/13/2015)&lt;br /&gt;
** when grouping from vcf, raremetal now obtains information only from &amp;quot;ANNOFULL&amp;quot; field.&lt;br /&gt;
** fixed seg fault in matching --annotation option to vcf annotation.&lt;br /&gt;
** with empty --annotation option, raremetal now groups all non-intergenic variants.&lt;br /&gt;
** &#039;&#039;&#039;fixed a bug in conditional analysis when there are multiple variants to condition on&#039;&#039;&#039;.&lt;br /&gt;
** fixed a seg fault in calculating genomic control.&lt;br /&gt;
** add --variantList option in RaremetalWorker to only calculate variance-covariance matrix between certain markers.&lt;br /&gt;
** add --range option in both Raremetal and RaremetalWorker to focus on given region only.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.7 released. (9/18/2015).&lt;br /&gt;
** group file generated from annotated vcf is now stored in &amp;quot;test.groupfile&amp;quot; under current running directory.&lt;br /&gt;
** use -O0 option in compiling. In very rare situations, gcc optimization will affect the results.&lt;br /&gt;
** tabix RMW output with --zip toggled.&lt;br /&gt;
** In SKAT meta analysis, skip the variant when all its lambdas are zero.&lt;br /&gt;
** bug fixes in conditional analysis: in very rare situation raremetal takes rvtest input as raremetalworker input.&lt;br /&gt;
** add --altMAF option to exclude studies in which a variant is not present.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.6 released. (3/8/2015)&lt;br /&gt;
** add a new option --mergedVCFID to recognize VCF files with sample IDs in &amp;quot;FAMID_PID&amp;quot; format&lt;br /&gt;
** add a new option --flagDosage to flag the field name to label dosage in VCF file.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.5 released. (9/29/2014)&lt;br /&gt;
** a bug fixed in conditional analysis in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.4 released.&lt;br /&gt;
** store beta estimates of intercept and fixed effects in rarmetalworker *.singlevar.score.txt header.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.3 released.&lt;br /&gt;
** read rvtest output format correctly in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.2.&lt;br /&gt;
** fixed sqrt_V output when analyzing unrelated individuals without kinship and --inverseNormal is not used and trait variance is not one.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.1.&lt;br /&gt;
** fixed a bug affecting output format when ped/dat files are used together with --dominant --recessive options.&lt;br /&gt;
&lt;br /&gt;
* version 4.13&lt;br /&gt;
** fixed bug when using --vcX option.&lt;br /&gt;
** Fixed bug estimating kinshipX with female samples.&lt;br /&gt;
** Added --kinOnly option for generating kinship only without association analysis.&lt;br /&gt;
** Added --geneMap option to allow user input for gene-mapping file.&lt;br /&gt;
&lt;br /&gt;
* version 4.12.1&lt;br /&gt;
** fixed command interface display issue in raremetalworker.&lt;br /&gt;
&lt;br /&gt;
* version 4.12&lt;br /&gt;
** improved make file for better compilation.&lt;br /&gt;
&lt;br /&gt;
* version 4.11&lt;br /&gt;
** fixed a bug for inverse-normalizing traits (a bug only in version 4.9 and later).&lt;br /&gt;
&lt;br /&gt;
* version 4.10&lt;br /&gt;
** fixed a bug when analyzing multiple traits is requested in raremetalworker (bug only in version 4.9 and later, and doesn&#039;t affect results).&lt;br /&gt;
&lt;br /&gt;
===Version 4.8 and before===&lt;br /&gt;
* Released version 0.4.7 (4/24/2014).&lt;br /&gt;
** optimized code to increase analysis efficiency and reduce memory use.&lt;br /&gt;
** added --separateX option to provide another choice of analyzing chromosome X.&lt;br /&gt;
** added --kinxFile option to allow kinship X matrix file with different prefix from the autosomal kinship.&lt;br /&gt;
** merged raremetal and raremetalworker in one package following version number of raremetalworker.&lt;br /&gt;
** completed testing compiling on various platforms. &lt;br /&gt;
* Released version 0.4.6 binary. Fixed a bug in recessive and dominant results. (4/1/2014)&lt;br /&gt;
* Released version 0.4.5. Fixed a bug when generating plots for recessive results. (3/18/2014)&lt;br /&gt;
* Released version 0.4.4. (3/17/2014)&lt;br /&gt;
** bug fixed when alleles are flipped in group file.&lt;br /&gt;
** fixed hwe=0.0 issue for monomorphic sites.&lt;br /&gt;
* Released version 0.4.3. Fixed a few typo in messages. Added --noeof option for VCF files that does not have a BGZF EOF marker.&lt;br /&gt;
* Released version 0.4.2. (3/10/2014)&lt;br /&gt;
** fixed a bug that could possibly cause compiling error in some Linux system. male heterozygous &lt;br /&gt;
** male genotypes on chromosome X are considered missing.&lt;br /&gt;
** bug fixed for SKAT when there are two variants in a group&lt;br /&gt;
** bug fixed in Makefile for easy compiling.&lt;br /&gt;
* Released version 0.4.1. Fixed a bug handling variants in nonPAR region on chromosome X when all samples are male.&lt;br /&gt;
* Released version 0.4.0.&lt;br /&gt;
** added phone home function. Saved Recessive and dominant results in separate files.&lt;br /&gt;
** a few bugs fixed to properly handling missing genotypes.&lt;br /&gt;
** Major change in command options.&lt;br /&gt;
** allow user to specify list of summary statistics files and covariance files separately using --summaryFiles and --covFiles options.&lt;br /&gt;
* Released version 0.3.7. Added dominant and recessive models as options. The default model is additive. (1/7/2014)&lt;br /&gt;
* Released version 0.3.6 and fixed a minor bug that caused by code upgrades from version 0.3.5. (12/4/2013)&lt;br /&gt;
* Fixed a few bugs handling chromosome X. Generated warning messages when male genotypes are coded wrong in VCF file. (11/25/2013)&lt;br /&gt;
* Version 0.3.1 released to fix a bug when one of the alleles coded as missing.&lt;br /&gt;
* Version 0.2.9 released after fixing a bug in SKAT and writing PDF when all variants are monomorphic. (10/7/2013)&lt;br /&gt;
* Fixed the bug which causes crash when writing PDF when all variants are monomorphic. (10/6/2013)&lt;br /&gt;
* Added support for analyzing dosages from VCF in version 2.9. (8/27/2013)&lt;br /&gt;
* Version 0.1.2 released after fixing a few bugs, adding conditional analysis and automatic graphing to the tool. (8/5/2013)&lt;br /&gt;
* Fixed bug in handling chromosome X. Added sanity checking steps before analysis. Added graphic support by generating QQ and manhattan plots automatically. Upgraded tool to version 2.8. (till 8/12/2013)&lt;br /&gt;
* Updated code to report allele frequencies calculated only from selected samples. (3/3/2013)&lt;br /&gt;
* Optimized code to speed up the process of calculating empirical kinship. (3/3/2013)&lt;br /&gt;
* Fixed a bug when handling chromosome X. Added sex labels option. (3/2/2013)&lt;br /&gt;
* Version 0.0.1 released. (2/24/2013)&lt;br /&gt;
* Version 0.0.1 released to U of M CSG group. (2/13/2013)&lt;br /&gt;
* Fixed a bug when there is missing genotype from VCF file. (2/2013)&lt;br /&gt;
* Fixed a bug when reading vcf file with ref or alt allele is missing. (2/5/2013)&lt;br /&gt;
* Changed executable name into bin/raremetalworker. Version 0.0.7 released. (12/10/2012)&lt;br /&gt;
* Updated output format for monomorphic sites. (12/7/2012)&lt;br /&gt;
* Version 0.0.6 released. (12/6/2012)&lt;br /&gt;
* Bug fixed for empirical kinship calculation when genotypes are read from VCF file. Version 0.0.5 released. (12/6/2012)&lt;br /&gt;
* Version 0.0.4 released. (12/5/2012)&lt;br /&gt;
* More messages coded into log file. (12/4/2012)&lt;br /&gt;
* Updated output format. Version 0.0.3 released. (12/3/2012)&lt;br /&gt;
* Bugs fixed to solve compiling errors on some machines (Thank you Mary Kate!). Version 0.0.2 released. (11/30/2012)&lt;br /&gt;
* Added HWE pvalue and call rate in summary statistics output. (11/27/2012)&lt;br /&gt;
* Forced sample IDs to be matched when reading in kinship from a file. Perform a sanity check before reading in kinship file. If a sample of interest is not included in kinship file, then fatal error will occur. (11/19/2012)&lt;br /&gt;
* Enabled writing log file by defalut. (11/18/2012)&lt;br /&gt;
* Uploaded to public wiki. (11/16/2012)&lt;br /&gt;
* Modified Rare-Metal-Worker to let it output LD matrix by a sliding window. (11/14/2012)&lt;br /&gt;
* Version 0.0.1 was released on 11/13/2012.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14442</id>
		<title>RAREMETAL Change Log</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=14442"/>
		<updated>2016-11-27T19:05:39Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Main Wiki Page==&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Change Log ==&lt;br /&gt;
&lt;br /&gt;
* [[Raremetal Incoming updates | Known issues and incoming update in next version]]&lt;br /&gt;
&lt;br /&gt;
* Version 4.14.0 released ()11/27/2016)&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.9 released (07/14/2016)&lt;br /&gt;
** The source code has been optimized to prepare for incoming new meta-analysis method in next version.&lt;br /&gt;
** Reduced running time when reading  &amp;gt;10,000s individuals from vcf&lt;br /&gt;
** &#039;&#039;&#039;Fixed seg fault in raremetalworker for calculating SNP HWE p value when sample size &amp;gt; 40k&#039;&#039;&#039;&lt;br /&gt;
** A seg fault: sometimes you only have very few variants but raremetal still tries to calculate GC.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.8 released (12/13/2015)&lt;br /&gt;
** when grouping from vcf, raremetal now obtains information only from &amp;quot;ANNOFULL&amp;quot; field.&lt;br /&gt;
** fixed seg fault in matching --annotation option to vcf annotation.&lt;br /&gt;
** with empty --annotation option, raremetal now groups all non-intergenic variants.&lt;br /&gt;
** &#039;&#039;&#039;fixed a bug in conditional analysis when there are multiple variants to condition on&#039;&#039;&#039;.&lt;br /&gt;
** fixed a seg fault in calculating genomic control.&lt;br /&gt;
** add --variantList option in RaremetalWorker to only calculate variance-covariance matrix between certain markers.&lt;br /&gt;
** add --range option in both Raremetal and RaremetalWorker to focus on given region only.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.7 released. (9/18/2015).&lt;br /&gt;
** group file generated from annotated vcf is now stored in &amp;quot;test.groupfile&amp;quot; under current running directory.&lt;br /&gt;
** use -O0 option in compiling. In very rare situations, gcc optimization will affect the results.&lt;br /&gt;
** tabix RMW output with --zip toggled.&lt;br /&gt;
** In SKAT meta analysis, skip the variant when all its lambdas are zero.&lt;br /&gt;
** bug fixes in conditional analysis: in very rare situation raremetal takes rvtest input as raremetalworker input.&lt;br /&gt;
** add --altMAF option to exclude studies in which a variant is not present.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.6 released. (3/8/2015)&lt;br /&gt;
** add a new option --mergedVCFID to recognize VCF files with sample IDs in &amp;quot;FAMID_PID&amp;quot; format&lt;br /&gt;
** add a new option --flagDosage to flag the field name to label dosage in VCF file.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.5 released. (9/29/2014)&lt;br /&gt;
** a bug fixed in conditional analysis in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.4 released.&lt;br /&gt;
** store beta estimates of intercept and fixed effects in rarmetalworker *.singlevar.score.txt header.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.3 released.&lt;br /&gt;
** read rvtest output format correctly in raremetal.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.2.&lt;br /&gt;
** fixed sqrt_V output when analyzing unrelated individuals without kinship and --inverseNormal is not used and trait variance is not one.&lt;br /&gt;
&lt;br /&gt;
* Version 4.13.1.&lt;br /&gt;
** fixed a bug affecting output format when ped/dat files are used together with --dominant --recessive options.&lt;br /&gt;
&lt;br /&gt;
* version 4.13&lt;br /&gt;
** fixed bug when using --vcX option.&lt;br /&gt;
** Fixed bug estimating kinshipX with female samples.&lt;br /&gt;
** Added --kinOnly option for generating kinship only without association analysis.&lt;br /&gt;
** Added --geneMap option to allow user input for gene-mapping file.&lt;br /&gt;
&lt;br /&gt;
* version 4.12.1&lt;br /&gt;
** fixed command interface display issue in raremetalworker.&lt;br /&gt;
&lt;br /&gt;
* version 4.12&lt;br /&gt;
** improved make file for better compilation.&lt;br /&gt;
&lt;br /&gt;
* version 4.11&lt;br /&gt;
** fixed a bug for inverse-normalizing traits (a bug only in version 4.9 and later).&lt;br /&gt;
&lt;br /&gt;
* version 4.10&lt;br /&gt;
** fixed a bug when analyzing multiple traits is requested in raremetalworker (bug only in version 4.9 and later, and doesn&#039;t affect results).&lt;br /&gt;
&lt;br /&gt;
===Version 4.8 and before===&lt;br /&gt;
* Released version 0.4.7 (4/24/2014).&lt;br /&gt;
** optimized code to increase analysis efficiency and reduce memory use.&lt;br /&gt;
** added --separateX option to provide another choice of analyzing chromosome X.&lt;br /&gt;
** added --kinxFile option to allow kinship X matrix file with different prefix from the autosomal kinship.&lt;br /&gt;
** merged raremetal and raremetalworker in one package following version number of raremetalworker.&lt;br /&gt;
** completed testing compiling on various platforms. &lt;br /&gt;
* Released version 0.4.6 binary. Fixed a bug in recessive and dominant results. (4/1/2014)&lt;br /&gt;
* Released version 0.4.5. Fixed a bug when generating plots for recessive results. (3/18/2014)&lt;br /&gt;
* Released version 0.4.4. (3/17/2014)&lt;br /&gt;
** bug fixed when alleles are flipped in group file.&lt;br /&gt;
** fixed hwe=0.0 issue for monomorphic sites.&lt;br /&gt;
* Released version 0.4.3. Fixed a few typo in messages. Added --noeof option for VCF files that does not have a BGZF EOF marker.&lt;br /&gt;
* Released version 0.4.2. (3/10/2014)&lt;br /&gt;
** fixed a bug that could possibly cause compiling error in some Linux system. male heterozygous &lt;br /&gt;
** male genotypes on chromosome X are considered missing.&lt;br /&gt;
** bug fixed for SKAT when there are two variants in a group&lt;br /&gt;
** bug fixed in Makefile for easy compiling.&lt;br /&gt;
* Released version 0.4.1. Fixed a bug handling variants in nonPAR region on chromosome X when all samples are male.&lt;br /&gt;
* Released version 0.4.0.&lt;br /&gt;
** added phone home function. Saved Recessive and dominant results in separate files.&lt;br /&gt;
** a few bugs fixed to properly handling missing genotypes.&lt;br /&gt;
** Major change in command options.&lt;br /&gt;
** allow user to specify list of summary statistics files and covariance files separately using --summaryFiles and --covFiles options.&lt;br /&gt;
* Released version 0.3.7. Added dominant and recessive models as options. The default model is additive. (1/7/2014)&lt;br /&gt;
* Released version 0.3.6 and fixed a minor bug that caused by code upgrades from version 0.3.5. (12/4/2013)&lt;br /&gt;
* Fixed a few bugs handling chromosome X. Generated warning messages when male genotypes are coded wrong in VCF file. (11/25/2013)&lt;br /&gt;
* Version 0.3.1 released to fix a bug when one of the alleles coded as missing.&lt;br /&gt;
* Version 0.2.9 released after fixing a bug in SKAT and writing PDF when all variants are monomorphic. (10/7/2013)&lt;br /&gt;
* Fixed the bug which causes crash when writing PDF when all variants are monomorphic. (10/6/2013)&lt;br /&gt;
* Added support for analyzing dosages from VCF in version 2.9. (8/27/2013)&lt;br /&gt;
* Version 0.1.2 released after fixing a few bugs, adding conditional analysis and automatic graphing to the tool. (8/5/2013)&lt;br /&gt;
* Fixed bug in handling chromosome X. Added sanity checking steps before analysis. Added graphic support by generating QQ and manhattan plots automatically. Upgraded tool to version 2.8. (till 8/12/2013)&lt;br /&gt;
* Updated code to report allele frequencies calculated only from selected samples. (3/3/2013)&lt;br /&gt;
* Optimized code to speed up the process of calculating empirical kinship. (3/3/2013)&lt;br /&gt;
* Fixed a bug when handling chromosome X. Added sex labels option. (3/2/2013)&lt;br /&gt;
* Version 0.0.1 released. (2/24/2013)&lt;br /&gt;
* Version 0.0.1 released to U of M CSG group. (2/13/2013)&lt;br /&gt;
* Fixed a bug when there is missing genotype from VCF file. (2/2013)&lt;br /&gt;
* Fixed a bug when reading vcf file with ref or alt allele is missing. (2/5/2013)&lt;br /&gt;
* Changed executable name into bin/raremetalworker. Version 0.0.7 released. (12/10/2012)&lt;br /&gt;
* Updated output format for monomorphic sites. (12/7/2012)&lt;br /&gt;
* Version 0.0.6 released. (12/6/2012)&lt;br /&gt;
* Bug fixed for empirical kinship calculation when genotypes are read from VCF file. Version 0.0.5 released. (12/6/2012)&lt;br /&gt;
* Version 0.0.4 released. (12/5/2012)&lt;br /&gt;
* More messages coded into log file. (12/4/2012)&lt;br /&gt;
* Updated output format. Version 0.0.3 released. (12/3/2012)&lt;br /&gt;
* Bugs fixed to solve compiling errors on some machines (Thank you Mary Kate!). Version 0.0.2 released. (11/30/2012)&lt;br /&gt;
* Added HWE pvalue and call rate in summary statistics output. (11/27/2012)&lt;br /&gt;
* Forced sample IDs to be matched when reading in kinship from a file. Perform a sanity check before reading in kinship file. If a sample of interest is not included in kinship file, then fatal error will occur. (11/19/2012)&lt;br /&gt;
* Enabled writing log file by defalut. (11/18/2012)&lt;br /&gt;
* Uploaded to public wiki. (11/16/2012)&lt;br /&gt;
* Modified Rare-Metal-Worker to let it output LD matrix by a sliding window. (11/14/2012)&lt;br /&gt;
* Version 0.0.1 was released on 11/13/2012.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14441</id>
		<title>RAREMETAL DOWNLOAD &amp; BUILD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14441"/>
		<updated>2016-11-27T19:05:06Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* How to Compile */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL FAQ | &#039;&#039;&#039;FAQ&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Change_Log | &#039;&#039;&#039;Change Log&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Where to Download ==&lt;br /&gt;
&lt;br /&gt;
* University of Michigan CSG users can go to the following:&lt;br /&gt;
  /net/wonderland/home/saichen/Raremetal/&lt;br /&gt;
&lt;br /&gt;
===GIT HUB===&lt;br /&gt;
&lt;br /&gt;
Please clone or download from GitHub:&lt;br /&gt;
&lt;br /&gt;
 https://github.com/traxexx/Raremetal&lt;br /&gt;
&lt;br /&gt;
Since v4.13.6, MAC and WINDOWS version are no longer updated. Please download old versions from here:&lt;br /&gt;
&lt;br /&gt;
* [[Media:MAC_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for MAC OS X&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:CYGWIN64_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/CygWin64&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:MINGW_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/MinGW&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
From version 4.13.6, RAREMETALWORKER and RAREMETAL are distributed within the same package.&lt;br /&gt;
&lt;br /&gt;
===SCRIPTS===&lt;br /&gt;
&lt;br /&gt;
====Calculating Odds Ratio from RAREMETALWORKER output====&lt;br /&gt;
*If you want to estimate &#039;&#039;&#039;Odds Ratios&#039;&#039;&#039; of variants analyzed by RAREMETALWORKER, the script [[Media:CalculateOddsRatio.tgz|&#039;&#039;&#039;calculateOddsRatio.pl&#039;&#039;&#039;]] can help you augment RAREMETALWORKER output with estimated odds ratio to the last column. &lt;br /&gt;
*The script can also be found in the RAREMETAL package 4.13.6 and later, under directory &#039;&#039;&#039;raremetal/script/calculateOddsRatio.pl&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== How to Compile ==&lt;br /&gt;
&lt;br /&gt;
* gfortran is necessary to build RAREMETAL. If your system does not have it yet, please go to [http://gcc.gnu.org/wiki/GFortranBinaries &#039;&#039;&#039;GNU gfortran&#039;&#039;&#039;] for download.&lt;br /&gt;
&lt;br /&gt;
* If you prefer to build from scratch, then do the following in your Raremetal directory:&lt;br /&gt;
  prompt&amp;gt; make clean&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This builds RAREMETAL and RAREMETALWORKER under bin/ directory. &lt;br /&gt;
&lt;br /&gt;
* If you prefer to build individual tool:&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetalworker/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetal/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETAL under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If your compiler is adaptable to openmp (parallel computing), then use the following to build RAREMETALWORKER that allows parallel computing. For more about openmp, please refer to [http://openmp.org/wp/openmp-compilers/ openMP].&lt;br /&gt;
  prompt&amp;gt; cd raremetalworker/src&lt;br /&gt;
  prompt&amp;gt; make openmp&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If you prefer to use the binary file downloaded above, then no compiling is needed, but it is not guaranteed to work due to system and library requirements.&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
&lt;br /&gt;
For compiling questions, please go to [http://genome.sph.umich.edu/wiki/RAREMETAL_FAQ &#039;&#039;&#039; FAQ&#039;&#039;&#039;] for more information.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14440</id>
		<title>RAREMETAL DOWNLOAD &amp; BUILD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14440"/>
		<updated>2016-11-27T19:04:24Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* Where to Download */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL FAQ | &#039;&#039;&#039;FAQ&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Change_Log | &#039;&#039;&#039;Change Log&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Where to Download ==&lt;br /&gt;
&lt;br /&gt;
* University of Michigan CSG users can go to the following:&lt;br /&gt;
  /net/wonderland/home/saichen/Raremetal/&lt;br /&gt;
&lt;br /&gt;
===GIT HUB===&lt;br /&gt;
&lt;br /&gt;
Please clone or download from GitHub:&lt;br /&gt;
&lt;br /&gt;
 https://github.com/traxexx/Raremetal&lt;br /&gt;
&lt;br /&gt;
Since v4.13.6, MAC and WINDOWS version are no longer updated. Please download old versions from here:&lt;br /&gt;
&lt;br /&gt;
* [[Media:MAC_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for MAC OS X&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:CYGWIN64_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/CygWin64&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:MINGW_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/MinGW&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
From version 4.13.6, RAREMETALWORKER and RAREMETAL are distributed within the same package.&lt;br /&gt;
&lt;br /&gt;
===SCRIPTS===&lt;br /&gt;
&lt;br /&gt;
====Calculating Odds Ratio from RAREMETALWORKER output====&lt;br /&gt;
*If you want to estimate &#039;&#039;&#039;Odds Ratios&#039;&#039;&#039; of variants analyzed by RAREMETALWORKER, the script [[Media:CalculateOddsRatio.tgz|&#039;&#039;&#039;calculateOddsRatio.pl&#039;&#039;&#039;]] can help you augment RAREMETALWORKER output with estimated odds ratio to the last column. &lt;br /&gt;
*The script can also be found in the RAREMETAL package 4.13.6 and later, under directory &#039;&#039;&#039;raremetal/script/calculateOddsRatio.pl&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== How to Compile ==&lt;br /&gt;
&lt;br /&gt;
* gfortran is necessary to build RAREMETAL. If your system does not have it yet, please go to [http://gcc.gnu.org/wiki/GFortranBinaries &#039;&#039;&#039;GNU gfortran&#039;&#039;&#039;] for download.&lt;br /&gt;
&lt;br /&gt;
* If you choose to build from the source files, you could start from decompress the package using the following command:&lt;br /&gt;
  prompt&amp;gt; tar xvf Raremetal_linux.tgz&lt;br /&gt;
  prompt&amp;gt; cd Raremetal&lt;br /&gt;
&lt;br /&gt;
* If you prefer to build from scratch, then do the following:&lt;br /&gt;
  prompt&amp;gt; make clean&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This builds RAREMETAL and RAREMETALWORKER under bin/ directory. &lt;br /&gt;
&lt;br /&gt;
* If you prefer to build individual tool:&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetalworker/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetal/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETAL under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If your compiler is adaptable to openmp (parallel computing), then use the following to build RAREMETALWORKER that allows parallel computing. For more about openmp, please refer to [http://openmp.org/wp/openmp-compilers/ openMP].&lt;br /&gt;
  prompt&amp;gt; cd raremetalworker/src&lt;br /&gt;
  prompt&amp;gt; make openmp&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If you prefer to use the binary file downloaded above, then no compiling is needed, but it is not guaranteed to work due to system and library requirements.&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
&lt;br /&gt;
For compiling questions, please go to [http://genome.sph.umich.edu/wiki/RAREMETAL_FAQ &#039;&#039;&#039; FAQ&#039;&#039;&#039;] for more information.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14439</id>
		<title>RAREMETAL DOWNLOAD &amp; BUILD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14439"/>
		<updated>2016-11-27T19:00:13Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* GIT HUB */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL FAQ | &#039;&#039;&#039;FAQ&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Change_Log | &#039;&#039;&#039;Change Log&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Where to Download ==&lt;br /&gt;
&lt;br /&gt;
From version 4.13.6, RAREMETALWORKER and RAREMETAL are distributed within the same package.&lt;br /&gt;
&lt;br /&gt;
* University of Michigan CSG users can go to the following:&lt;br /&gt;
  /net/wonderland/home/saichen/Raremetal/&lt;br /&gt;
&lt;br /&gt;
===GIT HUB===&lt;br /&gt;
&lt;br /&gt;
Please clone or download from GitHub:&lt;br /&gt;
&lt;br /&gt;
 https://github.com/traxexx/Raremetal&lt;br /&gt;
&lt;br /&gt;
Since v4.13.6, MAC and WINDOWS version are no longer updated. Please download old versions from here:&lt;br /&gt;
&lt;br /&gt;
* [[Media:MAC_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for MAC OS X&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:CYGWIN64_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/CygWin64&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:MINGW_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/MinGW&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===SCRIPTS===&lt;br /&gt;
&lt;br /&gt;
====Calculating Odds Ratio from RAREMETALWORKER output====&lt;br /&gt;
*If you want to estimate &#039;&#039;&#039;Odds Ratios&#039;&#039;&#039; of variants analyzed by RAREMETALWORKER, the script [[Media:CalculateOddsRatio.tgz|&#039;&#039;&#039;calculateOddsRatio.pl&#039;&#039;&#039;]] can help you augment RAREMETALWORKER output with estimated odds ratio to the last column. &lt;br /&gt;
*The script can also be found in the RAREMETAL package 4.13.6 and later, under directory &#039;&#039;&#039;raremetal/script/calculateOddsRatio.pl&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== How to Compile ==&lt;br /&gt;
&lt;br /&gt;
* gfortran is necessary to build RAREMETAL. If your system does not have it yet, please go to [http://gcc.gnu.org/wiki/GFortranBinaries &#039;&#039;&#039;GNU gfortran&#039;&#039;&#039;] for download.&lt;br /&gt;
&lt;br /&gt;
* If you choose to build from the source files, you could start from decompress the package using the following command:&lt;br /&gt;
  prompt&amp;gt; tar xvf Raremetal_linux.tgz&lt;br /&gt;
  prompt&amp;gt; cd Raremetal&lt;br /&gt;
&lt;br /&gt;
* If you prefer to build from scratch, then do the following:&lt;br /&gt;
  prompt&amp;gt; make clean&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This builds RAREMETAL and RAREMETALWORKER under bin/ directory. &lt;br /&gt;
&lt;br /&gt;
* If you prefer to build individual tool:&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetalworker/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetal/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETAL under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If your compiler is adaptable to openmp (parallel computing), then use the following to build RAREMETALWORKER that allows parallel computing. For more about openmp, please refer to [http://openmp.org/wp/openmp-compilers/ openMP].&lt;br /&gt;
  prompt&amp;gt; cd raremetalworker/src&lt;br /&gt;
  prompt&amp;gt; make openmp&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If you prefer to use the binary file downloaded above, then no compiling is needed, but it is not guaranteed to work due to system and library requirements.&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
&lt;br /&gt;
For compiling questions, please go to [http://genome.sph.umich.edu/wiki/RAREMETAL_FAQ &#039;&#039;&#039; FAQ&#039;&#039;&#039;] for more information.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14438</id>
		<title>RAREMETAL DOWNLOAD &amp; BUILD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14438"/>
		<updated>2016-11-27T18:59:53Z</updated>

		<summary type="html">&lt;p&gt;Saichen: /* GIT HUB */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Documentation | &#039;&#039;&#039;RAREMETAL documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL FAQ | &#039;&#039;&#039;FAQ&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_Change_Log | &#039;&#039;&#039;Change Log&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Where to Download ==&lt;br /&gt;
&lt;br /&gt;
From version 4.13.6, RAREMETALWORKER and RAREMETAL are distributed within the same package.&lt;br /&gt;
&lt;br /&gt;
* University of Michigan CSG users can go to the following:&lt;br /&gt;
  /net/wonderland/home/saichen/Raremetal/&lt;br /&gt;
&lt;br /&gt;
===GIT HUB===&lt;br /&gt;
&lt;br /&gt;
Please clone or download from Raremetal git hub page:&lt;br /&gt;
&lt;br /&gt;
 https://github.com/traxexx/Raremetal&lt;br /&gt;
&lt;br /&gt;
Since v4.13.6, MAC and WINDOWS version are no longer updated. Please download old versions from here:&lt;br /&gt;
&lt;br /&gt;
* [[Media:MAC_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for MAC OS X&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:CYGWIN64_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/CygWin64&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* [[Media:MINGW_raremetal.4.13.6.tgz ‎|&#039;&#039;&#039;for Windows/MinGW&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===SCRIPTS===&lt;br /&gt;
&lt;br /&gt;
====Calculating Odds Ratio from RAREMETALWORKER output====&lt;br /&gt;
*If you want to estimate &#039;&#039;&#039;Odds Ratios&#039;&#039;&#039; of variants analyzed by RAREMETALWORKER, the script [[Media:CalculateOddsRatio.tgz|&#039;&#039;&#039;calculateOddsRatio.pl&#039;&#039;&#039;]] can help you augment RAREMETALWORKER output with estimated odds ratio to the last column. &lt;br /&gt;
*The script can also be found in the RAREMETAL package 4.13.6 and later, under directory &#039;&#039;&#039;raremetal/script/calculateOddsRatio.pl&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== How to Compile ==&lt;br /&gt;
&lt;br /&gt;
* gfortran is necessary to build RAREMETAL. If your system does not have it yet, please go to [http://gcc.gnu.org/wiki/GFortranBinaries &#039;&#039;&#039;GNU gfortran&#039;&#039;&#039;] for download.&lt;br /&gt;
&lt;br /&gt;
* If you choose to build from the source files, you could start from decompress the package using the following command:&lt;br /&gt;
  prompt&amp;gt; tar xvf Raremetal_linux.tgz&lt;br /&gt;
  prompt&amp;gt; cd Raremetal&lt;br /&gt;
&lt;br /&gt;
* If you prefer to build from scratch, then do the following:&lt;br /&gt;
  prompt&amp;gt; make clean&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This builds RAREMETAL and RAREMETALWORKER under bin/ directory. &lt;br /&gt;
&lt;br /&gt;
* If you prefer to build individual tool:&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetalworker/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; cd Raremetal/raremetal/&lt;br /&gt;
  prompt&amp;gt; make&lt;br /&gt;
  #This will build RAREMETAL under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If your compiler is adaptable to openmp (parallel computing), then use the following to build RAREMETALWORKER that allows parallel computing. For more about openmp, please refer to [http://openmp.org/wp/openmp-compilers/ openMP].&lt;br /&gt;
  prompt&amp;gt; cd raremetalworker/src&lt;br /&gt;
  prompt&amp;gt; make openmp&lt;br /&gt;
  #This will build RAREMETALWORKER under raremetal/bin/ directory.&lt;br /&gt;
&lt;br /&gt;
* If you prefer to use the binary file downloaded above, then no compiling is needed, but it is not guaranteed to work due to system and library requirements.&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
&lt;br /&gt;
For compiling questions, please go to [http://genome.sph.umich.edu/wiki/RAREMETAL_FAQ &#039;&#039;&#039; FAQ&#039;&#039;&#039;] for more information.&lt;/div&gt;</summary>
		<author><name>Saichen</name></author>
	</entry>
</feed>