<?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=Abought</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=Abought"/>
	<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/wiki/Special:Contributions/Abought"/>
	<updated>2026-09-24T21:41:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Minimac3&amp;diff=15182</id>
		<title>Minimac3</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Minimac3&amp;diff=15182"/>
		<updated>2022-10-18T19:40:35Z</updated>

		<summary type="html">&lt;p&gt;Abought: Add category tag to improve findability&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* &#039;&#039;&#039;New Version [[Minimac4]] available ! Please Check out !!!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Please join our NEW [https://groups.google.com/forum/embed/?place=forum/minimac4-help#!forum/minimac4-help mailing list] to get updates about future releases, bug fixes or post queries.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;No further development on Minimac3 !!!&#039;&#039;&#039; See [[Minimac3 ChangeLog | ChangeLog ]] for details !!!&lt;br /&gt;
&lt;br /&gt;
= Useful Wiki Pages =&lt;br /&gt;
&lt;br /&gt;
There are a few pages in this Wiki that may be useful to for &#039;&#039;&#039;Minimac3&#039;&#039;&#039; users. Here are links to a few:&lt;br /&gt;
&lt;br /&gt;
* [[Minimac3| Minimac3 Overview Page]]&lt;br /&gt;
&lt;br /&gt;
* [[Minimac3 Usage | Minimac3 Usage and Documentation]]&lt;br /&gt;
&lt;br /&gt;
* [[Minimac3 Imputation Cookbook]] (&#039;&#039;&#039;Recommended for New Users!!&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
* [[Minimac3 Cookbook : Chromosome X Imputation| Chromosome X Imputation]]&lt;br /&gt;
&lt;br /&gt;
* [[Minimac3 Examples| Minimac3 Examples]]&lt;br /&gt;
&lt;br /&gt;
* [[Minimac3 Info File| Minimac3 Info File]]&lt;br /&gt;
&lt;br /&gt;
* [[Minimac3 ChangeLog | Minimac3 ChangeLog ]]&lt;br /&gt;
&lt;br /&gt;
* [[M3VCF Files| M3VCF Files]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Minimac3 &#039;&#039;&#039; is a lower memory and more computationally efficient implementation of the genotype imputation algorithms in [[Minimac|minimac]] and [[Minimac2|minimac2]]. &#039;&#039;&#039;Minimac3&#039;&#039;&#039; is designed to handle very large reference panels in a more computationally efficient way with no loss of accuracy. It accomplishes this by identifying repeat haplotype patterns and using these to simplify the underlying calculations, with no loss of accuracy.&lt;br /&gt;
&lt;br /&gt;
Minimac3 uses [[M3VCF Files|&amp;lt;font face=Courier&amp;gt;M3VCF&amp;lt;/font&amp;gt; files]] (customized minimac3 VCF files) to store reference panel information in a compact form, thus saving on memory and time required to read large datasets. Users can use Minimac3 to convert standard VCF files to &amp;lt;font face=Courier&amp;gt;M3VCF&amp;lt;/font&amp;gt; files. &amp;lt;font face=Courier&amp;gt;M3VCF&amp;lt;/font&amp;gt; files can also store pre-calculated estimates of recombination fraction and error, which speeds up later rounds of imputation.  Minimac3 outputs results in the form of standard VCF files for easy data manipulation in downstream analysis.&lt;br /&gt;
&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Minimac3 &#039;&#039;&#039; is currently available as a release version. Commonly used reference panels in &amp;lt;font face=Courier&amp;gt;M3VCF&amp;lt;/font&amp;gt; format are available for download in [[#Reference Panels for Download | Reference Panels]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please join our NEW [https://groups.google.com/forum/embed/?place=forum/minimac4-help#!forum/minimac4-help mailing list] to get updates about future releases or report possible bugs or email them to  [mailto:sayantan@umich.edu Sayantan Das].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERSION: 2.0.1 !!! (Updated 6.6.2016) !!!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Github Repo:&#039;&#039;&#039; Users can clone from github repository as well : [https://github.com/Santy-8128/Minimac3 Minimac3 Github] &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cloning from GitHub is recommened so that updates can be easily pulled back !!!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;  style=&amp;quot;text-align:center&amp;quot;  border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;lightgray&amp;quot;&lt;br /&gt;
! Description&lt;br /&gt;
! Download Link&lt;br /&gt;
|- &lt;br /&gt;
| Source Files &lt;br /&gt;
| [ftp://share.sph.umich.edu/minimac3/Minimac3.v2.0.1.tar.gz UNIX Users ]&lt;br /&gt;
|- &lt;br /&gt;
| Binary Executable &amp;lt;sup&amp;gt;&amp;amp;#8224;&amp;lt;/sup&amp;gt; &lt;br /&gt;
| [ftp://share.sph.umich.edu/minimac3/Minimac3Executable.tar.gz UNIX Users ]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;sup&amp;gt;&amp;amp;#8224;&amp;lt;/sup&amp;gt;&#039;&#039;&#039; Binary executables are NOT guaranteed to run on every LINUX machine. Please compile from source files if you have trouble with the executable, or else contact the author [mailto:sayantan@umich.edu Sayantan Das]..&lt;br /&gt;
&lt;br /&gt;
= Usage=&lt;br /&gt;
&lt;br /&gt;
Users should follow the following steps to compile &#039;&#039;&#039;Minimac3&#039;&#039;&#039; (if they downloaded the source files) or should skip them (if they downloaded the binary executable).&lt;br /&gt;
&lt;br /&gt;
 ## DOWNLOAD, EXTRACT MINIMAC3 AND COMPILE&lt;br /&gt;
 &amp;amp;nbsp;&lt;br /&gt;
 wget ftp://share.sph.umich.edu/minimac3/Minimac3.v2.0.1.tar.gz&lt;br /&gt;
 tar -xzvf Minimac3.v2.0.1.tar.gz&lt;br /&gt;
 cd Minimac3/&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
A typical &#039;&#039;&#039;Minimac3&#039;&#039;&#039; command line for imputation is as follows &lt;br /&gt;
&lt;br /&gt;
 ../bin/Minimac3 --refHaps refPanel.vcf \ &lt;br /&gt;
                 --haps targetStudy.vcf \&lt;br /&gt;
                 --prefix testRun&lt;br /&gt;
&lt;br /&gt;
Here &amp;lt;font face=Courier&amp;gt;refPanel.vcf&amp;lt;/font&amp;gt; is the reference panel used in VCF format (e.g. 1000 Genomes), &amp;lt;font face=Courier&amp;gt;targetStudy.vcf&amp;lt;/font&amp;gt; is the phased GWAS data in VCF format, and &amp;lt;font face=Courier&amp;gt;testRun&amp;lt;/font&amp;gt; is the prefix for the output files. Some commonly used reference panels are available for download in [[Minimac3 Imputation Cookbook#Reference Panels for Download| Reference Panels]]. See wiki page on [[Minimac3 Usage| Detailed Usage]] and [[Minimac3 Imputation Cookbook|Imputation Cookbook]] for further details on using &#039;&#039;&#039;Minimac3&#039;&#039;&#039; for imputation analysis.&lt;br /&gt;
 &lt;br /&gt;
Users can always type the following for further support:&lt;br /&gt;
&lt;br /&gt;
  /bin/Minimac3 --help&lt;br /&gt;
&lt;br /&gt;
= Reference Panels for Download = &lt;br /&gt;
&lt;br /&gt;
Some commonly used reference panels are available for download here:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chr X Haplotypes for 1000 Genomes Phase 3 have been updated on Oct 20 to include multi-allelic variants as well (split as bi-allelic variants) !!!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;lightgray&amp;quot;&lt;br /&gt;
! width=&amp;quot;150px&amp;quot; |Reference Panel&lt;br /&gt;
! width=&amp;quot;100px&amp;quot; |Number &amp;lt;br&amp;gt; of Samples&lt;br /&gt;
! width=&amp;quot;100px&amp;quot; |File Format&lt;br /&gt;
! width=&amp;quot;100px&amp;quot; |Parameter &amp;lt;br&amp;gt;  Estimates &amp;lt;br&amp;gt; Available&lt;br /&gt;
! width=&amp;quot;120px&amp;quot; |Chromosomes&lt;br /&gt;
! width=&amp;quot;80px&amp;quot; |Link&lt;br /&gt;
|- &lt;br /&gt;
| rowspan=4 | &#039;&#039;&#039;1000 Genomes&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Phase 3&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
(version 5)&lt;br /&gt;
| rowspan=4  style=&amp;quot;text-align:center&amp;quot; | &#039;&#039;&#039;2,504&#039;&#039;&#039;&lt;br /&gt;
| &#039;&#039;&#039;VCF&#039;&#039;&#039; &lt;br /&gt;
| -&lt;br /&gt;
| 1-22,X&lt;br /&gt;
| [ftp://share.sph.umich.edu/minimac3/G1K_P3_VCF_Files.tar.gz Download] &amp;lt;!--[ftp://share.sph.umich.edu/minimac3/G1K_P3_VCF_Files.tar.gz Download]--&amp;gt;&lt;br /&gt;
|- &lt;br /&gt;
| rowspan=2  style=&amp;quot;text-align:center&amp;quot; | &#039;&#039;&#039;M3VCF&#039;&#039;&#039;&lt;br /&gt;
| YES&lt;br /&gt;
| 1-22,X&lt;br /&gt;
|  [ftp://share.sph.umich.edu/minimac3/G1K_P3_M3VCF_FILES_WITH_ESTIMATES.tar.gz Download] &amp;lt;!-- [ftp://share.sph.umich.edu/minimac3/G1K_P3_M3VCF_FILES_WITH_ESTIMATES.tar.gz Download]--&amp;gt;&lt;br /&gt;
|- &lt;br /&gt;
|NO&lt;br /&gt;
| 1-22,X&lt;br /&gt;
|  [ftp://share.sph.umich.edu/minimac3/G1K_P3_M3VCF_FILES_NO_ESTIMATES.tar.gz Download] &amp;lt;!--[ftp://share.sph.umich.edu/minimac3/G1K_P3_M3VCF_FILES_NO_ESTIMATES.tar.gz Download]--&amp;gt;&lt;br /&gt;
|- &lt;br /&gt;
| &#039;&#039;&#039;VCF&#039;&#039;&#039;,&#039;&#039;&#039;M3VCF&#039;&#039;&#039;&lt;br /&gt;
| YES&lt;br /&gt;
| X&lt;br /&gt;
|  [ftp://share.sph.umich.edu/minimac3/G1K_P3_CHR_X_VCF_M3VCF_FILES.tar.gz Download] &amp;lt;!--[ftp://share.sph.umich.edu/minimac3/G1K_P3_CHR_X_VCF_M3VCF_FILES.tar.gz Download]--&amp;gt;&lt;br /&gt;
|- &lt;br /&gt;
| rowspan=4 |  &#039;&#039;&#039;1000 Genomes&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Phase 1&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
(version 3)&lt;br /&gt;
| rowspan=4  | &#039;&#039;&#039;1,092&#039;&#039;&#039;&lt;br /&gt;
| &#039;&#039;&#039;VCF&#039;&#039;&#039; &lt;br /&gt;
| -&lt;br /&gt;
| 1-22,X&lt;br /&gt;
| [ftp://share.sph.umich.edu/minimac3/G1K_P1_VCF_Files.tar.gz Download]&lt;br /&gt;
|- &lt;br /&gt;
|  rowspan=2  style=&amp;quot;text-align:center&amp;quot; | &#039;&#039;&#039;M3VCF&#039;&#039;&#039;&lt;br /&gt;
| YES&lt;br /&gt;
| 1-22,X&lt;br /&gt;
| [ftp://share.sph.umich.edu/minimac3/G1K_P1_M3VCF_FILES_WITH_ESTIMATES.tar.gz Download]&lt;br /&gt;
|- &lt;br /&gt;
| NO&lt;br /&gt;
| 1-22,X&lt;br /&gt;
| [ftp://share.sph.umich.edu/minimac3/G1K_P1_M3VCF_FILES_NO_ESTIMATES.tar.gz Download]&lt;br /&gt;
|- &lt;br /&gt;
| &#039;&#039;&#039;VCF&#039;&#039;&#039;,&#039;&#039;&#039;M3VCF&#039;&#039;&#039;&lt;br /&gt;
| YES&lt;br /&gt;
| X&lt;br /&gt;
|  [ftp://share.sph.umich.edu/minimac3/G1K_P1_CHR_X_VCF_M3VCF_FILES.tar.gz Download] &amp;lt;!--[ftp://share.sph.umich.edu/minimac3/G1K_P1_CHR_X_VCF_M3VCF_FILES.tar.gz Download]--&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Reference =&lt;br /&gt;
&lt;br /&gt;
If you use [[minimac3]] please cite: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Das S, Forer L, Schönherr S, Sidore C, Locke AE&#039;&#039; et al. Next-generation genotype imputation service and methods. Nature Genetics 2016; 48, 1284–1287 (2016) doi:10.1038/ng.3656[http://www.nature.com/ng/journal/v48/n10/full/ng.3656.html]&lt;br /&gt;
&lt;br /&gt;
= Contact =&lt;br /&gt;
&lt;br /&gt;
In case of any queries and bugs please contact [mailto:sayantan@umich.edu Sayantan Das].&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Minimac4&amp;diff=15181</id>
		<title>Minimac4</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Minimac4&amp;diff=15181"/>
		<updated>2022-10-18T18:10:54Z</updated>

		<summary type="html">&lt;p&gt;Abought: Add category tag to improve findability&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Minimac4 &#039;&#039;&#039; is a latest version in the series of genotype imputation software - preceded by [[Minimac3|Minimac3]] (2015), [[Minimac2|Minimac2]] (2014), [[Minimac|minimac]] (2012) and [[MaCH|MaCH]] (2010). &#039;&#039;&#039;Minimac4&#039;&#039;&#039; is a lower memory and more computationally efficient implementation of the original algorithms with comparable imputation quality.&lt;br /&gt;
&lt;br /&gt;
The Minimac3 mailing list has been renamed as the Minimac4 mailing list. If you were already a member, no need to re-join. If not, please join our [https://groups.google.com/forum/embed/?place=forum/minimac4-help&amp;amp;umich.edu| mailing list] to get updates about future releases or report possible bugs or email them to [mailto:yukt@umich.edu  Ketian Yu] or [mailto:sayantan@umich.edu Sayantan Das].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Minimac4 (version 1.0.0, released 2.14.2018)&#039;&#039;&#039; is currently available on [https://github.com/Santy-8128/Minimac4 Minimac4 Github]. &lt;br /&gt;
&lt;br /&gt;
The easiest way to install Minimac4 and its dependencies is to use the install.sh file provided.&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/statgen/Minimac4.git&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 cd Minimac4&lt;br /&gt;
 bash install.sh&lt;br /&gt;
&lt;br /&gt;
Please see [https://github.com/Santy-8128/Minimac4 Minimac4 Github] for the full instructions for installation.&lt;br /&gt;
&lt;br /&gt;
Commonly used reference panels in &amp;lt;font face=Courier&amp;gt;M3VCF&amp;lt;/font&amp;gt; format are available for download in [[#Reference Panels for Download | Reference Panels]]. &lt;br /&gt;
&lt;br /&gt;
= What&#039;s New =&lt;br /&gt;
&lt;br /&gt;
The input file format, output file formats and typical command lines are the same in Minimac4 (as they were in minimac3). Some of the main new features are summarized below:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Improved Speed - &#039;&#039;&#039; Minimac4 is approximately &#039;&#039;&#039;6 times&#039;&#039;&#039; faster for 1000 Genomes Phase 1 and Phase 3 and &#039;&#039;&#039;2 times&#039;&#039;&#039; faster for the HRC reference panels at comparable accuracy (details of accuracy for imputing into 10 European samples are given here). The speed can be further improved by tuning the approximation parameters (see below), but we recommend using the default values.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Automated Chunking - &#039;&#039;&#039; Minimac4 automatically chunks the whole chromosome (into overlapping chunks), analyzes each chunk sequentially and then concatenates the imputed chunks back. This caps the memory usage across different chromosomes (memory requirement is based on chunk size, not chromosome size). The length of the chunk and the overlap can be controlled by the &amp;lt;code&amp;gt;--chunkLengthMb&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--chunkLengthOverlapMb&amp;lt;/code&amp;gt; options, although we recommend using the default values of 20 and 3, respectively. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Approximations - &#039;&#039;&#039; Minimac4 uses some simple approximations to speed up the imputation analyses. The levels of approximation can be controlled by the parameters &amp;lt;code&amp;gt;--probThreshold&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--diffThreshold&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;--topThreshold&amp;lt;/code&amp;gt; (details given in Minimac4 Usage). Higher levels of approximation will reduce the compute time but marginally reduce the imputation accuracy. We recommend using the default values (0.01).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Improved Chromosome X/Y Support - &#039;&#039;&#039; Minimac4 can handle different ploidys in the same VCF file for imputation of sex chromosomes. For example, for the non-PAR region on chromosome X, males and females can be imputed together, irrespective of whether males are coded as haploids or diploids. However, each sample must have a fixed ploidy. Thus, PAR and non-PAR regions still need to be imputed separately. Please see Chromosome X Imputation for more details.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Other Helpful Features&#039;&#039;&#039;&lt;br /&gt;
** We introduced a new feature called &amp;lt;code&amp;gt;--memUsage&amp;lt;/code&amp;gt; that will estimate and report the memory required by Minimac4. This feature should be useful for users running their jobs on a compute cluster that requires memory specification.&lt;br /&gt;
** We introduced some other FORMAT options for the output dosage data, allowing users to retrieve haplotype dosages, genotype probabilities, genotype dosages or any other measure of summary that they want.&lt;br /&gt;
** We have fixed the bug related to FILTER=GENOTYPED and FILTER=GENOTYPED_ONLY which was causing a crash in bcftools.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Obsolete Features&#039;&#039;&#039;&lt;br /&gt;
** In Minimac4, we removed the &amp;lt;code&amp;gt;--doseOutput&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--hapOutput&amp;lt;/code&amp;gt; options. Please use [[DosageConvertor]] to convert your files to MaCH or PLINK dosage format.&lt;br /&gt;
** Currently Minimac4 can ONLY handle M3VCF format files. If your reference panel is in VCF format, please use [[Minimac3]] to convert the VCF file to M3VCF (along with parameter estimation) and then use that M3VCF for imputation using Minimac4. The same holds for the option &amp;lt;code&amp;gt;--processReference&amp;lt;/code&amp;gt; as well. Although the handle is made available, we will implement it in a later version.&lt;br /&gt;
** Parameters such as &amp;lt;code&amp;gt;--rounds&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--states&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--rec&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--err&amp;lt;/code&amp;gt; have been deactivated for now until we implement parameter estimation in minimac4.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
A typical Minimac4 command line for imputation is as follows&lt;br /&gt;
&lt;br /&gt;
 minimac4 --refHaps refPanel.m3vcf \&lt;br /&gt;
          --haps targetStudy.vcf \&lt;br /&gt;
          --prefix testRun&lt;br /&gt;
&lt;br /&gt;
Here &amp;lt;font face=Courier&amp;gt;refPanel.m3vcf&amp;lt;/font&amp;gt; is the reference panel used in M3VCF format (e.g. 1000 Genomes),  &amp;lt;font face=Courier&amp;gt;targetStudy.vcf&amp;lt;/font&amp;gt; is the phased GWAS data in VCF format, and  &amp;lt;font face=Courier&amp;gt;testRun&amp;lt;/font&amp;gt; is the prefix for the output files.&lt;br /&gt;
&lt;br /&gt;
=== Full List of Options ===&lt;br /&gt;
Please see &#039;&#039;&#039;[[Minimac4 Documentation]]&#039;&#039;&#039; for detailed explanation of all available options.&lt;br /&gt;
&lt;br /&gt;
Also, users can always type the following for the full list of available options:&lt;br /&gt;
 minimac4 --help&lt;br /&gt;
&lt;br /&gt;
=== Convert VCF to M3VCF ===&lt;br /&gt;
If the reference panel is in VCF format, please use [[Minimac3]] to convert it into M3VCF format first. &lt;br /&gt;
 ../bin/Minimac3 --refHaps refPanel.vcf \ &lt;br /&gt;
                 --processReference \ &lt;br /&gt;
                 --prefix refPanel&lt;br /&gt;
&lt;br /&gt;
=== Multi-Threading ===&lt;br /&gt;
The following example shows the same analysis as above, but using 5 threads:&lt;br /&gt;
&lt;br /&gt;
 minimac4 --refHaps refPanel.m3vcf \&lt;br /&gt;
          --haps targetStudy.vcf \&lt;br /&gt;
          --prefix testRun \&lt;br /&gt;
          --cpus 5&lt;br /&gt;
&lt;br /&gt;
= Reference Panels for Download = &lt;br /&gt;
&lt;br /&gt;
Some commonly used reference panels are available for download here:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;lightgray&amp;quot;&lt;br /&gt;
! width=&amp;quot;150px&amp;quot; |Reference Panel&lt;br /&gt;
! width=&amp;quot;100px&amp;quot; |Number &amp;lt;br&amp;gt; of Samples&lt;br /&gt;
! width=&amp;quot;100px&amp;quot; |File Format&lt;br /&gt;
! width=&amp;quot;100px&amp;quot; |Parameter &amp;lt;br&amp;gt;  Estimates &amp;lt;br&amp;gt; Available&lt;br /&gt;
! width=&amp;quot;120px&amp;quot; |Chromosomes&lt;br /&gt;
! width=&amp;quot;80px&amp;quot; |Link&lt;br /&gt;
|- &lt;br /&gt;
| rowspan=4 | &#039;&#039;&#039;1000 Genomes&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Phase 3&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
(version 5)&lt;br /&gt;
| rowspan=4  style=&amp;quot;text-align:center&amp;quot; | &#039;&#039;&#039;2,504&#039;&#039;&#039;&lt;br /&gt;
| &#039;&#039;&#039;VCF&#039;&#039;&#039; &lt;br /&gt;
| -&lt;br /&gt;
| 1-22,X&lt;br /&gt;
| [ftp://share.sph.umich.edu/minimac3/G1K_P3_VCF_Files.tar.gz Download] &amp;lt;!--[ftp://share.sph.umich.edu/minimac3/G1K_P3_VCF_Files.tar.gz Download]--&amp;gt;&lt;br /&gt;
|- &lt;br /&gt;
| rowspan=2  style=&amp;quot;text-align:center&amp;quot; | &#039;&#039;&#039;M3VCF&#039;&#039;&#039;&lt;br /&gt;
| YES&lt;br /&gt;
| 1-22,X&lt;br /&gt;
|  [ftp://share.sph.umich.edu/minimac3/G1K_P3_M3VCF_FILES_WITH_ESTIMATES.tar.gz Download] &amp;lt;!-- [ftp://share.sph.umich.edu/minimac3/G1K_P3_M3VCF_FILES_WITH_ESTIMATES.tar.gz Download]--&amp;gt;&lt;br /&gt;
|- &lt;br /&gt;
|NO&lt;br /&gt;
| 1-22,X&lt;br /&gt;
|  [ftp://share.sph.umich.edu/minimac3/G1K_P3_M3VCF_FILES_NO_ESTIMATES.tar.gz Download] &amp;lt;!--[ftp://share.sph.umich.edu/minimac3/G1K_P3_M3VCF_FILES_NO_ESTIMATES.tar.gz Download]--&amp;gt;&lt;br /&gt;
|- &lt;br /&gt;
| &#039;&#039;&#039;VCF&#039;&#039;&#039;,&#039;&#039;&#039;M3VCF&#039;&#039;&#039;&lt;br /&gt;
| YES&lt;br /&gt;
| X&lt;br /&gt;
|  [ftp://share.sph.umich.edu/minimac3/G1K_P3_CHR_X_VCF_M3VCF_FILES.tar.gz Download] &amp;lt;!--[ftp://share.sph.umich.edu/minimac3/G1K_P3_CHR_X_VCF_M3VCF_FILES.tar.gz Download]--&amp;gt;&lt;br /&gt;
|- &lt;br /&gt;
| rowspan=4 |  &#039;&#039;&#039;1000 Genomes&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Phase 1&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
(version 3)&lt;br /&gt;
| rowspan=4  | &#039;&#039;&#039;1,092&#039;&#039;&#039;&lt;br /&gt;
| &#039;&#039;&#039;VCF&#039;&#039;&#039; &lt;br /&gt;
| -&lt;br /&gt;
| 1-22,X&lt;br /&gt;
| [ftp://share.sph.umich.edu/minimac3/G1K_P1_VCF_Files.tar.gz Download]&lt;br /&gt;
|- &lt;br /&gt;
|  rowspan=2  style=&amp;quot;text-align:center&amp;quot; | &#039;&#039;&#039;M3VCF&#039;&#039;&#039;&lt;br /&gt;
| YES&lt;br /&gt;
| 1-22,X&lt;br /&gt;
| [ftp://share.sph.umich.edu/minimac3/G1K_P1_M3VCF_FILES_WITH_ESTIMATES.tar.gz Download]&lt;br /&gt;
|- &lt;br /&gt;
| NO&lt;br /&gt;
| 1-22,X&lt;br /&gt;
| [ftp://share.sph.umich.edu/minimac3/G1K_P1_M3VCF_FILES_NO_ESTIMATES.tar.gz Download]&lt;br /&gt;
|- &lt;br /&gt;
| &#039;&#039;&#039;VCF&#039;&#039;&#039;,&#039;&#039;&#039;M3VCF&#039;&#039;&#039;&lt;br /&gt;
| YES&lt;br /&gt;
| X&lt;br /&gt;
|  [ftp://share.sph.umich.edu/minimac3/G1K_P1_CHR_X_VCF_M3VCF_FILES.tar.gz Download] &amp;lt;!--[ftp://share.sph.umich.edu/minimac3/G1K_P1_CHR_X_VCF_M3VCF_FILES.tar.gz Download]--&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Useful Wiki Pages =&lt;br /&gt;
&lt;br /&gt;
There are a few pages in this Wiki that may be useful to for &#039;&#039;&#039;Minimac4&#039;&#039;&#039; users. Here are links to a few:&lt;br /&gt;
&lt;br /&gt;
* [[Minimac4| Minimac4 Overview Page]]&lt;br /&gt;
&lt;br /&gt;
* [[Minimac4 Documentation]]&lt;br /&gt;
&lt;br /&gt;
* [[M3VCF Files| M3VCF Files]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=LocusZoom_Standalone&amp;diff=15180</id>
		<title>LocusZoom Standalone</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=LocusZoom_Standalone&amp;diff=15180"/>
		<updated>2021-11-18T22:03:24Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| __TOC__&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; [[Image:LocusZoomSmall.png]] &lt;br /&gt;
&lt;br /&gt;
This page contains information regarding a version of LocusZoom that may be downloaded for personal use. For more information on LocusZoom, see this [[LocusZoom|page]]. &#039;&#039;&#039;This page refers to the command line &amp;quot;standalone&amp;quot; version, which is no longer actively maintained. For information about a web-friendly version with support for modern datasets, see [https://github.com/statgen/locuszoom LocusZoom.js] on GitHub, or [https://my.locuszoom.org https://my.locuszoom.org] to plot your own data&#039;&#039;&#039; .&lt;br /&gt;
&lt;br /&gt;
To be notified of future changes to LocusZoom, you can join our [http://groups.google.com/group/locuszoom Google Group]. &lt;br /&gt;
&lt;br /&gt;
== Quick Start (Requirements)  ==&lt;br /&gt;
&lt;br /&gt;
The following software is required: &lt;br /&gt;
&lt;br /&gt;
*[http://www.python.org/download/ Python 2.7+] (do &#039;&#039;&#039;not&#039;&#039;&#039; download the 3.0 branch!) &lt;br /&gt;
*[http://www.r-project.org/ R 3.0+]. Note that if using R 3.1, you must install LocusZoom 1.3 (previous versions will fail.) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following software is optional but recommended: &lt;br /&gt;
&lt;br /&gt;
*[[New Fugue|new_fugue]], a program for computing LD, written by Goncalo Abecasis.&lt;br /&gt;
*[http://pngu.mgh.harvard.edu/~purcell/plink/ PLINK]&lt;br /&gt;
*[http://samtools.sourceforge.net/ tabix], downloaded with samtools&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following R packages are optional but recommended: &lt;br /&gt;
*[http://cran.r-project.org/web/packages/gridExtra/index.html gridExtra] (used for creating summary tables of GWAS hits / fine-mapping SNPs as additional pages in the PDF)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the latest stable LocusZoom package, see our [https://github.com/statgen/locuszoom-standalone download] page. The current version is &#039;&#039;&#039;1.3&#039;&#039;&#039;, released on June 20th, 2014.  &lt;br /&gt;
&lt;br /&gt;
Currently only &#039;&#039;&#039;Unix/Linux&#039;&#039;&#039; is supported, though Mac OS X should be supported in a future release. Support for Windows may come at a much later date.&lt;br /&gt;
&lt;br /&gt;
== Synopsis  ==&lt;br /&gt;
&lt;br /&gt;
First, change directory into examples/. Then, run the following command: &lt;br /&gt;
&amp;lt;pre&amp;gt;./run_example.py&amp;lt;/pre&amp;gt; &lt;br /&gt;
This script runs the following command for you: &lt;br /&gt;
&amp;lt;pre&amp;gt;../bin/locuszoom --metal Kathiresan_2009_HDL.txt --refgene FADS1&amp;lt;/pre&amp;gt; &lt;br /&gt;
A PDF plot of the FADS1 locus will be created in the directory. It should look roughly like this: &lt;br /&gt;
&lt;br /&gt;
[[Image:FADS1 small.png]]&lt;br /&gt;
&lt;br /&gt;
== Download == &lt;br /&gt;
&lt;br /&gt;
See our [https://github.com/statgen/locuszoom-standalone download] page for links to the latest as well as previous releases.&lt;br /&gt;
&lt;br /&gt;
== Installation  ==&lt;br /&gt;
&lt;br /&gt;
=== Step 1: Install Python  ===&lt;br /&gt;
&lt;br /&gt;
You will need to install Python on your system if it is not already. Head over to [http://www.python.org www.python.org] to download it. Note that you will want to make sure to download the latest from the 2.x branch, and &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt;&#039;&#039;&#039;*not*&#039;&#039;&#039;&amp;lt;/span&amp;gt; the 3.x one. &lt;br /&gt;
&lt;br /&gt;
=== Step 2: Install R  ===&lt;br /&gt;
&lt;br /&gt;
R is also required for generating the plots. You can download R at [http://www.r-project.org/ www.r-project.org]. Version 2.10 or greater is required. &lt;br /&gt;
&lt;br /&gt;
=== Step 3: Install LD calculation software (optional) ===&lt;br /&gt;
&lt;br /&gt;
* If you wish to calculate from hg18 sources (hapmap, earlier releases of 1000G): install &#039;&#039;&#039;new_fugue&#039;&#039;&#039; (see below.) &lt;br /&gt;
* If you wish to calculate from hg19 sources (latest 1000G): install &#039;&#039;&#039;PLINK&#039;&#039;&#039; (see below.) &lt;br /&gt;
* If you plan to supply your own LD files per region, or calculate LD directly from VCF files: install nothing! See options for --ld and --ld-vcf. &lt;br /&gt;
&lt;br /&gt;
==== new_fugue ====&lt;br /&gt;
&lt;br /&gt;
New_fugue is a program that calculates linkage disequilibrium measures from genotype files. While installing new_fugue is optional, we highly recommend it as it makes the process of generating plots much easier. If you opt to skip installing new_fugue, you will need to provide your own computed LD files for each region that you want to plot. &lt;br /&gt;
&lt;br /&gt;
New_fugue can be downloaded from [[New Fugue|here]]. &lt;br /&gt;
&lt;br /&gt;
Once downloaded, extract the tar file using: &lt;br /&gt;
&amp;lt;pre&amp;gt; tar zxf /path/to/new_fugue.tar.gz&amp;lt;/pre&amp;gt; &lt;br /&gt;
Change into the generic-new_fugue directory that is created, and run: &lt;br /&gt;
&amp;lt;pre&amp;gt; make install &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may need administrator rights to install this program.&lt;br /&gt;
&lt;br /&gt;
==== PLINK ====&lt;br /&gt;
&lt;br /&gt;
PLINK is now used to calculate LD for all future LD sources / populations that we may add. The program new_fugue (above) is used to calculate LD from older sources (such as hapmap) and older builds (such as hg18) where LD files are sufficiently small. &lt;br /&gt;
&lt;br /&gt;
You can download PLINK and find instructions for installing it [http://pngu.mgh.harvard.edu/~purcell/plink/download.shtml here].&lt;br /&gt;
&lt;br /&gt;
=== Step 5: Install tabix ===&lt;br /&gt;
&lt;br /&gt;
Tabix is used to quickly extract regions from bgzipped and tabix-indexed files. It is used in LocusZoom to extract regions from VCF files when calculating LD, and for extracting from EPACTS result files. &lt;br /&gt;
&lt;br /&gt;
It can be downloaded from the sourceforge site [http://samtools.sourceforge.net/ here] or directly to the download site [http://sourceforge.net/projects/samtools/files/ here].&lt;br /&gt;
&lt;br /&gt;
=== Step 6: Install LocusZoom  ===&lt;br /&gt;
&lt;br /&gt;
LocusZoom is provided as a tar archive which contains the following: &lt;br /&gt;
&lt;br /&gt;
*The LocusZoom python application &lt;br /&gt;
*The R script used for generating plots &lt;br /&gt;
*Human genome &#039;&#039;&#039;build hg18 and hg19&#039;&#039;&#039; data, including: &lt;br /&gt;
**genotype files (used for computing LD) from HapMap and 1000G &lt;br /&gt;
**a SQLite database file containing tables describing SNP positions, SNP annotations, gene and exon locations, and recombination rates&lt;br /&gt;
&lt;br /&gt;
Simply unpack the tar to your directory of choice by doing the following: &lt;br /&gt;
&amp;lt;pre&amp;gt;cd &amp;amp;lt;directory where you want to place locuszoom&amp;amp;gt; &lt;br /&gt;
tar zxf /path/to/locuszoom.tgz &lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
The tar archive will extract into the following directory structure: &lt;br /&gt;
&lt;br /&gt;
*locuszoom/ &lt;br /&gt;
**bin/ &lt;br /&gt;
***locuszoom (this is the locuszoom &amp;quot;executable&amp;quot;) &lt;br /&gt;
***locuszoom.R (the R script which is used by locuszoom for creating the plots) &lt;br /&gt;
***dbmeister.py (script for creating custom user databases)&lt;br /&gt;
***lzupdate.py (script for creating an updated copy of the provided locuszoom database)&lt;br /&gt;
**conf/ (configuration file located here) &lt;br /&gt;
**data/ &lt;br /&gt;
***database/ (SQLite file located here) &lt;br /&gt;
***hapmap/ (hapmap genotype files) &lt;br /&gt;
***1000G/ (1000G genotype files) &lt;br /&gt;
**src/ (source code for locuszoom)&lt;br /&gt;
&lt;br /&gt;
It is important that this directory structure remain intact. To make launching locusoom easier, you could create a link to it from /usr/local/bin, for example: &lt;br /&gt;
&amp;lt;pre&amp;gt;ln -s bin/locuszoom /usr/local/bin/locuszoom&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Sources of information ==&lt;br /&gt;
&lt;br /&gt;
LocusZoom uses various sources of information for annotation, positions, and calculating LD. &lt;br /&gt;
&lt;br /&gt;
For computing LD: &lt;br /&gt;
*[ftp://ftp.hapmap.org/hapmap/genotypes/2008-10_phaseII/ HapMap genotypes] for populations CEU, YRI, and JPT+CHB. &lt;br /&gt;
*[ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/pilot_data/release/2010_03/pilot1 1000 Genomes genotypes]&lt;br /&gt;
&lt;br /&gt;
For SNP, gene, and exon positions: &lt;br /&gt;
*[http://www.ncbi.nlm.nih.gov/projects/SNP/ dbSNP position] via the [http://genome.ucsc.edu UCSC Genome Browser]&lt;br /&gt;
*[http://www.ncbi.nlm.nih.gov/RefSeq/ Gene and exon positions] via the [http://genome.ucsc.edu UCSC Genome Browser].  We filtered SNPs that map to more than one location or where no allele matches the reference sequence.&lt;br /&gt;
&lt;br /&gt;
For annotation: &lt;br /&gt;
*We use various sources including RefSeq Genes (refFlat), TFBS Conserved (tfbsConsSites), and Conservation (phaseConsElements44wayPlacental), all available from the [http://genome.usc.edu UCSC Genome Browser]. &lt;br /&gt;
*[ftp://ftp.hapmap.org/hapmap/recombination/2008-03_rel22_B36/rates/ Recombination rates from HapMap].&lt;br /&gt;
&lt;br /&gt;
For GWAS hits: &lt;br /&gt;
*We use the NHGRI GWAS catalog, available at [http://www.genome.gov/gwastudies/ genome.gov]&lt;br /&gt;
&lt;br /&gt;
== Input  ==&lt;br /&gt;
&lt;br /&gt;
=== Association results file ===&lt;br /&gt;
&lt;br /&gt;
LocusZoom requires an association results file similar in formatting to what METAL or EPACTS provides. &lt;br /&gt;
&lt;br /&gt;
==== METAL formatted file ====&lt;br /&gt;
&lt;br /&gt;
The file must have 2 columns: markers (SNPs), and p-values. The file should look something like this: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;25%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;1&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | MarkerName &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | P-value&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | rs1 &lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 0.423&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | rs2 &lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 1.23e-04&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | chr4:401141 &lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 9.4e-390&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Markers can be either rsIDs or chr:pos format (see above). &lt;br /&gt;
&lt;br /&gt;
This file should be passed to locuszoom using the &amp;lt;code&amp;gt;--metal&amp;lt;/code&amp;gt; option. &lt;br /&gt;
&lt;br /&gt;
The file should be tab-delimited, though this can be changed using the &amp;lt;code&amp;gt;--delim &amp;lt;/code&amp;gt; option. &lt;br /&gt;
&lt;br /&gt;
If your marker and p-value column names are not &amp;quot;MarkerName&amp;quot; and &amp;quot;P-value&amp;quot;, you may set them with &amp;lt;code&amp;gt;--markercol&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--pvalcol&amp;lt;/code&amp;gt; options. &lt;br /&gt;
&lt;br /&gt;
P-values of any magnitude are supported in scientific notation (we use an arbitrary precision library built-in to python, and transform p-values to the log scale.) If you&#039;ve already transformed your p-values to the log scale, simply use &amp;lt;code&amp;gt;--no-transform&amp;lt;/code&amp;gt; and LocusZoom will not transform them.&lt;br /&gt;
&lt;br /&gt;
==== EPACTS formatted file ====&lt;br /&gt;
&lt;br /&gt;
The file can come directly from [[EPACTS]], or simply be formatted similarly to the following: &lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | #CHROM&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | BEGIN&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | END&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | MARKER_ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | NS&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | AC&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | CALLRATE&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | MAF&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | PVALUE&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | SCORE&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | N.CASE&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | N.CTRL&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | AF.CASE&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | AF.CTRL&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 15903 || 15903 || 1:15903_G/GC || 2657 || 3892.2 || 1 || 0.26757 || 0.36771 || 0.90077 || 1326 || 1331 || 1.4688 || 1.4609&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 19190 || 19191 || 1:19190_GC/G || 2657 || 823.65 || 1 || 0.155 || 0.67173 || 0.42378 || 1326 || 1331 || 0.3115 || 0.30849&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 20316 || 20317 || 1:20316_GA/G || 2657 || 1005.3 || 1 || 0.18917 || 0.50804 || 0.66189 || 1326 || 1331 || 0.38062 || 0.37607&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 30967 || 30970 || 1:30967_CCCA/C || 2657 || 435.35 || 1 || 0.081925 || 0.08848 || -1.7035 || 1326 || 1331 || 0.16007 || 0.16762&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 51972 || 51975 || 1:51972_GGAC/G || 2657 || 207.8 || 1 || 0.039104 || 0.51638 || -0.64893 || 1326 || 1331 || 0.077187 || 0.079226&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 53138 || 53140 || 1:53138_TAA/T || 2657 || 216.2 || 1 || 0.040685 || 0.55679 || 0.58762 || 1326 || 1331 || 0.083145 || 0.079602&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 54421 || 54421 || 1:54421_A/G || 2657 || 179.45 || 1 || 0.033769 || 0.73592 || 0.33726 || 1326 || 1331 || 0.068213 || 0.066867&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 66221 || 66221 || 1:66221_A/AT || 2657 || 664.45 || 1 || 0.12504 || 0.48676 || 0.69547 || 1326 || 1331 || 0.25366 || 0.24651&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 66222 || 66223 || 1:66222_TA/T || 2657 || 470.3 || 1 || 0.088502 || 0.64258 || 0.4641 || 1326 || 1331 || 0.17941 || 0.17461&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The chrom, start, end, marker ID, and p-value columns must all be present. The file must be tab-delimited. &lt;br /&gt;
&lt;br /&gt;
To load this file, use --epacts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#00CC33&amp;quot;&amp;gt;&#039;&#039;&#039;Note&#039;&#039;&#039;&amp;lt;/span&amp;gt;: LocusZoom (as of 1.3) will now use the tabix index for the EPACTS file if it exists and if tabix is intalled on your system. This results in much faster loading of EPACTS files and should absolutely be used if possible. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt;&#039;&#039;&#039;Warning&#039;&#039;&#039;&amp;lt;/span&amp;gt;: The &amp;quot;test&amp;quot; version of EPACTS changed the format of the output. To make LZ work, you&#039;ll also need to add &amp;lt;code&amp;gt;--epacts-beg-col BEG&amp;lt;/code&amp;gt; to your command line.&lt;br /&gt;
&lt;br /&gt;
==== Reading from STDIN ====&lt;br /&gt;
&lt;br /&gt;
If you have a quick way of pulling out regions from your association results to plot (such as with tabix), you can pass the data directly to locuszoom on STDIN by specifying the file as &amp;quot;-&amp;quot;. For example: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tabix -h my_file.gz 1:1-10000 | locuszoom --metal - --refgene TCF7L2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Region  ===&lt;br /&gt;
&lt;br /&gt;
You can specify the region to plot in any one of the following ways: &lt;br /&gt;
&lt;br /&gt;
*A reference SNP and flanking region&lt;br /&gt;
&amp;lt;pre&amp;gt; --refsnp &amp;amp;lt;your snp&amp;amp;gt; --flank 500kb &amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*A reference SNP and chromosome/start/stop specification&lt;br /&gt;
&amp;lt;pre&amp;gt; --refsnp &amp;amp;lt;your snp&amp;amp;gt; --chr # --start &amp;amp;lt;base position&amp;amp;gt; --end &amp;amp;lt;base position&amp;amp;gt; &amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*A reference SNP and gene: &lt;br /&gt;
&amp;lt;pre&amp;gt; --refsnp &amp;amp;lt;your snp&amp;amp;gt; --refgene &amp;amp;lt;your gene&amp;amp;gt; &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will use the reference gene as the plotting boundaries. You can extend the boundaries by also including --flank. &lt;br /&gt;
&lt;br /&gt;
*A gene and flanking region&lt;br /&gt;
&amp;lt;pre&amp;gt; --refgene &amp;amp;lt;your gene&amp;amp;gt; --flank 250kb &amp;lt;/pre&amp;gt; &lt;br /&gt;
The flank is computed as +/- from the transcription start/end of the gene. From this region, LocusZoom will find the SNP with the most significant p-value, and use this as the reference SNP. &lt;br /&gt;
&lt;br /&gt;
*A gene and chromosome/start/stop specification&lt;br /&gt;
&amp;lt;pre&amp;gt; --refgene &amp;amp;lt;your gene&amp;amp;gt; --chr # --start &amp;amp;lt;base position&amp;amp;gt; --end &amp;amp;lt;base position&amp;amp;gt; &amp;lt;/pre&amp;gt; &lt;br /&gt;
This method is similar to the above, except that an exact region is specified. LD with the SNP with the most significant p-value in this region will be used to color data points. &lt;br /&gt;
&lt;br /&gt;
*A chromosome/start/stop specification&lt;br /&gt;
&amp;lt;pre&amp;gt; --chr # --start &amp;amp;lt;base position&amp;amp;gt; --end &amp;amp;lt;base position&amp;amp;gt; &amp;lt;/pre&amp;gt; &lt;br /&gt;
The SNP with the most significant p-value in this region will be used for estimating LD.&lt;br /&gt;
&lt;br /&gt;
=== Specifying LD source/population/build  ===&lt;br /&gt;
&lt;br /&gt;
We supply genotype files for computing LD between the reference SNP and all other SNPs within the region you are plotting. The tables below show the supported combinations of LD source, population, and build. Note that you can always provide your own LD files, see [[#User-supplied_LD|User-supplied LD]] for more information. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1000G&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;75%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! align=&amp;quot;left&amp;quot; scope=&amp;quot;col&amp;quot; | Release &lt;br /&gt;
! align=&amp;quot;left&amp;quot; scope=&amp;quot;col&amp;quot; | Build &lt;br /&gt;
! align=&amp;quot;left&amp;quot; scope=&amp;quot;col&amp;quot; | Population &lt;br /&gt;
! align=&amp;quot;left&amp;quot; scope=&amp;quot;col&amp;quot; | LocusZoom Arguments&lt;br /&gt;
|-&lt;br /&gt;
| March 2012&lt;br /&gt;
| hg19&lt;br /&gt;
| ASN&lt;br /&gt;
| --pop ASN --build hg19 --source 1000G_March2012&lt;br /&gt;
|-&lt;br /&gt;
| March 2012&lt;br /&gt;
| hg19&lt;br /&gt;
| AFR&lt;br /&gt;
| --pop AFR--build hg19 --source 1000G_March2012&lt;br /&gt;
|-&lt;br /&gt;
| March 2012&lt;br /&gt;
| hg19&lt;br /&gt;
| EUR&lt;br /&gt;
| --pop EUR --build hg19 --source 1000G_March2012&lt;br /&gt;
|-&lt;br /&gt;
| March 2012&lt;br /&gt;
| hg19&lt;br /&gt;
| AMR&lt;br /&gt;
| --pop AMR --build hg19 --source 1000G_March2012&lt;br /&gt;
|-&lt;br /&gt;
| Nov 2010&lt;br /&gt;
| hg19&lt;br /&gt;
| ASN&lt;br /&gt;
| --pop ASN --build hg19 --source 1000G_Nov2010&lt;br /&gt;
|-&lt;br /&gt;
| Nov 2010&lt;br /&gt;
| hg19&lt;br /&gt;
| AFR&lt;br /&gt;
| --pop AFR&amp;amp;nbsp;--build hg19 --source 1000G_Nov2010&lt;br /&gt;
|-&lt;br /&gt;
| Nov 2010&lt;br /&gt;
| hg19&lt;br /&gt;
| EUR&lt;br /&gt;
| --pop EUR --build hg19 --source 1000G_Nov2010&lt;br /&gt;
|-&lt;br /&gt;
| June 2010 &lt;br /&gt;
| hg18 &lt;br /&gt;
| CEU &lt;br /&gt;
| --pop CEU --build hg18 --source 1000G_June2010&lt;br /&gt;
|-&lt;br /&gt;
| June 2010 &lt;br /&gt;
| hg18 &lt;br /&gt;
| YRI &lt;br /&gt;
| --pop YRI --build hg18 --source 1000G_June2010&lt;br /&gt;
|-&lt;br /&gt;
| June 2010 &lt;br /&gt;
| hg18 &lt;br /&gt;
| JPT+CHB &lt;br /&gt;
| --pop JPT+CHB --build hg18 --source 1000G_June2010&lt;br /&gt;
|-&lt;br /&gt;
| August 2009 &lt;br /&gt;
| hg18 &lt;br /&gt;
| CEU &lt;br /&gt;
| --pop CEU --build hg18 --source 1000G_Aug2009&lt;br /&gt;
|-&lt;br /&gt;
| August 2009 &lt;br /&gt;
| hg18 &lt;br /&gt;
| YRI &lt;br /&gt;
| --pop YRI --build hg18 --source 1000G_Aug2009&lt;br /&gt;
|-&lt;br /&gt;
| August 2009 &lt;br /&gt;
| hg18 &lt;br /&gt;
| JPT+CHB &lt;br /&gt;
| --pop JPT+CHB --build hg18 --source 1000G_Aug2009&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &#039;&#039;&#039;HapMap Phase II&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;75%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! align=&amp;quot;left&amp;quot; scope=&amp;quot;col&amp;quot; | Build &lt;br /&gt;
! align=&amp;quot;left&amp;quot; scope=&amp;quot;col&amp;quot; | Population &lt;br /&gt;
! align=&amp;quot;left&amp;quot; scope=&amp;quot;col&amp;quot; | LocusZoom Arguments&lt;br /&gt;
|-&lt;br /&gt;
| hg18 &lt;br /&gt;
| CEU &lt;br /&gt;
| --pop CEU --build hg18 --source hapmap&lt;br /&gt;
|-&lt;br /&gt;
| hg18 &lt;br /&gt;
| YRI&lt;br /&gt;
| --pop YRI--build hg18 --source hapmap&lt;br /&gt;
|-&lt;br /&gt;
| hg18 &lt;br /&gt;
| JPT+CHB &lt;br /&gt;
| --pop JPT+CHB --build hg18 --source hapmap&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Batch mode  ===&lt;br /&gt;
&lt;br /&gt;
LocusZoom provides a batch mode for generating plots for a large number of regions: &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;--hitspec &amp;lt;/code&amp;gt;, which reads a batch mode specification file.&lt;br /&gt;
&lt;br /&gt;
For this option, you must provide a text file of the following format: &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;75%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Column &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| snp &lt;br /&gt;
| Can be either a SNP, or gene.&lt;br /&gt;
|-&lt;br /&gt;
| chr &lt;br /&gt;
| Chromosome&lt;br /&gt;
|-&lt;br /&gt;
| start &lt;br /&gt;
| Start position to display on plot.&lt;br /&gt;
|-&lt;br /&gt;
| end &lt;br /&gt;
| End position to display on plot.&lt;br /&gt;
|-&lt;br /&gt;
| flank &lt;br /&gt;
| Flank for region. Can be given instead of chr/start/stop.&lt;br /&gt;
|-&lt;br /&gt;
| run &lt;br /&gt;
| Should this row be read? Should be &amp;quot;yes&amp;quot; or &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| m2zargs &lt;br /&gt;
| List of arguments for customizing plots. You can find a list of them here: [[LocusZoom#Commonly_Used_LocusZoom_Options|Commonly Used LocusZoom Options]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The file should be delimited by whitespace (tab, space, multiple spaces), and the header must exist, with column names exactly as specified in the table above. As an example, consider the following file: &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;75%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot; class=&amp;quot;sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | snp &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | chr &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | start &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | stop &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | flank &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | run &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | m2zargs&lt;br /&gt;
|-&lt;br /&gt;
| rs7983146 &lt;br /&gt;
| NA &lt;br /&gt;
| NA &lt;br /&gt;
| NA &lt;br /&gt;
| 500kb &lt;br /&gt;
| yes &lt;br /&gt;
| title=&amp;quot;My favorite SNP&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| TCF7L2 &lt;br /&gt;
| NA &lt;br /&gt;
| NA &lt;br /&gt;
| NA &lt;br /&gt;
| 1.25MB &lt;br /&gt;
| yes &lt;br /&gt;
| title=&amp;quot;TCF7L2 Region&amp;quot; showRecomb=F&lt;br /&gt;
|-&lt;br /&gt;
| rs7957197 &lt;br /&gt;
| 12 &lt;br /&gt;
| 119503590 &lt;br /&gt;
| 120322280 &lt;br /&gt;
| NA &lt;br /&gt;
| yes &lt;br /&gt;
| showAnnot=F&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The first row would plot rs7983146 as the reference SNP, and a region of 500kb on either side of it. The plot title would read &amp;quot;My favorite SNP.&amp;quot; &lt;br /&gt;
&lt;br /&gt;
The second row would plot 1.25 MB on either side of TCF7L2&#039;s transcription start and stop. The SNP with the most significant p-value in your &amp;lt;code&amp;gt;--metal&amp;lt;/code&amp;gt; file will be used as the reference SNP. The plot title would read &amp;quot;TCF7L2 Region&amp;quot;, and the recombination overlay would be disabled using showRecomb=F. &lt;br /&gt;
&lt;br /&gt;
The third row would plot rs7957197 as the reference SNP, but here we&#039;ve specifically designated the region to plot, which is chr12:119503590-120322280. We&#039;ve also disabled showing SNP annotations with showAnnot=F.&lt;br /&gt;
&lt;br /&gt;
=== User-supplied LD  ===&lt;br /&gt;
&lt;br /&gt;
If new_fugue is installed, LocusZoom will automatically compute LD between the reference SNP and all other SNPs within each region to be plotted. However, you may wish to provide your own file with LD information. This can be done with the &amp;lt;code&amp;gt;--ld&amp;lt;/code&amp;gt; option, which requires a file of the following format: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;75%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Column &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| snp1 &lt;br /&gt;
| Any SNP in your plotting region.&lt;br /&gt;
|-&lt;br /&gt;
| snp2 &lt;br /&gt;
| Should always be the reference SNP in the region.&lt;br /&gt;
|-&lt;br /&gt;
| dprime &lt;br /&gt;
| D&#039; between snp2 (reference SNP) and snp1.&lt;br /&gt;
|-&lt;br /&gt;
| rsquare &lt;br /&gt;
| r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; between snp2 (reference SNP) and snp1.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The dprime column can be all missing if it is not known. Rsquare must be present, and must be valid data. &lt;br /&gt;
&lt;br /&gt;
The file should be whitespace delimited, and the header (column names shown above) must exist.&lt;br /&gt;
&lt;br /&gt;
=== Supply VCF files for calculating LD ===&lt;br /&gt;
&lt;br /&gt;
You can give LocusZoom a VCF file directly to use for calculating LD: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
locuszoom --ld-vcf my_genotypes.vcf.gz ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This option takes the place of having to supply per-region pre-calculated LD (--ld) or having to specify --pop and --source for calculating LD from genotype files supplied by LZ. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FF6600&amp;quot;&amp;gt;&#039;&#039;&#039;Warning: &#039;&#039;&#039;&amp;lt;/span&amp;gt; The VCF file must also have a [http://samtools.sourceforge.net/tabix.shtml tabix] index located in the same directory. For the above example, the tabix index &amp;quot;my_genotypes.vcf.gz.tbi&amp;quot; must exist.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can also calculate D&#039; from phased VCF files: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
locuszoom --ld-vcf my_genotypes.vcf.gz --ld-measure dprime ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default measure is &amp;quot;rsquared&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In version 1.3, if you have VCF files separated out by chromosome, you can create a JSON file mapping chromosome name --&amp;gt; VCF file, and provide the JSON file to --ld-vcf. For example, the JSON file could look like: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;X&amp;quot;: &amp;quot;/path/to/X.vcf.gz&amp;quot;,&lt;br /&gt;
  &amp;quot;Y&amp;quot;: &amp;quot;/path/to/Y.vcf.gz&amp;quot;,&lt;br /&gt;
  &amp;quot;MT&amp;quot;: &amp;quot;/path/to/MT.vcf.gz&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And then pass it directly using &amp;lt;code&amp;gt;locuszoom --ld-vcf my_vcfs.json&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Optional Input ==&lt;br /&gt;
&lt;br /&gt;
=== Plotting LD with additional reference SNPs ===&lt;br /&gt;
&lt;br /&gt;
LocusZoom can now show LD with multiple SNPs in a region (for example, you might want to show LD with a number of SNPs from a conditional analysis.) &lt;br /&gt;
&lt;br /&gt;
You give LocusZoom the usual reference SNP (used for centering the plot and calculating the region) but an additional set of lead/reference SNPs as well. &lt;br /&gt;
&lt;br /&gt;
For all other SNPs not in the &amp;quot;lead SNP set&amp;quot; of { reference SNP, additional reference SNPs }, LZ will find which of the lead SNPs it is in highest LD with, and color it to match that lead SNP. The extent of LD with the lead SNP is shown by a gradient of color. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As an example: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
locuszoom --metal &amp;lt;DIAGRAM T2D results&amp;gt; --refsnp &amp;quot;rs231362&amp;quot; --add-refsnps &amp;quot;rs163184&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Will generate the following plot: &lt;br /&gt;
&lt;br /&gt;
[[File:New lz cond only.png|700px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following options are available for changing the style of these types of plots: &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;85%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Option (with default value)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| condLdColors=&amp;quot;gray60,#E41A1C,#377EB8,#4DAF4A,#984EA3,#FF7F00,#A65628,#F781BF&amp;quot;&lt;br /&gt;
| First color is missing LD color, the rest are used as needed for each additional lead SNP&lt;br /&gt;
|- &lt;br /&gt;
| drawMarkerNames = T&lt;br /&gt;
| Display marker names (or not) above lead SNPs&lt;br /&gt;
|-&lt;br /&gt;
| condLdLow=NULL&lt;br /&gt;
| Used to set all SNPs with LD in the lowest bin to the same color, for example condLdLow=&amp;quot;gray70&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| condRefsnpPch=23&lt;br /&gt;
| Symbol for each lead SNP, defaults to diamond&lt;br /&gt;
|-&lt;br /&gt;
| condPch=&#039;4,16,17,15,25,8,7,13,12,9,10&#039;&lt;br /&gt;
| Plotting symbols for groups of SNPs in LD with additional refsnps, make sure they don&#039;t overlap with condRefsnpPch above&lt;br /&gt;
|- &lt;br /&gt;
| ldCuts = &amp;quot;0,.2,.4,.6,.8,1&amp;quot;&lt;br /&gt;
| Bins for LD&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== GWAS catalog variants ===&lt;br /&gt;
&lt;br /&gt;
You can add known GWAS variants to your plots. For example: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
locuszoom ... --gwas-cat whole-cat_significant-only --build hg19&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:New lz gwas cat.png|900px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Currently the only catalog is the NHGRI GWAS catalog from [http://www.genome.gov/gwastudies/ genome.gov].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Available GWAS catalogs for build hg19:&lt;br /&gt;
&lt;br /&gt;
+----------------------------+----------------------------------------------------------------+&lt;br /&gt;
|           Option           |                          Description                           |&lt;br /&gt;
+----------------------------+----------------------------------------------------------------+&lt;br /&gt;
| whole-cat_significant-only | The entire GWAS catalog, filtered to SNPs with p-value &amp;lt; 5E-08 |&lt;br /&gt;
+----------------------------+----------------------------------------------------------------+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the R package &#039;&#039;&#039;gridExtra&#039;&#039;&#039; is installed, a summary of each GWAS catalog variant in your region is listed later in the PDF: &lt;br /&gt;
&lt;br /&gt;
[[File:New lz gwas summary.png|500px]]&lt;br /&gt;
&lt;br /&gt;
=== Fine-mapping credible sets ===&lt;br /&gt;
&lt;br /&gt;
LocusZoom can add an additional track to the plot showing results from a fine-mapping analysis. These are typically SNPs within the 95% credible set (see [http://www.nature.com/ng/journal/v44/n12/full/ng.2435.html this paper] for an example of a method generating such a set of SNPs.)&lt;br /&gt;
&lt;br /&gt;
To add this fine-mapping track, you supply (as a plotting option) the fine-mapping set of credible SNPs as a file: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
locuszoom ... fineMap=&amp;quot;my_finemapping_results.txt&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The fine-mapping results file should be a tab-delimited file with each fine-mapping SNP (for example, all those fine-mapping SNPs in the 95% credible set), a descriptive label (EUR/AMR/AFR/etc.), and a color: &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | snp&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | chr&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | pos&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | pp&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | group&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | color&lt;br /&gt;
|-&lt;br /&gt;
| rs1 || 18 || 55931115 || 0.88 || AMR || red&lt;br /&gt;
|-&lt;br /&gt;
| rs1 || 18 || 55920115 || 0.88 || AMR || red&lt;br /&gt;
|-&lt;br /&gt;
| rs1 || 18 || 55940115 || 0.88 || AMR || red&lt;br /&gt;
|-&lt;br /&gt;
| rs1 || 18 || 55930115 || 0.88 || EUR || blue&lt;br /&gt;
|-&lt;br /&gt;
| rs2 || 18 || 55940115 || 0.02 || EUR || blue&lt;br /&gt;
|-&lt;br /&gt;
| rs3 || 18 || 56000000 || 0.03 || AFR || green&lt;br /&gt;
|-&lt;br /&gt;
| rs4 || 18 || 56022000 || 0.03 || AFR || green&lt;br /&gt;
|-&lt;br /&gt;
| rs3 || 18 || 56100000 || 0.03 || ASN || purple&lt;br /&gt;
|-&lt;br /&gt;
| rs3 || 18 || 56150000 || 0.03 || ASN || purple&lt;br /&gt;
|-&lt;br /&gt;
| rs4 || 18 || 56160000 || 0.03 || ASN || purple&lt;br /&gt;
|-&lt;br /&gt;
| rs4 || 18 || 56180000 || 0.03 || ASN || purple&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
LocusZoom will extract from the file only those SNPs falling within the region to be plotted, so you can provide all of your fine-mapping results in a single file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The generated plot will have a track showing the fine-mapping SNPs: &lt;br /&gt;
&lt;br /&gt;
[[File:New lz finemap.png|900px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the R package &#039;&#039;&#039;gridExtra&#039;&#039;&#039; is installed, the PDF will also have a summary of each fine-mapping SNP: &lt;br /&gt;
&lt;br /&gt;
[[File:New lz finemap summary.png|400px]]&lt;br /&gt;
&lt;br /&gt;
=== Labeling multiple SNPs ===&lt;br /&gt;
&lt;br /&gt;
You can specify a file controlling the labels for either the reference SNP, or any other arbitrary SNP within the region. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:New lz denote markers.png|700px]]&lt;br /&gt;
&lt;br /&gt;
Use the --denote-markers-file &amp;lt;file&amp;gt; argument to do this: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
locuszoom ... --denote-markers-file &amp;lt;your file&amp;gt; &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The file looks like: &lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; align=&amp;quot;left&amp;quot; | snp&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; align=&amp;quot;left&amp;quot; | string&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; align=&amp;quot;left&amp;quot; | color&lt;br /&gt;
|-&lt;br /&gt;
| rs231362 || GWAS || blue&lt;br /&gt;
|-&lt;br /&gt;
| rs163184 || Conditional || purple&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It must be tab-delimited and the columns must have a header and be named as such.&lt;br /&gt;
&lt;br /&gt;
=== Plotting BED tracks ===&lt;br /&gt;
&lt;br /&gt;
You can supply locuszoom with a BED file, and the tracks within it will be added to the plot. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Bed_tracks.png]]&lt;br /&gt;
&lt;br /&gt;
Use the --bed-tracks option, for example: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
locuszoom ... --bed-tracks &amp;lt;your bed file&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The BED file should have at least 4 columns: the first 3 for chr/start/end, and the 4th column for the label of the track. It must be &#039;&#039;&#039;tab-delimited&#039;&#039;&#039;, not white-space delimited. &lt;br /&gt;
&lt;br /&gt;
Color can also be specified, but the BED file then needs to follow the full [http://genome.ucsc.edu/FAQ/FAQformat.html#format1 BED format].&lt;br /&gt;
&lt;br /&gt;
=== Specify gene table (refFlat, GENCODE, etc.) ===&lt;br /&gt;
&lt;br /&gt;
You can now specify a different gene information table to use. LocusZoom provides both refFlat and GENCODE. refFlat is the default. For example: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
locuszoom --gene-table gencode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output  ==&lt;br /&gt;
&lt;br /&gt;
LocusZoom will produce a directory for each plot that contains the plot itself, along with a number of temporary files containing information on your particular region. The plot will be a PDF, named with the chr#:start-stop that was plotted. &lt;br /&gt;
&lt;br /&gt;
If you only want the PDF itself, and don&#039;t want the other files, you can use the &amp;lt;code&amp;gt;--plotonly&amp;lt;/code&amp;gt; option. &lt;br /&gt;
&lt;br /&gt;
Each directory (or PDF, in the case of &amp;lt;code&amp;gt;--plotonly&amp;lt;/code&amp;gt;) will have the date included to avoid collisions with previous plots - this behavior can be disabled using &amp;lt;code&amp;gt;--no-date&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
You can further customize the directory/PDF names that are created by using the &amp;lt;code&amp;gt;--prefix &amp;amp;lt;name&amp;amp;gt;&amp;lt;/code&amp;gt; option. This will append a text string at the beginning of each directory/PDF that is created. &lt;br /&gt;
&lt;br /&gt;
== LocusZoom options  ==&lt;br /&gt;
&lt;br /&gt;
LocusZoom has a number of command line options, described in the table below. &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;85%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Option &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Important settings&lt;br /&gt;
|-&lt;br /&gt;
| --metal &lt;br /&gt;
| This is the data file to provide. Files generated by the meta-analysis program METAL are already formatted appropriately. If your data is not from METAL, it is very simple to format it (see [[#Input|Input]].)&lt;br /&gt;
|-&lt;br /&gt;
| --delim &lt;br /&gt;
| Delimiter for the data file. This defaults to tab, but can be anything. For ease of specification, you can use the following shortcuts: --delim tab, --delim space, --delim comma.&lt;br /&gt;
|-&lt;br /&gt;
| --pvalcol &lt;br /&gt;
| Name of p-value column in the --metal file.&lt;br /&gt;
|-&lt;br /&gt;
| --markercol &lt;br /&gt;
| Name of the SNP column in the --metal file.&lt;br /&gt;
|-&lt;br /&gt;
| --epacts&lt;br /&gt;
| Provide a results file generated by [[EPACTS]] instead of a --metal file. &lt;br /&gt;
|-&lt;br /&gt;
| --refsnp &lt;br /&gt;
| Reference SNP to be used in the plot.&lt;br /&gt;
|-&lt;br /&gt;
| --refgene &lt;br /&gt;
| Specify a gene instead of a reference SNP. This will plot a region near a gene, and automatically find the SNP with the most significant p-value to use as the reference SNP.&lt;br /&gt;
|-&lt;br /&gt;
| --flank &lt;br /&gt;
| Specify the region near a reference SNP or gene as a &amp;quot;flank&amp;quot;, instead of having to specify chr/start/stop explicitly. This can be specified in bases, kilobases, or megabases. Examples: 500kb, 1MB, 100141&lt;br /&gt;
|-&lt;br /&gt;
| --chr, --start, --end &lt;br /&gt;
| Specify chromosome/start/stop as the exact interval to plot. If no --refsnp is specified, the SNP with the most significant p-value in the region will be used as the reference SNP.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Optional settings&lt;br /&gt;
|-&lt;br /&gt;
| --build &lt;br /&gt;
| Human genome build. This defaults to &amp;quot;hg18&amp;quot;. You can supply your own build-specific data by modifying the conf file, and creating your own SQLite database (see *LINK HERE*).&lt;br /&gt;
|-&lt;br /&gt;
| --ld &lt;br /&gt;
| Provide a file specifying LD between your reference SNP and all SNPs within the region you wish to plot. You only need to supply this file if you have created LD specifically for your purposes (perhaps a different population or genome build.) Otherwise, LD is computed automatically for you.&lt;br /&gt;
|-&lt;br /&gt;
| --ld-vcf&lt;br /&gt;
| Use a VCF file to calculate LD between SNPs. This can be a VCF file with an entire genome of SNPs and does not have to be subsetted to your region. The VCF file must also have a tabix index file. For calculating D&#039;, the VCF must be phased. &lt;br /&gt;
|-&lt;br /&gt;
| --source &lt;br /&gt;
| Source to use for genotypes when using LD. See [[#Specifying_LD_source.2Fpopulation.2Fbuild|Specifying LD source/population/build]] for more info.&lt;br /&gt;
|-&lt;br /&gt;
| --pop &lt;br /&gt;
| Population to use when computing LD. See [[#Specifying_LD_source.2Fpopulation.2Fbuild|Specifying LD source/population/build]] for more info. &lt;br /&gt;
|-&lt;br /&gt;
| --snpset &lt;br /&gt;
| Rug of SNPs to create at the top of the plot. Defaults to the Illumina 1M chip currently. To disable, use --snpset NULL. &lt;br /&gt;
|-&lt;br /&gt;
| --plotonly &lt;br /&gt;
| Create only a PDF of the plot, and remove all temporary files/directories created during plotting.&lt;br /&gt;
|-&lt;br /&gt;
| --no-transform &lt;br /&gt;
| LocusZoom supports arbitrary precision p-values. However, if your p-values have already been transformed to the -log10 scale, you can use this option to stop LocusZoom from automatically transforming them.&lt;br /&gt;
|-&lt;br /&gt;
| --prefix &lt;br /&gt;
| Places a text string at the beginning of each plot or directory created. This is mainly used to denote different batches of plots - for example, you could use --prefix using_ceu to denote these plots are computed using CEU LD information.&lt;br /&gt;
|-&lt;br /&gt;
| --db &lt;br /&gt;
| SQLite database file to use. This is set in the conf file by default, but can be changed on the command line if desired.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Plotting options ==&lt;br /&gt;
&lt;br /&gt;
In addition to the options above, there are options that control the plotting engine inside Locuszoom.  These are used with a different syntax: arg=value (no spaces allowed).&lt;br /&gt;
&lt;br /&gt;
New/fixed options in 1.3: &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;85%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Option (with default value)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| colorCol=NULL&lt;br /&gt;
| Specify the name of a column in association results file denoting the color each marker should be. This disables coloring by LD. For the column values, color names should be used, for example &amp;quot;red&amp;quot; &amp;quot;olivedrab&amp;quot; etc. &lt;br /&gt;
|-&lt;br /&gt;
| signifLine=NULL&lt;br /&gt;
| Specify (in -log10 p-value scale) where to place a horizontal significance line. Can have multiple lines, e.g. signifLine=&amp;quot;7.3,9&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| signifLineColor=NULL&lt;br /&gt;
| Specify color of each significance line, e.g. signifLineColor=&amp;quot;red,blue&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| signifLineWidth=NULL&lt;br /&gt;
| Specify the line width for each significance line, e.g. signifLineWidth=&amp;quot;2,3&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| showIso=F&lt;br /&gt;
| Show genes as isoforms, rather than collapsed into one canonical transcript. To enable use showIso=T&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other options: &lt;br /&gt;
{| width=&amp;quot;85%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Option (with default value)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| theme=NULL&lt;br /&gt;
| Select a theme.  A theme is a collection of other settings.  Options include theme=publication and theme=black.&lt;br /&gt;
|-&lt;br /&gt;
| ymax=10&lt;br /&gt;
| the display range for log10(p-value) will be at least ymax (extended as necessary to avoid clipping)&lt;br /&gt;
|-&lt;br /&gt;
| axisSize=1&lt;br /&gt;
| scaling factor for axes&lt;br /&gt;
|-&lt;br /&gt;
| axisTextSize=1&lt;br /&gt;
| sclaing factor for axis labels&lt;br /&gt;
|-&lt;br /&gt;
| axisTextColor=gray30&lt;br /&gt;
| color of axis labels&lt;br /&gt;
|-&lt;br /&gt;
| refsnpTextColor=black&lt;br /&gt;
| color for reference SNP label (use &#039;transparent&#039; to hide this label)&lt;br /&gt;
|-&lt;br /&gt;
| refsnpTextSize=1&lt;br /&gt;
| scaling factor for reference SNP text size&lt;br /&gt;
|-&lt;br /&gt;
| refsnpTextAlpha=1&lt;br /&gt;
| transparency level for reference SNP label (1=opaque,0=transparent)&lt;br /&gt;
|-&lt;br /&gt;
| title = &amp;quot;&amp;quot;&lt;br /&gt;
| title for plot&lt;br /&gt;
|-&lt;br /&gt;
| titleColor=black&lt;br /&gt;
| color for title &lt;br /&gt;
|-&lt;br /&gt;
| width=10&lt;br /&gt;
| width of pdf (inches)&lt;br /&gt;
|-&lt;br /&gt;
| height=7&lt;br /&gt;
| height of pdf (inches)&lt;br /&gt;
|-&lt;br /&gt;
| leftMarginLines=5&lt;br /&gt;
| margin (in lines) on left&lt;br /&gt;
|-&lt;br /&gt;
| rightMarginLines=5&lt;br /&gt;
| margin (in lines) on right&lt;br /&gt;
|-&lt;br /&gt;
| unit=1000000&lt;br /&gt;
| bp per unit displayed in plot&lt;br /&gt;
|-&lt;br /&gt;
| showAnnot=TRUE&lt;br /&gt;
| show annotation for each snp?&lt;br /&gt;
|-&lt;br /&gt;
| showGenes=TRUE&lt;br /&gt;
| show genes?&lt;br /&gt;
|-&lt;br /&gt;
| annotCol=&#039;annotation&#039;&lt;br /&gt;
| column to use for custom annotation, if it exists&lt;br /&gt;
|-&lt;br /&gt;
| annotPch=&#039;24,24,25,22,22,8,7,21&#039;  &lt;br /&gt;
| plot symbols for annotation&lt;br /&gt;
|-&lt;br /&gt;
| annotOrder=NULL&lt;br /&gt;
| ordering of custom annotation classes (comma-separated list annotation strings in order, alphabetical by default)&lt;br /&gt;
|-&lt;br /&gt;
| showRefsnpAnnot=TRUE&lt;br /&gt;
| show annotation for reference snp too?&lt;br /&gt;
|-&lt;br /&gt;
| ld=NULL&lt;br /&gt;
| file for LD information&lt;br /&gt;
|-&lt;br /&gt;
| ldCuts=&amp;quot;0,.2,.4,.6,.8,1&amp;quot;&lt;br /&gt;
| cut points for LD coloring&lt;br /&gt;
|-&lt;br /&gt;
| ldColors=&amp;quot;gray50,navy, lightskyblue,green, orange,red,purple3&amp;quot;&lt;br /&gt;
| colors for LD&lt;br /&gt;
|-&lt;br /&gt;
| ldCol=&#039;rsquare&#039;&lt;br /&gt;
| name for LD column&lt;br /&gt;
|-&lt;br /&gt;
| LDTitle=NULL&lt;br /&gt;
| title for LD legend&lt;br /&gt;
|-&lt;br /&gt;
| smallDot=.4&lt;br /&gt;
| smallest p-value cex &lt;br /&gt;
|-&lt;br /&gt;
| largeDot=.8&lt;br /&gt;
| largest p-value cex &lt;br /&gt;
|-&lt;br /&gt;
| refDot=NULL&lt;br /&gt;
| largest p-value cex &lt;br /&gt;
|-&lt;br /&gt;
| rfrows=4&lt;br /&gt;
| max number of rows used for displaying genes &lt;br /&gt;
|-&lt;br /&gt;
| showPartialGenes=TRUE&lt;br /&gt;
| should genes that don&#039;t fit completely be displayed?&lt;br /&gt;
|-&lt;br /&gt;
| geneFontSize=.8&lt;br /&gt;
| size for gene names&lt;br /&gt;
|-&lt;br /&gt;
| geneColor=&amp;quot;navy&amp;quot;&lt;br /&gt;
| color for genes&lt;br /&gt;
|-&lt;br /&gt;
| snpsetFile=NULL&lt;br /&gt;
| use this file for SNPset rug data &lt;br /&gt;
|-&lt;br /&gt;
| rugColor=gray30&lt;br /&gt;
| color for snpset rugs&lt;br /&gt;
|-&lt;br /&gt;
| rugAlpha=1&lt;br /&gt;
| alpha for snpset rugs&lt;br /&gt;
|-&lt;br /&gt;
| metalRug=NULL&lt;br /&gt;
| if not null, use as label for rug of metal positions&lt;br /&gt;
|-&lt;br /&gt;
| showRecomb=TRUE&lt;br /&gt;
| show recombination rate?&lt;br /&gt;
|-&lt;br /&gt;
| recombColor=blue&lt;br /&gt;
| color for recombination rate on plot&lt;br /&gt;
|-&lt;br /&gt;
| recombAxisColor=NULL&lt;br /&gt;
| color for recombination rate axis labeing (default matches recombColor)&lt;br /&gt;
|-&lt;br /&gt;
| recombAxisAlpha=NULL&lt;br /&gt;
| color for recombination rate axis labeing&lt;br /&gt;
|-&lt;br /&gt;
| recombOver=FALSE&lt;br /&gt;
| overlay recombination rate? (else underlay it)&lt;br /&gt;
|-&lt;br /&gt;
| recombFill=FALSE&lt;br /&gt;
| fill recombination rate? (else line only)&lt;br /&gt;
|-&lt;br /&gt;
| recombFillAlpha=0.2&lt;br /&gt;
| recomb fill alpha&lt;br /&gt;
|-&lt;br /&gt;
| recombLineAlpha=0.8&lt;br /&gt;
| recomb line/text alpha&lt;br /&gt;
|-&lt;br /&gt;
| frameColor=gray30&lt;br /&gt;
| frame color for plots&lt;br /&gt;
|-&lt;br /&gt;
| frameAlpha=1&lt;br /&gt;
| frame alpha for plots&lt;br /&gt;
|-&lt;br /&gt;
| legendSize=.8&lt;br /&gt;
| scaling factor of legend&lt;br /&gt;
|-&lt;br /&gt;
| legendAlpha=1&lt;br /&gt;
| transparency of legend background&lt;br /&gt;
|-&lt;br /&gt;
| legend=&#039;auto&#039;&lt;br /&gt;
| legend? (auto, left, right, or none)&lt;br /&gt;
|-&lt;br /&gt;
| hiStart=0&lt;br /&gt;
| start of highlighted region&lt;br /&gt;
|-&lt;br /&gt;
| hiEnd=0&lt;br /&gt;
| end of highlighted region&lt;br /&gt;
|-&lt;br /&gt;
| hiColor=blue&lt;br /&gt;
| color used for highlighting&lt;br /&gt;
|-&lt;br /&gt;
| hiAlpha=0.1&lt;br /&gt;
| transparency level for highlighting&lt;br /&gt;
|-&lt;br /&gt;
| prelude=NULL&lt;br /&gt;
| R code to execute after data is read but before plot is made (allows data modification)&lt;br /&gt;
|-&lt;br /&gt;
| postlude=NULL,                        &lt;br /&gt;
| R code to execute after plot is made &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples  ==&lt;br /&gt;
&lt;br /&gt;
=== A quick peek at a particular SNP  ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;--metal your_data --refsnp rs1002227&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
=== A quick peek at a particular gene  ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;--metal your_data --refgene CETP&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
=== Plot 500kb on either side of a SNP  ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;--metal your_data --refsnp rs7983146 --flank 500kb&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
=== Use 1000 genomes, CEU for LD instead of the default (HapMap r22 CEU)  ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;--metal your_data --refsnp rs11899863 --source 1000G&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Use HapMap YRI for LD  ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;--metal your_data --refsnp rs11899863 --pop YRI --build hg18 --source hapmap&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Specify a specific region and reference SNP to plot  ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;--metal your_data --refsnp rs1552224 --chr 11 --start 71810746 --end 72710746&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== An example using plotting options ===&lt;br /&gt;
&lt;br /&gt;
Note in this example the plotting options are placed at the &#039;&#039;&#039;end&#039;&#039;&#039; of the command-line, and are of the format &#039;&#039;&#039;arg&#039;&#039;&#039;=&#039;&#039;&#039;value&#039;&#039;&#039;. The value should be double-quoted if spaces are included in the value (see title= below.) &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;--metal your_data --refsnp rs7903146 title=&amp;quot;My region&amp;quot; geneFontSize=1.1 recombColor=&amp;quot;gray&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Advanced configuration  ==&lt;br /&gt;
&lt;br /&gt;
=== Creating a custom SQLite database  ===&lt;br /&gt;
&lt;br /&gt;
As a starting point, we provide SQLite databases based on UCSC human genome &#039;&#039;&#039;build hg18 and hg19&#039;&#039;&#039;, which includes the following tables: &lt;br /&gt;
&lt;br /&gt;
*snp_pos: SNP positions &lt;br /&gt;
*refFlat: gene information (exons, transcription start/stops, etc.) &lt;br /&gt;
*recomb_rate: recombination rates from hapmap phase 2 &lt;br /&gt;
*snp_set: maps each SNP to a &amp;quot;set&amp;quot; - for example, all SNPs on the Illumina 1M chip &lt;br /&gt;
*refsnp_trans: a table that maps SNPs from previous builds to the current build&lt;br /&gt;
&lt;br /&gt;
To create your own database, we provide a script &amp;lt;code&amp;gt;bin/dbmeister.py&amp;lt;/code&amp;gt; that can insert these tables for you. We recommend creating your own database file, rather than inserting tables into the default LocusZoom database. This script is capable of using python&#039;s built-in sqlite support, but for faster insertion of tables (about 2x faster), we recommend installing sqlite3 from [http://www.sqlite.org/ www.sqlite.org]. &lt;br /&gt;
&lt;br /&gt;
==== Inserting snp_pos  ====&lt;br /&gt;
&lt;br /&gt;
First, create a file that looks like the following: &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;75%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot; class=&amp;quot;sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | snp &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | chr &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | pos&lt;br /&gt;
|-&lt;br /&gt;
| rs38343 &lt;br /&gt;
| 1 &lt;br /&gt;
| 93919141&lt;br /&gt;
|-&lt;br /&gt;
| rs918141 &lt;br /&gt;
| 7 &lt;br /&gt;
| 763263&lt;br /&gt;
|-&lt;br /&gt;
| chr4:9181 &lt;br /&gt;
| 4 &lt;br /&gt;
| 9181&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The file should be: tab-delimited, must have a header, and the columns should be exactly in that order. &lt;br /&gt;
&lt;br /&gt;
Now, you can create your own database, and insert this file by using: &lt;br /&gt;
&amp;lt;pre&amp;gt; dbmeister.py --db my_database.db --snp_pos my_snp_pos_file &amp;lt;/pre&amp;gt; &lt;br /&gt;
This command creates a database called &amp;quot;my_database.db&amp;quot; and inserts the SNP position table into it. If &amp;quot;my_database.db&amp;quot; had existed already, it would drop the snp_pos table in it, and insert yours in its place. &lt;br /&gt;
&lt;br /&gt;
One special note about adding SNP position tables: a refsnp_trans table will automatically be created for you, where each SNP maps to itself. If you have a list of SNPs from previous builds that you would like to map to a SNP in the current build, you can then insert your own refsnp_trans table (see below for more information on this table.) &lt;br /&gt;
&lt;br /&gt;
==== Inserting refsnp_trans  ====&lt;br /&gt;
&lt;br /&gt;
The refsnp_trans table looks like the following: &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;75%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot; class=&amp;quot;sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | rs_orig &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | rs_current&lt;br /&gt;
|-&lt;br /&gt;
| rs840 &lt;br /&gt;
| rs715&lt;br /&gt;
|-&lt;br /&gt;
| rs1086 &lt;br /&gt;
| rs940&lt;br /&gt;
|-&lt;br /&gt;
| rs1234 &lt;br /&gt;
| rs1067&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first column contains SNP names from older genome builds, and the rs_current column contains SNP names from the current genome build (i.e., the build your database file is anchored to.) &lt;br /&gt;
&lt;br /&gt;
Inserting this table into your database is simply then: &lt;br /&gt;
&amp;lt;pre&amp;gt; dbmeister.py --db my_database.db --trans my_snp_translations_file &amp;lt;/pre&amp;gt; &lt;br /&gt;
You will want to execute this command AFTER inserting the snp_pos table, since that command drops the existing translation table. &lt;br /&gt;
&lt;br /&gt;
==== Inserting refFlat  ====&lt;br /&gt;
&lt;br /&gt;
The refFlat table mirrors what is currently supplied by the refFlat table in the UCSC database. The file should look like: &lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | geneName &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | name &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | chrom &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | strand &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | txStart &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | txEnd &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | cdsStart &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | cdsEnd &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | exonCount &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | exonStarts &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | exonEnds&lt;br /&gt;
|-&lt;br /&gt;
| EFCAB1 &lt;br /&gt;
| NM_024593 &lt;br /&gt;
| chr8 &lt;br /&gt;
| - &lt;br /&gt;
| 49798505 &lt;br /&gt;
| 49810423 &lt;br /&gt;
| 49799853 &lt;br /&gt;
| 49810263 &lt;br /&gt;
| 6 &lt;br /&gt;
| 49798505, &lt;br /&gt;
| 49799913,&lt;br /&gt;
|-&lt;br /&gt;
| HECTD3 &lt;br /&gt;
| NM_024602 &lt;br /&gt;
| chr1 &lt;br /&gt;
| - &lt;br /&gt;
| 45240806 &lt;br /&gt;
| 45249614 &lt;br /&gt;
| 45241750 &lt;br /&gt;
| 45249516 &lt;br /&gt;
| 21 &lt;br /&gt;
| 45240806,45241927, &lt;br /&gt;
| 45241835,45241999,&lt;br /&gt;
|-&lt;br /&gt;
| PTPN20B &lt;br /&gt;
| NM_001042361 &lt;br /&gt;
| chr10 &lt;br /&gt;
| - &lt;br /&gt;
| 48357047 &lt;br /&gt;
| 48447587 &lt;br /&gt;
| 48358657 &lt;br /&gt;
| 48447532 &lt;br /&gt;
| 8 &lt;br /&gt;
| 48357047,48359393,48391320, &lt;br /&gt;
| 48358692,48359456,48391411,&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can insert this table into the database using: &lt;br /&gt;
&amp;lt;pre&amp;gt; dbmeister.py --db my_database.db --refflat my_refflat_file &amp;lt;/pre&amp;gt; &lt;br /&gt;
==== Inserting recomb_rate  ====&lt;br /&gt;
&lt;br /&gt;
The recomb_rate table mirrors what is available from [ftp://ftp.hapmap.org/hapmap/recombination/2008-03_rel22_B36/rates/ HapMap]. The format is: &lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | chr &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | pos &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | recomb &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | cm_pos&lt;br /&gt;
|-&lt;br /&gt;
| 1 &lt;br /&gt;
| 72434 &lt;br /&gt;
| 0.0015 &lt;br /&gt;
| 0&lt;br /&gt;
|-&lt;br /&gt;
| 1 &lt;br /&gt;
| 78032 &lt;br /&gt;
| 0.0015 &lt;br /&gt;
| 8.397e-06&lt;br /&gt;
|-&lt;br /&gt;
| 1 &lt;br /&gt;
| 554461 &lt;br /&gt;
| 0.0015 &lt;br /&gt;
| 0.00072304&lt;br /&gt;
|-&lt;br /&gt;
| 1 &lt;br /&gt;
| 554484 &lt;br /&gt;
| 0.0015 &lt;br /&gt;
| 0.000723075&lt;br /&gt;
|-&lt;br /&gt;
| 1 &lt;br /&gt;
| 555296 &lt;br /&gt;
| 0.0015 &lt;br /&gt;
| 0.000724293&lt;br /&gt;
|-&lt;br /&gt;
| 1 &lt;br /&gt;
| 558185 &lt;br /&gt;
| 0.0015 &lt;br /&gt;
| 0.000728627&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The table can be inserted using: &lt;br /&gt;
&amp;lt;pre&amp;gt; dbmeister.py --db my_database.db --recomb_rate my_recomb_rate_file &amp;lt;/pre&amp;gt; &lt;br /&gt;
==== Inserting snp_set  ====&lt;br /&gt;
&lt;br /&gt;
The snp_set table simply carries a mapping of SNPs to a particular set they may belong to. The table looks like: &lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | snp &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | snp_set&lt;br /&gt;
|-&lt;br /&gt;
| rs1000 &lt;br /&gt;
| Illu1M&lt;br /&gt;
|-&lt;br /&gt;
| rs1000 &lt;br /&gt;
| Illu1M&lt;br /&gt;
|-&lt;br /&gt;
| rs1000 &lt;br /&gt;
| Illu1M&lt;br /&gt;
|-&lt;br /&gt;
| rs1000000 &lt;br /&gt;
| Illu1M&lt;br /&gt;
|-&lt;br /&gt;
| rs10000000 &lt;br /&gt;
| Illu1M&lt;br /&gt;
|-&lt;br /&gt;
| rs10000009 &lt;br /&gt;
| Illu1M&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first column is a SNP, and the second is the name of the set it belongs to. If a SNP belongs to multiple sets, you can duplicate that SNP multiple times, one for each set. &lt;br /&gt;
&lt;br /&gt;
Inserting the table into your database can be done using: &lt;br /&gt;
&amp;lt;pre&amp;gt; dbmeister.py --db my_database.db --snp_set my_snpset_file &amp;lt;/pre&amp;gt; &lt;br /&gt;
==== Making LocusZoom aware of your new database  ====&lt;br /&gt;
&lt;br /&gt;
Now that you&#039;ve created your own database file, you need to make LocusZoom aware that it exists. There are two ways to do this: &lt;br /&gt;
&lt;br /&gt;
#Edit conf/m2zfast.conf, and change the &amp;lt;code&amp;gt;SQLITE_DB&amp;lt;/code&amp;gt; variable &lt;br /&gt;
#Supply the &amp;lt;code&amp;gt;--db&amp;lt;/code&amp;gt; command line option when invoking &amp;lt;code&amp;gt;bin/locuszoom&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Editing the m2zfast.conf file entails changing the following block of code: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;SQLITE_DB = {&lt;br /&gt;
  &#039;hg18&#039;&amp;amp;nbsp;: &amp;quot;data/database/locuszoom_hg18.db&amp;quot;&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
Here, we&#039;ve mapped build &amp;quot;hg18&amp;quot; to the default database file that comes with LocusZoom. You can mimic this format and insert your own, for example: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;SQLITE_DB = {&lt;br /&gt;
  &#039;hg18&#039;&amp;amp;nbsp;: &amp;quot;data/database/locuszoom_hg18.db&amp;quot;,&lt;br /&gt;
  &#039;hg19&#039;&amp;amp;nbsp;: &amp;quot;data/database/my_database.db&amp;quot;&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
The location of your database should be either an absolute path to your file, or a path relative to the locuszoom/ root (like those seen above.) &lt;br /&gt;
&lt;br /&gt;
If you wish for your database to become the default, change the &amp;lt;code&amp;gt;LATEST_BUILD&amp;lt;/code&amp;gt; variable in the m2zfast.conf file to whatever you have chosen above (in our example, our new database became mapped to &#039;hg19&#039;.)&lt;br /&gt;
&lt;br /&gt;
=== Updating the existing locuszoom database(s) ===&lt;br /&gt;
&lt;br /&gt;
LocusZoom now comes with a database updating script &amp;lt;code&amp;gt;bin/lzupdate.py&amp;lt;/code&amp;gt;. This script can download the necessary data from UCSC, NCBI, NGHRI, and GENCODE to create an up-to-date database file. The script performs the following actions: &lt;br /&gt;
&lt;br /&gt;
# Download latest SNP table from UCSC for the given build&lt;br /&gt;
# Reformat SNP table for insertion into sqlite database&lt;br /&gt;
# Download latest refFlat from UCSC for the given build&lt;br /&gt;
# Reformat refFlat for insertion into sqlite database&lt;br /&gt;
# (optional) Download GENCODE annotation file from GENCODE FTP site&lt;br /&gt;
# Download RsMergeArch from NCBI&lt;br /&gt;
# Write formatted translation table for old rsIDs to latest (from RsMergeArch)&lt;br /&gt;
# Create a SNP set file (for indicating rug of markers at top of plot for different genotyping arrays)&lt;br /&gt;
# Download the latest NHGRI GWAS catalog&lt;br /&gt;
# Format catalog for use with locuszoom&lt;br /&gt;
# Call &amp;lt;code&amp;gt;bin/dbmeister.py&amp;lt;/code&amp;gt; to insert everything above (except the GWAS catalog file, which remains a separate file)&lt;br /&gt;
&lt;br /&gt;
An example of running the script: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/lzupdate.py --build hg19 --gencode 19 --gwas-cat&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will NOT overwrite the existing locuszoom database, since you should likely back it up first (under data/database/*.db). After running the script you should have both a new locuszoom.db file, and a gwas catalog file. You can then either overwrite the locuszoom database after backing it up, or you could place them in a different location and modify the conf file accordingly. The script will provide instructions after running for how to do this. &lt;br /&gt;
&lt;br /&gt;
=== Changing m2zfast.conf settings  ===&lt;br /&gt;
&lt;br /&gt;
The m2zfast.conf configuration file contains a number of settings that are typically static, but could require user configuration. The table below lists each variable, and its purpose. &lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Variable &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| DEFAULT_BUILD &lt;br /&gt;
| Default build to use for finding SNP&amp;amp;nbsp;positions, and calculating LD. This is used to index SQLITE_DB, as well as LD_DB.&lt;br /&gt;
|-&lt;br /&gt;
| DEFAULT_POP&lt;br /&gt;
| Default population to use for computing LD. &lt;br /&gt;
|-&lt;br /&gt;
| DEFAULT_SOURCE&lt;br /&gt;
| Default source for computing LD. &lt;br /&gt;
|-&lt;br /&gt;
| NEWFUGUE_PATH &lt;br /&gt;
| Path to the new_fugue binary. Defaults to &amp;quot;new_fugue&amp;quot;, which simply means it is searched for on your path. If new_fugue is not on your path, you will need to specify the full path here.&lt;br /&gt;
|-&lt;br /&gt;
| PLINK_PATH&lt;br /&gt;
| Path to the PLINK binary. Defaults to &amp;quot;plink&amp;quot;, which searches for PLINK&amp;amp;nbsp;on your path. If it is not on your path, specify the full path here. &lt;br /&gt;
|-&lt;br /&gt;
| RSCRIPT_PATH&lt;br /&gt;
| Path to the Rscript binary. Defaults to &amp;quot;Rscript&amp;quot;, which searches for Rscript&amp;amp;nbsp;on your path. If it is not on your path, specify the full path here. &lt;br /&gt;
|-&lt;br /&gt;
| SQLITE_DB &lt;br /&gt;
| See [[LocusZoom Standalone#Making_LocusZoom_aware_of_your_new_database|Making LocusZoom aware of your database]].&lt;br /&gt;
|-&lt;br /&gt;
| LD_DB &lt;br /&gt;
| Contains a &amp;quot;tree&amp;quot; which maps a tuple of (genotype source, genotype population, genome build) to genotype files.&lt;br /&gt;
|-&lt;br /&gt;
| GWAS_CATS&lt;br /&gt;
| Contains a &amp;quot;tree&amp;quot; which maps genome build and the name of a GWAS catalog to the actual file containing the GWAS hits. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== LD caching  ===&lt;br /&gt;
&lt;br /&gt;
LocusZoom attempts to remember LD calculations that were made on previous runs of the program to avoid having to re-calculate the same regional LD for subsequent runs. The process works as follows: &lt;br /&gt;
&lt;br /&gt;
*For a given reference SNP and chr/start/stop: &lt;br /&gt;
**If LD has not been previously computed, use new_fugue to compute LD with the reference SNP and all other SNPs in the region, and store this result to the LD cache &lt;br /&gt;
**Else, retrieve the previously stored LD results&lt;br /&gt;
&lt;br /&gt;
The cache intelligently stores LD from separate sources (hapmap, 1000G), populations, builds, and even different versions of genotype files separately. &lt;br /&gt;
&lt;br /&gt;
Upon running LocusZoom, a file called &amp;quot;ld_cache.db&amp;quot; will automatically be created in the current directory, and LD computations will be stored there. If you wish to change the location of the LD cache, use &amp;lt;code&amp;gt;--cache &amp;amp;lt;file&amp;amp;gt;&amp;lt;/code&amp;gt;. If you wish to disable LD caching, you can use &amp;lt;code&amp;gt;--cache None&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Python note:&#039;&#039; The ld_cache.db is actually a shelve, and you can explore its contents using: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;import shelve&lt;br /&gt;
d = shelve.open(&amp;quot;ld_cache.db&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
== License  ==&lt;br /&gt;
&lt;br /&gt;
Copyright 2010 Ryan Welch, Randall Pruim&lt;br /&gt;
&lt;br /&gt;
This program is free software: you can redistribute it and/or modify&lt;br /&gt;
it under the terms of the GNU General Public License as published by&lt;br /&gt;
the Free Software Foundation, either version 3 of the License, or&lt;br /&gt;
(at your option) any later version.&lt;br /&gt;
&lt;br /&gt;
This program is distributed in the hope that it will be useful,&lt;br /&gt;
but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;br /&gt;
GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=LocusZoom&amp;diff=15154</id>
		<title>LocusZoom</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=LocusZoom&amp;diff=15154"/>
		<updated>2020-10-28T17:29:06Z</updated>

		<summary type="html">&lt;p&gt;Abought: Make deprecation warning more visible.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:LocusZoomSmall.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;LocusZoom&#039;&#039;&#039; is designed to facilitate viewing of local association results together with useful information about a locus, such as the location and orientation of the genes it includes, linkage disequilibrium coefficients and local estimates of recombination rates. It was developed by popular demand, as a result of many questions we have had about &amp;quot;How did you make the figures in your talk?&amp;quot; or &amp;quot;How did you make the figures for your GWAS paper?&amp;quot; (And for better or for worse, we have quite a few GWAS papers!!).&lt;br /&gt;
&lt;br /&gt;
LocusZoom can be used in four ways:&lt;br /&gt;
&lt;br /&gt;
; 1. Plot Summaries of Your Genomewide Scan Interactively&lt;br /&gt;
: You can upload summary results of your own genomewide scan or genomewide meta-analysis and request plots of regions of interest using a web-based form.&lt;br /&gt;
&lt;br /&gt;
; 2. Generate Many Plots in Batch Mode&lt;br /&gt;
: You can upload summary results for your genomewide scan or genomewide meta-analysis and request several plots in one go by uploading a batch file. You will receive results via e-mail. A snail-mail option is not available.&lt;br /&gt;
&lt;br /&gt;
; 3. Plot Summaries of Publicly Available Datasets&lt;br /&gt;
: Currently, this includes the results of [http://www.sph.umich.edu/csg/abecasis/public/lipids2008/ our genome-wide scan] for variants associated with HDL-cholesterol, LDL-cholesterol and triglyceride levels in ~20,000 individuals.&lt;br /&gt;
&lt;br /&gt;
; 4. Download LocusZoom and run on your local unix machine&lt;br /&gt;
: [http://genome.sph.umich.edu/wiki/LocusZoom_Standalone Download LocusZoom] and [http://genome.sph.umich.edu/wiki/LocusZoom_Standalone#Sources_of_SQLite_database_tables associated databases]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Upload your own meta-analysis file and generate single plots using a web-based form  ==&lt;br /&gt;
&lt;br /&gt;
=== Uploading Your Association Study Results ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;The instructions below refer to a &amp;quot;legacy&amp;quot; service that is not actively maintained. For modern datasets, consider using our new [https://my.locuszoom.org my.locuszoom.org] service for the latest features, including manhattan plots and support for build GRCh38.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note: You CAN plot SNPs without rsid using chr6:20122013 format.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Association results can be uploaded to our web server using the [http://locuszoom.org/ plot your data webpage]. Result files are limited to 20Mb in size, which allows for a [[gzip|gzipped]] text table including key columns (marker name, p-value and sample size) for up to ~3 million SNPs. In our tests, a typical GWAS results file is ~17 Mb in size after imputation of HapMap SNPs. Once a file is uploaded, LocusZoom will remember the file for the duration of your web session allowing you to generate multiple plots. If you have a slow connection or would like to save time, you can upload results for a region or chromosome of interest only. Your results are entirely confidential and won&#039;t be viewed by us or anyone else (except those with whom you share them!)&lt;br /&gt;
&lt;br /&gt;
To specify the region to be plotted, you will have to specify the name of a key marker in the region (typically, as an rs-number, but can be in chr:pos format), name a gene of interest or provide appropriate genome coordinates. When displaying linkage disequilibrium, plotting will be very fast for small windows when HapMap CEU linkage disequilibrium is requested (because pairwise coefficients have been precomputed) and will be a bit slower for larger windows (because linkage disequilibrium coefficients must be computed on the fly).&lt;br /&gt;
&lt;br /&gt;
If you include a sample size column in the result file, it will be used to control the size of each plotted marker.&lt;br /&gt;
&lt;br /&gt;
=== Custom Annotation ===&lt;br /&gt;
&lt;br /&gt;
You may choose to have SNPs displayed using different plotting symbols to distinguish them from each other.  To implement this, in the section &amp;quot;Custom Annotation&amp;quot; in the box &amp;quot;Column Name&amp;quot;, you need to provide the name of a column in your meta-analysis file.  This column will list a category for each SNP of your own choosing (i.e. &amp;quot;nonsynonymous&amp;quot;, &amp;quot;splice&amp;quot;,&amp;quot;intronic&amp;quot;,etc.) or (&amp;quot;Genotyped&amp;quot;,&amp;quot;Imputed&amp;quot;), however, the category names may not include any spaces.  To select the order of the categories to display in the legend and to match the order of pre-selected R plotting symbols (set as pch = 21, 22, 23, 24, 25, 4, 7, 8, 10, 11, 12, 13, 14, 3), you may provide the category names in the specified order in &amp;quot;Category Order&amp;quot; section of &amp;quot;Custom Annotation&amp;quot;.  Each entry (which may not contain spaces) does not need quotes but each entry should be separated by commas.&lt;br /&gt;
&lt;br /&gt;
Alternatively, we have provided functional annotation of all 1000 Genomes (Aug 2009) and HapMap r22 SNPs according to the following categories; Framestop (24, triangle), Splice (24, triangle), NonSynonymous (25, inverted triangle), Synonymous (22, square), UTR (22, square), TFBScons (8, star), MCS44 Placental (7, square with diagonal lines) and None-of-the-above (21, filled circle). This can be implemented using the section &amp;quot;Show Annotation&amp;quot; and clicking the box beside each annotation category that you would like distinguished.  SNPs that are not in any selected category will still be displayed as having no annotation.&lt;br /&gt;
&lt;br /&gt;
=== Plotting of Pairwise Linkage Disequilibrium ===&lt;br /&gt;
&lt;br /&gt;
In the main plot window, data points are colored according to their level of linkage disequilibrium (LD) of the each SNP with the index SNP. If users specify the region to display using an index SNP and flanking region, LD of all data points will be relative to the user-specified index SNP. If users specify the region to display using genome coordinates or a gene name, LocusZoom will automatically select the most significant SNP in the region as the index SNP. For all other SNPs in the plot, the color of the data point will reflect the pairwise LD with this index SNP. The default LD measure is r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; calculated from the HapMap CEU population (release 22), but users have the option to replace this with D’ and of selecting the HapMap YRI, Hapmap CHB+JPT or 1000 Genomes CEU reference panels. To  display LD from 1000G CEU, please substitute rsid&#039;s for 1000G naming convention (chrxx:xxxx) whenever possible.  Because we have pre-computed LD for all SNPs in HapMap CEU, plots will often generate more quickly if using the default LD information. SNPs with missing LD information are shown in grey.&lt;br /&gt;
&lt;br /&gt;
=== Customizing the Display of Your Results ===&lt;br /&gt;
&lt;br /&gt;
All options listed in the Main Table above are available, as well as the options listed below&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;3&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;lightgray&amp;quot;&lt;br /&gt;
! Setting &lt;br /&gt;
! Default Value &lt;br /&gt;
! Details&lt;br /&gt;
|-&lt;br /&gt;
| Column Delimiter &lt;br /&gt;
| none &lt;br /&gt;
| Users must specify the type of column delimiter in the results file&lt;br /&gt;
|-&lt;br /&gt;
| Pvalue Column Name &lt;br /&gt;
| none &lt;br /&gt;
| Users must specify the name of the column that contains the p-values&lt;br /&gt;
|-&lt;br /&gt;
| Marker Column Name &lt;br /&gt;
| none &lt;br /&gt;
| Users must specify the heading of the column that contains marker names&lt;br /&gt;
|-&lt;br /&gt;
| Human Genome Build &lt;br /&gt;
| none &lt;br /&gt;
| Plots can be generated based on hg18 (default) or hg17 positions&lt;br /&gt;
|-&lt;br /&gt;
| HapMap Population for LD &lt;br /&gt;
| none &lt;br /&gt;
| This option allows the user to specify which HapMap population was used to obtain LD estimates. The default is CEU but users may select YRI or JPT+CHB&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Using Batch Mode  ==&lt;br /&gt;
&lt;br /&gt;
To start batch mode, first upload your results file just as you would in interactive mode. The same file size restrictions apply.&lt;br /&gt;
&lt;br /&gt;
=== Generating a Hit Spec File ===&lt;br /&gt;
&lt;br /&gt;
Batch mode allows you to conveniently specify a set of plots to be generated in &amp;quot;Hit Spec&amp;quot; file. This is handy if you need to generate large numbers of plots or if you want to plot the same set of regions after updating a genomewide analysis (for example).&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Hit Spec&amp;quot; file is a whitespace delimited text file. The file has six mandatory columns which can be followed by a series of optional &#039;&#039;&#039;key&#039;&#039;&#039;=&#039;&#039;value&#039;&#039; pairs to allow for detailed customization of each plot. The first line in the file is assumed to be a header and is ignored. Each subsequent line describes a single plot. There are three ways to select a region to plot:&lt;br /&gt;
&lt;br /&gt;
; Plotting a window flanking an interesting SNP&lt;br /&gt;
: This option allows you to plot results for all markers within a specific distance (e.g. 500kb) of an index SNP. To use this option, set column 1 to have the name of the index SNP (e.g. &#039;&#039;rs2&#039;&#039; below) and set column 5 to specify the width of the region of interest (e.g. 500kb below). Here is an example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
Feature    chr     start    end      flank        plot     arguments&lt;br /&gt;
rs1	   na	   na	    na       500kb        yes      rfrows=3 weightCol=”N” snpset=”HapMap” metalRug=”Our SNPs” &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Plotting a region flanking an interesting SNP&lt;br /&gt;
: This option is similar to the previous option, but allows you to specify an assymetric region of interest. For example, perhaps you interested in a plot that extends a bit further to the right of the SNP of interest. In this case, specify the coordinates of the region to be plotted in columns 2, 3, and 4. Here is an example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
Feature    chr     start    end      flank        plot     arguments&lt;br /&gt;
rs2	   1	   540000   580000   na	          yes      rfrows=4 legend=”right” showAnnot=T &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Plotting a region flanking a gene of interest&lt;br /&gt;
: This option allows you to focus on a particular gene, rather than a specific SNP. It is similar to the first option. You should set column 1 to be the name of the gene of interest and column 5 to be the desired window width. When you use this option, LocusZoom will automatically select an index SNP for each region; the SNP will be the site with the smallest p-value. Here is an example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
Feature    chr     start    end      flank        plot     arguments&lt;br /&gt;
CETP	   na      na	    na       200kb        yes      rfrows=6 showAnnot=T annotPch=”1,24,24,25,22,21,8,7”&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The sixth column in the &amp;quot;Hit Spec&amp;quot; file can be used to enable (with the value &#039;&#039;yes&#039;&#039;) or disable (with the value &#039;&#039;no&#039;&#039;) an individual plot. For example, if you run a &amp;quot;Hit Spec&amp;quot; file with 15 plots and 14 of them turn out very nicely, you may wish to re-run the &amp;quot;Hit Spec&amp;quot; file with some tweaks to the problem plot. In this case (if you dislike waiting for your results as much as we do!), you could disable generation of the plots that seem nice by changing the 6th column to “no” and leave the plot that you tweaked as a “yes”.&lt;br /&gt;
&lt;br /&gt;
The 7th and final column contains additional LocusZoom arguments as &#039;&#039;&#039;key&#039;&#039;&#039;=&#039;&#039;value&#039;&#039; pairs. Any number of &#039;&#039;&#039;key&#039;&#039;&#039;=&#039;&#039;value&#039;&#039; pair arguments can be included. For details of available options, see the section entitled LocusZoom options below.&lt;br /&gt;
&lt;br /&gt;
== Generate single plots using our publicly-available lipids GWAS data  ==&lt;br /&gt;
&lt;br /&gt;
In addition to plotting your own results, you can plot the results of some publicly available GWAS. Currently, the only publicly available set of results is our GWAS for loci determining blood lipid levels (Kathiresan et al, Nature Genetics 2009). Just like when you are plotting your own data, you can specify 1) an index SNP and a flanking region, 2) the chromosome together with start and stop positions (in basepairs), or 3) gene name and a flanking region.&lt;br /&gt;
&lt;br /&gt;
== Commonly Used LocusZoom Options ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; width=&amp;quot;100%&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;lightgray&amp;quot;&lt;br /&gt;
! Web Form &lt;br /&gt;
! &amp;quot;Hit Spec&amp;quot; File Key-Value Pair &lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| Title on Plot &lt;br /&gt;
| title=”My Favorite Locus” &lt;br /&gt;
| Specifies large text displayed above the plot&lt;br /&gt;
|-&lt;br /&gt;
| Human Genome Build &lt;br /&gt;
| n/a &lt;br /&gt;
| Plots can be generated based on hg18 (the default) or hg17 positions&lt;br /&gt;
|-&lt;br /&gt;
| Legend Location &lt;br /&gt;
| legend=”left” &lt;br /&gt;
| This specifies the location of the legend within the plot, the default is auto. Auto tries to select a location that overlaps a minimal number of datapoints. (auto, left, right, none) &lt;br /&gt;
|-&lt;br /&gt;
| SNP Position Rug &lt;br /&gt;
| snpset=”HapMap” metalRug=”Rug SNPs” &lt;br /&gt;
| These options control display of tickmarks indicating SNP positions at the top of the plot. Setting snpset=&amp;quot;HapMap&amp;quot;, snpset=&amp;quot;Illu318&amp;quot; or snpset=&amp;quot;Affy500&amp;quot; display a fixed set of SNPs. (You can also try snpset=&amp;quot;Affy500,Illu318,HapMap&amp;quot; to see all 3). The metalRug option displays a rug which only includes the SNPs that are actually plotted. To remove the rug in batch mode set snpset=NULL. &lt;br /&gt;
|-&lt;br /&gt;
| Number of Rows for Gene Names &lt;br /&gt;
| rfrows=4 &lt;br /&gt;
| LocusZoom will automatically tries to determine the number of display rows to use for genes and gene names so they are not overlapping. This can make each plot prettier, but is not ideal when you want to compare many plots side by side. To ensure a fixed amount of space is used for gene names, use this option to set the maximum number of display rows. If LocusZoom runs out of plotting space and some genes are left out, a warning will be added to the plot.&lt;br /&gt;
|-&lt;br /&gt;
| Point Size  &lt;br /&gt;
| weightCol=”SampleSize” &lt;br /&gt;
| This specifies that the “dot size” of each data points will reflect the square-root of the sample size. The default is to have all dot sizes equal.&lt;br /&gt;
|-&lt;br /&gt;
| LD Measure &lt;br /&gt;
| ldCol=”dprime” (“rsquare”) &lt;br /&gt;
| Colors data points according to the selected LD  measure. The default is &amp;quot;rsquare&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| Reference Population for LD &lt;br /&gt;
| n/a &lt;br /&gt;
| This option allows the user to specify which reference panel is used to obtain LD estimates. The default is CEU from HapMap Phase II but users may select YRI or JPT+CHB from HapMap Phase II, or CEU from 1000 Genomes (August 2009 or June 2010 release).&lt;br /&gt;
|-&lt;br /&gt;
| Highlight Region of Interest &lt;br /&gt;
| hiStart=425Mb hiEnd=425.1Mb &lt;br /&gt;
| A grey box can be used to highlight important regions of the genome – this can reflect where an association signal peaks or a region selected for sequencing, for example.&lt;br /&gt;
|-&lt;br /&gt;
| Theme &lt;br /&gt;
| theme=”publication” &lt;br /&gt;
| We have created a theme that has larger text and is more easily readable for publication.&lt;br /&gt;
|-&lt;br /&gt;
| Show Annotation &lt;br /&gt;
| showAnnot=T showRefsnpAnnot=T annotPch=”21,24,24,25,22,22,8,7” &lt;br /&gt;
| SNP annotation is available for all 1000G SNPs (Aug 2009 release) and can be enabled with the showAnnot=T option. The annotPch command allows you to customize the R plotting symbol used for each kind of SNP; it is okay to use the same symbol for more than one category. The annotation categories, together with their default symbol setting are: Framestop (24, triangle), Splice (24, triangle), NonSynonymous (25, inverted triangle), Synonymous (22, square), UTR (22, square), TFBScons (8, star), MCS44 Placental (7, square with diagonal lines) and None-of-the-above (21, filled circle). For more information about these annotation categories used, please see http://research.nhgri.nih.gov/tools/unisnp/?rm=ohelp&lt;br /&gt;
|-&lt;br /&gt;
| Recombination Rate Overlay &lt;br /&gt;
| showRecomb=T &lt;br /&gt;
| The estimated recombination rate from HapMap samples can be shown on the plot or left off. The data plotted are from Hapmap; http://hapmap.ncbi.nlm.nih.gov/downloads/recombination/2008-03_rel22_B36/rates/&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For a full list of options that can be used in Batch Mode using a hitspec file, please see [http://genome.sph.umich.edu/wiki/LocusZoom_Standalone#Plotting_options this list]&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=LocusZoom&amp;diff=15153</id>
		<title>LocusZoom</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=LocusZoom&amp;diff=15153"/>
		<updated>2020-10-28T17:23:04Z</updated>

		<summary type="html">&lt;p&gt;Abought: Add deprecation notice and link to new my.locuszoom.org&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:LocusZoomSmall.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;LocusZoom&#039;&#039;&#039; is designed to facilitate viewing of local association results together with useful information about a locus, such as the location and orientation of the genes it includes, linkage disequilibrium coefficients and local estimates of recombination rates. It was developed by popular demand, as a result of many questions we have had about &amp;quot;How did you make the figures in your talk?&amp;quot; or &amp;quot;How did you make the figures for your GWAS paper?&amp;quot; (And for better or for worse, we have quite a few GWAS papers!!).&lt;br /&gt;
&lt;br /&gt;
LocusZoom can be used in four ways:&lt;br /&gt;
&lt;br /&gt;
; 1. Plot Summaries of Your Genomewide Scan Interactively&lt;br /&gt;
: You can upload summary results of your own genomewide scan or genomewide meta-analysis and request plots of regions of interest using a web-based form.&lt;br /&gt;
&lt;br /&gt;
; 2. Generate Many Plots in Batch Mode&lt;br /&gt;
: You can upload summary results for your genomewide scan or genomewide meta-analysis and request several plots in one go by uploading a batch file. You will receive results via e-mail. A snail-mail option is not available.&lt;br /&gt;
&lt;br /&gt;
; 3. Plot Summaries of Publicly Available Datasets&lt;br /&gt;
: Currently, this includes the results of [http://www.sph.umich.edu/csg/abecasis/public/lipids2008/ our genome-wide scan] for variants associated with HDL-cholesterol, LDL-cholesterol and triglyceride levels in ~20,000 individuals.&lt;br /&gt;
&lt;br /&gt;
; 4. Download LocusZoom and run on your local unix machine&lt;br /&gt;
: [http://genome.sph.umich.edu/wiki/LocusZoom_Standalone Download LocusZoom] and [http://genome.sph.umich.edu/wiki/LocusZoom_Standalone#Sources_of_SQLite_database_tables associated databases]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Upload your own meta-analysis file and generate single plots using a web-based form  ==&lt;br /&gt;
&lt;br /&gt;
=== Uploading Your Association Study Results ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The instructions below refer to a &amp;quot;legacy&amp;quot; service that is not actively maintained. For modern datasets, consider using our new [https://my.locuszoom.org my.locuszoom.org] service for the latest features, including manhattan plots and support for build GRCh38.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note: You CAN plot SNPs without rsid using chr6:20122013 format.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Association results can be uploaded to our web server using the [http://locuszoom.org/ plot your data webpage]. Result files are limited to 20Mb in size, which allows for a [[gzip|gzipped]] text table including key columns (marker name, p-value and sample size) for up to ~3 million SNPs. In our tests, a typical GWAS results file is ~17 Mb in size after imputation of HapMap SNPs. Once a file is uploaded, LocusZoom will remember the file for the duration of your web session allowing you to generate multiple plots. If you have a slow connection or would like to save time, you can upload results for a region or chromosome of interest only. Your results are entirely confidential and won&#039;t be viewed by us or anyone else (except those with whom you share them!)&lt;br /&gt;
&lt;br /&gt;
To specify the region to be plotted, you will have to specify the name of a key marker in the region (typically, as an rs-number, but can be in chr:pos format), name a gene of interest or provide appropriate genome coordinates. When displaying linkage disequilibrium, plotting will be very fast for small windows when HapMap CEU linkage disequilibrium is requested (because pairwise coefficients have been precomputed) and will be a bit slower for larger windows (because linkage disequilibrium coefficients must be computed on the fly).&lt;br /&gt;
&lt;br /&gt;
If you include a sample size column in the result file, it will be used to control the size of each plotted marker.&lt;br /&gt;
&lt;br /&gt;
=== Custom Annotation ===&lt;br /&gt;
&lt;br /&gt;
You may choose to have SNPs displayed using different plotting symbols to distinguish them from each other.  To implement this, in the section &amp;quot;Custom Annotation&amp;quot; in the box &amp;quot;Column Name&amp;quot;, you need to provide the name of a column in your meta-analysis file.  This column will list a category for each SNP of your own choosing (i.e. &amp;quot;nonsynonymous&amp;quot;, &amp;quot;splice&amp;quot;,&amp;quot;intronic&amp;quot;,etc.) or (&amp;quot;Genotyped&amp;quot;,&amp;quot;Imputed&amp;quot;), however, the category names may not include any spaces.  To select the order of the categories to display in the legend and to match the order of pre-selected R plotting symbols (set as pch = 21, 22, 23, 24, 25, 4, 7, 8, 10, 11, 12, 13, 14, 3), you may provide the category names in the specified order in &amp;quot;Category Order&amp;quot; section of &amp;quot;Custom Annotation&amp;quot;.  Each entry (which may not contain spaces) does not need quotes but each entry should be separated by commas.&lt;br /&gt;
&lt;br /&gt;
Alternatively, we have provided functional annotation of all 1000 Genomes (Aug 2009) and HapMap r22 SNPs according to the following categories; Framestop (24, triangle), Splice (24, triangle), NonSynonymous (25, inverted triangle), Synonymous (22, square), UTR (22, square), TFBScons (8, star), MCS44 Placental (7, square with diagonal lines) and None-of-the-above (21, filled circle). This can be implemented using the section &amp;quot;Show Annotation&amp;quot; and clicking the box beside each annotation category that you would like distinguished.  SNPs that are not in any selected category will still be displayed as having no annotation.&lt;br /&gt;
&lt;br /&gt;
=== Plotting of Pairwise Linkage Disequilibrium ===&lt;br /&gt;
&lt;br /&gt;
In the main plot window, data points are colored according to their level of linkage disequilibrium (LD) of the each SNP with the index SNP. If users specify the region to display using an index SNP and flanking region, LD of all data points will be relative to the user-specified index SNP. If users specify the region to display using genome coordinates or a gene name, LocusZoom will automatically select the most significant SNP in the region as the index SNP. For all other SNPs in the plot, the color of the data point will reflect the pairwise LD with this index SNP. The default LD measure is r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; calculated from the HapMap CEU population (release 22), but users have the option to replace this with D’ and of selecting the HapMap YRI, Hapmap CHB+JPT or 1000 Genomes CEU reference panels. To  display LD from 1000G CEU, please substitute rsid&#039;s for 1000G naming convention (chrxx:xxxx) whenever possible.  Because we have pre-computed LD for all SNPs in HapMap CEU, plots will often generate more quickly if using the default LD information. SNPs with missing LD information are shown in grey.&lt;br /&gt;
&lt;br /&gt;
=== Customizing the Display of Your Results ===&lt;br /&gt;
&lt;br /&gt;
All options listed in the Main Table above are available, as well as the options listed below&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;3&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;lightgray&amp;quot;&lt;br /&gt;
! Setting &lt;br /&gt;
! Default Value &lt;br /&gt;
! Details&lt;br /&gt;
|-&lt;br /&gt;
| Column Delimiter &lt;br /&gt;
| none &lt;br /&gt;
| Users must specify the type of column delimiter in the results file&lt;br /&gt;
|-&lt;br /&gt;
| Pvalue Column Name &lt;br /&gt;
| none &lt;br /&gt;
| Users must specify the name of the column that contains the p-values&lt;br /&gt;
|-&lt;br /&gt;
| Marker Column Name &lt;br /&gt;
| none &lt;br /&gt;
| Users must specify the heading of the column that contains marker names&lt;br /&gt;
|-&lt;br /&gt;
| Human Genome Build &lt;br /&gt;
| none &lt;br /&gt;
| Plots can be generated based on hg18 (default) or hg17 positions&lt;br /&gt;
|-&lt;br /&gt;
| HapMap Population for LD &lt;br /&gt;
| none &lt;br /&gt;
| This option allows the user to specify which HapMap population was used to obtain LD estimates. The default is CEU but users may select YRI or JPT+CHB&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Using Batch Mode  ==&lt;br /&gt;
&lt;br /&gt;
To start batch mode, first upload your results file just as you would in interactive mode. The same file size restrictions apply.&lt;br /&gt;
&lt;br /&gt;
=== Generating a Hit Spec File ===&lt;br /&gt;
&lt;br /&gt;
Batch mode allows you to conveniently specify a set of plots to be generated in &amp;quot;Hit Spec&amp;quot; file. This is handy if you need to generate large numbers of plots or if you want to plot the same set of regions after updating a genomewide analysis (for example).&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Hit Spec&amp;quot; file is a whitespace delimited text file. The file has six mandatory columns which can be followed by a series of optional &#039;&#039;&#039;key&#039;&#039;&#039;=&#039;&#039;value&#039;&#039; pairs to allow for detailed customization of each plot. The first line in the file is assumed to be a header and is ignored. Each subsequent line describes a single plot. There are three ways to select a region to plot:&lt;br /&gt;
&lt;br /&gt;
; Plotting a window flanking an interesting SNP&lt;br /&gt;
: This option allows you to plot results for all markers within a specific distance (e.g. 500kb) of an index SNP. To use this option, set column 1 to have the name of the index SNP (e.g. &#039;&#039;rs2&#039;&#039; below) and set column 5 to specify the width of the region of interest (e.g. 500kb below). Here is an example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
Feature    chr     start    end      flank        plot     arguments&lt;br /&gt;
rs1	   na	   na	    na       500kb        yes      rfrows=3 weightCol=”N” snpset=”HapMap” metalRug=”Our SNPs” &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Plotting a region flanking an interesting SNP&lt;br /&gt;
: This option is similar to the previous option, but allows you to specify an assymetric region of interest. For example, perhaps you interested in a plot that extends a bit further to the right of the SNP of interest. In this case, specify the coordinates of the region to be plotted in columns 2, 3, and 4. Here is an example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
Feature    chr     start    end      flank        plot     arguments&lt;br /&gt;
rs2	   1	   540000   580000   na	          yes      rfrows=4 legend=”right” showAnnot=T &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Plotting a region flanking a gene of interest&lt;br /&gt;
: This option allows you to focus on a particular gene, rather than a specific SNP. It is similar to the first option. You should set column 1 to be the name of the gene of interest and column 5 to be the desired window width. When you use this option, LocusZoom will automatically select an index SNP for each region; the SNP will be the site with the smallest p-value. Here is an example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
Feature    chr     start    end      flank        plot     arguments&lt;br /&gt;
CETP	   na      na	    na       200kb        yes      rfrows=6 showAnnot=T annotPch=”1,24,24,25,22,21,8,7”&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The sixth column in the &amp;quot;Hit Spec&amp;quot; file can be used to enable (with the value &#039;&#039;yes&#039;&#039;) or disable (with the value &#039;&#039;no&#039;&#039;) an individual plot. For example, if you run a &amp;quot;Hit Spec&amp;quot; file with 15 plots and 14 of them turn out very nicely, you may wish to re-run the &amp;quot;Hit Spec&amp;quot; file with some tweaks to the problem plot. In this case (if you dislike waiting for your results as much as we do!), you could disable generation of the plots that seem nice by changing the 6th column to “no” and leave the plot that you tweaked as a “yes”.&lt;br /&gt;
&lt;br /&gt;
The 7th and final column contains additional LocusZoom arguments as &#039;&#039;&#039;key&#039;&#039;&#039;=&#039;&#039;value&#039;&#039; pairs. Any number of &#039;&#039;&#039;key&#039;&#039;&#039;=&#039;&#039;value&#039;&#039; pair arguments can be included. For details of available options, see the section entitled LocusZoom options below.&lt;br /&gt;
&lt;br /&gt;
== Generate single plots using our publicly-available lipids GWAS data  ==&lt;br /&gt;
&lt;br /&gt;
In addition to plotting your own results, you can plot the results of some publicly available GWAS. Currently, the only publicly available set of results is our GWAS for loci determining blood lipid levels (Kathiresan et al, Nature Genetics 2009). Just like when you are plotting your own data, you can specify 1) an index SNP and a flanking region, 2) the chromosome together with start and stop positions (in basepairs), or 3) gene name and a flanking region.&lt;br /&gt;
&lt;br /&gt;
== Commonly Used LocusZoom Options ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; width=&amp;quot;100%&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;lightgray&amp;quot;&lt;br /&gt;
! Web Form &lt;br /&gt;
! &amp;quot;Hit Spec&amp;quot; File Key-Value Pair &lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| Title on Plot &lt;br /&gt;
| title=”My Favorite Locus” &lt;br /&gt;
| Specifies large text displayed above the plot&lt;br /&gt;
|-&lt;br /&gt;
| Human Genome Build &lt;br /&gt;
| n/a &lt;br /&gt;
| Plots can be generated based on hg18 (the default) or hg17 positions&lt;br /&gt;
|-&lt;br /&gt;
| Legend Location &lt;br /&gt;
| legend=”left” &lt;br /&gt;
| This specifies the location of the legend within the plot, the default is auto. Auto tries to select a location that overlaps a minimal number of datapoints. (auto, left, right, none) &lt;br /&gt;
|-&lt;br /&gt;
| SNP Position Rug &lt;br /&gt;
| snpset=”HapMap” metalRug=”Rug SNPs” &lt;br /&gt;
| These options control display of tickmarks indicating SNP positions at the top of the plot. Setting snpset=&amp;quot;HapMap&amp;quot;, snpset=&amp;quot;Illu318&amp;quot; or snpset=&amp;quot;Affy500&amp;quot; display a fixed set of SNPs. (You can also try snpset=&amp;quot;Affy500,Illu318,HapMap&amp;quot; to see all 3). The metalRug option displays a rug which only includes the SNPs that are actually plotted. To remove the rug in batch mode set snpset=NULL. &lt;br /&gt;
|-&lt;br /&gt;
| Number of Rows for Gene Names &lt;br /&gt;
| rfrows=4 &lt;br /&gt;
| LocusZoom will automatically tries to determine the number of display rows to use for genes and gene names so they are not overlapping. This can make each plot prettier, but is not ideal when you want to compare many plots side by side. To ensure a fixed amount of space is used for gene names, use this option to set the maximum number of display rows. If LocusZoom runs out of plotting space and some genes are left out, a warning will be added to the plot.&lt;br /&gt;
|-&lt;br /&gt;
| Point Size  &lt;br /&gt;
| weightCol=”SampleSize” &lt;br /&gt;
| This specifies that the “dot size” of each data points will reflect the square-root of the sample size. The default is to have all dot sizes equal.&lt;br /&gt;
|-&lt;br /&gt;
| LD Measure &lt;br /&gt;
| ldCol=”dprime” (“rsquare”) &lt;br /&gt;
| Colors data points according to the selected LD  measure. The default is &amp;quot;rsquare&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| Reference Population for LD &lt;br /&gt;
| n/a &lt;br /&gt;
| This option allows the user to specify which reference panel is used to obtain LD estimates. The default is CEU from HapMap Phase II but users may select YRI or JPT+CHB from HapMap Phase II, or CEU from 1000 Genomes (August 2009 or June 2010 release).&lt;br /&gt;
|-&lt;br /&gt;
| Highlight Region of Interest &lt;br /&gt;
| hiStart=425Mb hiEnd=425.1Mb &lt;br /&gt;
| A grey box can be used to highlight important regions of the genome – this can reflect where an association signal peaks or a region selected for sequencing, for example.&lt;br /&gt;
|-&lt;br /&gt;
| Theme &lt;br /&gt;
| theme=”publication” &lt;br /&gt;
| We have created a theme that has larger text and is more easily readable for publication.&lt;br /&gt;
|-&lt;br /&gt;
| Show Annotation &lt;br /&gt;
| showAnnot=T showRefsnpAnnot=T annotPch=”21,24,24,25,22,22,8,7” &lt;br /&gt;
| SNP annotation is available for all 1000G SNPs (Aug 2009 release) and can be enabled with the showAnnot=T option. The annotPch command allows you to customize the R plotting symbol used for each kind of SNP; it is okay to use the same symbol for more than one category. The annotation categories, together with their default symbol setting are: Framestop (24, triangle), Splice (24, triangle), NonSynonymous (25, inverted triangle), Synonymous (22, square), UTR (22, square), TFBScons (8, star), MCS44 Placental (7, square with diagonal lines) and None-of-the-above (21, filled circle). For more information about these annotation categories used, please see http://research.nhgri.nih.gov/tools/unisnp/?rm=ohelp&lt;br /&gt;
|-&lt;br /&gt;
| Recombination Rate Overlay &lt;br /&gt;
| showRecomb=T &lt;br /&gt;
| The estimated recombination rate from HapMap samples can be shown on the plot or left off. The data plotted are from Hapmap; http://hapmap.ncbi.nlm.nih.gov/downloads/recombination/2008-03_rel22_B36/rates/&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For a full list of options that can be used in Batch Mode using a hitspec file, please see [http://genome.sph.umich.edu/wiki/LocusZoom_Standalone#Plotting_options this list]&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Summary_Statistics_Files_Specification_for_RAREMETAL_and_rvtests&amp;diff=15131</id>
		<title>Summary Statistics Files Specification for RAREMETAL and rvtests</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Summary_Statistics_Files_Specification_for_RAREMETAL_and_rvtests&amp;diff=15131"/>
		<updated>2019-08-29T15:39:25Z</updated>

		<summary type="html">&lt;p&gt;Abought: Add rmw category tag&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Software]]&lt;br /&gt;
[[Category:RAREMETAL]]&lt;br /&gt;
[[Category:RAREMETALWORKER]]&lt;br /&gt;
[[Category:rvtests]]&lt;br /&gt;
= Summary Files Specification for RAREMETAL =&lt;br /&gt;
RAREMETAL use summary statistics files to perform meta-analysis. These includes (1) score statistics file and (2) covariance file.&lt;br /&gt;
Both [[RAREMETALWORKER|RAREMETALWORKER]] and [http://genome.sph.umich.edu/wiki/Rvtests &#039;&#039;&#039;rvtests&#039;&#039;&#039;] can generate these summary statistics files.&lt;br /&gt;
&lt;br /&gt;
The aim of this wiki page is to explain file formats.&lt;br /&gt;
&lt;br /&gt;
== Input score test statistics file ==&lt;br /&gt;
&lt;br /&gt;
=== Format ===&lt;br /&gt;
&lt;br /&gt;
Header lines begins with &#039;#&#039; or &#039;CHROM&#039;. After header part, we listed the meaning of each column as following:&lt;br /&gt;
&lt;br /&gt;
# CHROM          Chromosome&lt;br /&gt;
# POS             Position&lt;br /&gt;
# REF              Reference Allele&lt;br /&gt;
# ALT                               Alternative Allele&lt;br /&gt;
# N_INFORMATIVE                     Count of individuals with genotype and phenotype&lt;br /&gt;
# FOUNDER_AF(RAREMETALWORKER only)                        Allele frequency among founders&lt;br /&gt;
# ALL_AF(RAREMETALWORKER only)                                   Allele frequency across entire sample&lt;br /&gt;
# AF(rvtests only)        Allele frequency (for related samples, this is adjusted allele frequency)&lt;br /&gt;
# INFORMATIVE_ALT_AC                       Copies of the rare allele among samples with genotype and phenotype&lt;br /&gt;
# CALL_RATE                                Fraction of called genotypes&lt;br /&gt;
# HWE_PVALUE                               Exact Hardy-Weinberg equilibrium p-value&lt;br /&gt;
# N_REF                                          Count of reference homozygotes&lt;br /&gt;
# N_HET                                                Count of heterozygotes&lt;br /&gt;
# N_ALT                                                      Count of alternative allele homozygotes&lt;br /&gt;
# U_STAT                                                           Score statistic numerator&lt;br /&gt;
# SQRT_V_STAT                                                      Score statistic denominator&lt;br /&gt;
# ALT_EFF_SIZE Estimated effect size&lt;br /&gt;
# PVALUE                 P-value&lt;br /&gt;
&lt;br /&gt;
=== RAREMETALWORKER Example ===&lt;br /&gt;
&lt;br /&gt;
RAREMETALWORKER generates prefix.traitName.singlevar.score.txt, e.g. prefix.HDL.singlevar.score.txt&lt;br /&gt;
  &lt;br /&gt;
 ##ProgramName=RareMetalWorker&lt;br /&gt;
 ##Version=0.3.4&lt;br /&gt;
 ##Samples=11619&lt;br /&gt;
 ##AnalyzedSamples=5916&lt;br /&gt;
 ##Families=1257&lt;br /&gt;
 ##AnalyzedFamilies=1117&lt;br /&gt;
 ##Founders=3611&lt;br /&gt;
 ##AnalyzedFounders=1023&lt;br /&gt;
 ##Covariates=AGE,AGE2,SEX&lt;br /&gt;
 ##CovariateSummaries    min     25th    median  75th    max     mean    variance&lt;br /&gt;
 ##AGE   14      29.2    41.9    57      101.3   43.5354 311.366&lt;br /&gt;
 ##AGE2  196     852.64  1755.61 3249    10261.7 2206.65 2.77293e+06&lt;br /&gt;
 ##SEX   1       1       2       2       2       1.5764  0.244204&lt;br /&gt;
 ##InverseNormal=ON&lt;br /&gt;
 ##TraitSummaries        min     25th    median  75th    max     mean    variance&lt;br /&gt;
 ##TRAIT   27.4    101.822 125.036 149.922 330.482 127.381 1264.63&lt;br /&gt;
 ##AnalyzedTrait -3.7613 -0.674224       0.000211852     0.674756        3.7613  -2.32127e-12    0.999947&lt;br /&gt;
 ##Heritability=33.953%&lt;br /&gt;
 #CHROM  POS     REF     ALT     N_INFORMATIVE   FOUNDER_AF      ALL_AF  INFORMATIVE_ALT_AC      CALL_RATE       HWE_PVALUE      N_REF   N_HET   N_ALT   U_STAT  SQRT_V_STAT     ALT_EFFSIZE     PVALUE  SE&lt;br /&gt;
 1       762320  C       T       5916    0.00635386      0.00388776      46      1       1       5870    46      0       3.42523 6.57314 0.0792763       0.602301        0.152149&lt;br /&gt;
 1       865545  G       A       5916    0.000488759     8.45166e-05     1       1       1       5915    1       0       1.32644 1.07745 1.14259 0.21829 0.928141&lt;br /&gt;
 1       865584  G       A       5916    0       0       0       1       1       5916    0       0       NA      NA      NA      NA      NA&lt;br /&gt;
 1       865628  G       A       5916    0.00782014      0.00566261      67      1       1       5849    67      0       16.4313 7.82519 0.268338        0.0357464       0.127813&lt;br /&gt;
&lt;br /&gt;
=== Rvtests  Example ===&lt;br /&gt;
Rvtests generates prefix.MetaScore.assoc, e.g. prefix.MetaScore.assoc&lt;br /&gt;
&lt;br /&gt;
  ##Samples=2659&lt;br /&gt;
  ##AnalyzedSamples=2659&lt;br /&gt;
  ##Families=2659&lt;br /&gt;
  ##AnalyzedFamilies=2659&lt;br /&gt;
  ##Founders=2659&lt;br /&gt;
  ##AnalyzedFounders=2659&lt;br /&gt;
  ##InverseNormal=ON&lt;br /&gt;
  ##TraitSummary  min     25th    median  75th    max     mean    variance&lt;br /&gt;
  ##Trait -3.56023        -0.679098       -0.00304512     0.682994        3.56845 0.000710616     1.00065&lt;br /&gt;
  ##AnalyzedTrait -3.55632        -0.674786       0       0.674786        3.55632 -1.10229e-17    0.999884&lt;br /&gt;
  ##Covariates=sex,age,age2,pc1,pc2&lt;br /&gt;
  ##CovariateSummary      min     25th    median  75th    max     mean    variance&lt;br /&gt;
  ##sex   1       1       1       2       2       1.34524 0.226135&lt;br /&gt;
  ##age   21      55      66      73      91      63.6491 150.565&lt;br /&gt;
  ##age2  441     3025    4356    5329    8281    4201.72 2.25458e+06&lt;br /&gt;
  ##pc1   -0.1946 -0.0041 0.0014  0.0064  0.0246  -0.00027815     0.000184625&lt;br /&gt;
  ##pc2   -0.0957 -0.0067 -0.0005 0.0062  0.0989  0.000239526     0.000188235&lt;br /&gt;
  CHROM   POS     REF     ALT     N_INFORMATIVE   AF      INFORMATIVE_ALT_AC      CALL_RATE       HWE_PVALUE      N_REF   N_HET   N_ALT   U_STAT  SQRT_V_STAT     ALT_EFFSIZE     PVALUE&lt;br /&gt;
  1       564766  T       C       2659    0.23223 1235    1       0       2041    1       617     20.546  43.5254 0.0108453       0.636894&lt;br /&gt;
  1       564862  T       C       2659    NA      NA      NA      NA      NA      NA      NA      NA      NA      NA      NA&lt;br /&gt;
  1       565111  T       C       2659    0.0161715       86      1       4.01334e-96     2616    0       43      0.457052        13.0052 0.00270229      0.971965&lt;br /&gt;
&lt;br /&gt;
== Input covariance test statistic file ==&lt;br /&gt;
&lt;br /&gt;
Covariance test statistics contains the LD matrix among a variant and the adjacent markers within a prefixed-sized window. The default window size is 1MB. It has the following format:&lt;br /&gt;
&lt;br /&gt;
=== Format  ===&lt;br /&gt;
&lt;br /&gt;
# CHROM                   Chromosome&lt;br /&gt;
# CURRENT_POS (RAREMETALWORKER only)                     Position for the first marker in Window&lt;br /&gt;
# VAR_POS_IN_WIND (RAREMETALWORKER only)                 Position for the other markers in window, separated by commas&lt;br /&gt;
# COV_MATRICES (RAREMETALWORKER only)                             Covariance matrix between test statistics&lt;br /&gt;
# START_POS (rvtests only)                     Position for the first marker in sliding window&lt;br /&gt;
# END_POS (rvtests only)                     Position for the last marker in sliding window&lt;br /&gt;
# NUM_MARKER  (rvtests only)                     Number of markers in the sliding windows&lt;br /&gt;
# MARKER_POS  (rvtests only)                     Number of marker positions in the sliding windows&lt;br /&gt;
# COV   (rvtests only)                    Covariance matrix between test statistics&lt;br /&gt;
&lt;br /&gt;
=== RAREMETALWORKER Example ===&lt;br /&gt;
RAREMETALWORKER generates prefix.traitName.singlevar.cov.txt, e.g. prefix.HDL.singlevar.cov.txt&lt;br /&gt;
  &lt;br /&gt;
  CHR    POS        VAR_POS_IN_WINDOW                             LD_MATRIX&lt;br /&gt;
  1   762320     762320,865628,865665,878744,879381,1560000    0.0359084,-0.000242112,-0.00125797,-0.000993422,-0.000344509,-0.00017077,&lt;br /&gt;
  1   865628     865628,865665,878744,879381,1560000,1864659   0.419804,-0.0103663,-0.00635265,0.0594056,0.0534505,-0.00462183,&lt;br /&gt;
  1   878744     878744,879381,1560000,1864659,1877659         0.000404537,-0.000235215,-1.4455e-05,-8.69137e-06,-3.1027e-05,&lt;br /&gt;
&lt;br /&gt;
=== Rvtests Example ===&lt;br /&gt;
Rvtests generates prefix.MetaCov.assoc.gz, e.g. prefix.HDL.MetaCov.assoc.gz&lt;br /&gt;
Later version of rvtests will also generate tabix index file, prefix.MetaCov.assoc.gz&lt;br /&gt;
&lt;br /&gt;
  CHR  START_POS       END_POS  NUM_MARKER        MARKER_POS                             COV&lt;br /&gt;
  1   762320         1560000         6     762320,865628,865665,878744,879381,1560000    0.0359084,-0.000242112,-0.00125797,-0.000993422,-0.000344509,-0.00017077&lt;br /&gt;
  1   865628         1864659         6     865628,865665,878744,879381,1560000,1864659   0.419804,-0.0103663,-0.00635265,0.0594056,0.0534505,-0.00462183&lt;br /&gt;
  1   878744         1877659         5     878744,879381,1560000,1864659,1877659         0.000404537,-0.000235215,-1.4455e-05,-8.69137e-06,-3.1027e-05&lt;br /&gt;
&lt;br /&gt;
= Contact =&lt;br /&gt;
&lt;br /&gt;
Please contact Dajiang Liu ([mailto:dajiang@umich.edu]), Xiaowei Zhan ([mailto:zhanxw@umich.edu]), Shuang Feng([mailto:sfengsph@umich.edu]) or Goncalo Abecasis ([mailto:goncalo@umich.edu]).&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_METHOD&amp;diff=15111</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=15111"/>
		<updated>2019-05-20T17:28:07Z</updated>

		<summary type="html">&lt;p&gt;Abought: Tag category&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;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:RAREMETAL]]&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Documentation&amp;diff=15110</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=15110"/>
		<updated>2019-05-20T17:22:15Z</updated>

		<summary type="html">&lt;p&gt;Abought: Update contact address&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETAL]]&lt;br /&gt;
== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
* Git hub page: https://github.com/statgen/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;
&lt;br /&gt;
We have tested compilation using our source code on several platforms including Linux, and Mac OS X. &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 Andy Boughton (abought 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>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Documentation&amp;diff=15084</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=15084"/>
		<updated>2019-03-14T16:53:22Z</updated>

		<summary type="html">&lt;p&gt;Abought: /* Download and Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETAL]]&lt;br /&gt;
== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
* Git hub page: https://github.com/statgen/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;
&lt;br /&gt;
We have tested compilation using our source code on several platforms including Linux, and Mac OS X. &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>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Raremetal_Incoming_updates&amp;diff=15083</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=15083"/>
		<updated>2019-03-14T16:52:42Z</updated>

		<summary type="html">&lt;p&gt;Abought: Link to issue tracker&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETAL]]&lt;br /&gt;
[[Category:RAREMETALWORKER]]&lt;br /&gt;
==Main Wiki Page==&lt;br /&gt;
&lt;br /&gt;
* [[RAREMETAL_Change_Log | RAREMETAL Change log]]&lt;br /&gt;
&lt;br /&gt;
==Reporting a bug==&lt;br /&gt;
Please report issues at our GitHub repository [https://github.com/statgen/raremetal/issues issue tracker]. When possible, include your platform (Ubuntu, CentOS, Mac OS, etc), as well as any relevant commands and output that can help us to identify the problem.&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>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=15082</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=15082"/>
		<updated>2019-03-14T16:50:12Z</updated>

		<summary type="html">&lt;p&gt;Abought: v4.15.0&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETAL]]&lt;br /&gt;
[[Category:RAREMETALWORKER]]&lt;br /&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;
* For versions 4.15.0 and later, see the official &amp;quot;releases&amp;quot; page on GitHub: https://github.com/statgen/raremetal/releases&lt;br /&gt;
** Note: versions in the 4.14.x series were prone to a bug with that gave incorrect results for SKAT and burden test methods.&lt;br /&gt;
** Note: users of a specific long-lived [https://github.com/statgen/raremetal/commit/a1e648edc98a1097e79f18ecf4f2ffd69542ba1b pre-release v4.15.0 candidate] ( April 19, 2018 ) may be affected by an issue with which variants are selected for analysis. If your version incorporates the linked GitHub commit, your results may be affected. Previous release candidates based on that branch should be ok.&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>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=15081</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=15081"/>
		<updated>2019-03-14T16:44:00Z</updated>

		<summary type="html">&lt;p&gt;Abought: Release 4.15.0; simplify release notes to point to self-contained repository.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETAL]]&lt;br /&gt;
[[Category:RAREMETALWORKER]]&lt;br /&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;
===GitHub===&lt;br /&gt;
&lt;br /&gt;
All source code is available on GitHub:&lt;br /&gt;
&lt;br /&gt;
https://github.com/statgen/Raremetal&lt;br /&gt;
&lt;br /&gt;
See README.md for instructions on how to compile RAREMETAL for your environment. It should be possible to compile in Mac OS and Linux environments. You will need &#039;&#039;&#039;Cmake&#039;&#039;&#039; and &#039;&#039;&#039;Cget&#039;&#039;&#039; available.&lt;br /&gt;
&lt;br /&gt;
Since version 4.13.6, RAREMETALWORKER and RAREMETAL are distributed within the same package in this repository. More information on changes may be found at our [https://github.com/statgen/raremetal/releases releases page].&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;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_FAQ&amp;diff=15016</id>
		<title>RAREMETAL FAQ</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_FAQ&amp;diff=15016"/>
		<updated>2018-03-20T15:46:00Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETAL]]&lt;br /&gt;
[[Category:RAREMETALWORKER]]&lt;br /&gt;
==COMPILE PROBLEMS==&lt;br /&gt;
===error: zlib.h: No such file or directory===&lt;br /&gt;
Error:&lt;br /&gt;
&lt;br /&gt;
 make -C ../../libStatGen --no-print-directory opt&lt;br /&gt;
 gcc -O4 -pipe -Wall  -I../include -I.  -D__ZLIB_AVAILABLE__ -D_FILE_OFFSET_BITS=64 -D__STDC_LIMIT_MACROS  -o obj/bgzf.o -c bgzf.c &lt;br /&gt;
 In file included from bgzf.c:37:&lt;br /&gt;
 bgzf.h:30:18: error: zlib.h: No such file or directory&lt;br /&gt;
 bgzf.c: In function âopen_writeâ:&lt;br /&gt;
 bgzf.c:187: error: âZ_DEFAULT_COMPRESSIONâ undeclared (first use in this function)&lt;br /&gt;
 bgzf.c:187: error: (Each undeclared identifier is reported only once&lt;br /&gt;
 bgzf.c:187: error: for each function it appears in.)&lt;br /&gt;
 bgzf.c: In function âdeflate_blockâ:&lt;br /&gt;
 bgzf.c:298: error: âz_streamâ undeclared (first use in this function)&lt;br /&gt;
 bgzf.c:298: error: expected â;â before âzsâ&lt;br /&gt;
 bgzf.c:299: error: âzsâ undeclared (first use in this function)&lt;br /&gt;
 bgzf.c:306: warning: implicit declaration of function âdeflateInit2â&lt;br /&gt;
 bgzf.c:306: error: âZ_DEFLATEDâ undeclared (first use in this function)&lt;br /&gt;
&lt;br /&gt;
====SOLUTION====&lt;br /&gt;
Based on the compile error, it appears that the development verison of zlib may not be installed. Please go to http://genome.sph.umich.edu/wiki/Zlib for more information.&lt;br /&gt;
&lt;br /&gt;
User can compile the library without ZLIB, but then the code will not be able to read compressed files (typically BAM files are compressed).&lt;br /&gt;
If no compressed files is needed, then user can compile using:  make ZLIB_AVAIL=0.&lt;br /&gt;
&lt;br /&gt;
===error: undefined reference to `_gfortran_pow_r8_i4&#039;===&lt;br /&gt;
Error:&lt;br /&gt;
&lt;br /&gt;
 ../../libStatGen/libStatGen.a(mvt.o): In function `mvtdns_&#039;:&lt;br /&gt;
 mvt.f:(.text+0x20c9): undefined reference to `_gfortran_pow_r8_i4&#039;&lt;br /&gt;
 ../../libStatGen/libStatGen.a(mvt.o): In function `mvchnv_&#039;:&lt;br /&gt;
 mvt.f:(.text+0x5848): undefined reference to `_gfortran_pow_r8_i4&#039;&lt;br /&gt;
 collect2: ld returned 1 exit status&lt;br /&gt;
 make: *** [../bin/raremetal] Error 1&lt;br /&gt;
&lt;br /&gt;
====SOLUTION====&lt;br /&gt;
&lt;br /&gt;
It looks like in some versions of compilers, the Fortran library (required by RareMetal) isn&#039;t automatically included.&lt;br /&gt;
These Makefile changes fixed it on the machine where I was able to recreate your compile issue:&lt;br /&gt;
&lt;br /&gt;
1) libStatGen/Makefiles/Makefile.src, edit the settings for OPT_BUILD, DEBUG_BUILD, and PROFILE_BUILD to be (the new part is in bold):&lt;br /&gt;
 OPT_BUILD =     $(CXX) $(COMPFLAGS) $(USER_LINK_OPTIONS) -o $(PROG_OPT)     $(OBJECTS_OPT)     $(USER_LIBS) $(REQ_LIBS_OPT)     -lm $(ZLIB_LIB) &#039;&#039;&#039;$(OTHER_LIBS)&#039;&#039;&#039;&lt;br /&gt;
 DEBUG_BUILD =   $(CXX) $(COMPFLAGS) $(USER_LINK_OPTIONS) -o $(PROG_DEBUG)   $(OBJECTS_DEBUG)   $(USER_LIBS) $(REQ_LIBS_DEBUG)   -lm $(ZLIB_LIB) &#039;&#039;&#039;$(OTHER_LIBS)&#039;&#039;&#039;&lt;br /&gt;
 PROFILE_BUILD = $(CXX) $(COMPFLAGS) $(USER_LINK_OPTIONS) -o $(PROG_PROFILE) $(OBJECTS_PROFILE) $(USER_LIBS) $(REQ_LIBS_PROFILE) -lm $(ZLIB_LIB) &#039;&#039;&#039;$(OTHER_LIBS)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
2) raremetal/src/Makefile, add: (I added it on the line right after USER_LIBS is defined.)&lt;br /&gt;
 OTHER_LIBS = -lgfortran&lt;br /&gt;
NOTE: this has been fixed by identifying a bug in makefile. If you still see the same error message, please try the above solutions.&lt;br /&gt;
&lt;br /&gt;
===error while loading shared  libraries===&lt;br /&gt;
Error:&lt;br /&gt;
 gcc -O4 -pipe -Wall  -I../include -I.  -D__ZLIB_AVAILABLE__ -D_FILE_OFFSET_BITS=64 -D__STDC_LIMIT_MACROS  -o obj/bgzf.o -c bgzf.c&lt;br /&gt;
 /broad/software/free/Linux/redhat_5_x86_64/pkgs/gcc_4.4.4/libexec/gcc/x86_64-unknown-linux-gnu/4.4.4/cc1: error while loading shared  libraries: libmpfr.so.1: cannot open shared object file: No such file or directory&lt;br /&gt;
 make[2]: *** [obj/bgzf.o] Error 1&lt;br /&gt;
 make[1]: *** [samtools] Error 2&lt;br /&gt;
 make: *** [../../libStatGen/libStatGen. a] Error 2 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====SOLUTION====&lt;br /&gt;
If you are using version 0.4.4 and under, please go to our wiki page to download the newest version [[RAREMETAL_Documentation#Where_to_Download | &#039;&#039;&#039;download RAREMETAL&#039;&#039;&#039;]]. There was a bug in makefile in older versions of RAREMETAL that could cause this error and it has been fixed. For a quick fix, please go to /raremetal/src and open &amp;quot;Makefile&amp;quot;. Then comment out the lines at the bottom of raremetal/src/Makefile that set LD_LIBRARY_PATH. Try compiling and see if it works.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===error: can not find Makefile.base ===&lt;br /&gt;
&lt;br /&gt;
 ../libStatGen/Makefiles/Makefile.tool:4: Makefile.base: No such file or directory&lt;br /&gt;
 ../libStatGen/Makefiles/Makefile.tool:23: *** first argument to `word&#039; function must be greater than 0. Stop.&lt;br /&gt;
&lt;br /&gt;
====SOLUTION====&lt;br /&gt;
This is most likely that you are having an older version of Make. To compile, you have to use Make version 3.80 and older. To get updated version of make, please go to [http://ftp.gnu.org/gnu/make  &#039;&#039;&#039;make download&#039;&#039;&#039;].&lt;br /&gt;
&lt;br /&gt;
==RUNTIME ERRORS==&lt;br /&gt;
===error: BGZF EOF marker is missing in xxx.vcf.gz===&lt;br /&gt;
Loading input files...&lt;br /&gt;
Loading DAT files ... done.&lt;br /&gt;
Loading PED files ... done.&lt;br /&gt;
&lt;br /&gt;
BGZF EOF marker is missing in xxx.vcf.gz&lt;br /&gt;
Exiting, exception thrown: FAIL_IO: Failed to open xxx.vcf.gz&lt;br /&gt;
&lt;br /&gt;
====SOLUTION====&lt;br /&gt;
This problem has been solved. If you are using version 0.4.5 or older, please download the newest version [[RAREMETALWORKER#Where_to_Download |&#039;&#039;&#039;download RAREMETALWORKER&#039;&#039;&#039;]], and then in your command line, add --noeof. If you still see the error message, then you need to check if your bgzip has been updated to current version.&lt;br /&gt;
&lt;br /&gt;
===recommended strategies for debugging===&lt;br /&gt;
The ideal would be to send us your data so that we can debug. But if data sharing is not an option, you can use the following strategy to generate a backtrace and send it to us, without sharing the raw data.  &lt;br /&gt;
&lt;br /&gt;
 How to Generate a backtrace of the error:&lt;br /&gt;
 This will allow us to see where in the code it hit a segmentation fault.  This method isn&#039;t perfect and may still leave us with further  questions for you before we can come to an answer.&lt;br /&gt;
 1) Compile for debug: make debug &lt;br /&gt;
 2) Enable core dumps in the window where he will run: ulimit -c unlimited&lt;br /&gt;
 3) Run bin/debug/raremetal&lt;br /&gt;
 (If this does not coredump, then set OPTFLAG_OPT = -g -O4 in src/Makefile and try rerunning the bin/raremetal version - this will run  optimized, but with the debug symbols)&lt;br /&gt;
 4) Run: gdb bin/debug/raremetal core  &lt;br /&gt;
 (specifying the bath to the raremetal executable that was run &amp;amp; the path to the generated core file)&lt;br /&gt;
 5) In the gdb window, type: bt.&lt;br /&gt;
 6) Save the backtrace results and send it to us.&lt;br /&gt;
 That will generate the backtrace which will help us see where the segmentation fault occurred.&lt;br /&gt;
&lt;br /&gt;
==GENERAL QUESTIONS==&lt;br /&gt;
===What is RAREMETALWORKER? How is it related to RAREMETAL?===&lt;br /&gt;
&lt;br /&gt;
A: [[Rare-Metal-Worker|&#039;&#039;&#039;RAREMETALWORKER&#039;&#039;&#039;]] is the program that generates summary statistics for individual studies to share. It generates both single variant association results and covariance matrices of score statistics together with QC statistics. It enables analysis of familial data, population data, unrelated individuals and samples with cryptic relatedness and population stratification. [[RareMETAL|&#039;&#039;&#039;RAREMETAL&#039;&#039;&#039;]] takes the summary statistics generated by RAREMETALWORKER to perform both single variant and gene-level association analysis.&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Raremetal_Incoming_updates&amp;diff=15015</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=15015"/>
		<updated>2018-03-16T21:55:14Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETAL]]&lt;br /&gt;
[[Category:RAREMETALWORKER]]&lt;br /&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>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=15014</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=15014"/>
		<updated>2018-03-16T21:54:50Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETAL]]&lt;br /&gt;
[[Category:RAREMETALWORKER]]&lt;br /&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/statgen/Raremetal&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt;There is a known issue with the newest versions (&amp;gt;=4.14.0) of RAREMETAL, which may give incorrect p-values for some burden test calculation methods. We are working on a fix, but for now we recommend using an older version (&amp;lt;= 4.13.9).&amp;lt;/span&amp;gt;&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>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Command_Reference&amp;diff=15013</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=15013"/>
		<updated>2018-03-16T21:53:46Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETAL]]&lt;br /&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>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Summary_Statistics_Files_Specification_for_RAREMETAL_and_rvtests&amp;diff=15012</id>
		<title>Summary Statistics Files Specification for RAREMETAL and rvtests</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Summary_Statistics_Files_Specification_for_RAREMETAL_and_rvtests&amp;diff=15012"/>
		<updated>2018-03-16T21:53:24Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Software]]&lt;br /&gt;
[[Category:RAREMETAL]]&lt;br /&gt;
[[Category:rvtests]]&lt;br /&gt;
= Summary Files Specification for RAREMETAL =&lt;br /&gt;
RAREMETAL use summary statistics files to perform meta-analysis. These includes (1) score statistics file and (2) covariance file.&lt;br /&gt;
Both [[RAREMETALWORKER|RAREMETALWORKER]] and [http://genome.sph.umich.edu/wiki/Rvtests &#039;&#039;&#039;rvtests&#039;&#039;&#039;] can generate these summary statistics files.&lt;br /&gt;
&lt;br /&gt;
The aim of this wiki page is to explain file formats.&lt;br /&gt;
&lt;br /&gt;
== Input score test statistics file ==&lt;br /&gt;
&lt;br /&gt;
=== Format ===&lt;br /&gt;
&lt;br /&gt;
Header lines begins with &#039;#&#039; or &#039;CHROM&#039;. After header part, we listed the meaning of each column as following:&lt;br /&gt;
&lt;br /&gt;
# CHROM          Chromosome&lt;br /&gt;
# POS             Position&lt;br /&gt;
# REF              Reference Allele&lt;br /&gt;
# ALT                               Alternative Allele&lt;br /&gt;
# N_INFORMATIVE                     Count of individuals with genotype and phenotype&lt;br /&gt;
# FOUNDER_AF(RAREMETALWORKER only)                        Allele frequency among founders&lt;br /&gt;
# ALL_AF(RAREMETALWORKER only)                                   Allele frequency across entire sample&lt;br /&gt;
# AF(rvtests only)        Allele frequency (for related samples, this is adjusted allele frequency)&lt;br /&gt;
# INFORMATIVE_ALT_AC                       Copies of the rare allele among samples with genotype and phenotype&lt;br /&gt;
# CALL_RATE                                Fraction of called genotypes&lt;br /&gt;
# HWE_PVALUE                               Exact Hardy-Weinberg equilibrium p-value&lt;br /&gt;
# N_REF                                          Count of reference homozygotes&lt;br /&gt;
# N_HET                                                Count of heterozygotes&lt;br /&gt;
# N_ALT                                                      Count of alternative allele homozygotes&lt;br /&gt;
# U_STAT                                                           Score statistic numerator&lt;br /&gt;
# SQRT_V_STAT                                                      Score statistic denominator&lt;br /&gt;
# ALT_EFF_SIZE Estimated effect size&lt;br /&gt;
# PVALUE                 P-value&lt;br /&gt;
&lt;br /&gt;
=== RAREMETALWORKER Example ===&lt;br /&gt;
&lt;br /&gt;
RAREMETALWORKER generates prefix.traitName.singlevar.score.txt, e.g. prefix.HDL.singlevar.score.txt&lt;br /&gt;
  &lt;br /&gt;
 ##ProgramName=RareMetalWorker&lt;br /&gt;
 ##Version=0.3.4&lt;br /&gt;
 ##Samples=11619&lt;br /&gt;
 ##AnalyzedSamples=5916&lt;br /&gt;
 ##Families=1257&lt;br /&gt;
 ##AnalyzedFamilies=1117&lt;br /&gt;
 ##Founders=3611&lt;br /&gt;
 ##AnalyzedFounders=1023&lt;br /&gt;
 ##Covariates=AGE,AGE2,SEX&lt;br /&gt;
 ##CovariateSummaries    min     25th    median  75th    max     mean    variance&lt;br /&gt;
 ##AGE   14      29.2    41.9    57      101.3   43.5354 311.366&lt;br /&gt;
 ##AGE2  196     852.64  1755.61 3249    10261.7 2206.65 2.77293e+06&lt;br /&gt;
 ##SEX   1       1       2       2       2       1.5764  0.244204&lt;br /&gt;
 ##InverseNormal=ON&lt;br /&gt;
 ##TraitSummaries        min     25th    median  75th    max     mean    variance&lt;br /&gt;
 ##TRAIT   27.4    101.822 125.036 149.922 330.482 127.381 1264.63&lt;br /&gt;
 ##AnalyzedTrait -3.7613 -0.674224       0.000211852     0.674756        3.7613  -2.32127e-12    0.999947&lt;br /&gt;
 ##Heritability=33.953%&lt;br /&gt;
 #CHROM  POS     REF     ALT     N_INFORMATIVE   FOUNDER_AF      ALL_AF  INFORMATIVE_ALT_AC      CALL_RATE       HWE_PVALUE      N_REF   N_HET   N_ALT   U_STAT  SQRT_V_STAT     ALT_EFFSIZE     PVALUE  SE&lt;br /&gt;
 1       762320  C       T       5916    0.00635386      0.00388776      46      1       1       5870    46      0       3.42523 6.57314 0.0792763       0.602301        0.152149&lt;br /&gt;
 1       865545  G       A       5916    0.000488759     8.45166e-05     1       1       1       5915    1       0       1.32644 1.07745 1.14259 0.21829 0.928141&lt;br /&gt;
 1       865584  G       A       5916    0       0       0       1       1       5916    0       0       NA      NA      NA      NA      NA&lt;br /&gt;
 1       865628  G       A       5916    0.00782014      0.00566261      67      1       1       5849    67      0       16.4313 7.82519 0.268338        0.0357464       0.127813&lt;br /&gt;
&lt;br /&gt;
=== Rvtests  Example ===&lt;br /&gt;
Rvtests generates prefix.MetaScore.assoc, e.g. prefix.MetaScore.assoc&lt;br /&gt;
&lt;br /&gt;
  ##Samples=2659&lt;br /&gt;
  ##AnalyzedSamples=2659&lt;br /&gt;
  ##Families=2659&lt;br /&gt;
  ##AnalyzedFamilies=2659&lt;br /&gt;
  ##Founders=2659&lt;br /&gt;
  ##AnalyzedFounders=2659&lt;br /&gt;
  ##InverseNormal=ON&lt;br /&gt;
  ##TraitSummary  min     25th    median  75th    max     mean    variance&lt;br /&gt;
  ##Trait -3.56023        -0.679098       -0.00304512     0.682994        3.56845 0.000710616     1.00065&lt;br /&gt;
  ##AnalyzedTrait -3.55632        -0.674786       0       0.674786        3.55632 -1.10229e-17    0.999884&lt;br /&gt;
  ##Covariates=sex,age,age2,pc1,pc2&lt;br /&gt;
  ##CovariateSummary      min     25th    median  75th    max     mean    variance&lt;br /&gt;
  ##sex   1       1       1       2       2       1.34524 0.226135&lt;br /&gt;
  ##age   21      55      66      73      91      63.6491 150.565&lt;br /&gt;
  ##age2  441     3025    4356    5329    8281    4201.72 2.25458e+06&lt;br /&gt;
  ##pc1   -0.1946 -0.0041 0.0014  0.0064  0.0246  -0.00027815     0.000184625&lt;br /&gt;
  ##pc2   -0.0957 -0.0067 -0.0005 0.0062  0.0989  0.000239526     0.000188235&lt;br /&gt;
  CHROM   POS     REF     ALT     N_INFORMATIVE   AF      INFORMATIVE_ALT_AC      CALL_RATE       HWE_PVALUE      N_REF   N_HET   N_ALT   U_STAT  SQRT_V_STAT     ALT_EFFSIZE     PVALUE&lt;br /&gt;
  1       564766  T       C       2659    0.23223 1235    1       0       2041    1       617     20.546  43.5254 0.0108453       0.636894&lt;br /&gt;
  1       564862  T       C       2659    NA      NA      NA      NA      NA      NA      NA      NA      NA      NA      NA&lt;br /&gt;
  1       565111  T       C       2659    0.0161715       86      1       4.01334e-96     2616    0       43      0.457052        13.0052 0.00270229      0.971965&lt;br /&gt;
&lt;br /&gt;
== Input covariance test statistic file ==&lt;br /&gt;
&lt;br /&gt;
Covariance test statistics contains the LD matrix among a variant and the adjacent markers within a prefixed-sized window. The default window size is 1MB. It has the following format:&lt;br /&gt;
&lt;br /&gt;
=== Format  ===&lt;br /&gt;
&lt;br /&gt;
# CHROM                   Chromosome&lt;br /&gt;
# CURRENT_POS (RAREMETALWORKER only)                     Position for the first marker in Window&lt;br /&gt;
# VAR_POS_IN_WIND (RAREMETALWORKER only)                 Position for the other markers in window, separated by commas&lt;br /&gt;
# COV_MATRICES (RAREMETALWORKER only)                             Covariance matrix between test statistics&lt;br /&gt;
# START_POS (rvtests only)                     Position for the first marker in sliding window&lt;br /&gt;
# END_POS (rvtests only)                     Position for the last marker in sliding window&lt;br /&gt;
# NUM_MARKER  (rvtests only)                     Number of markers in the sliding windows&lt;br /&gt;
# MARKER_POS  (rvtests only)                     Number of marker positions in the sliding windows&lt;br /&gt;
# COV   (rvtests only)                    Covariance matrix between test statistics&lt;br /&gt;
&lt;br /&gt;
=== RAREMETALWORKER Example ===&lt;br /&gt;
RAREMETALWORKER generates prefix.traitName.singlevar.cov.txt, e.g. prefix.HDL.singlevar.cov.txt&lt;br /&gt;
  &lt;br /&gt;
  CHR    POS        VAR_POS_IN_WINDOW                             LD_MATRIX&lt;br /&gt;
  1   762320     762320,865628,865665,878744,879381,1560000    0.0359084,-0.000242112,-0.00125797,-0.000993422,-0.000344509,-0.00017077,&lt;br /&gt;
  1   865628     865628,865665,878744,879381,1560000,1864659   0.419804,-0.0103663,-0.00635265,0.0594056,0.0534505,-0.00462183,&lt;br /&gt;
  1   878744     878744,879381,1560000,1864659,1877659         0.000404537,-0.000235215,-1.4455e-05,-8.69137e-06,-3.1027e-05,&lt;br /&gt;
&lt;br /&gt;
=== Rvtests Example ===&lt;br /&gt;
Rvtests generates prefix.MetaCov.assoc.gz, e.g. prefix.HDL.MetaCov.assoc.gz&lt;br /&gt;
Later version of rvtests will also generate tabix index file, prefix.MetaCov.assoc.gz&lt;br /&gt;
&lt;br /&gt;
  CHR  START_POS       END_POS  NUM_MARKER        MARKER_POS                             COV&lt;br /&gt;
  1   762320         1560000         6     762320,865628,865665,878744,879381,1560000    0.0359084,-0.000242112,-0.00125797,-0.000993422,-0.000344509,-0.00017077&lt;br /&gt;
  1   865628         1864659         6     865628,865665,878744,879381,1560000,1864659   0.419804,-0.0103663,-0.00635265,0.0594056,0.0534505,-0.00462183&lt;br /&gt;
  1   878744         1877659         5     878744,879381,1560000,1864659,1877659         0.000404537,-0.000235215,-1.4455e-05,-8.69137e-06,-3.1027e-05&lt;br /&gt;
&lt;br /&gt;
= Contact =&lt;br /&gt;
&lt;br /&gt;
Please contact Dajiang Liu ([mailto:dajiang@umich.edu]), Xiaowei Zhan ([mailto:zhanxw@umich.edu]), Shuang Feng([mailto:sfengsph@umich.edu]) or Goncalo Abecasis ([mailto:goncalo@umich.edu]).&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=15011</id>
		<title>RAREMETAL</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=15011"/>
		<updated>2018-03-16T21:52:43Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Software]]&lt;br /&gt;
[[Category:RAREMETAL]]&lt;br /&gt;
&#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; is a program that facilitates the meta-analysis of rare variants from genotype arrays or sequencing (manuscript in preparation). &lt;br /&gt;
It was developed by [[Shuang_Feng|Shuang Feng]], Dajiang Liu and Gonçalo R. Abecasis. RAREMETAL has been used for the analyses in Exomechip blood lipids consortium and [[EMADS|EMADS]]. &lt;br /&gt;
&lt;br /&gt;
If you feel the program is useful, please take one minute to tell us your name and email ([https://docs.google.com/spreadsheet/ccc?key=0AuYjznTeEDYudFpqUk9sQ2pkN3d3endjYldqMEp6ZUE&amp;amp;usp=sharing &#039;&#039;&#039;registration&#039;&#039;&#039;]). Thank you!&lt;br /&gt;
&lt;br /&gt;
For questions please contact Andy Boughton via email: abought at umich dot edu.&lt;br /&gt;
&lt;br /&gt;
== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
There are a few pages in this Wiki that may be useful to RAREMETAL users. Here are links to a few:&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL Command Reference]]&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;
&lt;br /&gt;
== Download and Build==&lt;br /&gt;
&lt;br /&gt;
To download RAREMETAL executable and source code with instruction of build, go to [[Rare-Metal#Download_and_Installation|&#039;&#039;&#039;DOWNLOAD and INSTALLATION&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
== Related Programs ==&lt;br /&gt;
[[RAREMETALWORKER]] is a program that does single variant association for sequencing and genotyping array data and generates summary statistics for meta-analysis in RAREMETAL.&lt;br /&gt;
&lt;br /&gt;
[[LocusZoom]] is a program that facilitates display of genomewide association scan results.&lt;br /&gt;
&lt;br /&gt;
[[METAL]] is a program that facilitates meta-analysis of single-variant genomewide scans.&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Tutorial:_RAREMETAL&amp;diff=15010</id>
		<title>Tutorial: RAREMETAL</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Tutorial:_RAREMETAL&amp;diff=15010"/>
		<updated>2018-03-16T21:51:58Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETAL]]&lt;br /&gt;
[[Category:RAREMETALWORKER]]&lt;br /&gt;
== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
There are several pages in this Wiki that may be useful to RAREMETAL users. Here are links to a few:&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL|RAREMETAL Home Page]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL Command Reference]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL_Documentation|RAREMETAL Documentation]]&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;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we will use [[RAREMETAL|&#039;&#039;&#039;RAREMETAL&#039;&#039;&#039;]] to perform single variant and gene-level meta-analysis using summary statistics of two small studies. We will use [[RAREMETALWORKER|&#039;&#039;&#039;RAREMETALWORKER&#039;&#039;&#039;]] to generate summary statistics for each study.&lt;br /&gt;
&lt;br /&gt;
==STEP 1: Install Software and Download Example Data Sets==&lt;br /&gt;
&lt;br /&gt;
* If RAREMETAL and RAREMETALWORKER have not been installed on your local computer yet, you will first need to install them! You can download the two from here,  [[RAREMETALWORKER#Software_Download_and_Installation|&#039;&#039;&#039;RAREMETAL installation&#039;&#039;&#039;]] and [[RAREMETAL#Software_Download_and_Installation|&#039;&#039;&#039;RAREMETALWORKER installation&#039;&#039;&#039;]]. &lt;br /&gt;
&lt;br /&gt;
* Then please download the [[Media:Raremetal_tutorial.tar.gz|&#039;&#039;&#039;tutorial package&#039;&#039;&#039;]], including example data sets. &lt;br /&gt;
&lt;br /&gt;
* To unpack the example dataset, use the following two Unix commands:&lt;br /&gt;
&lt;br /&gt;
  tar xvzf raremetal_tutorial.tar.gz &lt;br /&gt;
  cd raremetal_tutorial&lt;br /&gt;
&lt;br /&gt;
==STEP 2: Analyze individual samples using RAREMETALWORKER==&lt;br /&gt;
&lt;br /&gt;
* Our first dataset has 743 unrelated individuals. Their phenotypes and relationships are described in a pair of pedigree and data files; you can get a summary of their contents using pedstats. &lt;br /&gt;
&lt;br /&gt;
* These individuals have been genotyped at ~1000 markers, and these genotypes are stored in a VCF file. The VCF is a text format, so you can try to peek at the contents if you like. &lt;br /&gt;
 &lt;br /&gt;
* Although these individuals are &amp;quot;unrelated&amp;quot;, there is the possibility that some of them are more closely related than others. In our analysis, we will calculate an empirical (i.e. data-driven) kinship (i.e. relatedness) matrix to describe the similarity between individuals.&lt;br /&gt;
&lt;br /&gt;
* To analyse the first study, we execute the following command: &lt;br /&gt;
&lt;br /&gt;
  raremetalworker  --ped example1.ped --dat example1.dat --vcf example1.vcf.gz --traitName QT1 \&lt;br /&gt;
                   --inverseNormal --makeResiduals --kinSave --kinGeno --prefix STUDY1 &lt;br /&gt;
&lt;br /&gt;
This command transforms phenotypes to normality (--inverseNormal), calculates trait residuals after adjusting for covariates (--makeResiduals), estimates relatedness between individuals and saves this for later use (--kinSave and --kinGeno), and even generates some PDF files summarizing results.&lt;br /&gt;
&lt;br /&gt;
* After RAREMETALWORKER finishes running, you will see several output files:&lt;br /&gt;
&lt;br /&gt;
 STUDY1.QT1.singlevar.score.txt     ## single variant statistics&lt;br /&gt;
 STUDY1.QT1.singlevar.cov.txt       ## covariance matrices between score statistics&lt;br /&gt;
 STUDY1.plots.pdf                   ## QQ plots and Manhattan plots&lt;br /&gt;
 STUDY1.Empirical.Kinship.gz        ## Relatedness matrix&lt;br /&gt;
 STUDY1.singlevar.log               ## Log file&lt;br /&gt;
&lt;br /&gt;
* We next analyse the second study using a similar command:&lt;br /&gt;
&lt;br /&gt;
   raremetalworker  --ped example2.ped --dat example2.dat --vcf example2.vcf.gz --traitName QT1 \&lt;br /&gt;
                    --inverseNormal --makeResiduals --kinSave --kinGeno --prefix STUDY2&lt;br /&gt;
&lt;br /&gt;
==STEP 3: Run RAREMETAL for Meta-Analysis==&lt;br /&gt;
&lt;br /&gt;
* In this step, we will use RAREMETAL to combine the summary statistics we just generated.&lt;br /&gt;
&lt;br /&gt;
* We will first index the result files generated by RAREMETAL. This step relies on bgzip and tabix, two tools that allow rapid indexing and retrieval of results from compressed text files.&lt;br /&gt;
&lt;br /&gt;
  bgzip STUDY1.QT1.singlevar.score.txt&lt;br /&gt;
  tabix -c &amp;quot;#&amp;quot; -s 1 -b 2 -e 2 STUDY1.QT1.singlevar.score.txt.gz&lt;br /&gt;
  bgzip STUDY1.QT1.singlevar.cov.txt&lt;br /&gt;
  tabix -c &amp;quot;#&amp;quot; -s 1 -b 2 -e 2 STUDY1.QT1.singlevar.cov.txt.gz&lt;br /&gt;
&lt;br /&gt;
* And again for the second study:&lt;br /&gt;
&lt;br /&gt;
  bgzip STUDY2.QT1.singlevar.score.txt&lt;br /&gt;
  tabix -c &amp;quot;#&amp;quot; -s 1 -b 2 -e 2 STUDY2.QT1.singlevar.score.txt.gz&lt;br /&gt;
  bgzip STUDY2.QT1.singlevar.cov.txt&lt;br /&gt;
  tabix -c &amp;quot;#&amp;quot; -s 1 -b 2 -e 2 STUDY2.QT1.singlevar.cov.txt.gz&lt;br /&gt;
&lt;br /&gt;
* We next create two text files that will drive the meta-analysis. The first file lists the input files with summary statistics. Let&#039;s call it summaryfiles. In most Linux workstations, you can use the command pico or nano to create this file. These should be the contents of  &amp;quot;summaryfiles&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
  STUDY1.QT1.singlevar.score.txt.gz&lt;br /&gt;
  STUDY2.QT1.singlevar.score.txt.gz&lt;br /&gt;
&lt;br /&gt;
* The second file lists the input files with variance-covariance information between markers. Let&#039;s call it covfiles. These should be its contents:&lt;br /&gt;
&lt;br /&gt;
  STUDY1.QT1.singlevar.cov.txt.gz&lt;br /&gt;
  STUDY2.QT1.singlevar.cov.txt.gz&lt;br /&gt;
&lt;br /&gt;
* Now, we are ready for meta-analysis. To perform single variant and gene-level meta-analyses all at once, use the following command:&lt;br /&gt;
&lt;br /&gt;
  raremetal --summaryFiles summaryfiles --covFiles covfiles --groupFile group.file \&lt;br /&gt;
            --SKAT --burden --MB --VT --longOutput --tabulateHits --hitsCutoff 1e-05 \&lt;br /&gt;
            --prefix COMBINED.QT1 --hwe 1.0e-05 --callRate 0.95 -&lt;br /&gt;
&lt;br /&gt;
This command filters summary statistics based on HWE p-value and variant call rate, generates single variant meta-analysis results, generates gene-level meta-analysis results using simple burden test, variable threshold test, Madson-Browning weighted burden test, and SKAT, tabulates significant genes with detailed single variant results included, and even generates some PDF files summarizing results.&lt;br /&gt;
&lt;br /&gt;
* The following output will be generated:&lt;br /&gt;
&lt;br /&gt;
  COMBINED.QT1.meta.plots.pdf (## QQ plots and manhattan plots)&lt;br /&gt;
  COMBINED.QT1.meta.singlevar.results &lt;br /&gt;
  COMBINED.QT1.meta.burden.results&lt;br /&gt;
  COMBINED.QT1.meta.SKAT.results&lt;br /&gt;
  COMBINED.QT1.meta.VT.results&lt;br /&gt;
  COMBINED.QT1.meta.MB.results&lt;br /&gt;
  COMBINED.QT1.meta.tophits.SKAT.tbl&lt;br /&gt;
  COMBINED.QT1.meta.tophits.VT.tbl&lt;br /&gt;
  COMBINED.QT1.meta.tophits.burden.tbl&lt;br /&gt;
  COMBINED.QT1.meta.tophits.MB.tbl&lt;br /&gt;
  COMBINED.QT1.raremetal.log&lt;br /&gt;
&lt;br /&gt;
* It is probably a good idea to spend a few minutes reviewing these files - they have the key results for your analysis! A detailed description of output files is available  [[RAREMETAL_Documentation#Gene-level_Tests_Meta-Analysis_Output|elsewhere]]. &lt;br /&gt;
&lt;br /&gt;
* If you are feeling adventurous and are not yet totally confused, you can continue to explore advanced features of RAREMETAL.&lt;br /&gt;
&lt;br /&gt;
* For example, RAREMETAL can carry out conditional analyses using the summary statistics in summaryfiles and covfiles. &lt;br /&gt;
&lt;br /&gt;
* To carry out a conditional analysis, create a text file that specifies the variant that you want to condition on (lets call it &amp;quot;conditioningfile&amp;quot;) and add &amp;quot;--condition conditioningfile&amp;quot; to the command line. The &amp;quot;conditioningfile&amp;quot; might look like this:&lt;br /&gt;
&lt;br /&gt;
  9:505484545:C:T&lt;br /&gt;
&lt;br /&gt;
* When you now run RAREMETAL with the extra options --condition conditioningfile, results will be adjusted for the variant 9:505484545:C:T.&lt;br /&gt;
&lt;br /&gt;
* An alternative to generating a group.file is to provide RAREMETAL with an annotated VCF as input. For details, see  [[RAREMETAL_Documentation#Group_Rare_Variants_from_Annotated_VCF|documentation]]. This option is especially useful when you first use RAREMETAL&#039;s [[RAREMETAL_Documentation#Generate_a_VCF_File_to_Annotate_Outside_of_Rare_Metal|&#039;&#039;&#039;--writeVCF&#039;&#039;&#039;]] option to create a file listing a superset of all available variants.&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Tutorial:_RAREMETAL&amp;diff=15009</id>
		<title>Tutorial: RAREMETAL</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Tutorial:_RAREMETAL&amp;diff=15009"/>
		<updated>2018-03-16T21:51:50Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETAL]]&lt;br /&gt;
[[Category:RAREMETWALWORKER]]&lt;br /&gt;
== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
There are several pages in this Wiki that may be useful to RAREMETAL users. Here are links to a few:&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL|RAREMETAL Home Page]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL Command Reference]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL_Documentation|RAREMETAL Documentation]]&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;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we will use [[RAREMETAL|&#039;&#039;&#039;RAREMETAL&#039;&#039;&#039;]] to perform single variant and gene-level meta-analysis using summary statistics of two small studies. We will use [[RAREMETALWORKER|&#039;&#039;&#039;RAREMETALWORKER&#039;&#039;&#039;]] to generate summary statistics for each study.&lt;br /&gt;
&lt;br /&gt;
==STEP 1: Install Software and Download Example Data Sets==&lt;br /&gt;
&lt;br /&gt;
* If RAREMETAL and RAREMETALWORKER have not been installed on your local computer yet, you will first need to install them! You can download the two from here,  [[RAREMETALWORKER#Software_Download_and_Installation|&#039;&#039;&#039;RAREMETAL installation&#039;&#039;&#039;]] and [[RAREMETAL#Software_Download_and_Installation|&#039;&#039;&#039;RAREMETALWORKER installation&#039;&#039;&#039;]]. &lt;br /&gt;
&lt;br /&gt;
* Then please download the [[Media:Raremetal_tutorial.tar.gz|&#039;&#039;&#039;tutorial package&#039;&#039;&#039;]], including example data sets. &lt;br /&gt;
&lt;br /&gt;
* To unpack the example dataset, use the following two Unix commands:&lt;br /&gt;
&lt;br /&gt;
  tar xvzf raremetal_tutorial.tar.gz &lt;br /&gt;
  cd raremetal_tutorial&lt;br /&gt;
&lt;br /&gt;
==STEP 2: Analyze individual samples using RAREMETALWORKER==&lt;br /&gt;
&lt;br /&gt;
* Our first dataset has 743 unrelated individuals. Their phenotypes and relationships are described in a pair of pedigree and data files; you can get a summary of their contents using pedstats. &lt;br /&gt;
&lt;br /&gt;
* These individuals have been genotyped at ~1000 markers, and these genotypes are stored in a VCF file. The VCF is a text format, so you can try to peek at the contents if you like. &lt;br /&gt;
 &lt;br /&gt;
* Although these individuals are &amp;quot;unrelated&amp;quot;, there is the possibility that some of them are more closely related than others. In our analysis, we will calculate an empirical (i.e. data-driven) kinship (i.e. relatedness) matrix to describe the similarity between individuals.&lt;br /&gt;
&lt;br /&gt;
* To analyse the first study, we execute the following command: &lt;br /&gt;
&lt;br /&gt;
  raremetalworker  --ped example1.ped --dat example1.dat --vcf example1.vcf.gz --traitName QT1 \&lt;br /&gt;
                   --inverseNormal --makeResiduals --kinSave --kinGeno --prefix STUDY1 &lt;br /&gt;
&lt;br /&gt;
This command transforms phenotypes to normality (--inverseNormal), calculates trait residuals after adjusting for covariates (--makeResiduals), estimates relatedness between individuals and saves this for later use (--kinSave and --kinGeno), and even generates some PDF files summarizing results.&lt;br /&gt;
&lt;br /&gt;
* After RAREMETALWORKER finishes running, you will see several output files:&lt;br /&gt;
&lt;br /&gt;
 STUDY1.QT1.singlevar.score.txt     ## single variant statistics&lt;br /&gt;
 STUDY1.QT1.singlevar.cov.txt       ## covariance matrices between score statistics&lt;br /&gt;
 STUDY1.plots.pdf                   ## QQ plots and Manhattan plots&lt;br /&gt;
 STUDY1.Empirical.Kinship.gz        ## Relatedness matrix&lt;br /&gt;
 STUDY1.singlevar.log               ## Log file&lt;br /&gt;
&lt;br /&gt;
* We next analyse the second study using a similar command:&lt;br /&gt;
&lt;br /&gt;
   raremetalworker  --ped example2.ped --dat example2.dat --vcf example2.vcf.gz --traitName QT1 \&lt;br /&gt;
                    --inverseNormal --makeResiduals --kinSave --kinGeno --prefix STUDY2&lt;br /&gt;
&lt;br /&gt;
==STEP 3: Run RAREMETAL for Meta-Analysis==&lt;br /&gt;
&lt;br /&gt;
* In this step, we will use RAREMETAL to combine the summary statistics we just generated.&lt;br /&gt;
&lt;br /&gt;
* We will first index the result files generated by RAREMETAL. This step relies on bgzip and tabix, two tools that allow rapid indexing and retrieval of results from compressed text files.&lt;br /&gt;
&lt;br /&gt;
  bgzip STUDY1.QT1.singlevar.score.txt&lt;br /&gt;
  tabix -c &amp;quot;#&amp;quot; -s 1 -b 2 -e 2 STUDY1.QT1.singlevar.score.txt.gz&lt;br /&gt;
  bgzip STUDY1.QT1.singlevar.cov.txt&lt;br /&gt;
  tabix -c &amp;quot;#&amp;quot; -s 1 -b 2 -e 2 STUDY1.QT1.singlevar.cov.txt.gz&lt;br /&gt;
&lt;br /&gt;
* And again for the second study:&lt;br /&gt;
&lt;br /&gt;
  bgzip STUDY2.QT1.singlevar.score.txt&lt;br /&gt;
  tabix -c &amp;quot;#&amp;quot; -s 1 -b 2 -e 2 STUDY2.QT1.singlevar.score.txt.gz&lt;br /&gt;
  bgzip STUDY2.QT1.singlevar.cov.txt&lt;br /&gt;
  tabix -c &amp;quot;#&amp;quot; -s 1 -b 2 -e 2 STUDY2.QT1.singlevar.cov.txt.gz&lt;br /&gt;
&lt;br /&gt;
* We next create two text files that will drive the meta-analysis. The first file lists the input files with summary statistics. Let&#039;s call it summaryfiles. In most Linux workstations, you can use the command pico or nano to create this file. These should be the contents of  &amp;quot;summaryfiles&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
  STUDY1.QT1.singlevar.score.txt.gz&lt;br /&gt;
  STUDY2.QT1.singlevar.score.txt.gz&lt;br /&gt;
&lt;br /&gt;
* The second file lists the input files with variance-covariance information between markers. Let&#039;s call it covfiles. These should be its contents:&lt;br /&gt;
&lt;br /&gt;
  STUDY1.QT1.singlevar.cov.txt.gz&lt;br /&gt;
  STUDY2.QT1.singlevar.cov.txt.gz&lt;br /&gt;
&lt;br /&gt;
* Now, we are ready for meta-analysis. To perform single variant and gene-level meta-analyses all at once, use the following command:&lt;br /&gt;
&lt;br /&gt;
  raremetal --summaryFiles summaryfiles --covFiles covfiles --groupFile group.file \&lt;br /&gt;
            --SKAT --burden --MB --VT --longOutput --tabulateHits --hitsCutoff 1e-05 \&lt;br /&gt;
            --prefix COMBINED.QT1 --hwe 1.0e-05 --callRate 0.95 -&lt;br /&gt;
&lt;br /&gt;
This command filters summary statistics based on HWE p-value and variant call rate, generates single variant meta-analysis results, generates gene-level meta-analysis results using simple burden test, variable threshold test, Madson-Browning weighted burden test, and SKAT, tabulates significant genes with detailed single variant results included, and even generates some PDF files summarizing results.&lt;br /&gt;
&lt;br /&gt;
* The following output will be generated:&lt;br /&gt;
&lt;br /&gt;
  COMBINED.QT1.meta.plots.pdf (## QQ plots and manhattan plots)&lt;br /&gt;
  COMBINED.QT1.meta.singlevar.results &lt;br /&gt;
  COMBINED.QT1.meta.burden.results&lt;br /&gt;
  COMBINED.QT1.meta.SKAT.results&lt;br /&gt;
  COMBINED.QT1.meta.VT.results&lt;br /&gt;
  COMBINED.QT1.meta.MB.results&lt;br /&gt;
  COMBINED.QT1.meta.tophits.SKAT.tbl&lt;br /&gt;
  COMBINED.QT1.meta.tophits.VT.tbl&lt;br /&gt;
  COMBINED.QT1.meta.tophits.burden.tbl&lt;br /&gt;
  COMBINED.QT1.meta.tophits.MB.tbl&lt;br /&gt;
  COMBINED.QT1.raremetal.log&lt;br /&gt;
&lt;br /&gt;
* It is probably a good idea to spend a few minutes reviewing these files - they have the key results for your analysis! A detailed description of output files is available  [[RAREMETAL_Documentation#Gene-level_Tests_Meta-Analysis_Output|elsewhere]]. &lt;br /&gt;
&lt;br /&gt;
* If you are feeling adventurous and are not yet totally confused, you can continue to explore advanced features of RAREMETAL.&lt;br /&gt;
&lt;br /&gt;
* For example, RAREMETAL can carry out conditional analyses using the summary statistics in summaryfiles and covfiles. &lt;br /&gt;
&lt;br /&gt;
* To carry out a conditional analysis, create a text file that specifies the variant that you want to condition on (lets call it &amp;quot;conditioningfile&amp;quot;) and add &amp;quot;--condition conditioningfile&amp;quot; to the command line. The &amp;quot;conditioningfile&amp;quot; might look like this:&lt;br /&gt;
&lt;br /&gt;
  9:505484545:C:T&lt;br /&gt;
&lt;br /&gt;
* When you now run RAREMETAL with the extra options --condition conditioningfile, results will be adjusted for the variant 9:505484545:C:T.&lt;br /&gt;
&lt;br /&gt;
* An alternative to generating a group.file is to provide RAREMETAL with an annotated VCF as input. For details, see  [[RAREMETAL_Documentation#Group_Rare_Variants_from_Annotated_VCF|documentation]]. This option is especially useful when you first use RAREMETAL&#039;s [[RAREMETAL_Documentation#Generate_a_VCF_File_to_Annotate_Outside_of_Rare_Metal|&#039;&#039;&#039;--writeVCF&#039;&#039;&#039;]] option to create a file listing a superset of all available variants.&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_FAQ&amp;diff=15008</id>
		<title>RAREMETAL FAQ</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_FAQ&amp;diff=15008"/>
		<updated>2018-03-16T21:50:58Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETAL]]&lt;br /&gt;
==COMPILE PROBLEMS==&lt;br /&gt;
===error: zlib.h: No such file or directory===&lt;br /&gt;
Error:&lt;br /&gt;
&lt;br /&gt;
 make -C ../../libStatGen --no-print-directory opt&lt;br /&gt;
 gcc -O4 -pipe -Wall  -I../include -I.  -D__ZLIB_AVAILABLE__ -D_FILE_OFFSET_BITS=64 -D__STDC_LIMIT_MACROS  -o obj/bgzf.o -c bgzf.c &lt;br /&gt;
 In file included from bgzf.c:37:&lt;br /&gt;
 bgzf.h:30:18: error: zlib.h: No such file or directory&lt;br /&gt;
 bgzf.c: In function âopen_writeâ:&lt;br /&gt;
 bgzf.c:187: error: âZ_DEFAULT_COMPRESSIONâ undeclared (first use in this function)&lt;br /&gt;
 bgzf.c:187: error: (Each undeclared identifier is reported only once&lt;br /&gt;
 bgzf.c:187: error: for each function it appears in.)&lt;br /&gt;
 bgzf.c: In function âdeflate_blockâ:&lt;br /&gt;
 bgzf.c:298: error: âz_streamâ undeclared (first use in this function)&lt;br /&gt;
 bgzf.c:298: error: expected â;â before âzsâ&lt;br /&gt;
 bgzf.c:299: error: âzsâ undeclared (first use in this function)&lt;br /&gt;
 bgzf.c:306: warning: implicit declaration of function âdeflateInit2â&lt;br /&gt;
 bgzf.c:306: error: âZ_DEFLATEDâ undeclared (first use in this function)&lt;br /&gt;
&lt;br /&gt;
====SOLUTION====&lt;br /&gt;
Based on the compile error, it appears that the development verison of zlib may not be installed. Please go to http://genome.sph.umich.edu/wiki/Zlib for more information.&lt;br /&gt;
&lt;br /&gt;
User can compile the library without ZLIB, but then the code will not be able to read compressed files (typically BAM files are compressed).&lt;br /&gt;
If no compressed files is needed, then user can compile using:  make ZLIB_AVAIL=0.&lt;br /&gt;
&lt;br /&gt;
===error: undefined reference to `_gfortran_pow_r8_i4&#039;===&lt;br /&gt;
Error:&lt;br /&gt;
&lt;br /&gt;
 ../../libStatGen/libStatGen.a(mvt.o): In function `mvtdns_&#039;:&lt;br /&gt;
 mvt.f:(.text+0x20c9): undefined reference to `_gfortran_pow_r8_i4&#039;&lt;br /&gt;
 ../../libStatGen/libStatGen.a(mvt.o): In function `mvchnv_&#039;:&lt;br /&gt;
 mvt.f:(.text+0x5848): undefined reference to `_gfortran_pow_r8_i4&#039;&lt;br /&gt;
 collect2: ld returned 1 exit status&lt;br /&gt;
 make: *** [../bin/raremetal] Error 1&lt;br /&gt;
&lt;br /&gt;
====SOLUTION====&lt;br /&gt;
&lt;br /&gt;
It looks like in some versions of compilers, the Fortran library (required by RareMetal) isn&#039;t automatically included.&lt;br /&gt;
These Makefile changes fixed it on the machine where I was able to recreate your compile issue:&lt;br /&gt;
&lt;br /&gt;
1) libStatGen/Makefiles/Makefile.src, edit the settings for OPT_BUILD, DEBUG_BUILD, and PROFILE_BUILD to be (the new part is in bold):&lt;br /&gt;
 OPT_BUILD =     $(CXX) $(COMPFLAGS) $(USER_LINK_OPTIONS) -o $(PROG_OPT)     $(OBJECTS_OPT)     $(USER_LIBS) $(REQ_LIBS_OPT)     -lm $(ZLIB_LIB) &#039;&#039;&#039;$(OTHER_LIBS)&#039;&#039;&#039;&lt;br /&gt;
 DEBUG_BUILD =   $(CXX) $(COMPFLAGS) $(USER_LINK_OPTIONS) -o $(PROG_DEBUG)   $(OBJECTS_DEBUG)   $(USER_LIBS) $(REQ_LIBS_DEBUG)   -lm $(ZLIB_LIB) &#039;&#039;&#039;$(OTHER_LIBS)&#039;&#039;&#039;&lt;br /&gt;
 PROFILE_BUILD = $(CXX) $(COMPFLAGS) $(USER_LINK_OPTIONS) -o $(PROG_PROFILE) $(OBJECTS_PROFILE) $(USER_LIBS) $(REQ_LIBS_PROFILE) -lm $(ZLIB_LIB) &#039;&#039;&#039;$(OTHER_LIBS)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
2) raremetal/src/Makefile, add: (I added it on the line right after USER_LIBS is defined.)&lt;br /&gt;
 OTHER_LIBS = -lgfortran&lt;br /&gt;
NOTE: this has been fixed by identifying a bug in makefile. If you still see the same error message, please try the above solutions.&lt;br /&gt;
&lt;br /&gt;
===error while loading shared  libraries===&lt;br /&gt;
Error:&lt;br /&gt;
 gcc -O4 -pipe -Wall  -I../include -I.  -D__ZLIB_AVAILABLE__ -D_FILE_OFFSET_BITS=64 -D__STDC_LIMIT_MACROS  -o obj/bgzf.o -c bgzf.c&lt;br /&gt;
 /broad/software/free/Linux/redhat_5_x86_64/pkgs/gcc_4.4.4/libexec/gcc/x86_64-unknown-linux-gnu/4.4.4/cc1: error while loading shared  libraries: libmpfr.so.1: cannot open shared object file: No such file or directory&lt;br /&gt;
 make[2]: *** [obj/bgzf.o] Error 1&lt;br /&gt;
 make[1]: *** [samtools] Error 2&lt;br /&gt;
 make: *** [../../libStatGen/libStatGen. a] Error 2 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====SOLUTION====&lt;br /&gt;
If you are using version 0.4.4 and under, please go to our wiki page to download the newest version [[RAREMETAL_Documentation#Where_to_Download | &#039;&#039;&#039;download RAREMETAL&#039;&#039;&#039;]]. There was a bug in makefile in older versions of RAREMETAL that could cause this error and it has been fixed. For a quick fix, please go to /raremetal/src and open &amp;quot;Makefile&amp;quot;. Then comment out the lines at the bottom of raremetal/src/Makefile that set LD_LIBRARY_PATH. Try compiling and see if it works.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===error: can not find Makefile.base ===&lt;br /&gt;
&lt;br /&gt;
 ../libStatGen/Makefiles/Makefile.tool:4: Makefile.base: No such file or directory&lt;br /&gt;
 ../libStatGen/Makefiles/Makefile.tool:23: *** first argument to `word&#039; function must be greater than 0. Stop.&lt;br /&gt;
&lt;br /&gt;
====SOLUTION====&lt;br /&gt;
This is most likely that you are having an older version of Make. To compile, you have to use Make version 3.80 and older. To get updated version of make, please go to [http://ftp.gnu.org/gnu/make  &#039;&#039;&#039;make download&#039;&#039;&#039;].&lt;br /&gt;
&lt;br /&gt;
==RUNTIME ERRORS==&lt;br /&gt;
===error: BGZF EOF marker is missing in xxx.vcf.gz===&lt;br /&gt;
Loading input files...&lt;br /&gt;
Loading DAT files ... done.&lt;br /&gt;
Loading PED files ... done.&lt;br /&gt;
&lt;br /&gt;
BGZF EOF marker is missing in xxx.vcf.gz&lt;br /&gt;
Exiting, exception thrown: FAIL_IO: Failed to open xxx.vcf.gz&lt;br /&gt;
&lt;br /&gt;
====SOLUTION====&lt;br /&gt;
This problem has been solved. If you are using version 0.4.5 or older, please download the newest version [[RAREMETALWORKER#Where_to_Download |&#039;&#039;&#039;download RAREMETALWORKER&#039;&#039;&#039;]], and then in your command line, add --noeof. If you still see the error message, then you need to check if your bgzip has been updated to current version.&lt;br /&gt;
&lt;br /&gt;
===recommended strategies for debugging===&lt;br /&gt;
The ideal would be to send us your data so that we can debug. But if data sharing is not an option, you can use the following strategy to generate a backtrace and send it to us, without sharing the raw data.  &lt;br /&gt;
&lt;br /&gt;
 How to Generate a backtrace of the error:&lt;br /&gt;
 This will allow us to see where in the code it hit a segmentation fault.  This method isn&#039;t perfect and may still leave us with further  questions for you before we can come to an answer.&lt;br /&gt;
 1) Compile for debug: make debug &lt;br /&gt;
 2) Enable core dumps in the window where he will run: ulimit -c unlimited&lt;br /&gt;
 3) Run bin/debug/raremetal&lt;br /&gt;
 (If this does not coredump, then set OPTFLAG_OPT = -g -O4 in src/Makefile and try rerunning the bin/raremetal version - this will run  optimized, but with the debug symbols)&lt;br /&gt;
 4) Run: gdb bin/debug/raremetal core  &lt;br /&gt;
 (specifying the bath to the raremetal executable that was run &amp;amp; the path to the generated core file)&lt;br /&gt;
 5) In the gdb window, type: bt.&lt;br /&gt;
 6) Save the backtrace results and send it to us.&lt;br /&gt;
 That will generate the backtrace which will help us see where the segmentation fault occurred.&lt;br /&gt;
&lt;br /&gt;
==GENERAL QUESTIONS==&lt;br /&gt;
===What is RAREMETALWORKER? How is it related to RAREMETAL?===&lt;br /&gt;
&lt;br /&gt;
A: [[Rare-Metal-Worker|&#039;&#039;&#039;RAREMETALWORKER&#039;&#039;&#039;]] is the program that generates summary statistics for individual studies to share. It generates both single variant association results and covariance matrices of score statistics together with QC statistics. It enables analysis of familial data, population data, unrelated individuals and samples with cryptic relatedness and population stratification. [[RareMETAL|&#039;&#039;&#039;RAREMETAL&#039;&#039;&#039;]] takes the summary statistics generated by RAREMETALWORKER to perform both single variant and gene-level association analysis.&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETALWORKER_SPECIAL_TOPICS&amp;diff=15007</id>
		<title>RAREMETALWORKER SPECIAL TOPICS</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETALWORKER_SPECIAL_TOPICS&amp;diff=15007"/>
		<updated>2018-03-16T21:50:02Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETALWORKER]]&lt;br /&gt;
This page describes how [[RAREMETALWORKER]] handles some special cased during analyses.&lt;br /&gt;
&lt;br /&gt;
==Useful Links==&lt;br /&gt;
&lt;br /&gt;
Here are some useful links to key pages:&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER_METHOD | &#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER_command_reference | &#039;&#039;&#039;RAREMETALWORKER command reference&#039;&#039;&#039;]]&lt;br /&gt;
* The [[Tutorial:_RAREMETAL| &#039;&#039;&#039;RAREMETALWORKER quick start tutorial&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_FAQ | &#039;&#039;&#039;FAQ&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Unrelated Individuals ==&lt;br /&gt;
&lt;br /&gt;
[[RAREMETALWORKER]] generates single variant association test statistics for a single study prior to meta-analysis. This page provides a brief description of the statistics that &lt;br /&gt;
RAREMETALWORKER calculates, together with key formulae.&lt;br /&gt;
&lt;br /&gt;
== Missing Data ==&lt;br /&gt;
&lt;br /&gt;
* Individuals with missing phenotypes will be excluded from analysis. &lt;br /&gt;
* If --makeResiduals is used for adjusting covariates, then individuals with missing covariates will also be excluded. &lt;br /&gt;
* Individuals that are not genotyped will also be excluded from analyses.&lt;br /&gt;
* Missing genotypes are imputed using mean genotype of a variant.&lt;br /&gt;
&lt;br /&gt;
== Analyzing Chromosome X==&lt;br /&gt;
&lt;br /&gt;
* To make sure RAREMETALWORKER analyze chromosome X correctly, &#039;&#039;&#039;male must be code as 1 and female must be coded as 2&#039;&#039;&#039; in [[RAREMETALWORKER#PED_and_DAT_Files | &#039;&#039;&#039;PED&#039;&#039;&#039;]] file. &lt;br /&gt;
* --xStart and --xEnd options described the start and end position of nonPAR region on chromosome X. The default values are 2699520 and 154931044, according to Human Genome build 19.&lt;br /&gt;
* When samples are analyzed as unrelated (no any kind of kinship is used for linear mixed model approach), no special actions needed for analyzing markers on chromosome X. &lt;br /&gt;
* If you want to use a linear mixed model approach to correct family structure, population structure, or cryptic relatedness, you should issue --vcX option in your command line. This approach will fit a separate linear mixed model using both autosomal kinship matrix and chromosomeX kinship matrix. This approach is believed to have larger power with type I error well controlled.&lt;br /&gt;
* On the other hand, if you want a fast association for chromosome X, another valid approach is to issue --vcX --separateX options. This will initiate fitting a separate linear mixed model using chromosomeX kinship only for analyzing markers on chromosomeX. This approach is expected to be faster than the above option, but with less power, although type I error is also expected to be under control.&lt;br /&gt;
* Male genotypes for variants in nonPAR region are coded to be 0 or 2. &lt;br /&gt;
* If a male is heterozygous in nonPAR region, then the genotype of that male sample is considered missing and will be imputed using mean genotype.&lt;br /&gt;
* If a male has genotype coded as ./x in nonPAR region, then the genotype of that male sample is considered missing and will be imputed using mean genotype.&lt;br /&gt;
* For details of methods analyzing chromosomeX, please refer to [[RAREMETALWORKER_method | &#039;&#039;&#039;method&#039;&#039;&#039;]].&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETALWORKER_METHOD&amp;diff=15006</id>
		<title>RAREMETALWORKER METHOD</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETALWORKER_METHOD&amp;diff=15006"/>
		<updated>2018-03-16T21:49:25Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETALWORKER]]&lt;br /&gt;
==Useful Links==&lt;br /&gt;
&lt;br /&gt;
Here are some useful links to key pages:&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER_command_reference | &#039;&#039;&#039;RAREMETALWORKER command reference&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER_SPECIAL_TOPICS | &#039;&#039;&#039;RAREMETALWORKER special topics&#039;&#039;&#039;]]&lt;br /&gt;
* The [[Tutorial:_RAREMETAL | &#039;&#039;&#039;RAREMETALWORKER quick start tutorial&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_method | &#039;&#039;&#039;RAREMETAL method&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_FAQ | &#039;&#039;&#039;FAQ&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Brief Introduction==&lt;br /&gt;
&lt;br /&gt;
[[RAREMETALWORKER]] generates single variant association test statistics for a single study prior to meta-analysis. This page provides a brief description of the statistics that &lt;br /&gt;
RAREMETALWORKER calculates, together with key formulae.&lt;br /&gt;
&lt;br /&gt;
== Key Statistics for Analysis of Single Study ==&lt;br /&gt;
&lt;br /&gt;
===NOTATIONS===&lt;br /&gt;
&lt;br /&gt;
We use the following notations to describe our methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{y}&amp;lt;/math&amp;gt; is the vector of observed quantitative trait&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{X}&amp;lt;/math&amp;gt; is the design matrix&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{G_i}&amp;lt;/math&amp;gt; is the genotype vector of the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \bar{\mathbf{G_i}}&amp;lt;/math&amp;gt; is the vector of average genotype of the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\boldsymbol{\beta_c}&amp;lt;/math&amp;gt; is the vector of covariate effects&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\beta_i&amp;lt;/math&amp;gt; is the scalar of fixed genetic effect of the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{g}&amp;lt;/math&amp;gt; is the random genetic effects&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\boldsymbol{\varepsilon}&amp;lt;/math&amp;gt; is the non-shared environmental effects&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \hat{\boldsymbol{\Omega}} &amp;lt;/math&amp;gt; is the estimated covariance matrix of &amp;lt;math&amp;gt;\mathbf{y}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{K}&amp;lt;/math&amp;gt; is the kinship matrix&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{K_X}&amp;lt;/math&amp;gt; is the kinship matrix of Chromosome X&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \sigma_g^2 &amp;lt;/math&amp;gt; is the genetic component &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; {{\sigma_g}_X}^2 &amp;lt;/math&amp;gt; is the genetic component for markers on chromosome X&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sigma_e^2 &amp;lt;/math&amp;gt; is the non-shared-environment component.&lt;br /&gt;
&lt;br /&gt;
===SINGLE VARIANT SCORE TEST===&lt;br /&gt;
&lt;br /&gt;
We used the following model for the trait:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{y}=\mathbf{X}\boldsymbol{\beta_c}+\beta_i(\mathbf{G_i}-\bar{\mathbf{G_i}})+\mathbf{g}+\boldsymbol{\varepsilon} &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Here,  the quantitive trait for an individual is a sum of covariate effects, additive genetic effect from the &amp;lt;math&amp;gt; i^{th} &amp;lt;/math&amp;gt; variant and the polygenic background effects together with non-shared environmental effect.&lt;br /&gt;
&lt;br /&gt;
In this model, &amp;lt;math&amp;gt;\beta_i&amp;lt;/math&amp;gt; is to measure the additive genetic effect of the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant. As usual, the score statistic for testing &amp;lt;math&amp;gt;H_0:\beta_i=0&amp;lt;/math&amp;gt; is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; U_i=(\mathbf{G_i}-\mathbf{\bar{G_i}} )^T \hat{\boldsymbol{\Omega}}^{-1}(\mathbf{y}-\mathbf{X}\boldsymbol{\beta}) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We further derive the variance-covariance matrix of these statistics as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathbf{V}=(\mathbf{G}-\bar{\mathbf{G}})^T (\hat{\boldsymbol{\Omega}}^{-1}-\hat{\boldsymbol{\Omega}}^{-1} \mathbf{X}(\mathbf{X^T}\hat{\boldsymbol{\Omega}}^{-1}\mathbf{X})^{-1} \mathbf{X^T} \hat{\boldsymbol{\Omega}}^{-1})(\mathbf{G}-\bar{\mathbf{G}}) &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The score test statistic, &amp;lt;math&amp;gt;T_i=(U_i^2)/V_{ii}&amp;lt;/math&amp;gt;,  is asymptotically distributed as chi-squared with one degree of freedom. The score test p-value is reported in RAREMETALWORKER.&lt;br /&gt;
&lt;br /&gt;
===SUMMARY STATISTICS AND COVARIANCE MATRICES===&lt;br /&gt;
&lt;br /&gt;
RAREMETALWORKER automatically stores the score statistics for each marker ( &amp;lt;math&amp;gt; U_i &amp;lt;/math&amp;gt;) together with quality information of that marker, including HWE p-value, call rate, and allele counts. &lt;br /&gt;
&lt;br /&gt;
RAREMETALWORKER also stores the covariance matrices (&amp;lt;math&amp;gt; \mathbf{V} &amp;lt;/math&amp;gt;) of the score statistics of markers within a window, size of which can be specified through command line.&lt;br /&gt;
&lt;br /&gt;
=== MODELING RELATEDNESS ===&lt;br /&gt;
We use a variance component model to handle familial relationships. We estimate the variance components under the null model: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{y}=\mathbf{X}\boldsymbol{\beta} +\mathbf{g}+ \boldsymbol{\varepsilon}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We assume that genetic effects are normally distributed, with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\mathbf{K}\sigma_g^2&amp;lt;/math&amp;gt; where the matrix &amp;lt;math&amp;gt;\mathbf{K}&amp;lt;/math&amp;gt; summarizes kinship coefficients between sampled individuals and  &amp;lt;math&amp;gt;\sigma_g^2&amp;lt;/math&amp;gt; is a positive scalar describing the genetic contribution to the overall variance. We assume that non-shared environmental effects are normally distributed with mean &amp;lt;math&amp;gt;\mathbf{0}&amp;lt;/math&amp;gt; and covariance &amp;lt;math&amp;gt;\mathbf{I}\sigma_e^2&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;\mathbf{I}&amp;lt;/math&amp;gt; is the identity matrix.&lt;br /&gt;
&lt;br /&gt;
To estimate &amp;lt;math&amp;gt;\mathbf{K}&amp;lt;/math&amp;gt;, we either use known pedigree structure to define &amp;lt;math&amp;gt;\mathbf{K}&amp;lt;/math&amp;gt; or else use the empirical estimator &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{K}=\frac{1}{l}\sum_{i=1}^l{(G_i-2f_i\mathbf{1})(G_i-2f_i\mathbf{1})\over 4f_i(1-f_i)} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; is the count of variants, &amp;lt;math&amp;gt;G_i&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt; are the genotype vector and estimated allele frequency for the &amp;lt;math&amp;gt;i^{th}&amp;lt;/math&amp;gt; variant, respectively. Each element in &amp;lt;math&amp;gt;G_i&amp;lt;/math&amp;gt; encodes the minor allele count for one individual. Model parameters &amp;lt;math&amp;gt;\hat{\boldsymbol{\beta}}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\hat{\sigma_g^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\sigma_e^2}&amp;lt;/math&amp;gt;, are estimated using maximum likelihood and the efficient algorithm described in [http://www.nature.com/nmeth/journal/v8/n10/full/nmeth.1681.html Lippert et. al]. For convenience, let the estimated covariance matrix of &amp;lt;math&amp;gt;\mathbf{y}&amp;lt;/math&amp;gt; be &amp;lt;math&amp;gt;\hat{\boldsymbol{\Omega}}=\hat{\sigma_g^2}\mathbf{K}+\hat{\sigma_e^2}\mathbf{I}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===ANALYZING MARKERS ON CHROMOSOME X===&lt;br /&gt;
&lt;br /&gt;
To analyze markers on chromosome X, we fit an extra variance components &amp;lt;math&amp;gt; {{\sigma_g}_X}^2 &amp;lt;/math&amp;gt;, to model the variance explained by chromosome X. A kinship for chromosome X, &amp;lt;math&amp;gt; \boldsymbol{K_X} &amp;lt;/math&amp;gt;, can be estimated either from a pedigree, or from genotypes of marker from chromosome X. Then the estimated covariance matrix can be written as &amp;lt;math&amp;gt;\hat{\boldsymbol{\Omega}}=\hat{\sigma_g^2}\mathbf{K}+\hat{{\sigma_g}_X^2}\mathbf{K_X}+\hat{\sigma_e^2}\mathbf{I}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETALWORKER_command_reference&amp;diff=15005</id>
		<title>RAREMETALWORKER command reference</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETALWORKER_command_reference&amp;diff=15005"/>
		<updated>2018-03-16T21:47:23Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETALWORKER]]&lt;br /&gt;
==Useful Links==&lt;br /&gt;
&lt;br /&gt;
Here are some useful links to key pages:&lt;br /&gt;
* The [[RAREMETALWORKER | &#039;&#039;&#039;RAREMETALWORKER documentation&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER_METHOD | &#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER_SPECIAL_TOPICS | &#039;&#039;&#039;RAREMETALWORKER special topics&#039;&#039;&#039;]]&lt;br /&gt;
* The [[Tutorial:_RAREMETAL | &#039;&#039;&#039;RAREMETALWORKER quick start tutorial&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETAL_FAQ | &#039;&#039;&#039;FAQ&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
       Input Files : --ped [], --dat [], --vcf [], --dosage, --flagDosage [DS],&lt;br /&gt;
                     --noeof&lt;br /&gt;
      Output Files : --prefix [], --LDwindow [1000000], --zip, --thin,&lt;br /&gt;
                     --labelHits&lt;br /&gt;
        VC Options : --vcX, --separateX&lt;br /&gt;
     Trait Options : --makeResiduals, --inverseNormal, --traitName []&lt;br /&gt;
     Model Options : --recessive, --dominant&lt;br /&gt;
    Kinship Source : --kinPedigree, --kinGeno, --kinFile [], --kinxFile [],&lt;br /&gt;
                     --kinSave&lt;br /&gt;
   Kinship Options : --kinMaf [0.05], --kinMiss [0.05]&lt;br /&gt;
      Chromosome X : --xLabel [X], --xStart [2699520], --xEnd [154931044],&lt;br /&gt;
                     --maleLabel [1], --femaleLabel [2]&lt;br /&gt;
            others : --cpu [1], --kinOnly,&lt;br /&gt;
                     --geneMap [../data/refFlat_hg19.txt], --mergedVCFID&lt;br /&gt;
         PhoneHome : --noPhoneHome, --phoneHomeThinning [100]&lt;br /&gt;
&lt;br /&gt;
==Input Files==&lt;br /&gt;
===--ped===&lt;br /&gt;
*--ped takes a string of your [[RAREMETALWORKER#PED_and_DAT_Files | &#039;&#039;&#039;MERLIN format PED&#039;&#039;&#039;]] file name.&lt;br /&gt;
===--dat===&lt;br /&gt;
*--ped takes a string of your [[RAREMETALWORKER#PED_and_DAT_Files | &#039;&#039;&#039;MERLIN format DAT&#039;&#039;&#039;]] file name.&lt;br /&gt;
===--vcf===&lt;br /&gt;
*--vcf takes a string of your [[RAREMETALWORKER#VCF_File | &#039;&#039;&#039;VCF&#039;&#039;&#039;]] file name.&lt;br /&gt;
===--dosage===&lt;br /&gt;
* When --dosage is issued in command line, RAREMETALWORKER reads dosage from your [[RAREMETALWORKER#VCF_File | &#039;&#039;&#039;VCF&#039;&#039;&#039;]] file.&lt;br /&gt;
* --dosage must be used with --vcf option.&lt;br /&gt;
* Description of dosage format in a VCF file can be found in [[RAREMETALWORKER#DOSAGE | &#039;&#039;&#039;dosage&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
===--flagDosage===&lt;br /&gt;
* This option let user customize the name of field in VCF file that labels dosage data.&lt;br /&gt;
* The default is &amp;quot;DS&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===--noeof===&lt;br /&gt;
* If you VCF file does not have the BGZF EOF markers, you should use --noeof option to let RAREMETALWORKER skip checking the BGZF EOF markers at the end of the file. &lt;br /&gt;
* Please see [[RAREMETAL_FAQ#error:_BGZF_EOF_marker_is_missing_in_xxx.vcf.gz | &#039;&#039;&#039;BGZF EOF&#039;&#039;&#039;]] for more details.&lt;br /&gt;
&lt;br /&gt;
==Output Files==&lt;br /&gt;
&lt;br /&gt;
===--prefix===&lt;br /&gt;
* --prefix takes a value of a string as the prefix of your output files. &lt;br /&gt;
* For a full list of output files generated by RAREMETALWORKER, please refer to [[RAREMETALWORKER#OUTPUT_FILE_FORMATS | &#039;&#039;&#039;output&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
===--LDwindow===&lt;br /&gt;
*--LDwindow takes a integer value as the size of the moving window. &lt;br /&gt;
* RAREMETALWORKER generates LD matrices between a current marker that it is working on and all markers within this window.&lt;br /&gt;
* The default size is  1 million bases.&lt;br /&gt;
* For more information about the LD matrix, please refer to [[RAREMETALWORKER#LD_Matrices | &#039;&#039;&#039;LD matrix&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
===--zip===&lt;br /&gt;
* By issuing --zip, RAREMETALWORKER compress the [[ RAREMETALWORKER#Summary_Statistics| &#039;&#039;&#039;summary statistics&#039;&#039;&#039;]] and [[RAREMETALWORKER#LD_Matrices | &#039;&#039;&#039;LD matrices&#039;&#039;&#039;]] generated automatically, using gzip. And the output zip files will be indexed using tabix.&lt;br /&gt;
&lt;br /&gt;
=== --thin ===&lt;br /&gt;
* If --thin is issued, then RAREMETALWORKER generates [[RAREMETALWORKER#Plots | &#039;&#039;&#039;QQ plots and Manhattan plots&#039;&#039;&#039;]] with less resolution (points), to make the pdf files smaller in size.&lt;br /&gt;
&lt;br /&gt;
===--labelHits===&lt;br /&gt;
* If --thin is issued, then RAREMETALWORKER automatically label the loci that are above a threshold.&lt;br /&gt;
* The threshold is calculated using Bonferroni correction (&#039;&#039;0.05/N, where N is the total number of polymorphic markers&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==VC Options==&lt;br /&gt;
&lt;br /&gt;
===--vcX===&lt;br /&gt;
* --vcX option has to be used with --kinPedigree (when pedigree kinship is used), or --kinGeno (when genomic relationship matrix is estimated), or --kinFile ( when GRM is read from a file). &lt;br /&gt;
* Using --vcX option let RAREMETALWORKER fit a linear mixed model to analyze chromosome X, using both autosomal kinship and chromosome X kinship. &lt;br /&gt;
&lt;br /&gt;
===--separateX===&lt;br /&gt;
* --separateX option must be used with --vcX option. &lt;br /&gt;
* Using --separateX option requests RAREMETALWORKER to fit a linear mixed model using only chromosome X kinship for analyses of chromosome X markers. &lt;br /&gt;
&lt;br /&gt;
Please refer to [[RAREMETALWORKER_method#ANALYZING_MARKERS_ON_CHROMOSOME_X| &#039;&#039;&#039;method&#039;&#039;&#039;]] and [[RAREMETALWORKER_SPECIAL_TOPICS#Analyzing_Chromosome_X | &#039;&#039;&#039;technical details&#039;&#039;&#039;]] for more explanation.&lt;br /&gt;
&lt;br /&gt;
==Trait Options==&lt;br /&gt;
===--makeResiduals===&lt;br /&gt;
* If --makeResiduals is used, then covariates are adjusted before fitting linear models using residuals.&lt;br /&gt;
&lt;br /&gt;
===--inverseNormal===&lt;br /&gt;
* If --inverseNormal is used, but not with --makeResiduals, then trait values are inverse normalized before fitting linear models.&lt;br /&gt;
* If --inverseNormal and --makeResiduals are used together, then covariates are adjusted and inverse normalized residuals are used to fit linear models. &lt;br /&gt;
&lt;br /&gt;
===--traitName===&lt;br /&gt;
* --traitName takes a string of the trait name that you want to analyze. &lt;br /&gt;
* If this option is not used, then all traits included in [[RAREMETALWORKER#PED_and_DAT_Files | &#039;&#039;&#039;PED/DAT&#039;&#039;&#039;]] files are analyzed.&lt;br /&gt;
&lt;br /&gt;
==Model Options==&lt;br /&gt;
===--recessive===&lt;br /&gt;
* If --recessive is used, then RAREMETALWORKER generates recessive results in addition to the additive results. &lt;br /&gt;
* The set of association results generated by default can be found in [[RAREMETALWORKER#OUTPUT_FILE_NAMES | &#039;&#039;&#039;recessive output&#039;&#039;&#039;]].&lt;br /&gt;
* A separate pdf file with QQ and Manhattan plots based on recessive results is generated with name &#039;&#039;yourprefix.traitname.recessive.plots.pdf&#039;&#039;.&lt;br /&gt;
===--dominant===&lt;br /&gt;
* If --dominant is used, then RAREMETALWORKER generates recessive results in addition to the additive results. &lt;br /&gt;
* The set of association results generated by default can be found in [[RAREMETALWORKER#OUTPUT_FILE_NAMES | &#039;&#039;&#039;dominant output&#039;&#039;&#039;]].&lt;br /&gt;
* A separate pdf file with QQ and Manhattan plots based on recessive results is generated with name &#039;&#039;yourprefix.traitname.dominant.plots.pdf&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Kinship Source==&lt;br /&gt;
===--kinPedigree===&lt;br /&gt;
* If --kinPedigree is used, pedigree structure coded in [[RAREMETALWORKER#PED_and_DAT_Files | &#039;&#039;&#039;PED&#039;&#039;&#039;]] file is used to generate a kinship matrix for later fitting linear mixed model before associations. &lt;br /&gt;
 &lt;br /&gt;
===--kinGeno===&lt;br /&gt;
* If --kinPedigree is used, then a genomic relationship matrix is estimated from genotype. &lt;br /&gt;
* If --vcX option is used, then a separate genomic relationship matrix for chromosome X is also estimated. &lt;br /&gt;
* For details about how to estimate GRM, please refer to [[RAREMETALWORKER_method#MODELING_RELATEDNESS | &#039;&#039;methods&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
===--kinFile===&lt;br /&gt;
* --kinFile takes a string of the file name of previously saved GRM with format described in [[RAREMETALWORKER#Genomic_Relationship_Matrix_.28GRM.29 | &#039;&#039;&#039;format&#039;&#039;&#039;]].&lt;br /&gt;
* This option reads GRM from the file and then extract the correct GRM based on samples to be analyzed according to your specifications, such as traits to be analyzed, missing covariates and genotypes (please refer to [[RAREMETALWORKER_SPECIAL_TOPICS#Missing_Data | &#039;&#039;&#039;missing data&#039;&#039;&#039;]] for more details).&lt;br /&gt;
* --kinFile can not be used together with --kinGeno. &lt;br /&gt;
&lt;br /&gt;
===--kinxFile===&lt;br /&gt;
* --kinxFile must be used with --kinFile and --vcX. &lt;br /&gt;
* --kinxFile takes a string of file name of the previously saved GRM for chromosome X. &lt;br /&gt;
* If --kinxFile is not used, but --kinFile your.autosomal.Empirical.Kinship.gz  --vcX are issued in a command line, then RAREMETALWORKER will look for a kinship X file named your.autosomal.Empirical.KinshipX.gz. If this file is still not found, a FATAL ERROR will occur.&lt;br /&gt;
===--kinSave===&lt;br /&gt;
* This option must be used with --kinGeno.&lt;br /&gt;
* Issuing --kinSave will request [[RAREMETALWORKER]] to store the estimated GMR in a file named yourprefix.Empirical.Kinship.gz.&lt;br /&gt;
* If --vcX is also issued in the command line, then a separate file named yourprefix.Empirical.KinshipX.gz will be generated where the GRM of chromosome X is saved.&lt;br /&gt;
*For formats of the saved genomic relationship matrix, please refer to [[RAREMETALWORKER#Genomic_Relationship_Matrix_.28GRM.29 | &#039;&#039;&#039;format&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
==Kinship Options==&lt;br /&gt;
===--kinMaf=== &lt;br /&gt;
* --kinMaf takes a value that specifies the MAF cutoff for variants to be used to estimate GRMs.&lt;br /&gt;
* The default is 0.05, which means variants with MAF&amp;lt;0.05 are not used for estimating GRMs.&lt;br /&gt;
===--kinMiss===&lt;br /&gt;
* --kinMiss takes a value that specifies the missing genotype cutoff for variants to be used to estimate GRMs.&lt;br /&gt;
* The default is 0.05, which means variants with genotype call rate &amp;lt;0.95 are not used for estimating GRMs.&lt;br /&gt;
&lt;br /&gt;
==Chromosome X==&lt;br /&gt;
===--xLabel=== &lt;br /&gt;
* --xLabel takes a string that used as label for chromosome X in your file. &lt;br /&gt;
* The default is &amp;quot;X&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===--xStart=== &lt;br /&gt;
* --xStart takes an integer that described the start position of nonPAR region on chromosome X.&lt;br /&gt;
* The default is 2699520 based on Human Genome build 19.&lt;br /&gt;
&lt;br /&gt;
===--xEnd===&lt;br /&gt;
* --xStart takes an integer that described the end position of nonPAR region on chromosome X.&lt;br /&gt;
* The default is 154931044 based on Human Genome build 19.&lt;br /&gt;
&lt;br /&gt;
==Others==&lt;br /&gt;
===--cpu[1]=== &lt;br /&gt;
*--cpu takes an integer that specifies the number of cpus to use for estimating kinship matrix from genotypes.&lt;br /&gt;
&lt;br /&gt;
===--kinOnly===&lt;br /&gt;
*--kinOnly allows users to estimate kinship matrix without any association analysis of any traits included in the data set.&lt;br /&gt;
*To also estimate chromosome X kinship, --vcX option should be added in command line.&lt;br /&gt;
&lt;br /&gt;
===--geneMap===&lt;br /&gt;
* --geneMap takes a string describing the path to find mapping file for manhattan plot annotation. &lt;br /&gt;
* The default is human genome build 19, saved in raremetal/data/refFlat_hg19.txt.&lt;br /&gt;
&lt;br /&gt;
===--mergedVCFID===&lt;br /&gt;
* This options allows RAREMETALWORKER to recognize VCF samples IDs in &amp;quot;FAMID_PID&amp;quot; format. &lt;br /&gt;
* The default value is OFF, which means VCF sample IDs are consistent with PID field in PED file.&lt;br /&gt;
&lt;br /&gt;
==PhoneHome==&lt;br /&gt;
* See [[PhoneHome]] for more information on how PhoneHome works and what it does.&lt;br /&gt;
===--noPhoneHome===&lt;br /&gt;
* --noPhoneHome disables PhoneHome. &lt;br /&gt;
* PhoneHome is enabled by default based on the thinning parameter.&lt;br /&gt;
===--phoneHomeThinning===&lt;br /&gt;
* --phoneHomeThinning (0-100) adjusts the frequency of PhoneHome.&lt;br /&gt;
* The default is 100, running 100% of the time.&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETALWORKER&amp;diff=15004</id>
		<title>RAREMETALWORKER</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETALWORKER&amp;diff=15004"/>
		<updated>2018-03-16T21:46:47Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETALWORKER]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RAREMETALWORKER&#039;&#039;&#039; is a tool for single variant analysis, generating summary statistics for gene level meta analyses in [http://genome.sph.umich.edu/wiki/RAREMETAL &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039;].&lt;br /&gt;
&lt;br /&gt;
If you feel this program is useful, please tell us your name and contact in this [https://docs.google.com/spreadsheet/ccc?key=0AuYjznTeEDYudFpqUk9sQ2pkN3d3endjYldqMEp6ZUE&amp;amp;usp=sharing &#039;&#039;&#039;registration&#039;&#039;&#039;].&lt;br /&gt;
&lt;br /&gt;
If you have any questions, please contact Sai Chen (saichen at umich dot edu) or [[Goncalo_Abecasis | &#039;&#039;&#039;Goncalo Abecasis&#039;&#039;&#039;]] (goncalo at umich dot edu).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
There are several pages in this Wiki that may be useful to RAREMETALWORKER users. Here are links to key pages:&lt;br /&gt;
* The [[RAREMETALWORKER_command_reference | &#039;&#039;&#039;RAREMETALWORKER command reference&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER_method | &#039;&#039;&#039;RAREMETALWORKER method&#039;&#039;&#039;]]&lt;br /&gt;
* The [[Tutorial:_RAREMETAL| &#039;&#039;&#039;RAREMETALWORKER quick start tutorial&#039;&#039;&#039;]]&lt;br /&gt;
* The [[RAREMETALWORKER_SPECIAL_TOPICS | &#039;&#039;&#039;RAREMETALWORKER special topics&#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;
== Key Features ==&lt;br /&gt;
RAREMETALWORKER has the following features:&lt;br /&gt;
* Takes genotypes from either PED file or VCF file.&lt;br /&gt;
* Generates summary statistics for both related and unrelated individuals.&lt;br /&gt;
* Generates linkage disequilibrium matrices summarizing covariance between single marker statistics using an adjustable sliding window. &lt;br /&gt;
* Optionally handles related individuals using a kinship matrix derived from either pedigree or genotype data.&lt;br /&gt;
* Has the option of fitting shared environment.&lt;br /&gt;
* Can handle variants on Chromosome X.&lt;br /&gt;
* Calculates QC statistics such as hwe pvalue, call rate and genomic control.&lt;br /&gt;
* Automatically generate QQ and manhattan plots.&lt;br /&gt;
&lt;br /&gt;
== Software Download and Installation ==&lt;br /&gt;
&lt;br /&gt;
=== DOWNLOAD ===&lt;br /&gt;
&lt;br /&gt;
We have tested compilation 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 building and compilation, please go to [[RAREMETAL_FAQ | &#039;&#039;&#039;FAQ&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
=== How to Execute ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* To execute the program, go to /RareMetalWorker_0.4.8/RareMetalWorker/bin, issue ./raremetalworker.&lt;br /&gt;
* For example command lines, please refer to [[RAREMETALWORKER#Example_Command_Lines | &#039;&#039;&#039;RAREMETALWORKER EXAMPLES&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
==Method==&lt;br /&gt;
&lt;br /&gt;
Method description and key formulae can be found in [http://genome.sph.umich.edu/wiki/RAREMETALWORKER_method &#039;&#039;&#039;RAREMETALWORKER METHOD&#039;&#039;&#039;].&lt;br /&gt;
&lt;br /&gt;
==For Binary Traits==&lt;br /&gt;
&lt;br /&gt;
RAREMETALWORKER currently treat all traits as quantitative. If your trait is binary, the odds ratio can be approximated from effect size estimates generated by RAREMETALWORKER. The installation/source package has a script included to augment the odds ratio estimates to the last column of the RAREMETALWORKER output. For details, please refer to [[RAREMETAL_DOWNLOAD_%26_BUILD#Calculating_Odds_Ratio_from_RAREMETALWORKER_output | &#039;&#039;&#039;Calculate Odds Ratio from RAREMETALWORKER output&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
== Software Specifications ==&lt;br /&gt;
&lt;br /&gt;
===INTERFACE===&lt;br /&gt;
&lt;br /&gt;
RAREMETALWORKER is a command line tool. Once you execute, you will see a full list of options printed on the screen. &lt;br /&gt;
&lt;br /&gt;
For detailed description of command options, please go to [[RAREMETALWORKER_command_reference | &#039;&#039;&#039;command reference&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
 Options:&lt;br /&gt;
       Input Files : --ped [], --dat [], --vcf [], --dosage, --noeof&lt;br /&gt;
      Output Files : --prefix [], --LDwindow [1000000], --zip, --thin,&lt;br /&gt;
                     --labelHits&lt;br /&gt;
        VC Options : --vcX, --separateX&lt;br /&gt;
     Trait Options : --makeResiduals, --inverseNormal, --traitName []&lt;br /&gt;
     Model Options : --recessive, --dominant&lt;br /&gt;
    Kinship Source : --kinPedigree, --kinGeno, --kinFile [], --kinxFile [],&lt;br /&gt;
                     --kinSave&lt;br /&gt;
   Kinship Options : --kinMaf [0.05], --kinMiss [0.05]&lt;br /&gt;
      Chromosome X : --xLabel [X], --xStart [2699520], --xEnd [154931044],&lt;br /&gt;
                     --maleLabel [1], --femaleLabel [2]&lt;br /&gt;
            others : --cpu [1], --kinOnly,&lt;br /&gt;
                     --geneMap [../data/refFlat_hg19.txt]&lt;br /&gt;
         PhoneHome : --noPhoneHome, --phoneHomeThinning [100]&lt;br /&gt;
&lt;br /&gt;
===INPUT FILE FORMAT===&lt;br /&gt;
&lt;br /&gt;
RMW needs the following files as input: PED and DAT file in Merlin format, &#039;&#039;&#039;AND/OR&#039;&#039;&#039; a VCF file. When genotypes are stored in PED and DAT file, the VCF file is not needed. However, even if genotypes are saved in a VCF file, PED and DAT files are still needed for carrying covariate and trait information. &lt;br /&gt;
&lt;br /&gt;
==== PED and DAT Files ====&lt;br /&gt;
* When PED file has genotypes saved, there is no need for a VCF file as input.&lt;br /&gt;
* RMW takes PED/DAT file in Merlin format. Please refer to [http://www.sph.umich.edu/csg/abecasis/merlin/tour/input_files.html PED/DAT format description] for details.&lt;br /&gt;
* PED file requires &amp;quot;dummy&amp;quot; parents to be included in the pedigree file. To check the integrity of your PED/DAT file, please use [http://www.sph.umich.edu/csg/abecasis/PedStats &#039;&#039;&#039;pedstats&#039;&#039;&#039;]. To add dummy parents into the pedigree, please use the [[Media:Script.tgz | &#039;&#039;&#039;perl script&#039;&#039;&#039;]].&lt;br /&gt;
* An example PED file is in the following:&lt;br /&gt;
     1 1 0 0 1 1.5 1 23 A A A A A A A A A A&lt;br /&gt;
     2 1 0 0 1 1.0 1 34 A C A C A C A C A C&lt;br /&gt;
     3 1 0 0 2 0.4 1 43 A A A A A A A A A A&lt;br /&gt;
     4 1 0 0 2 0.9 1 13 A C A C A C A C A C&lt;br /&gt;
* The matching DAT file is in the following:&lt;br /&gt;
  T YourTraitName&lt;br /&gt;
  C SEX&lt;br /&gt;
  C AGE&lt;br /&gt;
  M 1:123456&lt;br /&gt;
  M 1:234567&lt;br /&gt;
  M 2:111111&lt;br /&gt;
  M 2:222222&lt;br /&gt;
  M X:12345&lt;br /&gt;
* DAT file must have variant names in the following format &amp;quot;M chr:pos&amp;quot;. &lt;br /&gt;
* Orders of labels in DAT file have to match the order of fields in PED file. &lt;br /&gt;
* &#039;&#039;&#039;Markers in PED and DAT file must be sorted by chromosome and position.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Covariate and trait values are saved in PED file. Covariate and trait descriptions are saved in DAT file.&lt;br /&gt;
&lt;br /&gt;
==== VCF File ====&lt;br /&gt;
=====GENOTYPES=====&lt;br /&gt;
* Another option is to use VCF as input. Please refer to the following link for VCF file specification: [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-41 1000 genome wiki VCF specs]&lt;br /&gt;
* VCF file should be compressed by bgzip and indexed by tabix, using the following command:&lt;br /&gt;
  bgzip input.vcf     ## this command will produce input.vcf.gz&lt;br /&gt;
  tabix -p vcf -f input.vcf.gz  ## this command will produce input.vcf.gz.tbi&lt;br /&gt;
* Even with the presence of VCF file, PED/DAT files are still needed for covariates and phenotypes.&lt;br /&gt;
* Are you using PLINK file formats? Converting to VCF is easy. Use WDIST (very similar to PLINK) to make the conversion. Visit this page [https://www.cog-genomics.org/wdist/ | WDIST] to find documentation and downloads for WDIST.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* When genotypes are saved in a VCF file, PED and DAT files are used for specifying pedigree structure, covariate and trait information. An example command line might look like this:&lt;br /&gt;
  --ped input.ped --dat input.dat --vcf input.vcf.gz&lt;br /&gt;
* When genotypes are saved in the PED file, the VCF file is not needed. An example command line might look like this:&lt;br /&gt;
  --ped input.ped --dat input.dat&lt;br /&gt;
&lt;br /&gt;
=====DOSAGE=====&lt;br /&gt;
* If you want to analyze dosage data from VCF file, the following option has to be specified: --dosage. A key word &amp;quot;DS&amp;quot; in FORMAT field in VCF file has to included accordingly. An example is in the following:&lt;br /&gt;
&lt;br /&gt;
  #CHROM	POS	ID	REF	ALT	QUAL	FILTER	INFO	FORMAT	IDx	ID1	ID2	ID3&lt;br /&gt;
  22	16050408	37239779	T	C	.	PASS	AC=2;AN=496	GT:DS:GP	./.:.:0,0,0	./.:.:0,0,0	./.:.:0,0,0	&lt;br /&gt;
  22	16050933	37239784	G	A	.	PASS	AC=141;AN=904	GT:DS:GP	0/0:0.0:1,0,0	0/0:0.0:1,0,0	0/0:0.0:1,0,0&lt;br /&gt;
&lt;br /&gt;
* --noeof allows using VCF file without BGZF EOF markers. This is a very rare option to use. If your run is terminated with error message: &amp;quot;&amp;quot;, then you might want to check out this option.&lt;br /&gt;
&lt;br /&gt;
=== OUTPUT===&lt;br /&gt;
&lt;br /&gt;
====OUTPUT FILE NAMES====&lt;br /&gt;
&lt;br /&gt;
* Three files are generated automatically by default:&lt;br /&gt;
  prefix.traitName.singlevar.score.txt (single variant summary statistics and QC statistics)&lt;br /&gt;
  prefix.traitName.singlevar.cov.txt (covariance matrices of single variant score statistics)&lt;br /&gt;
  prefix.singlevar.log (log file)&lt;br /&gt;
&lt;br /&gt;
* If --zip option is used, then the following will be generated automatically:&lt;br /&gt;
  prefix.traitName.singlevar.score.txt.gz&lt;br /&gt;
  prefix.traitName.singlevar.score.txt.gz.tbi&lt;br /&gt;
  prefix.traitName.singlevar.cov.txt.gz&lt;br /&gt;
  prefix.traitName.singlevar.cov.txt.gz.tbi&lt;br /&gt;
  prefix.singlevar.log&lt;br /&gt;
&lt;br /&gt;
* If --recessive and/or --dominant options are used, then the following files are also generated &#039;&#039;&#039;in addition&#039;&#039;&#039; to the above files&lt;br /&gt;
  prefix.traitName.recessive.singlevar.score.txt.gz&lt;br /&gt;
  prefix.traitName.recessive.singlevar.cov.txt.gz&lt;br /&gt;
  prefix.traitName.dominant.singlevar.score.txt.gz&lt;br /&gt;
  prefix.traitName.dominant.singlevar.cov.txt.gz&lt;br /&gt;
&lt;br /&gt;
* If --kinGeno --kinSave is used, then the genomic relationship matrix is stored in&lt;br /&gt;
  prefix.Empirical.Kinship.gz&lt;br /&gt;
&lt;br /&gt;
* If --vcX option is used, then the genomic relationship matrix from chromosome X is stored in&lt;br /&gt;
  prefix.Empirical.KinshipX.gz&lt;br /&gt;
&lt;br /&gt;
====OUTPUT FILE FORMATS====&lt;br /&gt;
&lt;br /&gt;
=====Summary Statistics=====&lt;br /&gt;
* In the file with summary statistics named prefix.traitName.singlevar.score.txt contains summary statistics that are needed by Rare-Metal. An example is shown in below:&lt;br /&gt;
&lt;br /&gt;
 LDL mean= -0.00, variance=  1.00, heritability= 34.30 &lt;br /&gt;
 CHR       POS REF_ALLELE ALT_ALLELE  INFORMATIVE_N  FOUNDER_AF    ALL_AF  INFORMATIVE_AC  HWE_PVALUE      STAT  ALT_ALLELE_EFFSIZE        PVALUE&lt;br /&gt;
  10  45410002          G          A           6103    0.034159  0.034159             410    0.165893  126.2050            0.309798  4.030740e-10&lt;br /&gt;
  19  45412079          G          A           6103    0.036812  0.036812             434    0.714645 -265.8400           -0.587356  7.878510e-36&lt;br /&gt;
  19  45414451          G          A           6103    0.444989  0.444989            5312    0.075927  -26.1212           -0.008371  6.400580e-01&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* pvalues from the above output are from the family-based single variant score test.&lt;br /&gt;
&lt;br /&gt;
=====LD Matrices=====&lt;br /&gt;
* prefix.traitName.singlevar.cov.txt contains the LD matrix among a variant and the adjacent markers within a prefixed-sized window. The default window size is 1MB. It has the following format:&lt;br /&gt;
  &lt;br /&gt;
 CHR     POS                            VAR_POS_IN_WINDOW                                                                  LD_MATRIX&lt;br /&gt;
   1  762320   762320,865628,865665,878744,879381,1560000  0.0359084,-0.000242112,-0.00125797,-0.000993422,-0.000344509,-0.00017077,&lt;br /&gt;
   1  865628  865628,865665,878744,879381,1560000,1864659           0.419804,-0.0103663,-0.00635265,0.0594056,0.0534505,-0.00462183,&lt;br /&gt;
   1  878744        878744,879381,1560000,1864659,1877659             0.000404537,-0.000235215,-1.4455e-05,-8.69137e-06,-3.1027e-05,&lt;br /&gt;
&lt;br /&gt;
=====Genomic Relationship Matrix (GRM)=====&lt;br /&gt;
&lt;br /&gt;
* Once --kinGeno --kinSave --prefix options are requested, you would expect to see a GRM generated (compressed by gzip) with name yourprefix.Empirical.Kinship.gz. If --prefix option is not used, then the file name is Empirical.Kinship.gz. &lt;br /&gt;
* If --vcX --kinGeno --kinSave --prefix options are requested, besides the autosomal GRM, you would also expect to see a separate GRM for chromosome X saved (compressed by gzip also) under the name yourprefix.Empirical.KinshipX.gz. &lt;br /&gt;
* The GRMs are generated based on all genotyped individuals included in the PED file; samples with missing phenotype or missing covariates are not excluded from GRMs. This feature makes GRMs reusable if you have multiple traits to analyze in separate runs. You can simplely use --kinFile option (--kinxFile option if you have X chromosome GRM together with --vcX option issued) to reuse the pre-saved GRMs.&lt;br /&gt;
* The format for both autosomal and chromosome X GRMs are the same. The first row has all sample IDs (sample size=N) listed. The rest of the file is a symmetric matrix with dimention &#039;&#039;NxN&#039;&#039;, and element &#039;&#039;ij&#039;&#039; of this matrix represents the kinship 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; sample whose ID can be found from the first row.&lt;br /&gt;
* For details about GRM calculation, please refer to [[RAREMETALWORKER_method | &#039;&#039;&#039;method&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
=====Log File=====&lt;br /&gt;
* RMW automatically generates a log file named &amp;quot;yourprefix.singlevar.log&amp;quot;. &lt;br /&gt;
* The first part of the log file has options used for your analysis saved.&lt;br /&gt;
&lt;br /&gt;
 The following parameters are in effect:&lt;br /&gt;
 &lt;br /&gt;
 Input Files:&lt;br /&gt;
 ============================&lt;br /&gt;
 --ped [pheno.ped]&lt;br /&gt;
 --dat [pheno.dat] &lt;br /&gt;
 --vcf [allvars.vcf.gz]&lt;br /&gt;
 --dosage [false]&lt;br /&gt;
 --noeof [false]&lt;br /&gt;
 &lt;br /&gt;
 Output Files:&lt;br /&gt;
 ============================&lt;br /&gt;
 --prefix [rmw.test]&lt;br /&gt;
 --LDwindow [1000000]&lt;br /&gt;
 --zip [false]&lt;br /&gt;
 --thin [false]&lt;br /&gt;
 --labelHits [false]&lt;br /&gt;
 &lt;br /&gt;
 VC Options:&lt;br /&gt;
 ============================&lt;br /&gt;
 --vcX [true]&lt;br /&gt;
 --separateX [true]&lt;br /&gt;
 &lt;br /&gt;
 Trait Options:&lt;br /&gt;
 ============================&lt;br /&gt;
 --makeResiduals [false]&lt;br /&gt;
 --inverseNormal [false]&lt;br /&gt;
 --traitName []&lt;br /&gt;
 &lt;br /&gt;
 Model Options:&lt;br /&gt;
 ============================&lt;br /&gt;
 --recessive [false]&lt;br /&gt;
 --dominant [false]&lt;br /&gt;
 &lt;br /&gt;
 Kinship Source:&lt;br /&gt;
 ============================&lt;br /&gt;
 --kinPedigree [true]&lt;br /&gt;
 --kinGeno [false]&lt;br /&gt;
 --kinFile []&lt;br /&gt;
 --kinxFile []&lt;br /&gt;
 --kinSave [false]&lt;br /&gt;
 &lt;br /&gt;
 Kinship Options:&lt;br /&gt;
 ============================&lt;br /&gt;
 --kinMaf [0.05]&lt;br /&gt;
 --kinMiss [0.05]&lt;br /&gt;
 &lt;br /&gt;
 Chromosome X:&lt;br /&gt;
 ============================&lt;br /&gt;
 xLabel [X]&lt;br /&gt;
 xStart [2699520]&lt;br /&gt;
 xEnd [154931044]&lt;br /&gt;
 maleLabel [1]&lt;br /&gt;
 femaleLabel [2]&lt;br /&gt;
&lt;br /&gt;
* The second part of the log file has all warnings and running messages saved.&lt;br /&gt;
&lt;br /&gt;
=====Plots=====&lt;br /&gt;
* RAREMETALWORKER generates QQ plot and Manhattan plots automatically, unless there are only trivial number of variants analyzed. &lt;br /&gt;
* RAREMETALWORKER stores plots of each trait in separate files named &#039;&#039;yourprefix.traitname.plots.pdf&#039;&#039;.&lt;br /&gt;
* RAREMETALWORKER stores plots for recessive and dominant results separated with files named &#039;&#039;yourprefix.traitname.recessive.plots.pdf&#039;&#039; and &#039;&#039;yourprefix.traitname.dominant.plots.pdf&#039;&#039;.&lt;br /&gt;
* RAREMETALWORKER automatically generates three stratified QQ plots, one with all variants, one with variants of maf&amp;lt;0.05, and one with variants of maf&amp;lt;0.01.&lt;br /&gt;
* Genomic controls are automatically calculated and labeled in QQ plots. &lt;br /&gt;
* By using --labelHits option, users can choose to label the hits. &lt;br /&gt;
* Here is an example QQ plot and manhattan plot generated by RAREMETALWORKER.&lt;br /&gt;
&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;
===SPECIAL TOPICS===&lt;br /&gt;
* For special topics such as how RAREMEALWORKER handles missing data, unrelated individuals, markers on chromosomeX, please go to [[RAREMETALWORKER_SPECIAL_TOPICS | &#039;&#039;&#039;SPECIAL TOPICS&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
== Example Command Lines ==&lt;br /&gt;
&lt;br /&gt;
The following list a few popular combinations of options used for analyses. For an itemized description of options, please go to [[RAREMETALWORKER_command_reference | &#039;&#039;&#039;COMMAND REFERENCE&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
===General Usage===&lt;br /&gt;
&lt;br /&gt;
* If your PED file has many traits but you only want one of them to be analyzed, then the following command does the trick:&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; $PATH/bin/raremetalworker --ped yourInput.ped --dat yourInput.dat --vcf yourInput.vcf.gz --traitName BMI --prefix yourFavoritePrefix&lt;br /&gt;
&lt;br /&gt;
* If you want to inverse normalize (quantile normalize) your trait before doing associations, this can be done by adding --inverseNormal to your command line:&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; $PATH/bin/raremetalworker --ped yourInput.ped --dat yourInput.dat --vcf yourInput.vcf.gz --traitName BMI --prefix yourFavoritePrefix --inverseNormal&lt;br /&gt;
&lt;br /&gt;
* The following command will adjust covariates first and then use residuals to proceed association:&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; $PATH/bin/raremetalworker --ped yourInput.ped --dat yourInput.dat --vcf yourInput.vcf.gz --traitName BMI --prefix yourFavoritePrefix --makeResiduals&lt;br /&gt;
&lt;br /&gt;
* The following command will adjust covariates first and then use the inverse normalized residuals to proceed association:&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; $PATH/bin/raremetalworker --ped yourInput.ped --dat yourInput.dat --vcf yourInput.vcf.gz --traitName BMI --prefix yourFavoritePrefix --makeResiduals --inverseNormal&lt;br /&gt;
&lt;br /&gt;
=== Related individuals ===&lt;br /&gt;
&lt;br /&gt;
* When pedigree is known and you want to use it to count for relatedness then the following command can be used:&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; $PATH/bin/raremetalworker --ped yourInput.ped --dat yourInput.dat --vcf yourInput.vcf.gz --kinPedigree --prefix yourFavoritePrefix&lt;br /&gt;
&lt;br /&gt;
* When you want to an estimated genomic relationship matrix to count for relatedness then the following command can be used:&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; $PATH/bin/raremetalworker --ped yourInput.ped --dat yourInput.dat --vcf yourInput.vcf.gz --prefix yourFavoritePrefix --kinGeno --kinSave (this will save the genomic relationship matrix for future use)&lt;br /&gt;
&lt;br /&gt;
* If the genomic relationship matrix has been saved previously, and you want to use it to count for relatedness then the following command can be used:&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; $PATH/bin/raremetalworker --ped yourInput.ped --dat yourInput.dat --vcf yourInput.vcf.gz --prefix yourFavoritePrefix --kinFile yourPreviouslySavedKinship&lt;br /&gt;
&lt;br /&gt;
=== Unrelated individuals ===&lt;br /&gt;
&lt;br /&gt;
* To analyze individuals as unrelated, even if pedigree is known, you just have to use the following command:&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; $PATH/bin/raremetalworker --ped yourInput.ped --dat yourInput.dat --vcf yourInput.vcf.gz --prefix yourFavoritePrefix&lt;br /&gt;
&lt;br /&gt;
===Analyzing Chromosome X===&lt;br /&gt;
&lt;br /&gt;
* To analyze markers on chromosome X, if relatedness is not considered, then no special options needs to be issued. &lt;br /&gt;
&lt;br /&gt;
* When relatedness is modeled using linear mixed model, and pedigree is known, then the following command fits use both autosomal kinship and chromosomeX kinship to fit a variance component model:&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; $PATH/bin/raremetalworker --ped yourInput.ped --dat yourInput.dat --kinPedigree --vcX --vcf yourInput.vcf.gz --prefix yourFavoritePrefix &lt;br /&gt;
&lt;br /&gt;
* Adding --separateX to the above command line will only use chromosome X kinship to fit the variance component model:&lt;br /&gt;
&lt;br /&gt;
  prompt&amp;gt; $PATH/bin/raremetalworker --ped yourInput.ped --dat yourInput.dat --kinPedigree --vcX --separateX --vcf yourInput.vcf.gz --prefix yourFavoritePrefix&lt;br /&gt;
&lt;br /&gt;
* Please refer to [[RAREMETALWORKER_method | &#039;&#039;&#039;METHODS&#039;&#039;&#039;]] for methods and [[RAREMETALWORKER_SPECIAL_TOPICS#Analyzing_Chromosome_X | &#039;&#039;&#039;SPECIAL TOPICS&#039;&#039;&#039;]] for technical details.&lt;br /&gt;
&lt;br /&gt;
===Using MERLIN format PED/DAT INPUT FILES===&lt;br /&gt;
* When genotypes are stored in MERLIN format PED/DAT files, command should be the same to do the above analysis, except --vcf option should be excluded.&lt;br /&gt;
* Please refer to [[RAREMETALWORKER#PED_and_DAT_Files | &#039;&#039;&#039;PED/DAT format&#039;&#039;&#039;]] for format requirements.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
* For a comprehensive tutorial of RMW 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 and RAREMETALWORKER Tutorial&#039;&#039;&#039;]&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Change_Log&amp;diff=15003</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=15003"/>
		<updated>2018-03-15T21:03:55Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETAL]]&lt;br /&gt;
[[Category:RAREMETALWORKER]]&lt;br /&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>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Documentation&amp;diff=15002</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=15002"/>
		<updated>2018-03-15T21:03:18Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:RAREMETAL]]&lt;br /&gt;
== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
* Git hub page: https://github.com/statgen/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>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14993</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=14993"/>
		<updated>2018-01-09T15:58:57Z</updated>

		<summary type="html">&lt;p&gt;Abought: /* Where to Download */ Warn about pvalue errors.&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/statgen/Raremetal&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt;There is a known issue with the newest versions (&amp;gt;=4.14.0) of RAREMETAL, which may give incorrect p-values for some burden test calculation methods. We are working on a fix, but for now we recommend using an older version (&amp;lt;= 4.13.9).&amp;lt;/span&amp;gt;&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>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Zlib&amp;diff=14992</id>
		<title>Zlib</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Zlib&amp;diff=14992"/>
		<updated>2017-12-22T20:58:29Z</updated>

		<summary type="html">&lt;p&gt;Abought: Update package names for other platforms&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The &#039;&#039;&#039;zlib&#039;&#039;&#039; library allows applications to conveniently read and write [[gzip]] compatible files. It was developed by Jean-Loupe Gailly and Mark Adler.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;zlib&#039;&#039;&#039; is included by default in most Linux distributions. If it is not available on your system, you could download and install a copy from http://www.zlib.net or use a package manager like &amp;lt;code&amp;gt;yum&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install it on your system. A typical command line request to install zlib might look like one of the following (depending on your operating system or version):&lt;br /&gt;
&lt;br /&gt;
   yum install zlib-devel&lt;br /&gt;
   apt-get install zlib-devel&lt;br /&gt;
   apt-get install zlib1g-dev (Ubuntu)&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
&lt;br /&gt;
On Windows, &#039;&#039;&#039;zlib&#039;&#039;&#039; is available through the &amp;lt;code&amp;gt;MinGW&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;msys&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;CygWin&amp;lt;/code&amp;gt; collections of utilities and libraries, which are designed to facilitate porting of applications from Linux to Windows.&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Documentation&amp;diff=14964</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=14964"/>
		<updated>2017-11-15T18:02:33Z</updated>

		<summary type="html">&lt;p&gt;Abought: Point Github link at statgen repo&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/statgen/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>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_DOWNLOAD_%26_BUILD&amp;diff=14963</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=14963"/>
		<updated>2017-11-15T18:02:17Z</updated>

		<summary type="html">&lt;p&gt;Abought: Point Github link at statgen repo&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/statgen/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>Abought</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=14962</id>
		<title>RAREMETAL</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=14962"/>
		<updated>2017-11-15T17:55:19Z</updated>

		<summary type="html">&lt;p&gt;Abought: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Software]]&lt;br /&gt;
&#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; is a program that facilitates the meta-analysis of rare variants from genotype arrays or sequencing (manuscript in preparation). &lt;br /&gt;
It was developed by [[Shuang_Feng|Shuang Feng]], Dajiang Liu and Gonçalo R. Abecasis. RAREMETAL has been used for the analyses in Exomechip blood lipids consortium and [[EMADS|EMADS]]. &lt;br /&gt;
&lt;br /&gt;
If you feel the program is useful, please take one minute to tell us your name and email ([https://docs.google.com/spreadsheet/ccc?key=0AuYjznTeEDYudFpqUk9sQ2pkN3d3endjYldqMEp6ZUE&amp;amp;usp=sharing &#039;&#039;&#039;registration&#039;&#039;&#039;]). Thank you!&lt;br /&gt;
&lt;br /&gt;
For questions please contact Andy Boughton via email: abought at umich dot edu.&lt;br /&gt;
&lt;br /&gt;
== Useful Wiki Pages ==&lt;br /&gt;
&lt;br /&gt;
There are a few pages in this Wiki that may be useful to RAREMETAL users. Here are links to a few:&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL Command Reference]]&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;
&lt;br /&gt;
== Download and Build==&lt;br /&gt;
&lt;br /&gt;
To download RAREMETAL executable and source code with instruction of build, go to [[Rare-Metal#Download_and_Installation|&#039;&#039;&#039;DOWNLOAD and INSTALLATION&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
== Related Programs ==&lt;br /&gt;
[[RAREMETALWORKER]] is a program that does single variant association for sequencing and genotyping array data and generates summary statistics for meta-analysis in RAREMETAL.&lt;br /&gt;
&lt;br /&gt;
[[LocusZoom]] is a program that facilitates display of genomewide association scan results.&lt;br /&gt;
&lt;br /&gt;
[[METAL]] is a program that facilitates meta-analysis of single-variant genomewide scans.&lt;/div&gt;</summary>
		<author><name>Abought</name></author>
	</entry>
</feed>