<?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=Zhanxw</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=Zhanxw"/>
	<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/wiki/Special:Contributions/Zhanxw"/>
	<updated>2026-09-25T08:05:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Rvtests&amp;diff=14172</id>
		<title>Rvtests</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Rvtests&amp;diff=14172"/>
		<updated>2016-05-12T04:31:25Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;&#039;&#039;&#039;(Updated: January 2015; latest documentation can always be found at: [http://zhanxw.github.io/rvtests/ http://zhanxw.github.io/rvtests/])&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;&#039;&#039;&#039;(Updated: January 2015; latest documentation can always be found at: [http://zhanxw.github.io/rvtests/ http://zhanxw.github.io/rvtests/])&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Rvtests, which stands for Rare Variant tests, is a flexible software package for genetic association studies. It is designed to support unrealted individual or related (family-based) individuals. Both quantitative trait and binary trait are supported. It includes a variety of association tests (e.g. single variant score test, burden test, variable threshold test, SKAT test, fast linear mixed model score test). It takes [http://www.1000genomes.com/ VCF] format as genotype input file and takes PLINK format phenotype file and covariate file. From our practice, it is capable to analyze 8,000 related individuals using less than 400 Mb memory.&lt;br /&gt;
&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
Source files can be downloaded from [https://github.com/zhanxw/rvtests/archive/master.zip github] or [https://github.com/zhanxw/rvtests github page].&amp;lt;br /&amp;gt;Executable binary files (for Linux 64bit) can be downloaded from [https://github.com/zhanxw/rvtests/releases/download/v1.8.6/rvtests-20150104.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
= Quick Tutorial =&lt;br /&gt;
&lt;br /&gt;
Here is a quick example of how to use &#039;&#039;rvtests&#039;&#039; software in typical use cases.&lt;br /&gt;
&lt;br /&gt;
== Single variant tests ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --out output --single wald,score&amp;lt;/pre&amp;gt;&lt;br /&gt;
This specifies single variant Wald and score test for association&amp;lt;br /&amp;gt;tests for every variant in the &amp;lt;code&amp;gt;input.vcf&amp;lt;/code&amp;gt; file. The 6th column of the phenotype file, &amp;lt;code&amp;gt;phenotype.ped&amp;lt;/code&amp;gt;, which is in PLINK format, is used. Rvtests will automatically check whether the phenotype is binary trait or quantitative trait.&amp;lt;br /&amp;gt;For binary trait, the recommended way of coding is to code controls as 1, cases as 2, missing phenotypes as -9 or 0.&lt;br /&gt;
&lt;br /&gt;
For other types of association tests, you can refer to [[#models|Models]]&lt;br /&gt;
&lt;br /&gt;
== Groupwise tests ==&lt;br /&gt;
&lt;br /&gt;
Groupwise tests includes three major kinds of tests.&lt;br /&gt;
&lt;br /&gt;
* Burden tests: group variants, which are usually less than 1% or 5% rare variants, for association tests. The category includes: CMC test, Zeggini test, Madsen-Browning test, CMAT test, and rare-cover test.&amp;lt;br /&amp;gt;&lt;br /&gt;
* Variable threshold tests: group variants under different frequency thresholds.&amp;lt;br /&amp;gt;&lt;br /&gt;
* Kernel methods: suitable to tests rare variants having different directions of effects. These includes SKAT test and KBAC test.&lt;br /&gt;
&lt;br /&gt;
All above tests requires to group variants into a unit. The simplist case is to use gene as grouping unit. For different grouping method, see [[#Grouping|Grouping]].&lt;br /&gt;
&lt;br /&gt;
To perform rare variant tests by gene, you need to use &amp;lt;code&amp;gt;--geneFile&amp;lt;/code&amp;gt; to specify the gene range in a refFlat format. We provided different gene definitions in the [[#Resources|Resources]] section. You can use &amp;lt;code&amp;gt;--gene&amp;lt;/code&amp;gt; to specify which gene(s) to test. For example, specify &amp;lt;code&amp;gt;--gene CFH,ARMS2&amp;lt;/code&amp;gt; will perform association tests on CFH and ARMS2 genes. If there is no providing &amp;lt;code&amp;gt;--gene&amp;lt;/code&amp;gt; option, all genes will be tests.&lt;br /&gt;
&lt;br /&gt;
The following command line demonstrate how to use CMC method, variable threshold method(proposed by Price) and kernel based method (SKAT by Shawn Lee and KBAC by&amp;lt;br /&amp;gt;Dajiang Liu) to test every gene listed in &#039;&#039;refFlat_hg19_uniq_gene.txt.gz&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --out output --geneFile refFlat_hg19_uniq_gene.txt.gz --burden cmc --vt price --kernel skat,kbac&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Related individual tests ==&lt;br /&gt;
&lt;br /&gt;
To test related individuals, you will need to first create a kinship matrix:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vcf2kinship --inVcf input.vcf --bn --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
The option &amp;lt;code&amp;gt;--bn&amp;lt;/code&amp;gt; means calculating empirical kinship using Balding-Nicols method. You can specifiy &amp;lt;code&amp;gt;--ibs&amp;lt;/code&amp;gt; to obtain IBS kinship or use &amp;lt;code&amp;gt;--pedigree input.ped&amp;lt;/code&amp;gt; to calculate kinship from known pedigree information.&lt;br /&gt;
&lt;br /&gt;
Then you can use linear mixed model based association tests such as Fast-LMM score test, Fast-LMM LRT test and Grammar-gamma tests. An exemplar command is shown:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --out output --kinship output.kinship --single famScore,famLRT,famGrammarGamma&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Meta-analysis tests ==&lt;br /&gt;
&lt;br /&gt;
The meta-analysis models outputs association test results and genotype covariance matrix. These statistics can be used in rare variant association analysis.&amp;lt;br /&amp;gt;We provide single variant score test and generate genotype covariance matrix.&amp;lt;br /&amp;gt;You can use command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --meta score,cov --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
In a more realistic scenario, you may want to adjust for covariates and want to inverse normalized residuals obtained in null model ([http://www.nature.com/ng/journal/vaop/ncurrent/full/ng.2852.html link] to our methodology paper), then this command will work:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --covar example.covar --covar-name age,bmi --inverseNormal --useResidualAsPhenotype  --meta score,cov --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here the &amp;lt;code&amp;gt;--covar&amp;lt;/code&amp;gt; specify a covariate file, and &amp;lt;code&amp;gt;--covar-name&amp;lt;/code&amp;gt; specify which covariates can used in the analysis. Covariate file format can be found [[#Covariate%20file|here]]. &amp;lt;code&amp;gt;--inverseNormal --useResidualAsPhenotype&amp;lt;/code&amp;gt; specifies trait transformation method. That means first fit a regression model of the phenotype on covariates (intercept automatically added), then the residuals are inverse normalized. Trait transformation details can be found [[#Trait%20transformation|here]].&lt;br /&gt;
&lt;br /&gt;
We support both unrelated individuals and related indivudlas (e.g. family data). You need to append &amp;lt;code&amp;gt;--kinship input.kinship&amp;lt;/code&amp;gt; to the command line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --meta score,cov --out output --kinship input.kinship&amp;lt;/pre&amp;gt;&lt;br /&gt;
The file &amp;lt;code&amp;gt;input.kinship&amp;lt;/code&amp;gt; is calculated by &amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; program, and usage to this program is described in [[#related-individual-tests|Related individual tests]].&lt;br /&gt;
&lt;br /&gt;
=== Dominant models and recessive models ===&lt;br /&gt;
&lt;br /&gt;
Dominant and recessive disease models are supported by appending &amp;amp;quot;dominant&amp;amp;quot; and/or &amp;amp;quot;recessive&amp;amp;quot; after &amp;amp;quot;--meta&amp;amp;quot; option. For example, use &amp;amp;quot;--meta dominant,recessive&amp;amp;quot; will&amp;lt;br /&amp;gt;generate two sets of files. For dominant model, they are &amp;amp;quot;prefix.MetaDominant.assoc&amp;amp;quot; and &amp;amp;quot;prefix.MetaDominantCov.assoc.gz&amp;amp;quot;; for recessive model,&amp;lt;br /&amp;gt;they are &amp;amp;quot;prefix.MetaRecessive.assoc&amp;amp;quot; and &amp;amp;quot;prefix.MetaRecessiveCov.assoc.gz&amp;amp;quot;. Internally, in dominant models, genotypes 0/1/2 are coded as 0/1/1; in recessive models, genotypes 0/1/2 are&amp;lt;br /&amp;gt;coded as 0/0/1. Missing genotypes will be imputed to the mean.&lt;br /&gt;
&lt;br /&gt;
= Input files =&lt;br /&gt;
&lt;br /&gt;
== Genotype file (VCF) ==&lt;br /&gt;
&lt;br /&gt;
Rvtests supports VCF (Variant Call Format) files. Files in both plain txt format or gzipped format are supported. To use group-based rare variant tests, indexed the VCF files using [http://samtools.sourceforge.net/tabix.shtml tabix] are required.&lt;br /&gt;
&lt;br /&gt;
Here are the commands to convert plain text format to bgzipped VCF format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;(grep ^&amp;amp;quot;#&amp;amp;quot; $your_old_vcf; grep -v ^&amp;amp;quot;#&amp;amp;quot; $your_old_vcf | sed &#039;s:^chr::ig&#039; | sort -k1,1n -k2,2n) | bgzip -c &amp;amp;gt; $your_vcf_file &lt;br /&gt;
tabix -f -p vcf $your_vcf_file&amp;lt;/pre&amp;gt;&lt;br /&gt;
The above commands will (1) remove the &amp;lt;code&amp;gt;chr&amp;lt;/code&amp;gt; prefix from chromosome names; (2) sort VCF files by chromosome first, then by chromosomal positions; (3) compress using bgzip; (4) create tabix index.&lt;br /&gt;
&lt;br /&gt;
Rvtests support genotype dosages. Use &amp;lt;code&amp;gt;--dosage DosageTag&amp;lt;/code&amp;gt; to specify the dosage tag. For example, if VCF format field is &amp;amp;quot;GT:EC&amp;amp;quot; and individual genotype fields is &amp;amp;quot;0/0:0.02&amp;amp;quot;, you can use &amp;lt;code&amp;gt;--dosage EC&amp;lt;/code&amp;gt;, and rvtests will use the dosage 0.02 in the regression models.&lt;br /&gt;
&lt;br /&gt;
== Phenotype file ==&lt;br /&gt;
&lt;br /&gt;
You can use &amp;lt;code&amp;gt;--mpheno $phenoypeColumnNumber&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--pheno-name&amp;lt;/code&amp;gt; to specify a given phenotype.&lt;br /&gt;
&lt;br /&gt;
An example phenotype file, (&amp;lt;code&amp;gt;example.pheno&amp;lt;/code&amp;gt;), has the following format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;fid iid fatid matid sex y1 y2 y3 y4&lt;br /&gt;
P1 P1 0 0 0 1.7642934435605 -0.733862638327895 -0.980843608339726 2&lt;br /&gt;
P2 P2 0 0 0 0.457111744989746 0.623297281416372 -2.24266162284447 1&lt;br /&gt;
P3 P3 0 0 0 0.566689682543218 1.44136462889459 -1.6490100777089 1&lt;br /&gt;
P4 P4 0 0 0 0.350528353203767 -1.79533911725537 -1.11916876241804 1&lt;br /&gt;
P5 P5 0 0 1 2.72675074738545 -1.05487747371158 -0.33586430010589 2&amp;lt;/pre&amp;gt;&lt;br /&gt;
Phenotype file is specified by the option &amp;lt;code&amp;gt;--pheno example.pheno&amp;lt;/code&amp;gt; . The default phenotype column header is “&amp;lt;code&amp;gt;y1&amp;lt;/code&amp;gt;”. If you want to use alternative columns as phenotype for association analysis (e.g the column with header y2), you may specify the phenotype by column or by name using either&lt;br /&gt;
&lt;br /&gt;
* --mpheno 2&amp;lt;br /&amp;gt;&lt;br /&gt;
* --pheno-name y2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; to use “&amp;lt;code&amp;gt;--pheno-name&amp;lt;/code&amp;gt;”, the header line must starts with “&amp;lt;code&amp;gt;fid iid&amp;lt;/code&amp;gt;” as PLINK requires.&lt;br /&gt;
&lt;br /&gt;
In phenotype file, missing values can be denoted by NA or any non-numeric values. Individuals with missing phenotypes will be automatically dropped from subsequent association analysis. For each missing phenotype value, a warning will be generated and recorded in the log file.&lt;br /&gt;
&lt;br /&gt;
When the phenotype values are only 0, 1 and 2, rvtests will automatically treat it as binary traits. However, if you want to treat it as continuous trait, please use &amp;amp;quot;&amp;lt;code&amp;gt;--qtl&amp;lt;/code&amp;gt;&amp;amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
== Covariate file ==&lt;br /&gt;
&lt;br /&gt;
You can use &amp;lt;code&amp;gt;--covar&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--covar-name&amp;lt;/code&amp;gt; to specify covariates that will be used for single variant association analysis. This is an optional parameter. If you do not have covariate in the data, this option can be ignored.&lt;br /&gt;
&lt;br /&gt;
The covariate file, (e.g. &amp;lt;code&amp;gt;example.covar&amp;lt;/code&amp;gt;) has a similar format as the phenotype file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;fid iid fatid matid sex y1 y2 y3 y4&lt;br /&gt;
P1 P1 0 0 0 1.911 -1.465 -0.817 1&lt;br /&gt;
P2 P2 0 0 0 2.146 -2.451 -0.178 2&lt;br /&gt;
P3 P3 0 0 0 1.086 -1.194 -0.899 1&lt;br /&gt;
P4 P4 0 0 0 0.704 -1.052 -0.237 1&lt;br /&gt;
P5 P5 0 0 1 2.512 -3.085 -2.579 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
The covariate file is specified by the &amp;lt;code&amp;gt;--covar&amp;lt;/code&amp;gt; option (e.g. &amp;lt;code&amp;gt;--covar example.covar&amp;lt;/code&amp;gt;). To specify covariates that will be used in the association analysis, the option &amp;lt;code&amp;gt;--covar-name&amp;lt;/code&amp;gt; can be used. For example, when age, bmi and 3 PCs are used for association analysis, the following option can be specified for the rvtest program, i.e.&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;--covar example.covar --covar-name age,bmi,pc1,pc2,pc3&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note: Missing data in the covariate file can be labeled by any non-numeric value (e.g. NA). They will be automatically imputed to the mean value in the data file.&lt;br /&gt;
&lt;br /&gt;
== Trait transformation ==&lt;br /&gt;
&lt;br /&gt;
In this meta-analysis, we use inversed normal transformed residuals in the association analysis, which is achieved by using a combination of &amp;lt;code&amp;gt;--inverseNormal&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--useResidualAsPhenotype&amp;lt;/code&amp;gt;. Specifically, we first fit the null model by regressing phenotype on covariates. The residuals are then inverse normal transformed (see Appendix A more detailed formulae for transformation). Transformed residuals will be used to obtain score statistics.&lt;br /&gt;
&lt;br /&gt;
In meta analysis, an exemplar command for using rvtest looks like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;./rvtest --inVcf $vcf --pheno $example.pheno --covar example.covar --covar-name age,bmi --inverseNormal --useResidualAsPhenotype  --meta score,cov --out $output_prefix  &amp;lt;/pre&amp;gt;&lt;br /&gt;
= Models =&lt;br /&gt;
&lt;br /&gt;
Rvtests support various association models.&lt;br /&gt;
&lt;br /&gt;
== Single variant tests ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Single variant&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|Score test&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|score&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Only null model is used to performed the test&lt;br /&gt;
|-&lt;br /&gt;
|Wald test&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|wald&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Only fit alternative model, and effect size will be estimated&lt;br /&gt;
|-&lt;br /&gt;
|Exact test&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|exact&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Fisher&#039;s test&lt;br /&gt;
|-&lt;br /&gt;
|Fam LRT&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|famLRT&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|Fast-LMM model&lt;br /&gt;
|-&lt;br /&gt;
|Fam Score&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|famScore&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|Fast-LMM model style likelihood ratio test&lt;br /&gt;
|-&lt;br /&gt;
|Grammar-gamma&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|famGrammarGamma&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|Grammar-gamma method&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--single score&amp;lt;/code&amp;gt; will apply score test.&lt;br /&gt;
&lt;br /&gt;
(##) In trait column, B and Q stand for binary, quantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Burden tests ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Burden tests&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|CMC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cmc&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Collapsing and combine rare variants by Bingshan Li.&lt;br /&gt;
|-&lt;br /&gt;
|Zeggini&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|zeggini&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Aggregate counts of rare variants by Morris Zeggini.&lt;br /&gt;
|-&lt;br /&gt;
|Madsen-Browning&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|mb&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Up-weight rare variant using inverse frequency from controls by Madsen.&lt;br /&gt;
|-&lt;br /&gt;
|Fp&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|fp&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Up-weight rare variant using inverse frequency from controls by Danyu Lin.&lt;br /&gt;
|-&lt;br /&gt;
|Exact CMC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|exactCMC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Collapsing and combine rare variants, then pefore Fisher&#039;s exact test.&lt;br /&gt;
|-&lt;br /&gt;
|CMC Wald&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cmcWald&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Collapsing and combine rare variants, then pefore Wald test.&lt;br /&gt;
|-&lt;br /&gt;
|RareCover&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|rarecover&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Find optimal grouping unit for rare variant tests by Thomas Hoffman.&lt;br /&gt;
|-&lt;br /&gt;
|CMAT&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cmat&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Test non-coding variants by Matt Z.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--burden cmc&amp;lt;/code&amp;gt; will apply CMC test.&lt;br /&gt;
&lt;br /&gt;
(##) In trait column, B and Q stand for binary, quantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Variable threshold models ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Single variant&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|Variable threshold model&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|vt&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Every rare-variant frequency cutoffs are tests by Alkes Price.&lt;br /&gt;
|-&lt;br /&gt;
|Variable threshold CMC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cmc&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|This models is natiive so that it output CMC test statistics under all possible frequency cutoffs.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--vt price&amp;lt;/code&amp;gt; will apply score test.&lt;br /&gt;
&lt;br /&gt;
(##) In trait column, B and Q stand for binary, quantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Kernel models ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Kernel&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|SKAT&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|skat&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Sequencing kernel association test by Shawn Lee.&lt;br /&gt;
|-&lt;br /&gt;
|KBAC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|kbac&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Kernel-based adaptive clustering model by Dajiang Liu.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--kernel skat&amp;lt;/code&amp;gt; will apply SKAT test.&amp;lt;br /&amp;gt;To further customize SKAT test, you can use &#039;&#039;--kernel skat[nPerm=100:alpha=0.001:beta1=1:beta2=20]&#039;&#039; to specify permutation counts, type-1 error,&amp;lt;br /&amp;gt;beta distribution parameters for upweighting rare variants. Rvtests will output a message showing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;[INFO]  SKAT test significance will be evaluated using 10000 permutations at alpha = 0.001 (beta1 = 1.00, beta2 = 20.00)&amp;lt;/pre&amp;gt;&lt;br /&gt;
(##) In trait column, B and Q stand for binary, quantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Meta-analysis models ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Type&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|Score test&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|score&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|standard score tests&lt;br /&gt;
|-&lt;br /&gt;
|Dominant model&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|dominant&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|score tests and covariance matrix under dominant disease model&lt;br /&gt;
|-&lt;br /&gt;
|Recessive model&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|recessive&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|score tests and covariance matrix under recessive disease model&lt;br /&gt;
|-&lt;br /&gt;
|Covariance&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cov&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|covariance matrix&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--meta score,cov&amp;lt;/code&amp;gt; will generate score statistics and covariance matrix for meta-analysis.&amp;lt;br /&amp;gt;(##) In trait column, B and Q stand for (b)inary, (q)uantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Utility models ==&lt;br /&gt;
&lt;br /&gt;
Rvtests has an usually option &amp;lt;code&amp;gt;--outputRaw&amp;lt;/code&amp;gt;. When specify this, rvtests can output genotypes, phenotype, covariates(if any) and collapsed genotype to tabular files. These files can be imported into other software (e.g. R) for further analysis.&lt;br /&gt;
&lt;br /&gt;
= Association test options =&lt;br /&gt;
&lt;br /&gt;
== Sample inclusion/exclusion ==&lt;br /&gt;
&lt;br /&gt;
Rvtests can flexibly specify which sample(s) to include or exclude:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;       --peopleIncludeID : give IDs of people that will be included in study&lt;br /&gt;
     --peopleIncludeFile : from given file, set IDs of people that will be included in study&lt;br /&gt;
       --peopleExcludeID : give IDs of people that will be included in study&lt;br /&gt;
     --peopleExcludeFile : from given file, set IDs of people that will be included in study&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;--peopleIncludeID&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--peopleExcludeID&amp;lt;/code&amp;gt; are used to include/exclude samples from command line.&amp;lt;br /&amp;gt;For example, specify &amp;lt;code&amp;gt;--peopleIncludeID A,B,C&amp;lt;/code&amp;gt; will include A, B and C sample from the VCF files if they exists.&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;--peopleIncludeID&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--peopleExcludeID&amp;lt;/code&amp;gt; followed by a file name will include or exclude the IDs in the file.&amp;lt;br /&amp;gt;So to include sample A, B and C, you can provide a file, &amp;lt;code&amp;gt;people.txt&amp;lt;/code&amp;gt;, looks like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;A&lt;br /&gt;
B&lt;br /&gt;
C&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then use &amp;lt;code&amp;gt;--peopleIncludeFile people.txt&amp;lt;/code&amp;gt; to include them in the analysis.&lt;br /&gt;
&lt;br /&gt;
== Variant site filters ==&lt;br /&gt;
&lt;br /&gt;
It is common that different frequency cutoffs are applied in rare-variant analysis.&amp;lt;br /&amp;gt;Therefore, rvtests specify frequency cutoffs.&lt;br /&gt;
&lt;br /&gt;
Frequency Cutoff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;             --freqUpper : Specify upper minor allele frequency bound to be included in analysis&lt;br /&gt;
             --freqLower : Specify lower minor allele frequency bound to be included in analysis&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you specify &amp;lt;code&amp;gt;--freqLower 0.01 --freqUpper 0.05&amp;lt;/code&amp;gt;, only the variants with minor allele ferquncy between 0.01 and 0.05 (boundary inclusive) will be analyzed.&lt;br /&gt;
&lt;br /&gt;
Similar to sample inclusion/exclusion options, you can specify a range of variants to be included by&amp;lt;br /&amp;gt;specifying &amp;lt;code&amp;gt;--rangeList&amp;lt;/code&amp;gt; option. For example &amp;lt;code&amp;gt;--rangeList 1:100-200&amp;lt;/code&amp;gt; will include the chromosome 1 position 100bp to 200bp region.&amp;lt;br /&amp;gt;Alternatively, use a separate file, &amp;lt;code&amp;gt;range.txt&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;--rangeFile range.txt&amp;lt;/code&amp;gt; to speicify association tests range.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;             --rangeList : Specify some ranges to use, please use chr:begin-end format.&lt;br /&gt;
             --rangeFile : Specify the file containing ranges, please use chr:begin-end format.&lt;br /&gt;
              --siteFile : Specify the file containing sites to include, please use &amp;amp;quot;chr pos&amp;amp;quot; format.&amp;lt;/pre&amp;gt;&lt;br /&gt;
It is supported to filter variant site by site depth, minor allele count or annotation (annotated VCF file is needed).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;          --siteDepthMin : Specify minimum depth(inclusive) to be incluced in analysis&lt;br /&gt;
          --siteDepthMax : Specify maximum depth(inclusive) to be incluced in analysis&lt;br /&gt;
            --siteMACMin : Specify minimum Minor Allele Count(inclusive) to be incluced in analysis&lt;br /&gt;
              --annoType : Specify annotation type that is follwed by ANNO= in the VCF INFO field, regular expression is allowed&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;NOTE&#039;&#039;: &amp;lt;code&amp;gt;--annoType Nonsynonymous&amp;lt;/code&amp;gt; will only analyze nonsynonymous variants where they have &amp;lt;code&amp;gt;ANNO=Nonsynonymous&amp;lt;/code&amp;gt; in the INFO field.&amp;lt;br /&amp;gt;VCF with annotatino information are called annotated VCF here. And to annotate&amp;lt;br /&amp;gt;a VCF file, you can use [https://github.com/zhanxw/anno ANNO], a fast and accurate annotation software.&lt;br /&gt;
&lt;br /&gt;
== Genotype filters ==&lt;br /&gt;
&lt;br /&gt;
Genotype with low depth or low quality can be filtered out by these options:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;          --indvDepthMin : Specify minimum depth(inclusive) of a sample to be incluced in analysis&lt;br /&gt;
          --indvDepthMax : Specify maximum depth(inclusive) of a sample to be incluced in analysis&lt;br /&gt;
           --indvQualMin : Specify minimum depth(inclusive) of a sample to be incluced in analysis&amp;lt;/pre&amp;gt;&lt;br /&gt;
When genotypes are filtered, they are marked as missing genotypes.&amp;lt;br /&amp;gt;Consequently, samples with missing genotype may or may not be included in the analysis.&amp;lt;br /&amp;gt;That means samples with genotypes may be dropped (&amp;lt;code&amp;gt;--impute drop&amp;lt;/code&amp;gt;)&amp;lt;br /&amp;gt;or may still be included (&amp;lt;code&amp;gt;--impute mean&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--impute hwe&amp;lt;/code&amp;gt;).&amp;lt;br /&amp;gt;By default, genotypes are imputed to its means.&amp;lt;br /&amp;gt;See next section about how you like to handle missing genotypes.&lt;br /&gt;
&lt;br /&gt;
== Handle missing genotypes and phenotypes ==&lt;br /&gt;
&lt;br /&gt;
When genotypes are missing (e.g. genotype = &amp;amp;quot;./.&amp;amp;quot;) or gentoypes are filtered out,&amp;lt;br /&amp;gt;there are three options to handle them: (1) impute to its mean(default option); (2) impute by HWE equilibrium; (3) remove from the model.&amp;lt;br /&amp;gt;Use &amp;lt;code&amp;gt;--impute [mean|hwe|drop]&amp;lt;/code&amp;gt; to specify which option to use.&lt;br /&gt;
&lt;br /&gt;
When quantitative phenotypes are missing, for example, some samples have gneotype files, but not phenotypes,&amp;lt;br /&amp;gt;rvtests can impute missing phenotype to its mean.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;NOTE:&#039;&#039; Do not use &amp;lt;code&amp;gt;--imputePheno&amp;lt;/code&amp;gt; for binary trait.&lt;br /&gt;
&lt;br /&gt;
In summary, the following two options can be used:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;           --impute : Specify either of mean, hwe, and drop&lt;br /&gt;
      --imputePheno : Impute phenotype to mean by those have genotypes but no&lt;br /&gt;
                      phenotpyes&lt;br /&gt;
                      &lt;br /&gt;
                      &amp;lt;/pre&amp;gt;&lt;br /&gt;
== Specify groups (e.g burden unit) ==&lt;br /&gt;
&lt;br /&gt;
Rare variants association tests are usually performed in gruops of variants.&amp;lt;br /&amp;gt;The natural grouping unit is gene. Rvtests can read gene definition file in &amp;lt;code&amp;gt;refFlat&amp;lt;/code&amp;gt; format,&amp;lt;br /&amp;gt;and perform association for each gene. Use &amp;lt;code&amp;gt;--geneFile&amp;lt;/code&amp;gt; option to specify the gene file name.&amp;lt;br /&amp;gt;For example, &amp;lt;code&amp;gt;--geneFile refFlat_hg19.txt.gz&amp;lt;/code&amp;gt; will use &amp;lt;code&amp;gt;refFlat_hg19.txt.gz&amp;lt;/code&amp;gt; as gene definition file,&amp;lt;br /&amp;gt;and then perform association tests for every gene. Use &amp;lt;code&amp;gt;--gene&amp;lt;/code&amp;gt; to specify a subset of genes to test.&amp;lt;br /&amp;gt;For example, &amp;lt;code&amp;gt;--gene CFH&amp;lt;/code&amp;gt; will only test CFH gene.&lt;br /&gt;
&lt;br /&gt;
Alternative grouping unit can be specified as &#039;&#039;set&#039;&#039;.&amp;lt;br /&amp;gt;These &#039;&#039;sets&#039;&#039; are treated similar to gene.&amp;lt;br /&amp;gt;You can thus use &amp;lt;code&amp;gt;--setFile&amp;lt;/code&amp;gt; to define sets (similar to &amp;lt;code&amp;gt;--geneFile&amp;lt;/code&amp;gt; option),&amp;lt;br /&amp;gt;and use &amp;lt;code&amp;gt;--set&amp;lt;/code&amp;gt; to define a specific set (similar to &amp;lt;code&amp;gt;--gene&amp;lt;/code&amp;gt; option).&amp;lt;br /&amp;gt;Additionally, use &amp;lt;code&amp;gt;--setList&amp;lt;/code&amp;gt; can speicify a set to test from command line.&lt;br /&gt;
&lt;br /&gt;
The format of a set file is: (1) set names; (2) ranges (e.g. chrom:begin-end);&amp;lt;br /&amp;gt;For example, you have a set file, &amp;lt;code&amp;gt;example.set&amp;lt;/code&amp;gt;, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;set1 1:100-200,1:250-300&lt;br /&gt;
set2 2:500-600&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can specify &amp;lt;code&amp;gt;--setFile example.set --set set2&amp;lt;/code&amp;gt; to group variants&amp;lt;br /&amp;gt;within chromosome 2, position 500 to 600bp.&amp;lt;br /&amp;gt;If you want to test a particular region, for example, chromosome 2, position 500 to 550bp,&amp;lt;br /&amp;gt;but do not want to make another file, you can use &amp;lt;code&amp;gt;--setList 2:500-600&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In summary, options related to &#039;&#039;Grouping Unit&#039;&#039; are listed below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;         --geneFile : specify a gene file (for burden tests)&lt;br /&gt;
             --gene : specify which genes to test&lt;br /&gt;
          --setList : specify a list to test (for burden tests)&lt;br /&gt;
          --setFile : specify a list file (for burden tests, first two columns:&lt;br /&gt;
                      setName chr:beg-end)&lt;br /&gt;
              --set : specify which set to test (1st column)&amp;lt;/pre&amp;gt;&lt;br /&gt;
= Sex chromosome analysis =&lt;br /&gt;
&lt;br /&gt;
Rvtests suppport X chromosome analysis. In human X chromosome, there is PAR (pseudoautosomal region) and non-PAR region.&amp;lt;br /&amp;gt;For males, there are two X allele in PAR region and one allele in non-PAR region.&amp;lt;br /&amp;gt;While the PAR region is treated in the same way as autosomes, rvtests treate non-PAR region differently.&amp;lt;br /&amp;gt;Below we will describe the details about how rvtests handles non-PAR region.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Prepare data&#039;&#039;. According to VCF standard, male genotype needs to coded as 0 or 1. For compatibility, rvtests also support 0/0 or 1/1 coding.&amp;lt;br /&amp;gt;In VCF files, male genotypes can be written as &amp;amp;quot;0&amp;amp;quot;, &amp;amp;quot;1&amp;amp;quot;, &amp;amp;quot;0|0&amp;amp;quot;, &amp;amp;quot;0/0&amp;amp;quot;, &amp;amp;quot;1|1&amp;amp;quot;, &amp;amp;quot;1/1&amp;amp;quot;. All other genotypes will be treated as missing.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Genotype in the regression model&#039;&#039;. For consistencmaine, male genotypes are converted to 0 or 2.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;MetaScore results&#039;&#039;. If specify &amp;lt;code&amp;gt;--meta score&amp;lt;/code&amp;gt;, the output file &amp;lt;code&amp;gt;prefix.MetaScore.assoc&amp;lt;/code&amp;gt; includes PAR-region and non-PAR region analysis.&amp;lt;br /&amp;gt;But in the non-PAR region, the difference is that Hardy-Weinberg P-value are calculated using female samples.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Related individuals&#039;&#039;. Just append &amp;lt;code&amp;gt;--xHemi&amp;lt;/code&amp;gt; to the &amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; (more details in [[#kinship-generation|Kinship generation]]) and &amp;lt;code&amp;gt;rvtest&amp;lt;/code&amp;gt; command lines. Rvtests can recognize non-PAR region kinship and use it in the analysis.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;PAR region&#039;&#039;. PAR region is defined as two regions X:60001-2699520 and X:154931044-155270560. Use &amp;lt;code&amp;gt;--xLabel&amp;lt;/code&amp;gt; can speicify which chromosome has PAR region (default: 23|X)&amp;lt;br /&amp;gt;and use &amp;lt;code&amp;gt;--xParRegion&amp;lt;/code&amp;gt; to specify PAR region (default: hg19, meaning &#039;60001-2699520,154931044-155260560&#039; in the UCSC build hg19, specify &amp;amp;quot;hg18&amp;amp;quot; will use PAR region definition in the UCSC build hg18).&lt;br /&gt;
&lt;br /&gt;
= Kinship generation =&lt;br /&gt;
&lt;br /&gt;
Analysis of related individual usually requires estimation of kinship. You can a separate tool, &amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; is usually included in rvtests binary distribution or can be built from software source codes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; can calcualte pedigree kinship using a pedigree input file (PED format, see [[#phenotype-file|Phenotype file]], use option &amp;lt;code&amp;gt;--ped&amp;lt;/code&amp;gt;).&amp;lt;br /&amp;gt;The output file name is specified by &amp;lt;code&amp;gt;--prefix&amp;lt;/code&amp;gt; option. If you use &amp;lt;code&amp;gt;--prefix output&amp;lt;/code&amp;gt; then the output files will include &amp;lt;code&amp;gt;output.kinship&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
It can also calculate empirical kinship using genotyp input file (VCF format, see [[#genotype-file-vcf|Genotype file (VCF)]], use option &amp;lt;code&amp;gt;--inVcf&amp;lt;/code&amp;gt;).&amp;lt;br /&amp;gt;For empiricial kinship, you also need to specify the kinship model, either Balding-Nicols model (ue option &amp;lt;code&amp;gt;--bn&amp;lt;/code&amp;gt;) or Identity-by-state model (use option &amp;lt;code&amp;gt;--ibs&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
In sex chromosome analysis, it is often required to generate kinship on X chromsoome regions, then you need to speicfy &amp;lt;code&amp;gt;--xHemi&amp;lt;/code&amp;gt;. If your input VCF file has different X chromosome label (e.g. chromosome name is &#039;23&#039; instead of &#039;X&#039;), you can use &amp;lt;code&amp;gt;--xLabel 23&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If principal component decomposition (PCA) results are needed, you can use option &amp;lt;code&amp;gt;--pca&amp;lt;/code&amp;gt;. Then output files with suffix &#039;.pca&#039; include PCA results.&lt;br /&gt;
&lt;br /&gt;
When dealing with large input files, it is often preferred to use multiple CPU to speed up calculation using the option &amp;lt;code&amp;gt;--thread N&amp;lt;/code&amp;gt; in which N is the number of CPUs.&lt;br /&gt;
&lt;br /&gt;
For example, to generate pedigree-based kinship (&amp;lt;code&amp;gt;--ped&amp;lt;/code&amp;gt;) on both autosomal region and X chromosome (&amp;lt;code&amp;gt;--xHemi&amp;lt;/code&amp;gt;) region, the command line is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vcf2kinship --ped input.ped --xHemi --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
To generate empirical kinship (&amp;lt;code&amp;gt;--inVcf&amp;lt;/code&amp;gt;) on both autosomal region and X chromosome (&amp;lt;code&amp;gt;--xHemi&amp;lt;/code&amp;gt;) region using Balding-Nicols model, the command line is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vcf2kinship --inVcf input.vcf.gz --ped input.ped --bn --xHemi --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
NOTE: you need to provide a pedigree file (PED) in the above case, as &amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; need the sex information of samples.&lt;br /&gt;
&lt;br /&gt;
= Frequently Asked Questions (FAQ) =&lt;br /&gt;
&lt;br /&gt;
* Does rvtests suppport binary traits of related-individuals?&lt;br /&gt;
&lt;br /&gt;
Not yet. It&#039;s a complex scenario and we have not found good solutions.&lt;br /&gt;
&lt;br /&gt;
* Can you provide a list of command line options?&lt;br /&gt;
&lt;br /&gt;
Rvtests have build help taht can be found by executing &amp;lt;code&amp;gt;rvtest --help&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt;We also put all available options in this [https://github.com/zhanxw/rvtests/wiki/Command-Line-Options link].&lt;br /&gt;
&lt;br /&gt;
* Can you provide standard error (SE) or confidence interval (CI) for the estimated Beta in the score model?&lt;br /&gt;
&lt;br /&gt;
In the output of MetaScore model (--meta score), the standard error is the inverse of SQRT_V_STAT.&amp;lt;br /&amp;gt;For example, if SQRT_V_STAT = 2, that means the standard error of estimated beta is 1/2 = 0.5.&lt;br /&gt;
&lt;br /&gt;
* Why the INFORMATIVE_ALT_AC, N_REF and N_ALT columns have zero counts for certain chromosome X regions in meta-analysis models?&lt;br /&gt;
&lt;br /&gt;
These counts are calculated from female individuals. If your study only has male samples, rvtests cannot report these counts. Because if a male carries a non-reference allele, we cannot conclude that this is heterozygous (0/1) site or homozygous alternatives (1/1) site.&lt;br /&gt;
&lt;br /&gt;
= Feedback/Contact =&lt;br /&gt;
&lt;br /&gt;
Questions and requests can be sent to Xiaowei Zhan&amp;lt;br /&amp;gt;([mailto:zhanxw@umich.edu [mailto:zhanxw@umich.edu zhanxw@umich.edu]])&amp;lt;br /&amp;gt;or Goncalo Abecasis&amp;lt;br /&amp;gt;([mailto:goncalo@umich.edu [mailto:goncalo@umich.edu goncalo@umich.edu]])&lt;br /&gt;
&lt;br /&gt;
Rvtests is a collaborative effort by Youna Hu, Bingshan Li, Dajiang Liu.&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=LiftOver&amp;diff=13633</id>
		<title>LiftOver</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=LiftOver&amp;diff=13633"/>
		<updated>2015-07-15T22:33:41Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: /* Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;LiftOver is a necesary step to bring all genetical analysis to the same reference build. &lt;br /&gt;
LiftOver can have three use cases: &lt;br /&gt;
&lt;br /&gt;
(1) [[#Lift genome positions | Convert genome position from one genome assembly to another genome assembly]]&lt;br /&gt;
&lt;br /&gt;
In most scenarios, we have known genome positions in NCBI build 36 (UCSC hg 18) and hope to lift them over to NCBI build 37 (UCSC hg19).&lt;br /&gt;
&lt;br /&gt;
(2) [[#Lift dbSNP rs numbers | Convert dbSNP rs number from one build to another]]&lt;br /&gt;
&lt;br /&gt;
(3) [[#Lift Merlin/PLINK format | Convert both genome position and dbSNP rs number over different versions]]&lt;br /&gt;
&lt;br /&gt;
It is likely to see such type of data in Merlin/PLINK format.&lt;br /&gt;
&lt;br /&gt;
We will explain the work flow for the above three cases. In the rest of this article, &lt;br /&gt;
our example is to lift over from lower/older build to newer/higher build, as it is the common practice.&lt;br /&gt;
&lt;br /&gt;
Using different tools, liftOver can be easy.&lt;br /&gt;
For example, UCSC liftOver tool is able to lift [http://genome.ucsc.edu/FAQ/FAQformat.html#format1 BED format] file between builds.&lt;br /&gt;
With our customized scripts, we can also lift rsNumber and Merlin/PLINK data files. &lt;br /&gt;
&lt;br /&gt;
== Lift genome positions ==&lt;br /&gt;
Genome positions are best represented in [http://genome.ucsc.edu/FAQ/FAQformat.html#format1 BED format]. UCSC provides tools to convert BED file from one genome assembly to another. &lt;br /&gt;
&lt;br /&gt;
=== Binary liftOver tool ===&lt;br /&gt;
We need [http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/liftOver liftOver binary] from UCSC and [http://hgdownload.cse.ucsc.edu/goldenPath/hg18/liftOver/hg18ToHg19.over.chain.gz hg18 to hg 19 chain file].&lt;br /&gt;
&lt;br /&gt;
Provide BED format file (e.g. input.bed)&lt;br /&gt;
&lt;br /&gt;
NOTE: Use the &#039;chr&#039; before each chromosome name&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chr1    743267  743268  rs3115860&lt;br /&gt;
chr1    766408  766409  rs12124819&lt;br /&gt;
chr1    773885  773886  rs17160939&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run liftOver:&lt;br /&gt;
&lt;br /&gt;
    liftOver input.bed hg18ToHg19.over.chain.gz output.bed unlifted.bed&lt;br /&gt;
&lt;br /&gt;
unlifted.bed file will contain all genome positions that cannot be lifted. The reason for that varies. See [[#Various reasons that lift over could fail | Various reasons that lift over could fail]]&lt;br /&gt;
&lt;br /&gt;
=== Web interface ===&lt;br /&gt;
Alternatively, you can lift over BED file in web interface&lt;br /&gt;
at: [http://genome.ucsc.edu/cgi-bin/hgLiftOver Link]&lt;br /&gt;
Web interface can tell you why some genome position cannot&lt;br /&gt;
be lifted if you click &amp;quot;Explain failure messages&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Lift dbSNP rs numbers ==&lt;br /&gt;
rs number is release by dbSNP. UCSC also make their own copy from each dbSNP version. Be aware that the same version of dbSNP from these two centers are not the same.&lt;br /&gt;
When we convert rs number from lower version to higher version, there are practically two ways.&lt;br /&gt;
&lt;br /&gt;
=== Use RsMergeArch and SNPHistory ===&lt;br /&gt;
It is necessary to quickly summarize how dbSNP merge/re-activate rs number:&lt;br /&gt;
&lt;br /&gt;
# when different rs number are found to refer to the same SNP, then higher rs number will be merged to lower rs number, and the merging will be recorded in RsMergeArch.bcp.gz.&lt;br /&gt;
# when rs number have to be retracted, rs number will be recorded in SNPHistory.bcp.gz&lt;br /&gt;
# a retracted SNP can be [http://www.ncbi.nlm.nih.gov/books/NBK44496/#Schema.rs4823903_which_has_merged_into re-activated] in SNPHistory.bcp.gz by adding comment&lt;br /&gt;
&lt;br /&gt;
With the above in mind, we are able to combine these two tables to obtain the relationship between older rs number and new rs number.&lt;br /&gt;
We have developed a script (for internal use), named [http://genome.sph.umich.edu/wiki/LiftRsNumber.py liftRsNumber.py] for lift rs numbers between builds.&lt;br /&gt;
This scripts require RsMergeArch.bcp.gz  and SNPHistory.bcp.gz, those can be found in [[#Resources | Resources]].&lt;br /&gt;
&lt;br /&gt;
Example input:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
3000&lt;br /&gt;
3001&lt;br /&gt;
3002&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
python liftRsNumber.py input.rs &amp;gt; output.rs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
unchanged       3000&lt;br /&gt;
lifted  2032&lt;br /&gt;
unchanged       3002&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lift Merlin/PLINK format ==&lt;br /&gt;
In Merlin/PLINK .map files, each line contains both genome position and dbSNP rs number. Our goal here is to use both information to liftOver as many position as possible.&lt;br /&gt;
There are 3 methods to liftOver and we recommend the first 2 method. The first method is common and applicable in most cases, and in our observations it lifts the most genome positions, however, it does not reflect the rs  number change between different dbSNP builds. The second method is more robust in the sense that each lifted rs number has valid genome position, as it lift over old rs number as the first step by using dbSNP data. The third method is not straigtforward, and we just briefly mention it.&lt;br /&gt;
&lt;br /&gt;
=== Lift Merlin format ===&lt;br /&gt;
&lt;br /&gt;
PLINK format and [http://www.sph.umich.edu/csg/abecasis/Merlin/tour/input_files.html Merlin format are nearly identical]. &lt;br /&gt;
The difference is that Merlin .map file have 4 columns. We will show&lt;br /&gt;
the lift over procedure for PLINK format, then you can use:&lt;br /&gt;
&lt;br /&gt;
  awk &#039;{print $1,$2,&amp;quot;\t&amp;quot;,$3;}&#039; PLINK.map &amp;gt; Merlin.map&lt;br /&gt;
&lt;br /&gt;
to obtain Merlin .map file. &lt;br /&gt;
&lt;br /&gt;
=== Lift PLINK format ===&lt;br /&gt;
[http://pngu.mgh.harvard.edu/~purcell/plink/data.shtml PLINK] format usually referrs to .ped and .map files. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Method 1 ====&lt;br /&gt;
We mainly use UCSC LiftOver binary tools to help lift over. &lt;br /&gt;
We have a script [[#Resources | liftMap.py]], however, it is recommended to understand the job step by step:&lt;br /&gt;
&lt;br /&gt;
(1) Convert .map to .bed file&lt;br /&gt;
&lt;br /&gt;
By rearrange columns of .map file, we obtain a standard BED format file.&lt;br /&gt;
&lt;br /&gt;
(2) LiftOver .bed file&lt;br /&gt;
&lt;br /&gt;
Use method mentioned [[#Lift genome positions | above]] to convert .bed file from one build to another.&lt;br /&gt;
&lt;br /&gt;
(3) Convert lifted .bed file back to .map file&lt;br /&gt;
&lt;br /&gt;
Rearrange column of .map file to obtain .bed file in the new build.&lt;br /&gt;
&lt;br /&gt;
(4) Modify .ped file&lt;br /&gt;
&lt;br /&gt;
.ped file have many column files. By convention, the first six columns are family_id, person_id, father_id, mother_id, sex, and phenotype.&lt;br /&gt;
From the 7th column, there are two letters/digits representing a genotype at the certain marker. In step (2), as some genome positions cannot&lt;br /&gt;
be lifted to the new version, we need to drop their corresponding columns from .ped file to keep consistency. You can use PLINK --exclude those snps,&lt;br /&gt;
see [http://pngu.mgh.harvard.edu/~purcell/plink/dataman.shtml#exclude Remove a subset of SNPs].&lt;br /&gt;
&lt;br /&gt;
(5) (optionally) change the rs number in the .map file&lt;br /&gt;
&lt;br /&gt;
Similar to the human reference build, dbSNP also have different versions. You may consider change rs number from the old dbSNP version to new dbSNP version &lt;br /&gt;
depending on your needs. Such steps are described in [[#Lift dbSNP rs numbers | Lift dbSNP rs numbers]].&lt;br /&gt;
&lt;br /&gt;
==== Method 2 ====&lt;br /&gt;
The idea is to use [[#Resources |LiftRsNumber.py]] to convert old rs number to new rs number, use the data file b132_SNPChrPosOnRef_37_1.bcp.gz (a data file containing each dbSNP and its positions in NCBI build 37), and adjust .map and .ped files accordingly. &lt;br /&gt;
&lt;br /&gt;
(1) Extract and lift rs numbers&lt;br /&gt;
&lt;br /&gt;
Use the tools [[#Use RsMergeArch and SNPHistory | LiftRsNumber.py]] to lift the rs number in the map file from old build to new build.&lt;br /&gt;
&lt;br /&gt;
(2) Lookup SNP positions from rs number&lt;br /&gt;
&lt;br /&gt;
dbSNP provides a file [[#Resources | b132_SNPChrPosOnRef_37_1.bcp.gz]] which contains rsNumber, chromosome and its position.&lt;br /&gt;
Use this file along with the new rsNumber obtained in the first step.&lt;br /&gt;
In practice, some rs numbers do not exist in build 132, or not suitable to be considered ( e.g. they do not reside on human reference, or they are mapped to multiple locations, these scenarios are noted by the chromosome column with values like &amp;quot;AltOnly&amp;quot;, &amp;quot;Multi&amp;quot;, &amp;quot;NotOn&amp;quot;, &amp;quot;PAR&amp;quot;, &amp;quot;Un&amp;quot;), we can drop them in the liftover procedure.&lt;br /&gt;
We will obtain the rs number and its position in the new build after this step.&lt;br /&gt;
&lt;br /&gt;
(3) Lift .map file and .ped file&lt;br /&gt;
&lt;br /&gt;
To lift over .map files, we can scan its content line by line, and skip those not lifted rs number.&lt;br /&gt;
Accordingly, it is necessary to drop the un-lifted SNP genotypes from .ped file.&lt;br /&gt;
&lt;br /&gt;
==== Method 3 ====&lt;br /&gt;
NCBI dbSNP team has provided a [[ #Resources | provisional map ]] for converting the genome position of a larget set dbSNP from NCBI build 36 to NCBI build 37. &lt;br /&gt;
In the second step, we have obtained unlifted genome positions, so we can try to use the table to convert those unlfted dbSNPs.&lt;br /&gt;
After this step, there are still some SNPs that cannot be lifted, as they are mostly located on non-reference chromosome.&lt;br /&gt;
Note: due to the limitation of the provisional map, some SNP can have multiple locations.&lt;br /&gt;
For example, we cannot convert rs10000199 to chromosome 4, 7, 12.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
10000199	A/G	4	166142415	166142415	2	3	G	+	4	165922965	165922965	2	3	G	+&lt;br /&gt;
10000199	A/G	7	4589694	4589694	2	3	C	-	7	4623168	4623168	2	3	C	-&lt;br /&gt;
10000199	A/G	12	57008620	57008620	2	3	C	-	12	58722353	58722353	2	3	C	-&lt;br /&gt;
10000199	A/G	5	156018406	156018406	2	3	C	-	5	156085828	156085828	2	3	C	-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can dissect this method into steps:&lt;br /&gt;
&lt;br /&gt;
(1) Remove invalid record in dbSNP provisional map.&lt;br /&gt;
&lt;br /&gt;
Provisional map have duplicated rs number or the chromsome in the new build can be &amp;quot;Unable to map&amp;quot;(UN), we need to clean this table.&lt;br /&gt;
&lt;br /&gt;
(2) Use provisional map to update .map file&lt;br /&gt;
&lt;br /&gt;
By joining .map file and this provisional map, we can obtain the new genome position in the new build.&lt;br /&gt;
Note: provisional map uses 1-based chromosomal index. Things will get tricker if we want to lift non-single site SNP e.g. AA/GG&lt;br /&gt;
Since provisional map provides a range in this case, it is necessary to know the genome position of that single base provided in the .map file, &lt;br /&gt;
and then we can look up the table, so it is not straigtforward.&lt;br /&gt;
&lt;br /&gt;
(3) Adjust .map and .ped file&lt;br /&gt;
&lt;br /&gt;
For those lifted dbSNP, we need to keep them in the .map files, otherwise, we need to delete them.&lt;br /&gt;
Accordingly, we need to deleted SNP genotypes for those cannot be lifted.&lt;br /&gt;
&lt;br /&gt;
== Various reasons that lift over can fail ==&lt;br /&gt;
&lt;br /&gt;
=== Genome position cannot be lifted ===&lt;br /&gt;
When a SNP resides in a contig that only exists in older reference build, liftOver cannot give it new genome.&lt;br /&gt;
&lt;br /&gt;
You can try the following SNP (in BED format) in UCSC online liftOver site:&lt;br /&gt;
 20 56737667 56737668 rs1073519&lt;br /&gt;
The error message will be: &amp;quot;Sequence intersects no chains&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== SNP in higher build are located in non-referernce assembly ===&lt;br /&gt;
Some SNP are not in autosomes or sex chromosomes in NCBI build 37. dbSNP does not include them. &lt;br /&gt;
You cannot use dbSNP database to lookup its genome position by rs number.&lt;br /&gt;
&lt;br /&gt;
Take rs1006094 as an example:&lt;br /&gt;
In NCBI dbSNP webpage, this SNP is reported as &amp;quot;Mapped unambiguously on non-reference assembly only&amp;quot;&lt;br /&gt;
Thus it is probably not very useful to lift this SNP.&lt;br /&gt;
&lt;br /&gt;
=== rs number changed in newer dbSNP build ===&lt;br /&gt;
It is possible that new dbSNP build does not have certain rs numbers.&lt;br /&gt;
When dbSNp release new build, higher rs number may be merged to lower rs number because of those rs numbers are actually the same SNP.&lt;br /&gt;
This merge process can be complicate. For short description, see [[ #Use RsMergeArch and SNPHistory | Use RsMergeArch and SNPHistory ]]. &lt;br /&gt;
For detail, see:&lt;br /&gt;
&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/books/NBK44395/#FTP.do_you_have_a_table_of_merged_snps_s Finding Specific Data in dbSNP’s FTP Files] &lt;br /&gt;
&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/books/NBK44468/#Build.can_two_id_numbers_correspond_to_t Merging RefSNP Numbers and RefSNP Clusters]&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
rs3001 has merged to rs2032.&lt;br /&gt;
&lt;br /&gt;
=== Different dbSNP build ===&lt;br /&gt;
NCBI released dbSNP132 (VCF format), and UCSC also have their version of dbSNP132 (plain txt).&lt;br /&gt;
The two database files differ not only in file format, but in content.&lt;br /&gt;
&lt;br /&gt;
For NCBI release, its [[#Resources| release]] will not contain:&lt;br /&gt;
* SNPs listed as microsatellites or named variations&lt;br /&gt;
* SNPs with multibyte alleles and unknown (N) adjacent base pairs&lt;br /&gt;
* SNPs that are not mapped on the reference genome (GRCh37)&lt;br /&gt;
&lt;br /&gt;
For UCSC release, see [[ #Resources | UCSC dbSNP track note ]]&lt;br /&gt;
&lt;br /&gt;
Use rs1054140 as an example:&lt;br /&gt;
&lt;br /&gt;
NCBI dbSNP website gives 1 location:&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?rs=1054140 Link]&lt;br /&gt;
&lt;br /&gt;
NCBI dbSNP VCF file has NO record.&lt;br /&gt;
&lt;br /&gt;
UCSC genome browser website gives 2 locations:&lt;br /&gt;
[http://genome.ucsc.edu/cgi-bin/hgTracks?clade=mammal&amp;amp;org=Human&amp;amp;db=hg19&amp;amp;position=rs1054140&amp;amp;hgt.suggest=&amp;amp;hgt.suggestTrack=knownGene&amp;amp;pix=800&amp;amp;Submit=submit&amp;amp;hgsid=205770459&amp;amp;hgt.newJQuery=1 Link]&lt;br /&gt;
&lt;br /&gt;
UCSC dbSNP file give 2 locations:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
721     chr10   17842693        17842694        rs1054140       0       +       T       T       A/T     genomic single  by-cluster,by-submitter ...&lt;br /&gt;
723     chr10   18089681        18089682        rs1054140       0       +       T       T       A/T     genomic single  by-cluster,by-submitter ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
* liftRsNumber.py [[liftRsNumber.py]] and its interal location: /net/fantasia/home/zhanxw/amd/analyze/verifyBamID/liftRsNumber.py&lt;br /&gt;
* liftMap.py [[liftMap.py]]&lt;br /&gt;
* NCBI provisional map [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/misc/exchange/Remap_36_3_37_1.txt.gz file] and [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/misc/exchange/Remap_36_3_37_1.info info]&lt;br /&gt;
* NCBI RgMergeArch [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/database/organism_data/RsMergeArch.bcp.gz file] and [http://www.ncbi.nlm.nih.gov/SNP/snp_db_table_description.cgi?t=RsMergeArch schema]&lt;br /&gt;
* NCBI SNPHistory [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/database/organism_data/SNPHistory.bcp.gz file] and [http://www.ncbi.nlm.nih.gov/SNP/snp_db_table_description.cgi?t=SNPHistory schema]&lt;br /&gt;
* NCBI SNPChrPosOnRef build 132 [http://qbrc.swmed.edu/zhanxw/software/liftOver/b132_SNPChrPosOnRef_37_1.bcp.gz file] and [http://www.ncbi.nlm.nih.gov/SNP/snp_db_table_description.cgi?t=SNPChrPosOnRef schema]. If this link becomes unavailable, please consider using this updated file ([ftp://ftp.ncbi.nih.gov/snp/organisms/human_9606/database/organism_data/b144_SNPChrPosOnRef_107.bcp.gz link]).&lt;br /&gt;
&lt;br /&gt;
* How UCSC dbSNP differs from NCBI dbSNP [http://genomewiki.ucsc.edu/index.php/DbSNP_Track_Notes UCSC dbSNP track note]&lt;br /&gt;
* The dbSNP mapping process [http://www.ncbi.nlm.nih.gov/books/NBK44455/ link]&lt;br /&gt;
* NCBI dbSNP release 132 [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/VCF/v4.0/ByChromosomeNoGeno/00-All.vcf.gz 00-All.vcf.gz]&lt;br /&gt;
* UCSC dbSNP release 132 [http://hgdownload.cse.ucsc.edu/goldenPath/hg19/database/snp132.txt.gz snp132.txt.gz]&lt;br /&gt;
&lt;br /&gt;
== Third party contribution ==&lt;br /&gt;
&lt;br /&gt;
* liftOver for BEDPE format by [mailto://doug.phanstiel@gmail.com Doug] - [http://www.sharedproteomics.com/forum/showthread.php?2930-liftOverBedpe.py-Convert-genome-coordinates-for-bedpe-files&amp;amp;p=4854#post4854 liftOverBedpe.py].&lt;br /&gt;
&lt;br /&gt;
== Acknowledge ==&lt;br /&gt;
&lt;br /&gt;
* Hyun: provides sample liftOver tool: [/net/wonderland/home/hmkang/prj/Sardinia/MetaboChip/scripts/j01-liftover-metabochip-positions.pl]&lt;br /&gt;
* Alex: careful examines of 0-based index in UCSC data file&lt;br /&gt;
* Adrian: explaination of SNPs omitted in NCBI dbSNP file&lt;br /&gt;
* Goncalo: all other supports&lt;br /&gt;
&lt;br /&gt;
== Questions and Comments ==&lt;br /&gt;
&lt;br /&gt;
Please contact [mailto:zhanxw@umich.edu Xiaowei Zhan].&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RareMETALS&amp;diff=13072</id>
		<title>RareMETALS</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RareMETALS&amp;diff=13072"/>
		<updated>2015-03-25T02:37:08Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: /* A Simple Tutorial for Using the rareMETALS.range function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;rareMETALS is an R-package for performing single or gene-level tests for detecting rare variant associations. For questions regarding the use of this package, please contact Dajiang Liu (dajiang at umich dot edu) or Gonçalo Abecasis (goncalo at umich dot edu). The same methodology is also implemented in command line tools. Please see [http://genome.sph.umich.edu/wiki/Rare-Metal]&lt;br /&gt;
&lt;br /&gt;
== Change Log ==&lt;br /&gt;
* 01/24/2015 Version 5.8 is released, which fixed a serious bug for single variant unconditional association tests with group file. If you happen to run the analyses using rareMETALS.single.group() in version 5.7, the results are likely to be incorrect. Please rerun using version 5.8. Please note only rareMETALS.single.group function is affected. All other functions should not be affected by this error. &lt;br /&gt;
* 01/04/2015 Version 5.7 is released, which added metrics for heterogeneity of genetic effects, including I2 and Q for single variant association statistics&lt;br /&gt;
* 12/09/2014 Version 5.6 is released, which added function conditional.rareMETALS.range.group, and fixed a minor issue for estimating sample sizes. &lt;br /&gt;
* 11/19/2014 Version 5.5 is released, which fixes a few bugs on the version 5.4.&lt;br /&gt;
* 11/09/2014 Version 5.4 is posted with the following change 1.) Allowing for performing conditional analysis for multiple candidate variants 2.) add option correctFlip to rareMETALS.single.group, rareMETALS.range.group allowing for options to discard sites with non-matching ref or alt alleles. Default is TRUE &lt;br /&gt;
* 09/08/2014 Version 5.2 is posted. One change in version 5.0 and 5.1 is reverted, which could lead to undesirable effect. It improves on some border line cases as compared to Versions 4.7 - 4.9. But in general, version 5.2 and 4.7-4.9 should give very comparable results. Please update to the latest version. I would expect that version 5.2 should run stably for all models under all circumstances.   &lt;br /&gt;
* 08/21/2014 Version 4.9 is posted. A bug is fixed for VT test. While the p-values and statistics were correct, the number of sites and the beta estimate could sometimes be incorrect in version 4.8. Now it is fixed. Please download the newest version. Thanks!  &lt;br /&gt;
* 08/18/2014 Version 4.8 is posted. A bug for recessive model analysis is fixed. Additive and dominant models should remain unaffected. Thanks! &lt;br /&gt;
* 08/06/2014 Version 4.7 is posted, where a few minor bugs were fixed. Thanks to Heather Highland and Xueling Sim for careful testing!! Please update. Thanks!&lt;br /&gt;
* 07/15/2014 Fixed a bug in conditional.rareMETALS.single and conditional.rareMETALS.range; Please update. Thanks!&lt;br /&gt;
* 06/27/2014 Updated to version 4.0: Many updates are implemented, including support for group files in both single variant and gene-level association test; checks for allele flips based upon variant frequency, the detection of possible allele flips using a novel statistic based upon variations of allele frequency between studies;&lt;br /&gt;
&lt;br /&gt;
== Where to download ==&lt;br /&gt;
&lt;br /&gt;
The R package can be downloaded from [[Media:rareMETALS_5.8.tar.gz | rareMETALS_5.8.tar.gz]]. It will be eventually released on the Comprehensive R-archive Network. If you want to perform gene-level association test using automatically generated annotations, you will also need [[Media:refFlat_hg19.txt.gz | refFlat_hg19.txt.gz]], which is the gene definition modified from refFlat.&lt;br /&gt;
&lt;br /&gt;
== How to install ==&lt;br /&gt;
&lt;br /&gt;
To install the package, please use &amp;quot;R CMD INSTALL rareMETALS_XXX.tar.gz&amp;quot; command, where XXX is the version number for rareMETALS&lt;br /&gt;
&lt;br /&gt;
== Supported Functionalities ==&lt;br /&gt;
* Marginal meta-analysis of single variant or gene-level association test &lt;br /&gt;
* Conditional analysis of single variant or gene-level association, for variants (gene) where there are covariance information available between candidate variants and known variants.  &lt;br /&gt;
* Estimates of genetic effects and locus genetic variance&lt;br /&gt;
* Estimate measures of genetic effect heterogeneities between studies &lt;br /&gt;
&lt;br /&gt;
== Exemplar Dataset==&lt;br /&gt;
&lt;br /&gt;
Four datasets are useful to get you started on how to use rareMETALS R package for meta-analyses of gene-level association test&lt;br /&gt;
&lt;br /&gt;
[[Media:study1.MetaScore.assoc.gz]] [[Media:study2.MetaScore.assoc.gz]] [[Media:study1.MetaCov.assoc.gz]] [[Media:study2.MetaCov.assoc.gz]]&lt;br /&gt;
&lt;br /&gt;
== How to Generate Summary Association Statistics and Prepare Them for Meta-analysis ==&lt;br /&gt;
&lt;br /&gt;
Meta-analysis summary association statistics can be generated by both RVTESTS and RAREMETALWORKER. Please refer to their documentations for generating summary association statistics &lt;br /&gt;
&lt;br /&gt;
Once you have generated summary association statistics, you need to compress them with bgzip, and index them with tabix. If you use RAREMETALWORKER, the command should be like &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: Tabix 1.X does not seem to support the indexing for generic tab-delimited files. To index the file, please use tabix 0.2.5 or earlier versions. &lt;br /&gt;
&lt;br /&gt;
If you use RVTESTS, your command should be&lt;br /&gt;
&lt;br /&gt;
  bgzip study1.MetaScore.assoc&lt;br /&gt;
&lt;br /&gt;
  tabix -s 1 -b 2 -e 2 -S 1 study1.MetaScore.assoc.gz&lt;br /&gt;
&lt;br /&gt;
  tabix -s 1 -b 2 -e 2 -S 1 study1.MetaCov.assoc.gz&lt;br /&gt;
&lt;br /&gt;
== A Simple Tutorial for Using the rareMETALS.single function ==&lt;br /&gt;
&lt;br /&gt;
rareMETALS.single function allow you to perform meta-analyses for single variant association tests. The summary association statistics are combined using Mantel Haenszel test statistic. The details are described in our method paper Liu et al, Nat Genet, 2014. &lt;br /&gt;
&lt;br /&gt;
Assume that you have a set of single variant score statistics and their covariance matrices. &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
  library(rareMETALS)&lt;br /&gt;
  cov.file &amp;lt;- c(&amp;quot;study1.MetaCov.assoc.gz&amp;quot;,&amp;quot;study2.MetaCov.assoc.gz&amp;quot;);&lt;br /&gt;
  score.stat.file &amp;lt;- c(&amp;quot;study1.MetaScore.assoc.gz&amp;quot;,&amp;quot;study2.MetaScore.assoc.gz&amp;quot;)&lt;br /&gt;
  res &amp;lt;- rareMETALS.single(score.stat.file,cov.file=NULL,range=&amp;quot;19:11200093-11201275&amp;quot;,alternative=&amp;quot;two.sided&amp;quot;,ix.gold=1,callrate.cutoff=0,hwe.cutoff=0);&lt;br /&gt;
&lt;br /&gt;
== A Simple Tutorial for Using the rareMETALS.range function ==&lt;br /&gt;
&lt;br /&gt;
  res &amp;lt;- rareMETALS.range(score.stat.file,cov.file,range=&amp;quot;19:11200093-11201275&amp;quot;,range.name=&amp;quot;LDLR&amp;quot;,test = &amp;quot;GRANVIL&amp;quot;,maf.cutoff = 0.05,alternative = c(&amp;quot;two.sided&amp;quot;),ix.gold = 1,out.digits = 4,callrate.cutoff = 0,hwe.cutoff = 0,max.VT = NULL)&lt;br /&gt;
 print(res$res.out)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   gene.name.out p.value.out statistic.out no.site.out beta1.est.out&lt;br /&gt;
[1,] &amp;quot;LDLR&amp;quot;        &amp;quot;0.6064&amp;quot;    &amp;quot;0.2654&amp;quot;      &amp;quot;25&amp;quot;        &amp;quot;-0.01729&amp;quot;&lt;br /&gt;
     beta1.sd.out maf.cutoff.out direction.burden.by.study.out&lt;br /&gt;
[1,] &amp;quot;0.03357&amp;quot;    &amp;quot;0.05&amp;quot;         &amp;quot;--&amp;quot;&lt;br /&gt;
     direction.meta.single.var.out top.singlevar.pos top.singlevar.refalt&lt;br /&gt;
[1,] &amp;quot;---++-+--+-+++++--+++++-+&amp;quot;   &amp;quot;19:11200431&amp;quot;     &amp;quot;C/T&amp;quot;&lt;br /&gt;
     top.singlevar.pval top.singlevar.af&lt;br /&gt;
[1,] &amp;quot;0.004709&amp;quot;         &amp;quot;0.01038&amp;quot;&lt;br /&gt;
     pos.ref.alt.out       &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[1,] &amp;quot;19:11200093/T/C,19:11200213/G/A,19:11200235/G/A,19:11200272/C/A,19:11200282/G/A,19:11200309/C/A,19:11200412/C/T,19:11200419/C/T,19:11200431/C/T,19:1120\&lt;br /&gt;
0442/G/A,19:11200475/C/G,19:11200508/G/A,19:11200514/C/T,19:11200557/G/A,19:11200579/C/T,19:11200728/C/T,19:11200753/T/C,19:11200754/G/A,19:11200806/C/T,19:1\&lt;br /&gt;
1200839/T/A,19:11200840/C/A,19:11200896/C/T,19:11201259/G/C,19:11201274/C/T,19:11201275/A/T&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More detailed results can be found in a list res$res.list&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RareMETALS&amp;diff=13071</id>
		<title>RareMETALS</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RareMETALS&amp;diff=13071"/>
		<updated>2015-03-25T02:16:24Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;rareMETALS is an R-package for performing single or gene-level tests for detecting rare variant associations. For questions regarding the use of this package, please contact Dajiang Liu (dajiang at umich dot edu) or Gonçalo Abecasis (goncalo at umich dot edu). The same methodology is also implemented in command line tools. Please see [http://genome.sph.umich.edu/wiki/Rare-Metal]&lt;br /&gt;
&lt;br /&gt;
== Change Log ==&lt;br /&gt;
* 01/24/2015 Version 5.8 is released, which fixed a serious bug for single variant unconditional association tests with group file. If you happen to run the analyses using rareMETALS.single.group() in version 5.7, the results are likely to be incorrect. Please rerun using version 5.8. Please note only rareMETALS.single.group function is affected. All other functions should not be affected by this error. &lt;br /&gt;
* 01/04/2015 Version 5.7 is released, which added metrics for heterogeneity of genetic effects, including I2 and Q for single variant association statistics&lt;br /&gt;
* 12/09/2014 Version 5.6 is released, which added function conditional.rareMETALS.range.group, and fixed a minor issue for estimating sample sizes. &lt;br /&gt;
* 11/19/2014 Version 5.5 is released, which fixes a few bugs on the version 5.4.&lt;br /&gt;
* 11/09/2014 Version 5.4 is posted with the following change 1.) Allowing for performing conditional analysis for multiple candidate variants 2.) add option correctFlip to rareMETALS.single.group, rareMETALS.range.group allowing for options to discard sites with non-matching ref or alt alleles. Default is TRUE &lt;br /&gt;
* 09/08/2014 Version 5.2 is posted. One change in version 5.0 and 5.1 is reverted, which could lead to undesirable effect. It improves on some border line cases as compared to Versions 4.7 - 4.9. But in general, version 5.2 and 4.7-4.9 should give very comparable results. Please update to the latest version. I would expect that version 5.2 should run stably for all models under all circumstances.   &lt;br /&gt;
* 08/21/2014 Version 4.9 is posted. A bug is fixed for VT test. While the p-values and statistics were correct, the number of sites and the beta estimate could sometimes be incorrect in version 4.8. Now it is fixed. Please download the newest version. Thanks!  &lt;br /&gt;
* 08/18/2014 Version 4.8 is posted. A bug for recessive model analysis is fixed. Additive and dominant models should remain unaffected. Thanks! &lt;br /&gt;
* 08/06/2014 Version 4.7 is posted, where a few minor bugs were fixed. Thanks to Heather Highland and Xueling Sim for careful testing!! Please update. Thanks!&lt;br /&gt;
* 07/15/2014 Fixed a bug in conditional.rareMETALS.single and conditional.rareMETALS.range; Please update. Thanks!&lt;br /&gt;
* 06/27/2014 Updated to version 4.0: Many updates are implemented, including support for group files in both single variant and gene-level association test; checks for allele flips based upon variant frequency, the detection of possible allele flips using a novel statistic based upon variations of allele frequency between studies;&lt;br /&gt;
&lt;br /&gt;
== Where to download ==&lt;br /&gt;
&lt;br /&gt;
The R package can be downloaded from [[Media:rareMETALS_5.8.tar.gz | rareMETALS_5.8.tar.gz]]. It will be eventually released on the Comprehensive R-archive Network. If you want to perform gene-level association test using automatically generated annotations, you will also need [[Media:refFlat_hg19.txt.gz | refFlat_hg19.txt.gz]], which is the gene definition modified from refFlat.&lt;br /&gt;
&lt;br /&gt;
== How to install ==&lt;br /&gt;
&lt;br /&gt;
To install the package, please use &amp;quot;R CMD INSTALL rareMETALS_XXX.tar.gz&amp;quot; command, where XXX is the version number for rareMETALS&lt;br /&gt;
&lt;br /&gt;
== Supported Functionalities ==&lt;br /&gt;
* Marginal meta-analysis of single variant or gene-level association test &lt;br /&gt;
* Conditional analysis of single variant or gene-level association, for variants (gene) where there are covariance information available between candidate variants and known variants.  &lt;br /&gt;
* Estimates of genetic effects and locus genetic variance&lt;br /&gt;
* Estimate measures of genetic effect heterogeneities between studies &lt;br /&gt;
&lt;br /&gt;
== Exemplar Dataset==&lt;br /&gt;
&lt;br /&gt;
Four datasets are useful to get you started on how to use rareMETALS R package for meta-analyses of gene-level association test&lt;br /&gt;
&lt;br /&gt;
[[Media:study1.MetaScore.assoc.gz]] [[Media:study2.MetaScore.assoc.gz]] [[Media:study1.MetaCov.assoc.gz]] [[Media:study2.MetaCov.assoc.gz]]&lt;br /&gt;
&lt;br /&gt;
== How to Generate Summary Association Statistics and Prepare Them for Meta-analysis ==&lt;br /&gt;
&lt;br /&gt;
Meta-analysis summary association statistics can be generated by both RVTESTS and RAREMETALWORKER. Please refer to their documentations for generating summary association statistics &lt;br /&gt;
&lt;br /&gt;
Once you have generated summary association statistics, you need to compress them with bgzip, and index them with tabix. If you use RAREMETALWORKER, the command should be like &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: Tabix 1.X does not seem to support the indexing for generic tab-delimited files. To index the file, please use tabix 0.2.5 or earlier versions. &lt;br /&gt;
&lt;br /&gt;
If you use RVTESTS, your command should be&lt;br /&gt;
&lt;br /&gt;
  bgzip study1.MetaScore.assoc&lt;br /&gt;
&lt;br /&gt;
  tabix -s 1 -b 2 -e 2 -S 1 study1.MetaScore.assoc.gz&lt;br /&gt;
&lt;br /&gt;
  tabix -s 1 -b 2 -e 2 -S 1 study1.MetaCov.assoc.gz&lt;br /&gt;
&lt;br /&gt;
== A Simple Tutorial for Using the rareMETALS.single function ==&lt;br /&gt;
&lt;br /&gt;
rareMETALS.single function allow you to perform meta-analyses for single variant association tests. The summary association statistics are combined using Mantel Haenszel test statistic. The details are described in our method paper Liu et al, Nat Genet, 2014. &lt;br /&gt;
&lt;br /&gt;
Assume that you have a set of single variant score statistics and their covariance matrices. &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
  library(rareMETALS)&lt;br /&gt;
  cov.file &amp;lt;- c(&amp;quot;study1.MetaCov.assoc.gz&amp;quot;,&amp;quot;study2.MetaCov.assoc.gz&amp;quot;);&lt;br /&gt;
  score.stat.file &amp;lt;- c(&amp;quot;study1.MetaScore.assoc.gz&amp;quot;,&amp;quot;study2.MetaScore.assoc.gz&amp;quot;)&lt;br /&gt;
  res &amp;lt;- rareMETALS.single(score.stat.file,cov.file=NULL,range=&amp;quot;19:11200093-11201275&amp;quot;,alternative=&amp;quot;two.sided&amp;quot;,ix.gold=1,callrate.cutoff=0,hwe.cutoff=0);&lt;br /&gt;
&lt;br /&gt;
== A Simple Tutorial for Using the rareMETALS.range function ==&lt;br /&gt;
&lt;br /&gt;
  res &amp;lt;- rareMETALS.range(score.stat.file,cov.file,range=&amp;quot;19:11200093-11201275&amp;quot;,range.name=&amp;quot;LDLR&amp;quot;,test = &amp;quot;GRANVIL&amp;quot;,maf.cutoff = 0.05,alternative = c(&amp;quot;two.sided&amp;quot;),ix.gold = 1,out.digits = 4,callrate.cutoff = 0,hwe.cutoff = 0,max.VT = NULL)&lt;br /&gt;
&lt;br /&gt;
   gene.name.out p.value.out statistic.out no.site.out beta1.est.out&lt;br /&gt;
[1,] &amp;quot;LDLR&amp;quot;        &amp;quot;0.6064&amp;quot;    &amp;quot;0.2654&amp;quot;      &amp;quot;25&amp;quot;        &amp;quot;-0.01729&amp;quot;&lt;br /&gt;
     beta1.sd.out maf.cutoff.out direction.burden.by.study.out&lt;br /&gt;
[1,] &amp;quot;0.03357&amp;quot;    &amp;quot;0.05&amp;quot;         &amp;quot;--&amp;quot;&lt;br /&gt;
     direction.meta.single.var.out top.singlevar.pos top.singlevar.refalt&lt;br /&gt;
[1,] &amp;quot;---++-+--+-+++++--+++++-+&amp;quot;   &amp;quot;19:11200431&amp;quot;     &amp;quot;C/T&amp;quot;&lt;br /&gt;
     top.singlevar.pval top.singlevar.af&lt;br /&gt;
[1,] &amp;quot;0.004709&amp;quot;         &amp;quot;0.01038&amp;quot;&lt;br /&gt;
     pos.ref.alt.out                                                                                                                                         \&lt;br /&gt;
                                                                                                                                                             \&lt;br /&gt;
[1,] &amp;quot;19:11200093/T/C,19:11200213/G/A,19:11200235/G/A,19:11200272/C/A,19:11200282/G/A,19:11200309/C/A,19:11200412/C/T,19:11200419/C/T,19:11200431/C/T,19:1120\&lt;br /&gt;
0442/G/A,19:11200475/C/G,19:11200508/G/A,19:11200514/C/T,19:11200557/G/A,19:11200579/C/T,19:11200728/C/T,19:11200753/T/C,19:11200754/G/A,19:11200806/C/T,19:1\&lt;br /&gt;
1200839/T/A,19:11200840/C/A,19:11200896/C/T,19:11201259/G/C,19:11201274/C/T,19:11201275/A/T&amp;quot;&lt;br /&gt;
&lt;br /&gt;
More detailed results can be found in a list res$res.list&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RvTests&amp;diff=12483</id>
		<title>RvTests</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RvTests&amp;diff=12483"/>
		<updated>2015-01-14T02:59:25Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Software]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Overview =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(See [[http://zhanxw.github.io/rvtests rvtests]] for more powerful rare-variant association test software and/or preparation for meta-analysis)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
A few rare variants tests (Li-Leal&#039;s CMC and Madsen-Browning&#039;s weighted method) are implemented in the logisitc regression framework using C++. Please contact Youna Hu (youna@umich.edu) for comments, suggestions or questions.&lt;br /&gt;
&lt;br /&gt;
The source code is located at [[File:RV3Tests.v1.tar]]&lt;br /&gt;
&lt;br /&gt;
You can just download the tar file, extract it and go to the RV3Test.v1 folder and type make all to compile the code, the binary file will then be in the exectuables folder. &lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&lt;br /&gt;
See a detailed [[example]] here.&lt;br /&gt;
&lt;br /&gt;
= Syntax =&lt;br /&gt;
&lt;br /&gt;
This software uses command line interface as follows&lt;br /&gt;
&lt;br /&gt;
RARE VARIANT ANALYSIS OPTIONS:&lt;br /&gt;
                 GENOTYPE : --genofile [pos.012],&lt;br /&gt;
                            --geneList [outGeneSorted.txt], --cutoff [0.010],&lt;br /&gt;
                            --collapseChoice [or]&lt;br /&gt;
                PHENOTYPE : --phenofile [LDL.y.ID]&lt;br /&gt;
               COVARIATES : --covConsider, --covfile [covFile.ID.2.txt]&lt;br /&gt;
              PERMUTATION : --nPermute [10], --PermutationSeed [1]&lt;br /&gt;
   GENE LEVEL TEST RESULT : --geneGlobalTestOut [globalPermuteSummary.txt],&lt;br /&gt;
                            --geneTestpvalueFile [geneTestPvalues.txt]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;GENOTYPE&lt;br /&gt;
&lt;br /&gt;
;--genofile: A genotype 012 matrix (.012 is the file) This file can be prepared by using the prepare012s &lt;br /&gt;
  source code [[File:vcfReader.v1.tar]]&lt;br /&gt;
  Again, extract the tar file and then go into the directory to type make all to compile the code,&lt;br /&gt;
            you then will find binary file in the executables folder. &lt;br /&gt;
&lt;br /&gt;
 Note: You should use Yanming&#039;s vcf annotation [http://genome.sph.umich.edu/wiki/VcfCodingSnps] on your vcf file first &lt;br /&gt;
 to output a annotated vcf file. You SHOULD keep the log file from the annotation, which will be used to create the gene list.&lt;br /&gt;
&lt;br /&gt;
Data File PREPARATION&lt;br /&gt;
          Input files : --vcf [LDL.test.vcf], --log [], --IDfile []&lt;br /&gt;
   Subsetting choices : --All&lt;br /&gt;
         Output files : --outputPrefix [subsetGeno],&lt;br /&gt;
                        --outputGeneList [LDL.geneList.txt]&lt;br /&gt;
   --vcf: Input vcf file &lt;br /&gt;
   --log: This is the log file from Yanming&#039;s annotation output, we use this log to obtain the gene list&lt;br /&gt;
   --IDfile specifies a file with one column of subject IDs to subject from the vcf file. &lt;br /&gt;
    If it is not specified, then all subjects are included for the format conversion.&lt;br /&gt;
   --All:  specifies 1 to include all variants and 0 to include only nonsyn and stop annotated variants.&lt;br /&gt;
   -- outputPrefix: Specify the prefix for the four output files which will be used in rvTests&lt;br /&gt;
   *.012: A genotype matrix with subjects as rows and variant sites as columns.&lt;br /&gt;
   *.012.pos: Chromosome and position numbers. &lt;br /&gt;
   *.012.indv: Subject IDs.&lt;br /&gt;
   *.012.frq: The frequency of the included variants.&lt;br /&gt;
  --outputGeneList:  Specify a file to store the gene list which will be used in rvTest.&lt;br /&gt;
  The list file looks like this &lt;br /&gt;
  1	OR4F5	69090	70008&lt;br /&gt;
  1	SAMD11	860529	871276&lt;br /&gt;
  1	NOC2L	879583	893918&lt;br /&gt;
  1	KLHL17	895966	901095&lt;br /&gt;
  1	PLEKHN1	901876	910482&lt;br /&gt;
  1	C1orf170	910578	912021&lt;br /&gt;
&lt;br /&gt;
;--geneList: This file is an output from prepare012s using the option --outputGeneList  with columns as chromosome number, gene Name, start position, end position. There should be no header for this file. &lt;br /&gt;
&lt;br /&gt;
THE CHROMOSOME NUMBERS SHOULD BE NUMERICS!!!! 1 - chromosome 1, DO NOT USE chr1.&lt;br /&gt;
&lt;br /&gt;
;--cutoff: This is the minor allele frequency, you can specify it as 0.01, 0.05 or etc.&lt;br /&gt;
;--collapseChoice: Specify one of {or,sum,wt}. or: Li-Leal&#039;s CMC test, sum: Use the number of rare variants for each subject as the score, wt: Madeson-Browning&#039;s weighted rare variant score.&lt;br /&gt;
&lt;br /&gt;
;PHENOTYPE&lt;br /&gt;
;--phenofile: A file where the first column is subject ID and the second column is phenotype (0 or 1).&lt;br /&gt;
&lt;br /&gt;
;COVARIATES&lt;br /&gt;
;--covConsider: Default = 0, no covariate is considered. 1. covariate is considered.&lt;br /&gt;
;--covfile: Covariate file with the first column as subject ID and the other columns are covariates needed to be considered in the model.&lt;br /&gt;
&lt;br /&gt;
;PERMUTATION&lt;br /&gt;
;--nPermute: Number of permutation for the evaluation of p values.&lt;br /&gt;
;-- PermutationSeed: Default = 1. Can be changed to other numbers too.&lt;br /&gt;
&lt;br /&gt;
;GENE LEVEL TEST RESULT:&lt;br /&gt;
;--geneGlobalTestOut: This file stores the 5% and 95% quantiles of the p values for all the genes at each permutation&lt;br /&gt;
;--geneTestPvalueFile: This file gives you the gene name, number of rare variants, count of variants in case/control and p values from the RV test specified by collapseChoice.&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Rvtests&amp;diff=12482</id>
		<title>Rvtests</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Rvtests&amp;diff=12482"/>
		<updated>2015-01-14T02:57:33Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;(Updated: January 2015; latest documentation can always be found at: [http://zhanxw.github.io/rvtests/ http://zhanxw.github.io/rvtests/])&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
Rvtests, which stands for Rare Variant tests, is a flexible software package for genetic association studies. It is designed to support unrealted individual or related (family-based) individuals. Both quantitative trait and binary trait are supported. It includes a variety of association tests (e.g. single variant score test, burden test, variable threshold test, SKAT test, fast linear mixed model score test). It takes [http://www.1000genomes.com/ VCF] format as genotype input file and takes PLINK format phenotype file and covariate file. From our practice, it is capable to analyze 8,000 related individuals using less than 400 Mb memory.&lt;br /&gt;
&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
Source files can be downloaded from [https://github.com/zhanxw/rvtests/archive/master.zip github] or [https://github.com/zhanxw/rvtests github page].&amp;lt;br /&amp;gt;Executable binary files (for Linux 64bit) can be downloaded from [https://github.com/zhanxw/rvtests/releases/download/v1.8.6/rvtests-20150104.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
= Quick Tutorial =&lt;br /&gt;
&lt;br /&gt;
Here is a quick example of how to use &#039;&#039;rvtests&#039;&#039; software in typical use cases.&lt;br /&gt;
&lt;br /&gt;
== Single variant tests ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --out output --single wald,score&amp;lt;/pre&amp;gt;&lt;br /&gt;
This specifies single variant Wald and score test for association&amp;lt;br /&amp;gt;tests for every variant in the &amp;lt;code&amp;gt;input.vcf&amp;lt;/code&amp;gt; file. The 6th column of the phenotype file, &amp;lt;code&amp;gt;phenotype.ped&amp;lt;/code&amp;gt;, which is in PLINK format, is used. Rvtests will automatically check whether the phenotype is binary trait or quantitative trait.&amp;lt;br /&amp;gt;For binary trait, the recommended way of coding is to code controls as 1, cases as 2, missing phenotypes as -9 or 0.&lt;br /&gt;
&lt;br /&gt;
For other types of association tests, you can refer to [[#models|Models]]&lt;br /&gt;
&lt;br /&gt;
== Groupwise tests ==&lt;br /&gt;
&lt;br /&gt;
Groupwise tests includes three major kinds of tests.&lt;br /&gt;
&lt;br /&gt;
* Burden tests: group variants, which are usually less than 1% or 5% rare variants, for association tests. The category includes: CMC test, Zeggini test, Madsen-Browning test, CMAT test, and rare-cover test.&amp;lt;br /&amp;gt;&lt;br /&gt;
* Variable threshold tests: group variants under different frequency thresholds.&amp;lt;br /&amp;gt;&lt;br /&gt;
* Kernel methods: suitable to tests rare variants having different directions of effects. These includes SKAT test and KBAC test.&lt;br /&gt;
&lt;br /&gt;
All above tests requires to group variants into a unit. The simplist case is to use gene as grouping unit. For different grouping method, see [[#Grouping|Grouping]].&lt;br /&gt;
&lt;br /&gt;
To perform rare variant tests by gene, you need to use &amp;lt;code&amp;gt;--geneFile&amp;lt;/code&amp;gt; to specify the gene range in a refFlat format. We provided different gene definitions in the [[#Resources|Resources]] section. You can use &amp;lt;code&amp;gt;--gene&amp;lt;/code&amp;gt; to specify which gene(s) to test. For example, specify &amp;lt;code&amp;gt;--gene CFH,ARMS2&amp;lt;/code&amp;gt; will perform association tests on CFH and ARMS2 genes. If there is no providing &amp;lt;code&amp;gt;--gene&amp;lt;/code&amp;gt; option, all genes will be tests.&lt;br /&gt;
&lt;br /&gt;
The following command line demonstrate how to use CMC method, variable threshold method(proposed by Price) and kernel based method (SKAT by Shawn Lee and KBAC by&amp;lt;br /&amp;gt;Dajiang Liu) to test every gene listed in &#039;&#039;refFlat_hg19_uniq_gene.txt.gz&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --out output --geneFile refFlat_hg19_uniq_gene.txt.gz --burden cmc --vt price --kernel skat,kbac&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Related individual tests ==&lt;br /&gt;
&lt;br /&gt;
To test related individuals, you will need to first create a kinship matrix:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vcf2kinship --inVcf input.vcf --bn --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
The option &amp;lt;code&amp;gt;--bn&amp;lt;/code&amp;gt; means calculating empirical kinship using Balding-Nicols method. You can specifiy &amp;lt;code&amp;gt;--ibs&amp;lt;/code&amp;gt; to obtain IBS kinship or use &amp;lt;code&amp;gt;--pedigree input.ped&amp;lt;/code&amp;gt; to calculate kinship from known pedigree information.&lt;br /&gt;
&lt;br /&gt;
Then you can use linear mixed model based association tests such as Fast-LMM score test, Fast-LMM LRT test and Grammar-gamma tests. An exemplar command is shown:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --out output --kinship output.kinship --single famScore,famLRT,famGrammarGamma&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Meta-analysis tests ==&lt;br /&gt;
&lt;br /&gt;
The meta-analysis models outputs association test results and genotype covariance matrix. These statistics can be used in rare variant association analysis.&amp;lt;br /&amp;gt;We provide single variant score test and generate genotype covariance matrix.&amp;lt;br /&amp;gt;You can use command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --meta score,cov --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
In a more realistic scenario, you may want to adjust for covariates and want to inverse normalized residuals obtained in null model ([http://www.nature.com/ng/journal/vaop/ncurrent/full/ng.2852.html link] to our methodology paper), then this command will work:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --covar example.covar --covar-name age,bmi --inverseNormal --useResidualAsPhenotype  --meta score,cov --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here the &amp;lt;code&amp;gt;--covar&amp;lt;/code&amp;gt; specify a covariate file, and &amp;lt;code&amp;gt;--covar-name&amp;lt;/code&amp;gt; specify which covariates can used in the analysis. Covariate file format can be found [[#Covariate%20file|here]]. &amp;lt;code&amp;gt;--inverseNormal --useResidualAsPhenotype&amp;lt;/code&amp;gt; specifies trait transformation method. That means first fit a regression model of the phenotype on covariates (intercept automatically added), then the residuals are inverse normalized. Trait transformation details can be found [[#Trait%20transformation|here]].&lt;br /&gt;
&lt;br /&gt;
We support both unrelated individuals and related indivudlas (e.g. family data). You need to append &amp;lt;code&amp;gt;--kinship input.kinship&amp;lt;/code&amp;gt; to the command line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --meta score,cov --out output --kinship input.kinship&amp;lt;/pre&amp;gt;&lt;br /&gt;
The file &amp;lt;code&amp;gt;input.kinship&amp;lt;/code&amp;gt; is calculated by &amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; program, and usage to this program is described in [[#related-individual-tests|Related individual tests]].&lt;br /&gt;
&lt;br /&gt;
=== Dominant models and recessive models ===&lt;br /&gt;
&lt;br /&gt;
Dominant and recessive disease models are supported by appending &amp;amp;quot;dominant&amp;amp;quot; and/or &amp;amp;quot;recessive&amp;amp;quot; after &amp;amp;quot;--meta&amp;amp;quot; option. For example, use &amp;amp;quot;--meta dominant,recessive&amp;amp;quot; will&amp;lt;br /&amp;gt;generate two sets of files. For dominant model, they are &amp;amp;quot;prefix.MetaDominant.assoc&amp;amp;quot; and &amp;amp;quot;prefix.MetaDominantCov.assoc.gz&amp;amp;quot;; for recessive model,&amp;lt;br /&amp;gt;they are &amp;amp;quot;prefix.MetaRecessive.assoc&amp;amp;quot; and &amp;amp;quot;prefix.MetaRecessiveCov.assoc.gz&amp;amp;quot;. Internally, in dominant models, genotypes 0/1/2 are coded as 0/1/1; in recessive models, genotypes 0/1/2 are&amp;lt;br /&amp;gt;coded as 0/0/1. Missing genotypes will be imputed to the mean.&lt;br /&gt;
&lt;br /&gt;
= Input files =&lt;br /&gt;
&lt;br /&gt;
== Genotype file (VCF) ==&lt;br /&gt;
&lt;br /&gt;
Rvtests supports VCF (Variant Call Format) files. Files in both plain txt format or gzipped format are supported. To use group-based rare variant tests, indexed the VCF files using [http://samtools.sourceforge.net/tabix.shtml tabix] are required.&lt;br /&gt;
&lt;br /&gt;
Here are the commands to convert plain text format to bgzipped VCF format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;(grep ^&amp;amp;quot;#&amp;amp;quot; $your_old_vcf; grep -v ^&amp;amp;quot;#&amp;amp;quot; $your_old_vcf | sed &#039;s:^chr::ig&#039; | sort -k1,1n -k2,2n) | bgzip -c &amp;amp;gt; $your_vcf_file &lt;br /&gt;
tabix -f -p vcf $your_vcf_file&amp;lt;/pre&amp;gt;&lt;br /&gt;
The above commands will (1) remove the &amp;lt;code&amp;gt;chr&amp;lt;/code&amp;gt; prefix from chromosome names; (2) sort VCF files by chromosome first, then by chromosomal positions; (3) compress using bgzip; (4) create tabix index.&lt;br /&gt;
&lt;br /&gt;
Rvtests support genotype dosages. Use &amp;lt;code&amp;gt;--dosage DosageTag&amp;lt;/code&amp;gt; to specify the dosage tag. For example, if VCF format field is &amp;amp;quot;GT:EC&amp;amp;quot; and individual genotype fields is &amp;amp;quot;0/0:0.02&amp;amp;quot;, you can use &amp;lt;code&amp;gt;--dosage EC&amp;lt;/code&amp;gt;, and rvtests will use the dosage 0.02 in the regression models.&lt;br /&gt;
&lt;br /&gt;
== Phenotype file ==&lt;br /&gt;
&lt;br /&gt;
You can use &amp;lt;code&amp;gt;--mpheno $phenoypeColumnNumber&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--pheno-name&amp;lt;/code&amp;gt; to specify a given phenotype.&lt;br /&gt;
&lt;br /&gt;
An example phenotype file, (&amp;lt;code&amp;gt;example.pheno&amp;lt;/code&amp;gt;), has the following format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;fid iid fatid matid sex y1 y2 y3 y4&lt;br /&gt;
P1 P1 0 0 0 1.7642934435605 -0.733862638327895 -0.980843608339726 2&lt;br /&gt;
P2 P2 0 0 0 0.457111744989746 0.623297281416372 -2.24266162284447 1&lt;br /&gt;
P3 P3 0 0 0 0.566689682543218 1.44136462889459 -1.6490100777089 1&lt;br /&gt;
P4 P4 0 0 0 0.350528353203767 -1.79533911725537 -1.11916876241804 1&lt;br /&gt;
P5 P5 0 0 1 2.72675074738545 -1.05487747371158 -0.33586430010589 2&amp;lt;/pre&amp;gt;&lt;br /&gt;
Phenotype file is specified by the option &amp;lt;code&amp;gt;--pheno example.pheno&amp;lt;/code&amp;gt; . The default phenotype column header is “&amp;lt;code&amp;gt;y1&amp;lt;/code&amp;gt;”. If you want to use alternative columns as phenotype for association analysis (e.g the column with header y2), you may specify the phenotype by column or by name using either&lt;br /&gt;
&lt;br /&gt;
* --mpheno 2&amp;lt;br /&amp;gt;&lt;br /&gt;
* --pheno-name y2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; to use “&amp;lt;code&amp;gt;--pheno-name&amp;lt;/code&amp;gt;”, the header line must starts with “&amp;lt;code&amp;gt;fid iid&amp;lt;/code&amp;gt;” as PLINK requires.&lt;br /&gt;
&lt;br /&gt;
In phenotype file, missing values can be denoted by NA or any non-numeric values. Individuals with missing phenotypes will be automatically dropped from subsequent association analysis. For each missing phenotype value, a warning will be generated and recorded in the log file.&lt;br /&gt;
&lt;br /&gt;
When the phenotype values are only 0, 1 and 2, rvtests will automatically treat it as binary traits. However, if you want to treat it as continuous trait, please use &amp;amp;quot;&amp;lt;code&amp;gt;--qtl&amp;lt;/code&amp;gt;&amp;amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
== Covariate file ==&lt;br /&gt;
&lt;br /&gt;
You can use &amp;lt;code&amp;gt;--covar&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--covar-name&amp;lt;/code&amp;gt; to specify covariates that will be used for single variant association analysis. This is an optional parameter. If you do not have covariate in the data, this option can be ignored.&lt;br /&gt;
&lt;br /&gt;
The covariate file, (e.g. &amp;lt;code&amp;gt;example.covar&amp;lt;/code&amp;gt;) has a similar format as the phenotype file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;fid iid fatid matid sex y1 y2 y3 y4&lt;br /&gt;
P1 P1 0 0 0 1.911 -1.465 -0.817 1&lt;br /&gt;
P2 P2 0 0 0 2.146 -2.451 -0.178 2&lt;br /&gt;
P3 P3 0 0 0 1.086 -1.194 -0.899 1&lt;br /&gt;
P4 P4 0 0 0 0.704 -1.052 -0.237 1&lt;br /&gt;
P5 P5 0 0 1 2.512 -3.085 -2.579 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
The covariate file is specified by the &amp;lt;code&amp;gt;--covar&amp;lt;/code&amp;gt; option (e.g. &amp;lt;code&amp;gt;--covar example.covar&amp;lt;/code&amp;gt;). To specify covariates that will be used in the association analysis, the option &amp;lt;code&amp;gt;--covar-name&amp;lt;/code&amp;gt; can be used. For example, when age, bmi and 3 PCs are used for association analysis, the following option can be specified for the rvtest program, i.e.&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;--covar example.covar --covar-name age,bmi,pc1,pc2,pc3&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note: Missing data in the covariate file can be labeled by any non-numeric value (e.g. NA). They will be automatically imputed to the mean value in the data file.&lt;br /&gt;
&lt;br /&gt;
== Trait transformation ==&lt;br /&gt;
&lt;br /&gt;
In this meta-analysis, we use inversed normal transformed residuals in the association analysis, which is achieved by using a combination of &amp;lt;code&amp;gt;--inverseNormal&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--useResidualAsPhenotype&amp;lt;/code&amp;gt;. Specifically, we first fit the null model by regressing phenotype on covariates. The residuals are then inverse normal transformed (see Appendix A more detailed formulae for transformation). Transformed residuals will be used to obtain score statistics.&lt;br /&gt;
&lt;br /&gt;
In meta analysis, an exemplar command for using rvtest looks like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;./rvtest --inVcf $vcf --pheno $example.pheno --covar example.covar --covar-name age,bmi --inverseNormal --useResidualAsPhenotype  --meta score,cov --out $output_prefix  &amp;lt;/pre&amp;gt;&lt;br /&gt;
= Models =&lt;br /&gt;
&lt;br /&gt;
Rvtests support various association models.&lt;br /&gt;
&lt;br /&gt;
== Single variant tests ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Single variant&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|Score test&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|score&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Only null model is used to performed the test&lt;br /&gt;
|-&lt;br /&gt;
|Wald test&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|wald&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Only fit alternative model, and effect size will be estimated&lt;br /&gt;
|-&lt;br /&gt;
|Exact test&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|exact&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Fisher&#039;s test&lt;br /&gt;
|-&lt;br /&gt;
|Fam LRT&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|famLRT&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|Fast-LMM model&lt;br /&gt;
|-&lt;br /&gt;
|Fam Score&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|famScore&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|Fast-LMM model style likelihood ratio test&lt;br /&gt;
|-&lt;br /&gt;
|Grammar-gamma&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|famGrammarGamma&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|Grammar-gamma method&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--single score&amp;lt;/code&amp;gt; will apply score test.&lt;br /&gt;
&lt;br /&gt;
(##) In trait column, B and Q stand for binary, quantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Burden tests ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Burden tests&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|CMC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cmc&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Collapsing and combine rare variants by Bingshan Li.&lt;br /&gt;
|-&lt;br /&gt;
|Zeggini&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|zeggini&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Aggregate counts of rare variants by Morris Zeggini.&lt;br /&gt;
|-&lt;br /&gt;
|Madsen-Browning&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|mb&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Up-weight rare variant using inverse frequency from controls by Madsen.&lt;br /&gt;
|-&lt;br /&gt;
|Fp&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|fp&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Up-weight rare variant using inverse frequency from controls by Danyu Lin.&lt;br /&gt;
|-&lt;br /&gt;
|Exact CMC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|exactCMC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Collapsing and combine rare variants, then pefore Fisher&#039;s exact test.&lt;br /&gt;
|-&lt;br /&gt;
|CMC Wald&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cmcWald&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Collapsing and combine rare variants, then pefore Wald test.&lt;br /&gt;
|-&lt;br /&gt;
|RareCover&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|rarecover&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Find optimal grouping unit for rare variant tests by Thomas Hoffman.&lt;br /&gt;
|-&lt;br /&gt;
|CMAT&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cmat&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Test non-coding variants by Matt Z.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--burden cmc&amp;lt;/code&amp;gt; will apply CMC test.&lt;br /&gt;
&lt;br /&gt;
(##) In trait column, B and Q stand for binary, quantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Variable threshold models ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Single variant&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|Variable threshold model&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|vt&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Every rare-variant frequency cutoffs are tests by Alkes Price.&lt;br /&gt;
|-&lt;br /&gt;
|Variable threshold CMC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cmc&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|This models is natiive so that it output CMC test statistics under all possible frequency cutoffs.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--vt price&amp;lt;/code&amp;gt; will apply score test.&lt;br /&gt;
&lt;br /&gt;
(##) In trait column, B and Q stand for binary, quantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Kernel models ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Kernel&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|SKAT&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|skat&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Sequencing kernel association test by Shawn Lee.&lt;br /&gt;
|-&lt;br /&gt;
|KBAC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|kbac&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Kernel-based adaptive clustering model by Dajiang Liu.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--kernel skat&amp;lt;/code&amp;gt; will apply SKAT test.&amp;lt;br /&amp;gt;To further customize SKAT test, you can use &#039;&#039;--kernel skat[nPerm=100:alpha=0.001:beta1=1:beta2=20]&#039;&#039; to specify permutation counts, type-1 error,&amp;lt;br /&amp;gt;beta distribution parameters for upweighting rare variants. Rvtests will output a message showing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;[INFO]  SKAT test significance will be evaluated using 10000 permutations at alpha = 0.001 (beta1 = 1.00, beta2 = 20.00)&amp;lt;/pre&amp;gt;&lt;br /&gt;
(##) In trait column, B and Q stand for binary, quantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Meta-analysis models ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Type&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|Score test&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|score&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|standard score tests&lt;br /&gt;
|-&lt;br /&gt;
|Dominant model&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|dominant&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|score tests and covariance matrix under dominant disease model&lt;br /&gt;
|-&lt;br /&gt;
|Recessive model&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|recessive&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|score tests and covariance matrix under recessive disease model&lt;br /&gt;
|-&lt;br /&gt;
|Covariance&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cov&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|covariance matrix&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--meta score,cov&amp;lt;/code&amp;gt; will generate score statistics and covariance matrix for meta-analysis.&amp;lt;br /&amp;gt;(##) In trait column, B and Q stand for (b)inary, (q)uantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Utility models ==&lt;br /&gt;
&lt;br /&gt;
Rvtests has an usually option &amp;lt;code&amp;gt;--outputRaw&amp;lt;/code&amp;gt;. When specify this, rvtests can output genotypes, phenotype, covariates(if any) and collapsed genotype to tabular files. These files can be imported into other software (e.g. R) for further analysis.&lt;br /&gt;
&lt;br /&gt;
= Association test options =&lt;br /&gt;
&lt;br /&gt;
== Sample inclusion/exclusion ==&lt;br /&gt;
&lt;br /&gt;
Rvtests can flexibly specify which sample(s) to include or exclude:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;       --peopleIncludeID : give IDs of people that will be included in study&lt;br /&gt;
     --peopleIncludeFile : from given file, set IDs of people that will be included in study&lt;br /&gt;
       --peopleExcludeID : give IDs of people that will be included in study&lt;br /&gt;
     --peopleExcludeFile : from given file, set IDs of people that will be included in study&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;--peopleIncludeID&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--peopleExcludeID&amp;lt;/code&amp;gt; are used to include/exclude samples from command line.&amp;lt;br /&amp;gt;For example, specify &amp;lt;code&amp;gt;--peopleIncludeID A,B,C&amp;lt;/code&amp;gt; will include A, B and C sample from the VCF files if they exists.&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;--peopleIncludeID&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--peopleExcludeID&amp;lt;/code&amp;gt; followed by a file name will include or exclude the IDs in the file.&amp;lt;br /&amp;gt;So to include sample A, B and C, you can provide a file, &amp;lt;code&amp;gt;people.txt&amp;lt;/code&amp;gt;, looks like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;A&lt;br /&gt;
B&lt;br /&gt;
C&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then use &amp;lt;code&amp;gt;--peopleIncludeFile people.txt&amp;lt;/code&amp;gt; to include them in the analysis.&lt;br /&gt;
&lt;br /&gt;
== Variant site filters ==&lt;br /&gt;
&lt;br /&gt;
It is common that different frequency cutoffs are applied in rare-variant analysis.&amp;lt;br /&amp;gt;Therefore, rvtests specify frequency cutoffs.&lt;br /&gt;
&lt;br /&gt;
Frequency Cutoff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;             --freqUpper : Specify upper minor allele frequency bound to be included in analysis&lt;br /&gt;
             --freqLower : Specify lower minor allele frequency bound to be included in analysis&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you specify &amp;lt;code&amp;gt;--freqLower 0.01 --freqUpper 0.05&amp;lt;/code&amp;gt;, only the variants with minor allele ferquncy between 0.01 and 0.05 (boundary inclusive) will be analyzed.&lt;br /&gt;
&lt;br /&gt;
Similar to sample inclusion/exclusion options, you can specify a range of variants to be included by&amp;lt;br /&amp;gt;specifying &amp;lt;code&amp;gt;--rangeList&amp;lt;/code&amp;gt; option. For example &amp;lt;code&amp;gt;--rangeList 1:100-200&amp;lt;/code&amp;gt; will include the chromosome 1 position 100bp to 200bp region.&amp;lt;br /&amp;gt;Alternatively, use a separate file, &amp;lt;code&amp;gt;range.txt&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;--rangeFile range.txt&amp;lt;/code&amp;gt; to speicify association tests range.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;             --rangeList : Specify some ranges to use, please use chr:begin-end format.&lt;br /&gt;
             --rangeFile : Specify the file containing ranges, please use chr:begin-end format.&lt;br /&gt;
              --siteFile : Specify the file containing sites to include, please use &amp;amp;quot;chr pos&amp;amp;quot; format.&amp;lt;/pre&amp;gt;&lt;br /&gt;
It is supported to filter variant site by site depth, minor allele count or annotation (annotated VCF file is needed).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;          --siteDepthMin : Specify minimum depth(inclusive) to be incluced in analysis&lt;br /&gt;
          --siteDepthMax : Specify maximum depth(inclusive) to be incluced in analysis&lt;br /&gt;
            --siteMACMin : Specify minimum Minor Allele Count(inclusive) to be incluced in analysis&lt;br /&gt;
              --annoType : Specify annotation type that is follwed by ANNO= in the VCF INFO field, regular expression is allowed&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;NOTE&#039;&#039;: &amp;lt;code&amp;gt;--annoType Nonsynonymous&amp;lt;/code&amp;gt; will only analyze nonsynonymous variants where they have &amp;lt;code&amp;gt;ANNO=Nonsynonymous&amp;lt;/code&amp;gt; in the INFO field.&amp;lt;br /&amp;gt;VCF with annotatino information are called annotated VCF here. And to annotate&amp;lt;br /&amp;gt;a VCF file, you can use [https://github.com/zhanxw/anno ANNO], a fast and accurate annotation software.&lt;br /&gt;
&lt;br /&gt;
== Genotype filters ==&lt;br /&gt;
&lt;br /&gt;
Genotype with low depth or low quality can be filtered out by these options:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;          --indvDepthMin : Specify minimum depth(inclusive) of a sample to be incluced in analysis&lt;br /&gt;
          --indvDepthMax : Specify maximum depth(inclusive) of a sample to be incluced in analysis&lt;br /&gt;
           --indvQualMin : Specify minimum depth(inclusive) of a sample to be incluced in analysis&amp;lt;/pre&amp;gt;&lt;br /&gt;
When genotypes are filtered, they are marked as missing genotypes.&amp;lt;br /&amp;gt;Consequently, samples with missing genotype may or may not be included in the analysis.&amp;lt;br /&amp;gt;That means samples with genotypes may be dropped (&amp;lt;code&amp;gt;--impute drop&amp;lt;/code&amp;gt;)&amp;lt;br /&amp;gt;or may still be included (&amp;lt;code&amp;gt;--impute mean&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--impute hwe&amp;lt;/code&amp;gt;).&amp;lt;br /&amp;gt;By default, genotypes are imputed to its means.&amp;lt;br /&amp;gt;See next section about how you like to handle missing genotypes.&lt;br /&gt;
&lt;br /&gt;
== Handle missing genotypes and phenotypes ==&lt;br /&gt;
&lt;br /&gt;
When genotypes are missing (e.g. genotype = &amp;amp;quot;./.&amp;amp;quot;) or gentoypes are filtered out,&amp;lt;br /&amp;gt;there are three options to handle them: (1) impute to its mean(default option); (2) impute by HWE equilibrium; (3) remove from the model.&amp;lt;br /&amp;gt;Use &amp;lt;code&amp;gt;--impute [mean|hwe|drop]&amp;lt;/code&amp;gt; to specify which option to use.&lt;br /&gt;
&lt;br /&gt;
When quantitative phenotypes are missing, for example, some samples have gneotype files, but not phenotypes,&amp;lt;br /&amp;gt;rvtests can impute missing phenotype to its mean.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;NOTE:&#039;&#039; Do not use &amp;lt;code&amp;gt;--imputePheno&amp;lt;/code&amp;gt; for binary trait.&lt;br /&gt;
&lt;br /&gt;
In summary, the following two options can be used:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;           --impute : Specify either of mean, hwe, and drop&lt;br /&gt;
      --imputePheno : Impute phenotype to mean by those have genotypes but no&lt;br /&gt;
                      phenotpyes&lt;br /&gt;
                      &lt;br /&gt;
                      &amp;lt;/pre&amp;gt;&lt;br /&gt;
== Specify groups (e.g burden unit) ==&lt;br /&gt;
&lt;br /&gt;
Rare variants association tests are usually performed in gruops of variants.&amp;lt;br /&amp;gt;The natural grouping unit is gene. Rvtests can read gene definition file in &amp;lt;code&amp;gt;refFlat&amp;lt;/code&amp;gt; format,&amp;lt;br /&amp;gt;and perform association for each gene. Use &amp;lt;code&amp;gt;--geneFile&amp;lt;/code&amp;gt; option to specify the gene file name.&amp;lt;br /&amp;gt;For example, &amp;lt;code&amp;gt;--geneFile refFlat_hg19.txt.gz&amp;lt;/code&amp;gt; will use &amp;lt;code&amp;gt;refFlat_hg19.txt.gz&amp;lt;/code&amp;gt; as gene definition file,&amp;lt;br /&amp;gt;and then perform association tests for every gene. Use &amp;lt;code&amp;gt;--gene&amp;lt;/code&amp;gt; to specify a subset of genes to test.&amp;lt;br /&amp;gt;For example, &amp;lt;code&amp;gt;--gene CFH&amp;lt;/code&amp;gt; will only test CFH gene.&lt;br /&gt;
&lt;br /&gt;
Alternative grouping unit can be specified as &#039;&#039;set&#039;&#039;.&amp;lt;br /&amp;gt;These &#039;&#039;sets&#039;&#039; are treated similar to gene.&amp;lt;br /&amp;gt;You can thus use &amp;lt;code&amp;gt;--setFile&amp;lt;/code&amp;gt; to define sets (similar to &amp;lt;code&amp;gt;--geneFile&amp;lt;/code&amp;gt; option),&amp;lt;br /&amp;gt;and use &amp;lt;code&amp;gt;--set&amp;lt;/code&amp;gt; to define a specific set (similar to &amp;lt;code&amp;gt;--gene&amp;lt;/code&amp;gt; option).&amp;lt;br /&amp;gt;Additionally, use &amp;lt;code&amp;gt;--setList&amp;lt;/code&amp;gt; can speicify a set to test from command line.&lt;br /&gt;
&lt;br /&gt;
The format of a set file is: (1) set names; (2) ranges (e.g. chrom:begin-end);&amp;lt;br /&amp;gt;For example, you have a set file, &amp;lt;code&amp;gt;example.set&amp;lt;/code&amp;gt;, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;set1 1:100-200,1:250-300&lt;br /&gt;
set2 2:500-600&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can specify &amp;lt;code&amp;gt;--setFile example.set --set set2&amp;lt;/code&amp;gt; to group variants&amp;lt;br /&amp;gt;within chromosome 2, position 500 to 600bp.&amp;lt;br /&amp;gt;If you want to test a particular region, for example, chromosome 2, position 500 to 550bp,&amp;lt;br /&amp;gt;but do not want to make another file, you can use &amp;lt;code&amp;gt;--setList 2:500-600&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In summary, options related to &#039;&#039;Grouping Unit&#039;&#039; are listed below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;         --geneFile : specify a gene file (for burden tests)&lt;br /&gt;
             --gene : specify which genes to test&lt;br /&gt;
          --setList : specify a list to test (for burden tests)&lt;br /&gt;
          --setFile : specify a list file (for burden tests, first two columns:&lt;br /&gt;
                      setName chr:beg-end)&lt;br /&gt;
              --set : specify which set to test (1st column)&amp;lt;/pre&amp;gt;&lt;br /&gt;
= Sex chromosome analysis =&lt;br /&gt;
&lt;br /&gt;
Rvtests suppport X chromosome analysis. In human X chromosome, there is PAR (pseudoautosomal region) and non-PAR region.&amp;lt;br /&amp;gt;For males, there are two X allele in PAR region and one allele in non-PAR region.&amp;lt;br /&amp;gt;While the PAR region is treated in the same way as autosomes, rvtests treate non-PAR region differently.&amp;lt;br /&amp;gt;Below we will describe the details about how rvtests handles non-PAR region.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Prepare data&#039;&#039;. According to VCF standard, male genotype needs to coded as 0 or 1. For compatibility, rvtests also support 0/0 or 1/1 coding.&amp;lt;br /&amp;gt;In VCF files, male genotypes can be written as &amp;amp;quot;0&amp;amp;quot;, &amp;amp;quot;1&amp;amp;quot;, &amp;amp;quot;0|0&amp;amp;quot;, &amp;amp;quot;0/0&amp;amp;quot;, &amp;amp;quot;1|1&amp;amp;quot;, &amp;amp;quot;1/1&amp;amp;quot;. All other genotypes will be treated as missing.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Genotype in the regression model&#039;&#039;. For consistencmaine, male genotypes are converted to 0 or 2.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;MetaScore results&#039;&#039;. If specify &amp;lt;code&amp;gt;--meta score&amp;lt;/code&amp;gt;, the output file &amp;lt;code&amp;gt;prefix.MetaScore.assoc&amp;lt;/code&amp;gt; includes PAR-region and non-PAR region analysis.&amp;lt;br /&amp;gt;But in the non-PAR region, the difference is that Hardy-Weinberg P-value are calculated using female samples.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Related individuals&#039;&#039;. Just append &amp;lt;code&amp;gt;--xHemi&amp;lt;/code&amp;gt; to the &amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; (more details in [[#kinship-generation|Kinship generation]]) and &amp;lt;code&amp;gt;rvtest&amp;lt;/code&amp;gt; command lines. Rvtests can recognize non-PAR region kinship and use it in the analysis.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;PAR region&#039;&#039;. PAR region is defined as two regions X:60001-2699520 and X:154931044-155270560. Use &amp;lt;code&amp;gt;--xLabel&amp;lt;/code&amp;gt; can speicify which chromosome has PAR region (default: 23|X)&amp;lt;br /&amp;gt;and use &amp;lt;code&amp;gt;--xParRegion&amp;lt;/code&amp;gt; to specify PAR region (default: hg19, meaning &#039;60001-2699520,154931044-155260560&#039; in the UCSC build hg19, specify &amp;amp;quot;hg18&amp;amp;quot; will use PAR region definition in the UCSC build hg18).&lt;br /&gt;
&lt;br /&gt;
= Kinship generation =&lt;br /&gt;
&lt;br /&gt;
Analysis of related individual usually requires estimation of kinship. You can a separate tool, &amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; is usually included in rvtests binary distribution or can be built from software source codes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; can calcualte pedigree kinship using a pedigree input file (PED format, see [[#phenotype-file|Phenotype file]], use option &amp;lt;code&amp;gt;--ped&amp;lt;/code&amp;gt;).&amp;lt;br /&amp;gt;The output file name is specified by &amp;lt;code&amp;gt;--prefix&amp;lt;/code&amp;gt; option. If you use &amp;lt;code&amp;gt;--prefix output&amp;lt;/code&amp;gt; then the output files will include &amp;lt;code&amp;gt;output.kinship&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
It can also calculate empirical kinship using genotyp input file (VCF format, see [[#genotype-file-vcf|Genotype file (VCF)]], use option &amp;lt;code&amp;gt;--inVcf&amp;lt;/code&amp;gt;).&amp;lt;br /&amp;gt;For empiricial kinship, you also need to specify the kinship model, either Balding-Nicols model (ue option &amp;lt;code&amp;gt;--bn&amp;lt;/code&amp;gt;) or Identity-by-state model (use option &amp;lt;code&amp;gt;--ibs&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
In sex chromosome analysis, it is often required to generate kinship on X chromsoome regions, then you need to speicfy &amp;lt;code&amp;gt;--xHemi&amp;lt;/code&amp;gt;. If your input VCF file has different X chromosome label (e.g. chromosome name is &#039;23&#039; instead of &#039;X&#039;), you can use &amp;lt;code&amp;gt;--xLabel 23&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If principal component decomposition (PCA) results are needed, you can use option &amp;lt;code&amp;gt;--pca&amp;lt;/code&amp;gt;. Then output files with suffix &#039;.pca&#039; include PCA results.&lt;br /&gt;
&lt;br /&gt;
When dealing with large input files, it is often preferred to use multiple CPU to speed up calculation using the option &amp;lt;code&amp;gt;--thread N&amp;lt;/code&amp;gt; in which N is the number of CPUs.&lt;br /&gt;
&lt;br /&gt;
For example, to generate pedigree-based kinship (&amp;lt;code&amp;gt;--ped&amp;lt;/code&amp;gt;) on both autosomal region and X chromosome (&amp;lt;code&amp;gt;--xHemi&amp;lt;/code&amp;gt;) region, the command line is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vcf2kinship --ped input.ped --xHemi --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
To generate empirical kinship (&amp;lt;code&amp;gt;--inVcf&amp;lt;/code&amp;gt;) on both autosomal region and X chromosome (&amp;lt;code&amp;gt;--xHemi&amp;lt;/code&amp;gt;) region using Balding-Nicols model, the command line is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vcf2kinship --inVcf input.vcf.gz --ped input.ped --bn --xHemi --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
NOTE: you need to provide a pedigree file (PED) in the above case, as &amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; need the sex information of samples.&lt;br /&gt;
&lt;br /&gt;
= Frequently Asked Questions (FAQ) =&lt;br /&gt;
&lt;br /&gt;
* Does rvtests suppport binary traits of related-individuals?&lt;br /&gt;
&lt;br /&gt;
Not yet. It&#039;s a complex scenario and we have not found good solutions.&lt;br /&gt;
&lt;br /&gt;
* Can you provide a list of command line options?&lt;br /&gt;
&lt;br /&gt;
Rvtests have build help taht can be found by executing &amp;lt;code&amp;gt;rvtest --help&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt;We also put all available options in this [https://github.com/zhanxw/rvtests/wiki/Command-Line-Options link].&lt;br /&gt;
&lt;br /&gt;
* Can you provide standard error (SE) or confidence interval (CI) for the estimated Beta in the score model?&lt;br /&gt;
&lt;br /&gt;
In the output of MetaScore model (--meta score), the standard error is the inverse of SQRT_V_STAT.&amp;lt;br /&amp;gt;For example, if SQRT_V_STAT = 2, that means the standard error of estimated beta is 1/2 = 0.5.&lt;br /&gt;
&lt;br /&gt;
* Why the INFORMATIVE_ALT_AC, N_REF and N_ALT columns have zero counts for certain chromosome X regions in meta-analysis models?&lt;br /&gt;
&lt;br /&gt;
These counts are calculated from female individuals. If your study only has male samples, rvtests cannot report these counts. Because if a male carries a non-reference allele, we cannot conclude that this is heterozygous (0/1) site or homozygous alternatives (1/1) site.&lt;br /&gt;
&lt;br /&gt;
= Feedback/Contact =&lt;br /&gt;
&lt;br /&gt;
Questions and requests can be sent to Xiaowei Zhan&amp;lt;br /&amp;gt;([mailto:zhanxw@umich.edu [mailto:zhanxw@umich.edu zhanxw@umich.edu]])&amp;lt;br /&amp;gt;or Goncalo Abecasis&amp;lt;br /&amp;gt;([mailto:goncalo@umich.edu [mailto:goncalo@umich.edu goncalo@umich.edu]])&lt;br /&gt;
&lt;br /&gt;
Rvtests is a collaborative effort by Youna Hu, Bingshan Li, Dajiang Liu.&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Rvtests&amp;diff=12477</id>
		<title>Rvtests</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Rvtests&amp;diff=12477"/>
		<updated>2015-01-12T19:43:08Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- markdown-toc start - Don&#039;t edit this section. Run M-x markdown-toc/generate-toc again --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Table of Contents&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[#introduction|Introduction]]&amp;lt;br /&amp;gt;&lt;br /&gt;
* [[#download|Download]]&amp;lt;br /&amp;gt;&lt;br /&gt;
* [[#quick-tutorial|Quick Tutorial]]&lt;br /&gt;
** [[#single-variant-tests|Single variant tests]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#groupwise-tests|Groupwise tests]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#related-individual-tests|Related individual tests]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#meta-analysis-tests|Meta-analysis tests]]&lt;br /&gt;
*** [[#dominant-models-and-recessive-models|Dominant models and recessive models]]&amp;lt;br /&amp;gt;&lt;br /&gt;
* [[#input-files|Input files]]&lt;br /&gt;
** [[#genotype-file-vcf|Genotype file (VCF)]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#phenotype-file|Phenotype file]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#covariate-file|Covariate file]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#trait-transformation|Trait transformation]]&amp;lt;br /&amp;gt;&lt;br /&gt;
* [[#models|Models]]&lt;br /&gt;
** [[#single-variant-tests|Single variant tests]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#burden-tests|Burden tests]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#variable-threshold-models|Variable threshold models]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#kernel-models|Kernel models]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#meta-analysis-models|Meta-analysis models]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#utility-models|Utility models]]&amp;lt;br /&amp;gt;&lt;br /&gt;
* [[#association-test-options|Association test options]]&lt;br /&gt;
** [[#sample-inclusionexclusion|Sample inclusion/exclusion]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#variant-site-filters|Variant site filters]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#genotype-filters|Genotype filters]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#handle-missing-genotypes-and-phenotypes|Handle missing genotypes and phenotypes]]&amp;lt;br /&amp;gt;&lt;br /&gt;
** [[#specify-groups-eg-burden-unit|Specify groups (e.g burden unit)]]&amp;lt;br /&amp;gt;&lt;br /&gt;
* [[#sex-chromosome-analysis|Sex chromosome analysis]]&amp;lt;br /&amp;gt;&lt;br /&gt;
* [[#kinship-generation|Kinship generation]]&amp;lt;br /&amp;gt;&lt;br /&gt;
* [[#frequently-asked-questions-faq|Frequently Asked Questions (FAQ)]]&amp;lt;br /&amp;gt;&lt;br /&gt;
* [[#feedbackcontact|Feedback/Contact]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- markdown-toc end --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://travis-ci.org/zhanxw/rvtests [[Image:https://travis-ci.org/zhanxw/rvtests.png?branch=master|Build Status]]]&lt;br /&gt;
&lt;br /&gt;
(Updated: Janurary 2015)&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
Rvtests, which stands for Rare Variant tests, is a flexible software package for genetic association studies. It is designed to support unrealted individual or related (family-based) individuals. Both quantitative trait and binary trait are supported. It includes a variety of association tests (e.g. single variant score test, burden test, variable threshold test, SKAT test, fast linear mixed model score test). It takes [http://www.1000genomes.com/ VCF] format as genotype input file and takes PLINK format phenotype file and covariate file. From our practice, it is capable to analyze 8,000 related individuals using less than 400 Mb memory.&lt;br /&gt;
&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
Source files can be downloaded from [https://github.com/zhanxw/rvtests/archive/master.zip github] or [https://github.com/zhanxw/rvtests github page].&amp;lt;br /&amp;gt;Executable binary files (for Linux 64bit) can be downloaded from [https://github.com/zhanxw/rvtests/releases/download/v1.8.6/rvtests-20150104.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
= Quick Tutorial =&lt;br /&gt;
&lt;br /&gt;
Here is a quick example of how to use &#039;&#039;rvtests&#039;&#039; software in typical use cases.&lt;br /&gt;
&lt;br /&gt;
== Single variant tests ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --out output --single wald,score&amp;lt;/pre&amp;gt;&lt;br /&gt;
This specifies single variant Wald and score test for association&amp;lt;br /&amp;gt;tests for every variant in the &amp;lt;code&amp;gt;input.vcf&amp;lt;/code&amp;gt; file. The 6th column of the phenotype file, &amp;lt;code&amp;gt;phenotype.ped&amp;lt;/code&amp;gt;, which is in PLINK format, is used. Rvtests will automatically check whether the phenotype is binary trait or quantitative trait.&amp;lt;br /&amp;gt;For binary trait, the recommended way of coding is to code controls as 1, cases as 2, missing phenotypes as -9 or 0.&lt;br /&gt;
&lt;br /&gt;
For other types of association tests, you can refer to [[#models|Models]]&lt;br /&gt;
&lt;br /&gt;
== Groupwise tests ==&lt;br /&gt;
&lt;br /&gt;
Groupwise tests includes three major kinds of tests.&lt;br /&gt;
&lt;br /&gt;
* Burden tests: group variants, which are usually less than 1% or 5% rare variants, for association tests. The category includes: CMC test, Zeggini test, Madsen-Browning test, CMAT test, and rare-cover test.&amp;lt;br /&amp;gt;&lt;br /&gt;
* Variable threshold tests: group variants under different frequency thresholds.&amp;lt;br /&amp;gt;&lt;br /&gt;
* Kernel methods: suitable to tests rare variants having different directions of effects. These includes SKAT test and KBAC test.&lt;br /&gt;
&lt;br /&gt;
All above tests requires to group variants into a unit. The simplist case is to use gene as grouping unit. For different grouping method, see [[#Grouping|Grouping]].&lt;br /&gt;
&lt;br /&gt;
To perform rare variant tests by gene, you need to use &amp;lt;code&amp;gt;--geneFile&amp;lt;/code&amp;gt; to specify the gene range in a refFlat format. We provided different gene definitions in the [[#Resources|Resources]] section. You can use &amp;lt;code&amp;gt;--gene&amp;lt;/code&amp;gt; to specify which gene(s) to test. For example, specify &amp;lt;code&amp;gt;--gene CFH,ARMS2&amp;lt;/code&amp;gt; will perform association tests on CFH and ARMS2 genes. If there is no providing &amp;lt;code&amp;gt;--gene&amp;lt;/code&amp;gt; option, all genes will be tests.&lt;br /&gt;
&lt;br /&gt;
The following command line demonstrate how to use CMC method, variable threshold method(proposed by Price) and kernel based method (SKAT by Shawn Lee and KBAC by&amp;lt;br /&amp;gt;Dajiang Liu) to test every gene listed in &#039;&#039;refFlat_hg19_uniq_gene.txt.gz&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --out output --geneFile refFlat_hg19_uniq_gene.txt.gz --burden cmc --vt price --kernel skat,kbac&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Related individual tests ==&lt;br /&gt;
&lt;br /&gt;
To test related individuals, you will need to first create a kinship matrix:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vcf2kinship --inVcf input.vcf --bn --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
The option &amp;lt;code&amp;gt;--bn&amp;lt;/code&amp;gt; means calculating empirical kinship using Balding-Nicols method. You can specifiy &amp;lt;code&amp;gt;--ibs&amp;lt;/code&amp;gt; to obtain IBS kinship or use &amp;lt;code&amp;gt;--pedigree input.ped&amp;lt;/code&amp;gt; to calculate kinship from known pedigree information.&lt;br /&gt;
&lt;br /&gt;
Then you can use linear mixed model based association tests such as Fast-LMM score test, Fast-LMM LRT test and Grammar-gamma tests. An exemplar command is shown:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --out output --kinship output.kinship --single famScore,famLRT,famGrammarGamma&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Meta-analysis tests ==&lt;br /&gt;
&lt;br /&gt;
The meta-analysis models outputs association test results and genotype covariance matrix. These statistics can be used in rare variant association analysis.&amp;lt;br /&amp;gt;We provide single variant score test and generate genotype covariance matrix.&amp;lt;br /&amp;gt;You can use command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --meta score,cov --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
In a more realistic scenario, you may want to adjust for covariates and want to inverse normalized residuals obtained in null model ([http://www.nature.com/ng/journal/vaop/ncurrent/full/ng.2852.html link] to our methodology paper), then this command will work:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --covar example.covar --covar-name age,bmi --inverseNormal --useResidualAsPhenotype  --meta score,cov --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here the &amp;lt;code&amp;gt;--covar&amp;lt;/code&amp;gt; specify a covariate file, and &amp;lt;code&amp;gt;--covar-name&amp;lt;/code&amp;gt; specify which covariates can used in the analysis. Covariate file format can be found [[#Covariate%20file|here]]. &amp;lt;code&amp;gt;--inverseNormal --useResidualAsPhenotype&amp;lt;/code&amp;gt; specifies trait transformation method. That means first fit a regression model of the phenotype on covariates (intercept automatically added), then the residuals are inverse normalized. Trait transformation details can be found [[#Trait%20transformation|here]].&lt;br /&gt;
&lt;br /&gt;
We support both unrelated individuals and related indivudlas (e.g. family data). You need to append &amp;lt;code&amp;gt;--kinship input.kinship&amp;lt;/code&amp;gt; to the command line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rvtests --inVcf input.vcf --pheno phenotype.ped --meta score,cov --out output --kinship input.kinship&amp;lt;/pre&amp;gt;&lt;br /&gt;
The file &amp;lt;code&amp;gt;input.kinship&amp;lt;/code&amp;gt; is calculated by &amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; program, and usage to this program is described in [[#related-individual-tests|Related individual tests]].&lt;br /&gt;
&lt;br /&gt;
=== Dominant models and recessive models ===&lt;br /&gt;
&lt;br /&gt;
Dominant and recessive disease models are supported by appending &amp;amp;quot;dominant&amp;amp;quot; and/or &amp;amp;quot;recessive&amp;amp;quot; after &amp;amp;quot;--meta&amp;amp;quot; option. For example, use &amp;amp;quot;--meta dominant,recessive&amp;amp;quot; will&amp;lt;br /&amp;gt;generate two sets of files. For dominant model, they are &amp;amp;quot;prefix.MetaDominant.assoc&amp;amp;quot; and &amp;amp;quot;prefix.MetaDominantCov.assoc.gz&amp;amp;quot;; for recessive model,&amp;lt;br /&amp;gt;they are &amp;amp;quot;prefix.MetaRecessive.assoc&amp;amp;quot; and &amp;amp;quot;prefix.MetaRecessiveCov.assoc.gz&amp;amp;quot;. Internally, in dominant models, genotypes 0/1/2 are coded as 0/1/1; in recessive models, genotypes 0/1/2 are&amp;lt;br /&amp;gt;coded as 0/0/1. Missing genotypes will be imputed to the mean.&lt;br /&gt;
&lt;br /&gt;
= Input files =&lt;br /&gt;
&lt;br /&gt;
== Genotype file (VCF) ==&lt;br /&gt;
&lt;br /&gt;
Rvtests supports VCF (Variant Call Format) files. Files in both plain txt format or gzipped format are supported. To use group-based rare variant tests, indexed the VCF files using [http://samtools.sourceforge.net/tabix.shtml tabix] are required.&lt;br /&gt;
&lt;br /&gt;
Here are the commands to convert plain text format to bgzipped VCF format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;(grep ^&amp;amp;quot;#&amp;amp;quot; $your_old_vcf; grep -v ^&amp;amp;quot;#&amp;amp;quot; $your_old_vcf | sed &#039;s:^chr::ig&#039; | sort -k1,1n -k2,2n) | bgzip -c &amp;amp;gt; $your_vcf_file &lt;br /&gt;
tabix -f -p vcf $your_vcf_file&amp;lt;/pre&amp;gt;&lt;br /&gt;
The above commands will (1) remove the &amp;lt;code&amp;gt;chr&amp;lt;/code&amp;gt; prefix from chromosome names; (2) sort VCF files by chromosome first, then by chromosomal positions; (3) compress using bgzip; (4) create tabix index.&lt;br /&gt;
&lt;br /&gt;
Rvtests support genotype dosages. Use &amp;lt;code&amp;gt;--dosage DosageTag&amp;lt;/code&amp;gt; to specify the dosage tag. For example, if VCF format field is &amp;amp;quot;GT:EC&amp;amp;quot; and individual genotype fields is &amp;amp;quot;0/0:0.02&amp;amp;quot;, you can use &amp;lt;code&amp;gt;--dosage EC&amp;lt;/code&amp;gt;, and rvtests will use the dosage 0.02 in the regression models.&lt;br /&gt;
&lt;br /&gt;
== Phenotype file ==&lt;br /&gt;
&lt;br /&gt;
You can use &amp;lt;code&amp;gt;--mpheno $phenoypeColumnNumber&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--pheno-name&amp;lt;/code&amp;gt; to specify a given phenotype.&lt;br /&gt;
&lt;br /&gt;
An example phenotype file, (&amp;lt;code&amp;gt;example.pheno&amp;lt;/code&amp;gt;), has the following format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;fid iid fatid matid sex y1 y2 y3 y4&lt;br /&gt;
P1 P1 0 0 0 1.7642934435605 -0.733862638327895 -0.980843608339726 2&lt;br /&gt;
P2 P2 0 0 0 0.457111744989746 0.623297281416372 -2.24266162284447 1&lt;br /&gt;
P3 P3 0 0 0 0.566689682543218 1.44136462889459 -1.6490100777089 1&lt;br /&gt;
P4 P4 0 0 0 0.350528353203767 -1.79533911725537 -1.11916876241804 1&lt;br /&gt;
P5 P5 0 0 1 2.72675074738545 -1.05487747371158 -0.33586430010589 2&amp;lt;/pre&amp;gt;&lt;br /&gt;
Phenotype file is specified by the option &amp;lt;code&amp;gt;--pheno example.pheno&amp;lt;/code&amp;gt; . The default phenotype column header is “&amp;lt;code&amp;gt;y1&amp;lt;/code&amp;gt;”. If you want to use alternative columns as phenotype for association analysis (e.g the column with header y2), you may specify the phenotype by column or by name using either&lt;br /&gt;
&lt;br /&gt;
* --mpheno 2&amp;lt;br /&amp;gt;&lt;br /&gt;
* --pheno-name y2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; to use “&amp;lt;code&amp;gt;--pheno-name&amp;lt;/code&amp;gt;”, the header line must starts with “&amp;lt;code&amp;gt;fid iid&amp;lt;/code&amp;gt;” as PLINK requires.&lt;br /&gt;
&lt;br /&gt;
In phenotype file, missing values can be denoted by NA or any non-numeric values. Individuals with missing phenotypes will be automatically dropped from subsequent association analysis. For each missing phenotype value, a warning will be generated and recorded in the log file.&lt;br /&gt;
&lt;br /&gt;
When the phenotype values are only 0, 1 and 2, rvtests will automatically treat it as binary traits. However, if you want to treat it as continuous trait, please use &amp;amp;quot;&amp;lt;code&amp;gt;--qtl&amp;lt;/code&amp;gt;&amp;amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
== Covariate file ==&lt;br /&gt;
&lt;br /&gt;
You can use &amp;lt;code&amp;gt;--covar&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--covar-name&amp;lt;/code&amp;gt; to specify covariates that will be used for single variant association analysis. This is an optional parameter. If you do not have covariate in the data, this option can be ignored.&lt;br /&gt;
&lt;br /&gt;
The covariate file, (e.g. &amp;lt;code&amp;gt;example.covar&amp;lt;/code&amp;gt;) has a similar format as the phenotype file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;fid iid fatid matid sex y1 y2 y3 y4&lt;br /&gt;
P1 P1 0 0 0 1.911 -1.465 -0.817 1&lt;br /&gt;
P2 P2 0 0 0 2.146 -2.451 -0.178 2&lt;br /&gt;
P3 P3 0 0 0 1.086 -1.194 -0.899 1&lt;br /&gt;
P4 P4 0 0 0 0.704 -1.052 -0.237 1&lt;br /&gt;
P5 P5 0 0 1 2.512 -3.085 -2.579 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
The covariate file is specified by the &amp;lt;code&amp;gt;--covar&amp;lt;/code&amp;gt; option (e.g. &amp;lt;code&amp;gt;--covar example.covar&amp;lt;/code&amp;gt;). To specify covariates that will be used in the association analysis, the option &amp;lt;code&amp;gt;--covar-name&amp;lt;/code&amp;gt; can be used. For example, when age, bmi and 3 PCs are used for association analysis, the following option can be specified for the rvtest program, i.e.&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;--covar example.covar --covar-name age,bmi,pc1,pc2,pc3&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note: Missing data in the covariate file can be labeled by any non-numeric value (e.g. NA). They will be automatically imputed to the mean value in the data file.&lt;br /&gt;
&lt;br /&gt;
== Trait transformation ==&lt;br /&gt;
&lt;br /&gt;
In this meta-analysis, we use inversed normal transformed residuals in the association analysis, which is achieved by using a combination of &amp;lt;code&amp;gt;--inverseNormal&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--useResidualAsPhenotype&amp;lt;/code&amp;gt;. Specifically, we first fit the null model by regressing phenotype on covariates. The residuals are then inverse normal transformed (see Appendix A more detailed formulae for transformation). Transformed residuals will be used to obtain score statistics.&lt;br /&gt;
&lt;br /&gt;
In meta analysis, an exemplar command for using rvtest looks like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;./rvtest --inVcf $vcf --pheno $example.pheno --covar example.covar --covar-name age,bmi --inverseNormal --useResidualAsPhenotype  --meta score,cov --out $output_prefix  &amp;lt;/pre&amp;gt;&lt;br /&gt;
= Models =&lt;br /&gt;
&lt;br /&gt;
Rvtests support various association models.&lt;br /&gt;
&lt;br /&gt;
== Single variant tests ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Single variant&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|Score test&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|score&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Only null model is used to performed the test&lt;br /&gt;
|-&lt;br /&gt;
|Wald test&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|wald&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Only fit alternative model, and effect size will be estimated&lt;br /&gt;
|-&lt;br /&gt;
|Exact test&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|exact&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Fisher&#039;s test&lt;br /&gt;
|-&lt;br /&gt;
|Fam LRT&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|famLRT&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|Fast-LMM model&lt;br /&gt;
|-&lt;br /&gt;
|Fam Score&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|famScore&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|Fast-LMM model style likelihood ratio test&lt;br /&gt;
|-&lt;br /&gt;
|Grammar-gamma&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|famGrammarGamma&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|Grammar-gamma method&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--single score&amp;lt;/code&amp;gt; will apply score test.&lt;br /&gt;
&lt;br /&gt;
(##) In trait column, B and Q stand for binary, quantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Burden tests ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Burden tests&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|CMC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cmc&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Collapsing and combine rare variants by Bingshan Li.&lt;br /&gt;
|-&lt;br /&gt;
|Zeggini&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|zeggini&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Aggregate counts of rare variants by Morris Zeggini.&lt;br /&gt;
|-&lt;br /&gt;
|Madsen-Browning&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|mb&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Up-weight rare variant using inverse frequency from controls by Madsen.&lt;br /&gt;
|-&lt;br /&gt;
|Fp&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|fp&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Up-weight rare variant using inverse frequency from controls by Danyu Lin.&lt;br /&gt;
|-&lt;br /&gt;
|Exact CMC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|exactCMC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Collapsing and combine rare variants, then pefore Fisher&#039;s exact test.&lt;br /&gt;
|-&lt;br /&gt;
|CMC Wald&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cmcWald&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Collapsing and combine rare variants, then pefore Wald test.&lt;br /&gt;
|-&lt;br /&gt;
|RareCover&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|rarecover&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Find optimal grouping unit for rare variant tests by Thomas Hoffman.&lt;br /&gt;
|-&lt;br /&gt;
|CMAT&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cmat&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Test non-coding variants by Matt Z.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--burden cmc&amp;lt;/code&amp;gt; will apply CMC test.&lt;br /&gt;
&lt;br /&gt;
(##) In trait column, B and Q stand for binary, quantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Variable threshold models ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Single variant&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|Variable threshold model&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|vt&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Every rare-variant frequency cutoffs are tests by Alkes Price.&lt;br /&gt;
|-&lt;br /&gt;
|Variable threshold CMC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cmc&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|This models is natiive so that it output CMC test statistics under all possible frequency cutoffs.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--vt price&amp;lt;/code&amp;gt; will apply score test.&lt;br /&gt;
&lt;br /&gt;
(##) In trait column, B and Q stand for binary, quantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Kernel models ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Kernel&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|SKAT&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|skat&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B, Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Sequencing kernel association test by Shawn Lee.&lt;br /&gt;
|-&lt;br /&gt;
|KBAC&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|kbac&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|B&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|N&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|U&lt;br /&gt;
|Kernel-based adaptive clustering model by Dajiang Liu.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--kernel skat&amp;lt;/code&amp;gt; will apply SKAT test.&amp;lt;br /&amp;gt;To further customize SKAT test, you can use &#039;&#039;--kernel skat[nPerm=100:alpha=0.001:beta1=1:beta2=20]&#039;&#039; to specify permutation counts, type-1 error,&amp;lt;br /&amp;gt;beta distribution parameters for upweighting rare variants. Rvtests will output a message showing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;[INFO]  SKAT test significance will be evaluated using 10000 permutations at alpha = 0.001 (beta1 = 1.00, beta2 = 20.00)&amp;lt;/pre&amp;gt;&lt;br /&gt;
(##) In trait column, B and Q stand for binary, quantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Meta-analysis models ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Type&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Model(#)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Traits(##)&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Covariates&lt;br /&gt;
!align=&amp;quot;center&amp;quot;|Related / unrelated&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|Score test&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|score&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|standard score tests&lt;br /&gt;
|-&lt;br /&gt;
|Dominant model&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|dominant&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|score tests and covariance matrix under dominant disease model&lt;br /&gt;
|-&lt;br /&gt;
|Recessive model&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|recessive&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|score tests and covariance matrix under recessive disease model&lt;br /&gt;
|-&lt;br /&gt;
|Covariance&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|cov&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Q&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|Y&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|R, U&lt;br /&gt;
|covariance matrix&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
(#) Model columns list the regconized names in rvtests. For example, use &amp;lt;code&amp;gt;--meta score,cov&amp;lt;/code&amp;gt; will generate score statistics and covariance matrix for meta-analysis.&amp;lt;br /&amp;gt;(##) In trait column, B and Q stand for (b)inary, (q)uantitiave trait.&lt;br /&gt;
&lt;br /&gt;
== Utility models ==&lt;br /&gt;
&lt;br /&gt;
Rvtests has an usually option &amp;lt;code&amp;gt;--outputRaw&amp;lt;/code&amp;gt;. When specify this, rvtests can output genotypes, phenotype, covariates(if any) and collapsed genotype to tabular files. These files can be imported into other software (e.g. R) for further analysis.&lt;br /&gt;
&lt;br /&gt;
= Association test options =&lt;br /&gt;
&lt;br /&gt;
== Sample inclusion/exclusion ==&lt;br /&gt;
&lt;br /&gt;
Rvtests can flexibly specify which sample(s) to include or exclude:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;       --peopleIncludeID : give IDs of people that will be included in study&lt;br /&gt;
     --peopleIncludeFile : from given file, set IDs of people that will be included in study&lt;br /&gt;
       --peopleExcludeID : give IDs of people that will be included in study&lt;br /&gt;
     --peopleExcludeFile : from given file, set IDs of people that will be included in study&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;--peopleIncludeID&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--peopleExcludeID&amp;lt;/code&amp;gt; are used to include/exclude samples from command line.&amp;lt;br /&amp;gt;For example, specify &amp;lt;code&amp;gt;--peopleIncludeID A,B,C&amp;lt;/code&amp;gt; will include A, B and C sample from the VCF files if they exists.&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;--peopleIncludeID&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--peopleExcludeID&amp;lt;/code&amp;gt; followed by a file name will include or exclude the IDs in the file.&amp;lt;br /&amp;gt;So to include sample A, B and C, you can provide a file, &amp;lt;code&amp;gt;people.txt&amp;lt;/code&amp;gt;, looks like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;A&lt;br /&gt;
B&lt;br /&gt;
C&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then use &amp;lt;code&amp;gt;--peopleIncludeFile people.txt&amp;lt;/code&amp;gt; to include them in the analysis.&lt;br /&gt;
&lt;br /&gt;
== Variant site filters ==&lt;br /&gt;
&lt;br /&gt;
It is common that different frequency cutoffs are applied in rare-variant analysis.&amp;lt;br /&amp;gt;Therefore, rvtests specify frequency cutoffs.&lt;br /&gt;
&lt;br /&gt;
Frequency Cutoff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;             --freqUpper : Specify upper minor allele frequency bound to be included in analysis&lt;br /&gt;
             --freqLower : Specify lower minor allele frequency bound to be included in analysis&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you specify &amp;lt;code&amp;gt;--freqLower 0.01 --freqUpper 0.05&amp;lt;/code&amp;gt;, only the variants with minor allele ferquncy between 0.01 and 0.05 (boundary inclusive) will be analyzed.&lt;br /&gt;
&lt;br /&gt;
Similar to sample inclusion/exclusion options, you can specify a range of variants to be included by&amp;lt;br /&amp;gt;specifying &amp;lt;code&amp;gt;--rangeList&amp;lt;/code&amp;gt; option. For example &amp;lt;code&amp;gt;--rangeList 1:100-200&amp;lt;/code&amp;gt; will include the chromosome 1 position 100bp to 200bp region.&amp;lt;br /&amp;gt;Alternatively, use a separate file, &amp;lt;code&amp;gt;range.txt&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;--rangeFile range.txt&amp;lt;/code&amp;gt; to speicify association tests range.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;             --rangeList : Specify some ranges to use, please use chr:begin-end format.&lt;br /&gt;
             --rangeFile : Specify the file containing ranges, please use chr:begin-end format.&lt;br /&gt;
              --siteFile : Specify the file containing sites to include, please use &amp;amp;quot;chr pos&amp;amp;quot; format.&amp;lt;/pre&amp;gt;&lt;br /&gt;
It is supported to filter variant site by site depth, minor allele count or annotation (annotated VCF file is needed).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;          --siteDepthMin : Specify minimum depth(inclusive) to be incluced in analysis&lt;br /&gt;
          --siteDepthMax : Specify maximum depth(inclusive) to be incluced in analysis&lt;br /&gt;
            --siteMACMin : Specify minimum Minor Allele Count(inclusive) to be incluced in analysis&lt;br /&gt;
              --annoType : Specify annotation type that is follwed by ANNO= in the VCF INFO field, regular expression is allowed&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;NOTE&#039;&#039;: &amp;lt;code&amp;gt;--annoType Nonsynonymous&amp;lt;/code&amp;gt; will only analyze nonsynonymous variants where they have &amp;lt;code&amp;gt;ANNO=Nonsynonymous&amp;lt;/code&amp;gt; in the INFO field.&amp;lt;br /&amp;gt;VCF with annotatino information are called annotated VCF here. And to annotate&amp;lt;br /&amp;gt;a VCF file, you can use [https://github.com/zhanxw/anno ANNO], a fast and accurate annotation software.&lt;br /&gt;
&lt;br /&gt;
== Genotype filters ==&lt;br /&gt;
&lt;br /&gt;
Genotype with low depth or low quality can be filtered out by these options:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;          --indvDepthMin : Specify minimum depth(inclusive) of a sample to be incluced in analysis&lt;br /&gt;
          --indvDepthMax : Specify maximum depth(inclusive) of a sample to be incluced in analysis&lt;br /&gt;
           --indvQualMin : Specify minimum depth(inclusive) of a sample to be incluced in analysis&amp;lt;/pre&amp;gt;&lt;br /&gt;
When genotypes are filtered, they are marked as missing genotypes.&amp;lt;br /&amp;gt;Consequently, samples with missing genotype may or may not be included in the analysis.&amp;lt;br /&amp;gt;That means samples with genotypes may be dropped (&amp;lt;code&amp;gt;--impute drop&amp;lt;/code&amp;gt;)&amp;lt;br /&amp;gt;or may still be included (&amp;lt;code&amp;gt;--impute mean&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--impute hwe&amp;lt;/code&amp;gt;).&amp;lt;br /&amp;gt;By default, genotypes are imputed to its means.&amp;lt;br /&amp;gt;See next section about how you like to handle missing genotypes.&lt;br /&gt;
&lt;br /&gt;
== Handle missing genotypes and phenotypes ==&lt;br /&gt;
&lt;br /&gt;
When genotypes are missing (e.g. genotype = &amp;amp;quot;./.&amp;amp;quot;) or gentoypes are filtered out,&amp;lt;br /&amp;gt;there are three options to handle them: (1) impute to its mean(default option); (2) impute by HWE equilibrium; (3) remove from the model.&amp;lt;br /&amp;gt;Use &amp;lt;code&amp;gt;--impute [mean|hwe|drop]&amp;lt;/code&amp;gt; to specify which option to use.&lt;br /&gt;
&lt;br /&gt;
When quantitative phenotypes are missing, for example, some samples have gneotype files, but not phenotypes,&amp;lt;br /&amp;gt;rvtests can impute missing phenotype to its mean.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;NOTE:&#039;&#039; Do not use &amp;lt;code&amp;gt;--imputePheno&amp;lt;/code&amp;gt; for binary trait.&lt;br /&gt;
&lt;br /&gt;
In summary, the following two options can be used:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;           --impute : Specify either of mean, hwe, and drop&lt;br /&gt;
      --imputePheno : Impute phenotype to mean by those have genotypes but no&lt;br /&gt;
                      phenotpyes&lt;br /&gt;
                      &lt;br /&gt;
                      &amp;lt;/pre&amp;gt;&lt;br /&gt;
== Specify groups (e.g burden unit) ==&lt;br /&gt;
&lt;br /&gt;
Rare variants association tests are usually performed in gruops of variants.&amp;lt;br /&amp;gt;The natural grouping unit is gene. Rvtests can read gene definition file in &amp;lt;code&amp;gt;refFlat&amp;lt;/code&amp;gt; format,&amp;lt;br /&amp;gt;and perform association for each gene. Use &amp;lt;code&amp;gt;--geneFile&amp;lt;/code&amp;gt; option to specify the gene file name.&amp;lt;br /&amp;gt;For example, &amp;lt;code&amp;gt;--geneFile refFlat_hg19.txt.gz&amp;lt;/code&amp;gt; will use &amp;lt;code&amp;gt;refFlat_hg19.txt.gz&amp;lt;/code&amp;gt; as gene definition file,&amp;lt;br /&amp;gt;and then perform association tests for every gene. Use &amp;lt;code&amp;gt;--gene&amp;lt;/code&amp;gt; to specify a subset of genes to test.&amp;lt;br /&amp;gt;For example, &amp;lt;code&amp;gt;--gene CFH&amp;lt;/code&amp;gt; will only test CFH gene.&lt;br /&gt;
&lt;br /&gt;
Alternative grouping unit can be specified as &#039;&#039;set&#039;&#039;.&amp;lt;br /&amp;gt;These &#039;&#039;sets&#039;&#039; are treated similar to gene.&amp;lt;br /&amp;gt;You can thus use &amp;lt;code&amp;gt;--setFile&amp;lt;/code&amp;gt; to define sets (similar to &amp;lt;code&amp;gt;--geneFile&amp;lt;/code&amp;gt; option),&amp;lt;br /&amp;gt;and use &amp;lt;code&amp;gt;--set&amp;lt;/code&amp;gt; to define a specific set (similar to &amp;lt;code&amp;gt;--gene&amp;lt;/code&amp;gt; option).&amp;lt;br /&amp;gt;Additionally, use &amp;lt;code&amp;gt;--setList&amp;lt;/code&amp;gt; can speicify a set to test from command line.&lt;br /&gt;
&lt;br /&gt;
The format of a set file is: (1) set names; (2) ranges (e.g. chrom:begin-end);&amp;lt;br /&amp;gt;For example, you have a set file, &amp;lt;code&amp;gt;example.set&amp;lt;/code&amp;gt;, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;set1 1:100-200,1:250-300&lt;br /&gt;
set2 2:500-600&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can specify &amp;lt;code&amp;gt;--setFile example.set --set set2&amp;lt;/code&amp;gt; to group variants&amp;lt;br /&amp;gt;within chromosome 2, position 500 to 600bp.&amp;lt;br /&amp;gt;If you want to test a particular region, for example, chromosome 2, position 500 to 550bp,&amp;lt;br /&amp;gt;but do not want to make another file, you can use &amp;lt;code&amp;gt;--setList 2:500-600&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In summary, options related to &#039;&#039;Grouping Unit&#039;&#039; are listed below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;         --geneFile : specify a gene file (for burden tests)&lt;br /&gt;
             --gene : specify which genes to test&lt;br /&gt;
          --setList : specify a list to test (for burden tests)&lt;br /&gt;
          --setFile : specify a list file (for burden tests, first two columns:&lt;br /&gt;
                      setName chr:beg-end)&lt;br /&gt;
              --set : specify which set to test (1st column)&amp;lt;/pre&amp;gt;&lt;br /&gt;
= Sex chromosome analysis =&lt;br /&gt;
&lt;br /&gt;
Rvtests suppport X chromosome analysis. In human X chromosome, there is PAR (pseudoautosomal region) and non-PAR region.&amp;lt;br /&amp;gt;For males, there are two X allele in PAR region and one allele in non-PAR region.&amp;lt;br /&amp;gt;While the PAR region is treated in the same way as autosomes, rvtests treate non-PAR region differently.&amp;lt;br /&amp;gt;Below we will describe the details about how rvtests handles non-PAR region.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Prepare data&#039;&#039;. According to VCF standard, male genotype needs to coded as 0 or 1. For compatibility, rvtests also support 0/0 or 1/1 coding.&amp;lt;br /&amp;gt;In VCF files, male genotypes can be written as &amp;amp;quot;0&amp;amp;quot;, &amp;amp;quot;1&amp;amp;quot;, &amp;amp;quot;0|0&amp;amp;quot;, &amp;amp;quot;0/0&amp;amp;quot;, &amp;amp;quot;1|1&amp;amp;quot;, &amp;amp;quot;1/1&amp;amp;quot;. All other genotypes will be treated as missing.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Genotype in the regression model&#039;&#039;. For consistencmaine, male genotypes are converted to 0 or 2.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;MetaScore results&#039;&#039;. If specify &amp;lt;code&amp;gt;--meta score&amp;lt;/code&amp;gt;, the output file &amp;lt;code&amp;gt;prefix.MetaScore.assoc&amp;lt;/code&amp;gt; includes PAR-region and non-PAR region analysis.&amp;lt;br /&amp;gt;But in the non-PAR region, the difference is that Hardy-Weinberg P-value are calculated using female samples.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Related individuals&#039;&#039;. Just append &amp;lt;code&amp;gt;--xHemi&amp;lt;/code&amp;gt; to the &amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; (more details in [[#kinship-generation|Kinship generation]]) and &amp;lt;code&amp;gt;rvtest&amp;lt;/code&amp;gt; command lines. Rvtests can recognize non-PAR region kinship and use it in the analysis.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;PAR region&#039;&#039;. PAR region is defined as two regions X:60001-2699520 and X:154931044-155270560. Use &amp;lt;code&amp;gt;--xLabel&amp;lt;/code&amp;gt; can speicify which chromosome has PAR region (default: 23|X)&amp;lt;br /&amp;gt;and use &amp;lt;code&amp;gt;--xParRegion&amp;lt;/code&amp;gt; to specify PAR region (default: hg19, meaning &#039;60001-2699520,154931044-155260560&#039; in the UCSC build hg19, specify &amp;amp;quot;hg18&amp;amp;quot; will use PAR region definition in the UCSC build hg18).&lt;br /&gt;
&lt;br /&gt;
= Kinship generation =&lt;br /&gt;
&lt;br /&gt;
Analysis of related individual usually requires estimation of kinship. You can a separate tool, &amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; is usually included in rvtests binary distribution or can be built from software source codes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; can calcualte pedigree kinship using a pedigree input file (PED format, see [[#phenotype-file|Phenotype file]], use option &amp;lt;code&amp;gt;--ped&amp;lt;/code&amp;gt;).&amp;lt;br /&amp;gt;The output file name is specified by &amp;lt;code&amp;gt;--prefix&amp;lt;/code&amp;gt; option. If you use &amp;lt;code&amp;gt;--prefix output&amp;lt;/code&amp;gt; then the output files will include &amp;lt;code&amp;gt;output.kinship&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
It can also calculate empirical kinship using genotyp input file (VCF format, see [[#genotype-file-vcf|Genotype file (VCF)]], use option &amp;lt;code&amp;gt;--inVcf&amp;lt;/code&amp;gt;).&amp;lt;br /&amp;gt;For empiricial kinship, you also need to specify the kinship model, either Balding-Nicols model (ue option &amp;lt;code&amp;gt;--bn&amp;lt;/code&amp;gt;) or Identity-by-state model (use option &amp;lt;code&amp;gt;--ibs&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
In sex chromosome analysis, it is often required to generate kinship on X chromsoome regions, then you need to speicfy &amp;lt;code&amp;gt;--xHemi&amp;lt;/code&amp;gt;. If your input VCF file has different X chromosome label (e.g. chromosome name is &#039;23&#039; instead of &#039;X&#039;), you can use &amp;lt;code&amp;gt;--xLabel 23&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If principal component decomposition (PCA) results are needed, you can use option &amp;lt;code&amp;gt;--pca&amp;lt;/code&amp;gt;. Then output files with suffix &#039;.pca&#039; include PCA results.&lt;br /&gt;
&lt;br /&gt;
When dealing with large input files, it is often preferred to use multiple CPU to speed up calculation using the option &amp;lt;code&amp;gt;--thread N&amp;lt;/code&amp;gt; in which N is the number of CPUs.&lt;br /&gt;
&lt;br /&gt;
For example, to generate pedigree-based kinship (&amp;lt;code&amp;gt;--ped&amp;lt;/code&amp;gt;) on both autosomal region and X chromosome (&amp;lt;code&amp;gt;--xHemi&amp;lt;/code&amp;gt;) region, the command line is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vcf2kinship --ped input.ped --xHemi --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
To generate empirical kinship (&amp;lt;code&amp;gt;--inVcf&amp;lt;/code&amp;gt;) on both autosomal region and X chromosome (&amp;lt;code&amp;gt;--xHemi&amp;lt;/code&amp;gt;) region using Balding-Nicols model, the command line is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vcf2kinship --inVcf input.vcf.gz --ped input.ped --bn --xHemi --out output&amp;lt;/pre&amp;gt;&lt;br /&gt;
NOTE: you need to provide a pedigree file (PED) in the above case, as &amp;lt;code&amp;gt;vcf2kinship&amp;lt;/code&amp;gt; need the sex information of samples.&lt;br /&gt;
&lt;br /&gt;
= Frequently Asked Questions (FAQ) =&lt;br /&gt;
&lt;br /&gt;
* Does rvtests suppport binary traits of related-individuals?&lt;br /&gt;
&lt;br /&gt;
Not yet. It&#039;s a complex scenario and we have not found good solutions.&lt;br /&gt;
&lt;br /&gt;
* Can you provide a list of command line options?&lt;br /&gt;
&lt;br /&gt;
Rvtests have build help taht can be found by executing &amp;lt;code&amp;gt;rvtest --help&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt;We also put all available options in this [https://github.com/zhanxw/rvtests/wiki/Command-Line-Options link].&lt;br /&gt;
&lt;br /&gt;
* Can you provide standard error (SE) or confidence interval (CI) for the estimated Beta in the score model?&lt;br /&gt;
&lt;br /&gt;
In the output of MetaScore model (--meta score), the standard error is the inverse of SQRT_V_STAT.&amp;lt;br /&amp;gt;For example, if SQRT_V_STAT = 2, that means the standard error of estimated beta is 1/2 = 0.5.&lt;br /&gt;
&lt;br /&gt;
* Why the INFORMATIVE_ALT_AC, N_REF and N_ALT columns have zero counts for certain chromosome X regions in meta-analysis models?&lt;br /&gt;
&lt;br /&gt;
These counts are calculated from female individuals. If your study only has male samples, rvtests cannot report these counts. Because if a male carries a non-reference allele, we cannot conclude that this is heterozygous (0/1) site or homozygous alternatives (1/1) site.&lt;br /&gt;
&lt;br /&gt;
= Feedback/Contact =&lt;br /&gt;
&lt;br /&gt;
Questions and requests can be sent to Xiaowei Zhan&amp;lt;br /&amp;gt;([mailto:zhanxw@umich.edu [mailto:zhanxw@umich.edu zhanxw@umich.edu]])&amp;lt;br /&amp;gt;or Goncalo Abecasis&amp;lt;br /&amp;gt;([mailto:goncalo@umich.edu [mailto:goncalo@umich.edu goncalo@umich.edu]])&lt;br /&gt;
&lt;br /&gt;
Rvtests is a collaborative effort by Youna Hu, Bingshan Li, Dajiang Liu.&lt;br /&gt;
&lt;br /&gt;
[https://bitdeli.com/free [[Image:https://d2weczhvl823v0.cloudfront.net/zhanxw/rvtests/trend.png|Bitdeli Badge]]]&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=LiftOver&amp;diff=11708</id>
		<title>LiftOver</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=LiftOver&amp;diff=11708"/>
		<updated>2014-10-14T05:40:36Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: /* Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;LiftOver is a necesary step to bring all genetical analysis to the same reference build. &lt;br /&gt;
LiftOver can have three use cases: &lt;br /&gt;
&lt;br /&gt;
(1) [[#Lift genome positions | Convert genome position from one genome assembly to another genome assembly]]&lt;br /&gt;
&lt;br /&gt;
In most scenarios, we have known genome positions in NCBI build 36 (UCSC hg 18) and hope to lift them over to NCBI build 37 (UCSC hg19).&lt;br /&gt;
&lt;br /&gt;
(2) [[#Lift dbSNP rs numbers | Convert dbSNP rs number from one build to another]]&lt;br /&gt;
&lt;br /&gt;
(3) [[#Lift Merlin/PLINK format | Convert both genome position and dbSNP rs number over different versions]]&lt;br /&gt;
&lt;br /&gt;
It is likely to see such type of data in Merlin/PLINK format.&lt;br /&gt;
&lt;br /&gt;
We will explain the work flow for the above three cases. In the rest of this article, &lt;br /&gt;
our example is to lift over from lower/older build to newer/higher build, as it is the common practice.&lt;br /&gt;
&lt;br /&gt;
Using different tools, liftOver can be easy.&lt;br /&gt;
For example, UCSC liftOver tool is able to lift [http://genome.ucsc.edu/FAQ/FAQformat.html#format1 BED format] file between builds.&lt;br /&gt;
With our customized scripts, we can also lift rsNumber and Merlin/PLINK data files. &lt;br /&gt;
&lt;br /&gt;
== Lift genome positions ==&lt;br /&gt;
Genome positions are best represented in [http://genome.ucsc.edu/FAQ/FAQformat.html#format1 BED format]. UCSC provides tools to convert BED file from one genome assembly to another. &lt;br /&gt;
&lt;br /&gt;
=== Binary liftOver tool ===&lt;br /&gt;
We need [http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/liftOver liftOver binary] from UCSC and [http://hgdownload.cse.ucsc.edu/goldenPath/hg18/liftOver/hg18ToHg19.over.chain.gz hg18 to hg 19 chain file].&lt;br /&gt;
&lt;br /&gt;
Provide BED format file (e.g. input.bed)&lt;br /&gt;
&lt;br /&gt;
NOTE: Use the &#039;chr&#039; before each chromosome name&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chr1    743267  743268  rs3115860&lt;br /&gt;
chr1    766408  766409  rs12124819&lt;br /&gt;
chr1    773885  773886  rs17160939&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run liftOver:&lt;br /&gt;
&lt;br /&gt;
    liftOver input.bed hg18ToHg19.over.chain.gz output.bed unlifted.bed&lt;br /&gt;
&lt;br /&gt;
unlifted.bed file will contain all genome positions that cannot be lifted. The reason for that varies. See [[#Various reasons that lift over could fail | Various reasons that lift over could fail]]&lt;br /&gt;
&lt;br /&gt;
=== Web interface ===&lt;br /&gt;
Alternatively, you can lift over BED file in web interface&lt;br /&gt;
at: [http://genome.ucsc.edu/cgi-bin/hgLiftOver Link]&lt;br /&gt;
Web interface can tell you why some genome position cannot&lt;br /&gt;
be lifted if you click &amp;quot;Explain failure messages&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Lift dbSNP rs numbers ==&lt;br /&gt;
rs number is release by dbSNP. UCSC also make their own copy from each dbSNP version. Be aware that the same version of dbSNP from these two centers are not the same.&lt;br /&gt;
When we convert rs number from lower version to higher version, there are practically two ways.&lt;br /&gt;
&lt;br /&gt;
=== Use RsMergeArch and SNPHistory ===&lt;br /&gt;
It is necessary to quickly summarize how dbSNP merge/re-activate rs number:&lt;br /&gt;
&lt;br /&gt;
# when different rs number are found to refer to the same SNP, then higher rs number will be merged to lower rs number, and the merging will be recorded in RsMergeArch.bcp.gz.&lt;br /&gt;
# when rs number have to be retracted, rs number will be recorded in SNPHistory.bcp.gz&lt;br /&gt;
# a retracted SNP can be [http://www.ncbi.nlm.nih.gov/books/NBK44496/#Schema.rs4823903_which_has_merged_into re-activated] in SNPHistory.bcp.gz by adding comment&lt;br /&gt;
&lt;br /&gt;
With the above in mind, we are able to combine these two tables to obtain the relationship between older rs number and new rs number.&lt;br /&gt;
We have developed a script (for internal use), named [http://genome.sph.umich.edu/wiki/LiftRsNumber.py liftRsNumber.py] for lift rs numbers between builds.&lt;br /&gt;
This scripts require RsMergeArch.bcp.gz  and SNPHistory.bcp.gz, those can be found in [[#Resources | Resources]].&lt;br /&gt;
&lt;br /&gt;
Example input:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
3000&lt;br /&gt;
3001&lt;br /&gt;
3002&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
python liftRsNumber.py input.rs &amp;gt; output.rs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
unchanged       3000&lt;br /&gt;
lifted  2032&lt;br /&gt;
unchanged       3002&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lift Merlin/PLINK format ==&lt;br /&gt;
In Merlin/PLINK .map files, each line contains both genome position and dbSNP rs number. Our goal here is to use both information to liftOver as many position as possible.&lt;br /&gt;
There are 3 methods to liftOver and we recommend the first 2 method. The first method is common and applicable in most cases, and in our observations it lifts the most genome positions, however, it does not reflect the rs  number change between different dbSNP builds. The second method is more robust in the sense that each lifted rs number has valid genome position, as it lift over old rs number as the first step by using dbSNP data. The third method is not straigtforward, and we just briefly mention it.&lt;br /&gt;
&lt;br /&gt;
=== Lift Merlin format ===&lt;br /&gt;
&lt;br /&gt;
PLINK format and [http://www.sph.umich.edu/csg/abecasis/Merlin/tour/input_files.html Merlin format are nearly identical]. &lt;br /&gt;
The difference is that Merlin .map file have 4 columns. We will show&lt;br /&gt;
the lift over procedure for PLINK format, then you can use:&lt;br /&gt;
&lt;br /&gt;
  awk &#039;{print $1,$2,&amp;quot;\t&amp;quot;,$3;}&#039; PLINK.map &amp;gt; Merlin.map&lt;br /&gt;
&lt;br /&gt;
to obtain Merlin .map file. &lt;br /&gt;
&lt;br /&gt;
=== Lift PLINK format ===&lt;br /&gt;
[http://pngu.mgh.harvard.edu/~purcell/plink/data.shtml PLINK] format usually referrs to .ped and .map files. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Method 1 ====&lt;br /&gt;
We mainly use UCSC LiftOver binary tools to help lift over. &lt;br /&gt;
We have a script [[#Resources | liftMap.py]], however, it is recommended to understand the job step by step:&lt;br /&gt;
&lt;br /&gt;
(1) Convert .map to .bed file&lt;br /&gt;
&lt;br /&gt;
By rearrange columns of .map file, we obtain a standard BED format file.&lt;br /&gt;
&lt;br /&gt;
(2) LiftOver .bed file&lt;br /&gt;
&lt;br /&gt;
Use method mentioned [[#Lift genome positions | above]] to convert .bed file from one build to another.&lt;br /&gt;
&lt;br /&gt;
(3) Convert lifted .bed file back to .map file&lt;br /&gt;
&lt;br /&gt;
Rearrange column of .map file to obtain .bed file in the new build.&lt;br /&gt;
&lt;br /&gt;
(4) Modify .ped file&lt;br /&gt;
&lt;br /&gt;
.ped file have many column files. By convention, the first six columns are family_id, person_id, father_id, mother_id, sex, and phenotype.&lt;br /&gt;
From the 7th column, there are two letters/digits representing a genotype at the certain marker. In step (2), as some genome positions cannot&lt;br /&gt;
be lifted to the new version, we need to drop their corresponding columns from .ped file to keep consistency. You can use PLINK --exclude those snps,&lt;br /&gt;
see [http://pngu.mgh.harvard.edu/~purcell/plink/dataman.shtml#exclude Remove a subset of SNPs].&lt;br /&gt;
&lt;br /&gt;
(5) (optionally) change the rs number in the .map file&lt;br /&gt;
&lt;br /&gt;
Similar to the human reference build, dbSNP also have different versions. You may consider change rs number from the old dbSNP version to new dbSNP version &lt;br /&gt;
depending on your needs. Such steps are described in [[#Lift dbSNP rs numbers | Lift dbSNP rs numbers]].&lt;br /&gt;
&lt;br /&gt;
==== Method 2 ====&lt;br /&gt;
The idea is to use [[#Resources |LiftRsNumber.py]] to convert old rs number to new rs number, use the data file b132_SNPChrPosOnRef_37_1.bcp.gz (a data file containing each dbSNP and its positions in NCBI build 37), and adjust .map and .ped files accordingly. &lt;br /&gt;
&lt;br /&gt;
(1) Extract and lift rs numbers&lt;br /&gt;
&lt;br /&gt;
Use the tools [[#Use RsMergeArch and SNPHistory | LiftRsNumber.py]] to lift the rs number in the map file from old build to new build.&lt;br /&gt;
&lt;br /&gt;
(2) Lookup SNP positions from rs number&lt;br /&gt;
&lt;br /&gt;
dbSNP provides a file [[#Resources | b132_SNPChrPosOnRef_37_1.bcp.gz]] which contains rsNumber, chromosome and its position.&lt;br /&gt;
Use this file along with the new rsNumber obtained in the first step.&lt;br /&gt;
In practice, some rs numbers do not exist in build 132, or not suitable to be considered ( e.g. they do not reside on human reference, or they are mapped to multiple locations, these scenarios are noted by the chromosome column with values like &amp;quot;AltOnly&amp;quot;, &amp;quot;Multi&amp;quot;, &amp;quot;NotOn&amp;quot;, &amp;quot;PAR&amp;quot;, &amp;quot;Un&amp;quot;), we can drop them in the liftover procedure.&lt;br /&gt;
We will obtain the rs number and its position in the new build after this step.&lt;br /&gt;
&lt;br /&gt;
(3) Lift .map file and .ped file&lt;br /&gt;
&lt;br /&gt;
To lift over .map files, we can scan its content line by line, and skip those not lifted rs number.&lt;br /&gt;
Accordingly, it is necessary to drop the un-lifted SNP genotypes from .ped file.&lt;br /&gt;
&lt;br /&gt;
==== Method 3 ====&lt;br /&gt;
NCBI dbSNP team has provided a [[ #Resources | provisional map ]] for converting the genome position of a larget set dbSNP from NCBI build 36 to NCBI build 37. &lt;br /&gt;
In the second step, we have obtained unlifted genome positions, so we can try to use the table to convert those unlfted dbSNPs.&lt;br /&gt;
After this step, there are still some SNPs that cannot be lifted, as they are mostly located on non-reference chromosome.&lt;br /&gt;
Note: due to the limitation of the provisional map, some SNP can have multiple locations.&lt;br /&gt;
For example, we cannot convert rs10000199 to chromosome 4, 7, 12.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
10000199	A/G	4	166142415	166142415	2	3	G	+	4	165922965	165922965	2	3	G	+&lt;br /&gt;
10000199	A/G	7	4589694	4589694	2	3	C	-	7	4623168	4623168	2	3	C	-&lt;br /&gt;
10000199	A/G	12	57008620	57008620	2	3	C	-	12	58722353	58722353	2	3	C	-&lt;br /&gt;
10000199	A/G	5	156018406	156018406	2	3	C	-	5	156085828	156085828	2	3	C	-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can dissect this method into steps:&lt;br /&gt;
&lt;br /&gt;
(1) Remove invalid record in dbSNP provisional map.&lt;br /&gt;
&lt;br /&gt;
Provisional map have duplicated rs number or the chromsome in the new build can be &amp;quot;Unable to map&amp;quot;(UN), we need to clean this table.&lt;br /&gt;
&lt;br /&gt;
(2) Use provisional map to update .map file&lt;br /&gt;
&lt;br /&gt;
By joining .map file and this provisional map, we can obtain the new genome position in the new build.&lt;br /&gt;
Note: provisional map uses 1-based chromosomal index. Things will get tricker if we want to lift non-single site SNP e.g. AA/GG&lt;br /&gt;
Since provisional map provides a range in this case, it is necessary to know the genome position of that single base provided in the .map file, &lt;br /&gt;
and then we can look up the table, so it is not straigtforward.&lt;br /&gt;
&lt;br /&gt;
(3) Adjust .map and .ped file&lt;br /&gt;
&lt;br /&gt;
For those lifted dbSNP, we need to keep them in the .map files, otherwise, we need to delete them.&lt;br /&gt;
Accordingly, we need to deleted SNP genotypes for those cannot be lifted.&lt;br /&gt;
&lt;br /&gt;
== Various reasons that lift over can fail ==&lt;br /&gt;
&lt;br /&gt;
=== Genome position cannot be lifted ===&lt;br /&gt;
When a SNP resides in a contig that only exists in older reference build, liftOver cannot give it new genome.&lt;br /&gt;
&lt;br /&gt;
You can try the following SNP (in BED format) in UCSC online liftOver site:&lt;br /&gt;
 20 56737667 56737668 rs1073519&lt;br /&gt;
The error message will be: &amp;quot;Sequence intersects no chains&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== SNP in higher build are located in non-referernce assembly ===&lt;br /&gt;
Some SNP are not in autosomes or sex chromosomes in NCBI build 37. dbSNP does not include them. &lt;br /&gt;
You cannot use dbSNP database to lookup its genome position by rs number.&lt;br /&gt;
&lt;br /&gt;
Take rs1006094 as an example:&lt;br /&gt;
In NCBI dbSNP webpage, this SNP is reported as &amp;quot;Mapped unambiguously on non-reference assembly only&amp;quot;&lt;br /&gt;
Thus it is probably not very useful to lift this SNP.&lt;br /&gt;
&lt;br /&gt;
=== rs number changed in newer dbSNP build ===&lt;br /&gt;
It is possible that new dbSNP build does not have certain rs numbers.&lt;br /&gt;
When dbSNp release new build, higher rs number may be merged to lower rs number because of those rs numbers are actually the same SNP.&lt;br /&gt;
This merge process can be complicate. For short description, see [[ #Use RsMergeArch and SNPHistory | Use RsMergeArch and SNPHistory ]]. &lt;br /&gt;
For detail, see:&lt;br /&gt;
&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/books/NBK44395/#FTP.do_you_have_a_table_of_merged_snps_s Finding Specific Data in dbSNP’s FTP Files] &lt;br /&gt;
&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/books/NBK44468/#Build.can_two_id_numbers_correspond_to_t Merging RefSNP Numbers and RefSNP Clusters]&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
rs3001 has merged to rs2032.&lt;br /&gt;
&lt;br /&gt;
=== Different dbSNP build ===&lt;br /&gt;
NCBI released dbSNP132 (VCF format), and UCSC also have their version of dbSNP132 (plain txt).&lt;br /&gt;
The two database files differ not only in file format, but in content.&lt;br /&gt;
&lt;br /&gt;
For NCBI release, its [[#Resources| release]] will not contain:&lt;br /&gt;
* SNPs listed as microsatellites or named variations&lt;br /&gt;
* SNPs with multibyte alleles and unknown (N) adjacent base pairs&lt;br /&gt;
* SNPs that are not mapped on the reference genome (GRCh37)&lt;br /&gt;
&lt;br /&gt;
For UCSC release, see [[ #Resources | UCSC dbSNP track note ]]&lt;br /&gt;
&lt;br /&gt;
Use rs1054140 as an example:&lt;br /&gt;
&lt;br /&gt;
NCBI dbSNP website gives 1 location:&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?rs=1054140 Link]&lt;br /&gt;
&lt;br /&gt;
NCBI dbSNP VCF file has NO record.&lt;br /&gt;
&lt;br /&gt;
UCSC genome browser website gives 2 locations:&lt;br /&gt;
[http://genome.ucsc.edu/cgi-bin/hgTracks?clade=mammal&amp;amp;org=Human&amp;amp;db=hg19&amp;amp;position=rs1054140&amp;amp;hgt.suggest=&amp;amp;hgt.suggestTrack=knownGene&amp;amp;pix=800&amp;amp;Submit=submit&amp;amp;hgsid=205770459&amp;amp;hgt.newJQuery=1 Link]&lt;br /&gt;
&lt;br /&gt;
UCSC dbSNP file give 2 locations:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
721     chr10   17842693        17842694        rs1054140       0       +       T       T       A/T     genomic single  by-cluster,by-submitter ...&lt;br /&gt;
723     chr10   18089681        18089682        rs1054140       0       +       T       T       A/T     genomic single  by-cluster,by-submitter ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
* liftRsNumber.py [[liftRsNumber.py]] and its interal location: /net/dumbo/net/dumbo/home/zhanxw/amd/analyze/verifyBamID/liftRsNumber.py&lt;br /&gt;
* liftMap.py [[liftMap.py]]&lt;br /&gt;
* NCBI provisional map [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/misc/exchange/Remap_36_3_37_1.txt.gz file] and [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/misc/exchange/Remap_36_3_37_1.info info]&lt;br /&gt;
* NCBI RgMergeArch [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/database/organism_data/RsMergeArch.bcp.gz file] and [http://www.ncbi.nlm.nih.gov/SNP/snp_db_table_description.cgi?t=RsMergeArch schema]&lt;br /&gt;
* NCBI SNPHistory [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/database/organism_data/SNPHistory.bcp.gz file] and [http://www.ncbi.nlm.nih.gov/SNP/snp_db_table_description.cgi?t=SNPHistory schema]&lt;br /&gt;
* NCBI SNPChrPosOnRef build 132 [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/database/b132_archive/organism_data/b132_SNPChrPosOnRef_37_1.bcp.gz file] and [http://www.ncbi.nlm.nih.gov/SNP/snp_db_table_description.cgi?t=SNPChrPosOnRef schema]. If this link becomes unavailable, please consider using the updated file ([ftp://ftp.ncbi.nih.gov/snp/organisms/human_9606/database/organism_data/b141_SNPChrPosOnRef.bcp.gz link]).&lt;br /&gt;
&lt;br /&gt;
* How UCSC dbSNP differs from NCBI dbSNP [http://genomewiki.ucsc.edu/index.php/DbSNP_Track_Notes UCSC dbSNP track note]&lt;br /&gt;
* The dbSNP mapping process [http://www.ncbi.nlm.nih.gov/books/NBK44455/ link]&lt;br /&gt;
* NCBI dbSNP release 132 [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/VCF/v4.0/ByChromosomeNoGeno/00-All.vcf.gz 00-All.vcf.gz]&lt;br /&gt;
* UCSC dbSNP release 132 [http://hgdownload.cse.ucsc.edu/goldenPath/hg19/database/snp132.txt.gz snp132.txt.gz]&lt;br /&gt;
&lt;br /&gt;
== Third party contribution ==&lt;br /&gt;
&lt;br /&gt;
* liftOver for BEDPE format by [mailto://doug.phanstiel@gmail.com Doug] - [http://www.sharedproteomics.com/forum/showthread.php?2930-liftOverBedpe.py-Convert-genome-coordinates-for-bedpe-files&amp;amp;p=4854#post4854 liftOverBedpe.py].&lt;br /&gt;
&lt;br /&gt;
== Acknowledge ==&lt;br /&gt;
&lt;br /&gt;
* Hyun: provides sample liftOver tool: [/net/wonderland/home/hmkang/prj/Sardinia/MetaboChip/scripts/j01-liftover-metabochip-positions.pl]&lt;br /&gt;
* Alex: careful examines of 0-based index in UCSC data file&lt;br /&gt;
* Adrian: explaination of SNPs omitted in NCBI dbSNP file&lt;br /&gt;
* Goncalo: all other supports&lt;br /&gt;
&lt;br /&gt;
== Questions and Comments ==&lt;br /&gt;
&lt;br /&gt;
Please contact [mailto:zhanxw@umich.edu Xiaowei Zhan].&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Ancestry&amp;diff=11342</id>
		<title>Ancestry</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Ancestry&amp;diff=11342"/>
		<updated>2014-08-12T18:53:31Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;= Introduction  =  Ancestry can infer ancestry using sequence reads in the Principal Component (PC) space.  It is suited for targeted/exome sequencing or whole genome sequenci...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction  =&lt;br /&gt;
&lt;br /&gt;
Ancestry can infer ancestry using sequence reads in the Principal Component (PC) space. &lt;br /&gt;
It is suited for targeted/exome sequencing or whole genome sequencing experiments. &lt;br /&gt;
Ancestry is implemented in C++ for fast computations.&lt;br /&gt;
&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
To get a copy of the software, please contact: zhanxw@umich.edu .&lt;br /&gt;
&lt;br /&gt;
For CSG users, the binary executable is located at: /net/fantasia/home/zhanxw/spa/cpp/executable/ancestrySeq&lt;br /&gt;
&lt;br /&gt;
We plan to open source this program shortly.&lt;br /&gt;
 &lt;br /&gt;
= Command Line Options = &lt;br /&gt;
&lt;br /&gt;
== Input sequence data(--inSeq) ==&lt;br /&gt;
&lt;br /&gt;
Sequence data (BAM files) need to be preprocessed in .seq format. This procedure is described [http://genome.sph.umich.edu/wiki/LASER#Seq_file here].&lt;br /&gt;
&lt;br /&gt;
Seq file is generated from pileup files. It contains sequencing information and organize it in a LASER readable format.&lt;br /&gt;
The first two columns represent population id and individual id.&lt;br /&gt;
Subsequent columns are total read depths and reference base counts.&lt;br /&gt;
For example, column 3 and 4 are 0, 0 in the following example. That means at first marker, the sequence read depth is 0 and thus none of the reads has reference base.&lt;br /&gt;
We enforce tab delimiters between markers and space delimiters between each read depths and reference base counts.&lt;br /&gt;
On line of seq file looks like below:&lt;br /&gt;
&lt;br /&gt;
 NA12878.chrom22	NA12878.chrom22	0 0	0 0	0 0	0 0	0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Input pileup sites (--inSite) ==&lt;br /&gt;
&lt;br /&gt;
Site file is equivalent to BED file and it is used here to represent marker positions. &lt;br /&gt;
&lt;br /&gt;
The preprocessing procedure is described [http://genome.sph.umich.edu/wiki/LASER#Site_file here].&lt;br /&gt;
&lt;br /&gt;
An example site file looks like below:&lt;br /&gt;
&lt;br /&gt;
 CHR  POS      ID          REF  ALT&lt;br /&gt;
 1    752566   rs3094315   G    A&lt;br /&gt;
 1    768448   rs12562034  G    A&lt;br /&gt;
 1    1005806  rs3934834   C    T&lt;br /&gt;
 1    1018704  rs9442372   A    G&lt;br /&gt;
 1    1021415  rs3737728   A    G&lt;br /&gt;
&lt;br /&gt;
The site file has header line, and it contains chromosome, position(1-based), id (usually marker name), ref (reference allele) and alt (alternative allele).&lt;br /&gt;
&lt;br /&gt;
== Input parameter (--inModel) == &lt;br /&gt;
&lt;br /&gt;
This parameter specifies the SNP gradients and offsets. It is the output of program [http://genetics.cs.ucla.edu/spa/ spa]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Output prefix (--out) ==&lt;br /&gt;
&lt;br /&gt;
The parameter specifies the output prefix.&lt;br /&gt;
The main results will be stored in &#039;&#039;PREFIX&#039;&#039;.loc file.&lt;br /&gt;
&lt;br /&gt;
An example output file looks like below:&lt;br /&gt;
&lt;br /&gt;
  PopId   IndvId  Loc1    Loc2&lt;br /&gt;
  MPaS3287        MPaS3287        13.5669 176.051&lt;br /&gt;
  MPaS3287        MPaS3287.ConfInt95      6.43922,20.724  169.103,182.928&lt;br /&gt;
&lt;br /&gt;
Note, when &#039;&#039;--ci&#039;&#039; option is used, the outputted IndvID column will append &amp;quot;.ConfInt95&amp;quot; indicates that the inference results is a 95% confidence interval.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Inference option (--bootstrap) == &lt;br /&gt;
&lt;br /&gt;
When this option is specified, the program will infer ancestral locations using a bootstrap procedure.&lt;br /&gt;
Essentially, we resample input sequence reads, and recalculate ancestral locations  after each shuffle.&lt;br /&gt;
The output will include ancestral locations from every resampling.&lt;br /&gt;
&lt;br /&gt;
== Inference option (--ci) == &lt;br /&gt;
&lt;br /&gt;
When this option is specified, the program will infer ancestral locations based on likelihood calculations.&lt;br /&gt;
On a two-dimensional space, this option infer the top, bottom, left and right boundaries of an ellipse region,&lt;br /&gt;
and the probability that the true ancestral location fells in this region is 95%.&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&lt;br /&gt;
A basic command looks like:&lt;br /&gt;
&lt;br /&gt;
  ancestrySeq --inSeq 1108.amd.to.hgdp.seq --inSite HGDP_938.site --inModel spa.model.out --out test&lt;br /&gt;
&lt;br /&gt;
The result file, test.loc, includes inferred location for each sample listed in 1108.amd.to.hgdp.seq.&lt;br /&gt;
&lt;br /&gt;
= Resources =&lt;br /&gt;
&lt;br /&gt;
[http://genome.sph.umich.edu/wiki/LASER LASER] is a related project that starts earlier than ancestry. &lt;br /&gt;
Both software can perform ancestral inference. &lt;br /&gt;
But ancestral has computational advantages and does not sacrifice accuracies.&lt;br /&gt;
&lt;br /&gt;
= Contact  =&lt;br /&gt;
&lt;br /&gt;
Comments on this wiki page or questions related to preparing input files for LASER can be sent to [mailto:zhanxw@umich.edu Xiaowei Zhan].&lt;br /&gt;
This project was helped by Chaolong Wang and was directed by Gonçalo Abecasis.&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=LASER&amp;diff=11189</id>
		<title>LASER</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=LASER&amp;diff=11189"/>
		<updated>2014-07-10T14:41:35Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction  =&lt;br /&gt;
&lt;br /&gt;
LASER, which stands for Locating Ancestry using SEquencing Reads, is a C++ software package that can estimate individual ancestry directly from genome-wide shortgun sequencing reads without calling genotypes. The method relies on the availability of a set of reference individuals whose genome-wide SNP genotypes and ancestral information are known. We first construct a reference coordinate system by applying principal components analysis (PCA) to the genotype data of the reference individuals. Then, for each sequencing sample, use the genome-wide sequencing reads to place the sample into the reference PCA space. With an appropriate reference panel, the estimated coordinates of the sequencing samples identify their ancestral background and can be directly used to correct for population structure in association studies or to ensure adequate matching of cases and controls. &lt;br /&gt;
&lt;br /&gt;
The goal of this wiki page is to help you get start using LASER.&lt;br /&gt;
You can also find workshop lecture notes from [http://genome.sph.umich.edu/wiki/SeqShop:_Estimates_of_Genetic_Ancestry_Practical 2014 UM Sequencing Workshop].&lt;br /&gt;
We encourage you to read the [http://www.sph.umich.edu/csg/chaolong/LASER/LASER_Manual.pdf manual] for more details.&lt;br /&gt;
&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
To get a copy of the software and manual, go to the [http://www.sph.umich.edu/csg/chaolong/LASER/ LASER Download] page.&lt;br /&gt;
&lt;br /&gt;
= Workflow  =&lt;br /&gt;
&lt;br /&gt;
LASER generates the coordinates from both reference individuals and sequence samples. It requires essentially two input files: &lt;br /&gt;
&lt;br /&gt;
[[File:LASER-Workflow.png|thumb|center|alt=LASER workflow|400px|LASER Workflow]] &lt;br /&gt;
&lt;br /&gt;
*Seq file: a text file processed from BAM (alignment) files. (See [[#Process sequencing file (BAM)|Processing sequencing file]] for how to prepare seq file) &lt;br /&gt;
*Geno file: genotypes of reference individuals. (See [[#Geno file|Geno file]] to understand geno file format)&lt;br /&gt;
&lt;br /&gt;
LASER typically outputs two coord files: (1) in reference individuals&#039; coord file(Reference.coord), LASER outputs the reference coordinates in the PCA space; (2) in sequence samples&#039; coord files(AllSamples.coord), LASER infers their ancestries by placing their ancestry coordinates onto reference samples&#039; PCA space.&lt;br /&gt;
&lt;br /&gt;
An example result of the coord file of sequence samples is shown below:&lt;br /&gt;
&lt;br /&gt;
 popID  indivID  L1    Ci        t         PC1       PC2&lt;br /&gt;
 YRI    NA19238  1409  0.304122  0.98933   52.7634   -39.7924&lt;br /&gt;
 CEU    NA12892  1552  0.330037  0.989709  9.82674   25.2898&lt;br /&gt;
 CEU    NA12891  1609  0.362198  0.988082  0.439573  26.8872&lt;br /&gt;
 CEU    NA12878  1579  0.334825  0.988677  8.83775   28.1342&lt;br /&gt;
 YRI    NA19239  1558  0.34898   0.988302  53.9104   -39.1727&lt;br /&gt;
 YRI    NA19240  1735  0.404142  0.990264  59.8379   -45.2765&lt;br /&gt;
&lt;br /&gt;
In the header line, popID means &amp;quot;population ID&amp;quot;, indivID means &amp;quot;individual ID&amp;quot;, L1 means number of loci that has been covered by at least one read, Ci means &amp;quot;average coverage&amp;quot;, t means Procrustes similarity. PC1 and PC2 mean coordinates of the first and second principal components.&lt;br /&gt;
&lt;br /&gt;
= Tutorial  =&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we will show you how to prepare data and run LASER.&lt;br /&gt;
&lt;br /&gt;
== Process sequencing file (BAM)  ==&lt;br /&gt;
&lt;br /&gt;
We illustrate how to obtain .seq file from BAM files in this section. &lt;br /&gt;
In this example, we use HGDP data set as a reference, which contains 938 individuals and 632,958 markers.&lt;br /&gt;
[[File:LASER-DataProcessing.png|thumb|center|alt=LASER workflow|400px|LASER Data Processing Procedure]] &lt;br /&gt;
&lt;br /&gt;
1. Obtain pileup files from BAM files  &lt;br /&gt;
&lt;br /&gt;
The first step is to generate a BED file:&lt;br /&gt;
&lt;br /&gt;
 cat ../resource/HGDP/HGDP_938.site |awk &#039;{if (NR &amp;gt; 1) {print $1, $2-1, $2;}}&#039; &amp;gt; HGDP_938.bed&lt;br /&gt;
&lt;br /&gt;
This BED file contains the positions of all the reference markers.  &lt;br /&gt;
&lt;br /&gt;
Then we use &#039;&#039;samtools&#039;&#039; to extract the sequence bases overlapping these 632,958 reference markers.&lt;br /&gt;
Assuming your BAM file name is &#039;&#039;NA12878.chrom22.recal.bam&#039;&#039; (our example BAM file), you can use this:&lt;br /&gt;
&lt;br /&gt;
 samtools mpileup -q 30 -Q 20 -f ../../LASER-resource/reference/hs37d5.fa -l HGDP_938.bed exampleBAM/NA12878.chrom22.recal.bam &amp;gt; NA12878.chrom22.pileup&lt;br /&gt;
&lt;br /&gt;
to obtain a pileup file named &#039;&#039;NA12878.chrom22.pileup&#039;&#039;. It is required to keep the &#039;&#039;.pileup&#039; suffix.&lt;br /&gt;
&lt;br /&gt;
2. Obtain a seq file from pileup files. &lt;br /&gt;
&lt;br /&gt;
After obtaining pileup files from each BAM file, you can convert them into a single seq file before running LASER. &lt;br /&gt;
Use the same site file and all generated pileup files from step 1 to generate a seq file:&lt;br /&gt;
&lt;br /&gt;
 python pileup2seq.py  -m ../resource/HGDP/HGDP_938.site -o test NA12878.chrom22.pileup&lt;br /&gt;
&lt;br /&gt;
You should obtain test.seq file after this step.&lt;br /&gt;
&lt;br /&gt;
== Estimate ancestries of sequence samples  ==&lt;br /&gt;
&lt;br /&gt;
The easiest way to perform LASER using its exemplar data is: &lt;br /&gt;
&lt;br /&gt;
 ./laser -s pileup2seq/test.seq  -g resource/HGDP/HGDP_938.geno -c resource/HGDP/HGDP_938.RefPC.coord -o test -k 2&lt;br /&gt;
&lt;br /&gt;
Upon successful calculation,  you will find a result file &amp;quot;test.SeqPC.coord&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Interpret LASER outputs ==&lt;br /&gt;
&lt;br /&gt;
Upon successfully launching LASER command line as above, the output messages should be similar to below: &lt;br /&gt;
&lt;br /&gt;
    ===================================================================&lt;br /&gt;
    ====       LASER: Locating Ancestry from SEquencing Reads       ====&lt;br /&gt;
    ====            Version 1.0 | (c) Chaolong Wang 2013            ====&lt;br /&gt;
    ====================================================================&lt;br /&gt;
    Started at: Fri Nov 15 01:05:48 2013&lt;br /&gt;
&lt;br /&gt;
    938 individuals are detected in the GENO_FILE.&lt;br /&gt;
    632958 loci are detected in the GENO_FILE.&lt;br /&gt;
    1 individuals are detected in the SEQ_FILE.&lt;br /&gt;
    632958 loci are detected in the SEQ_FILE.&lt;br /&gt;
    938 individuals are detected in the COORD_FILE.&lt;br /&gt;
    100 PCs are detected in the COORD_FILE.&lt;br /&gt;
&lt;br /&gt;
    Parameter values used in execution:&lt;br /&gt;
    -------------------------------------------------&lt;br /&gt;
    GENO_FILE (-g)resource/HGDP/HGDP_938.geno&lt;br /&gt;
    SEQ_FILE (-s)pileup2seq/test.seq&lt;br /&gt;
    COORD_FILE (-c)resource/HGDP/HGDP_938.RefPC.coord&lt;br /&gt;
    OUT_PREFIX (-o)test&lt;br /&gt;
    DIM (-k)2&lt;br /&gt;
    MIN_LOCI (-l)100&lt;br /&gt;
    SEQ_ERR (-e)0.01&lt;br /&gt;
    FIRST_IND (-x)1&lt;br /&gt;
    LAST_IND (-y)1&lt;br /&gt;
    REPS (-r)1&lt;br /&gt;
    OUTPUT_REPS (-R)0&lt;br /&gt;
    CHECK_FORMAT (-fmt)10&lt;br /&gt;
    CHECK_COVERAGE (-cov)0&lt;br /&gt;
    PCA_MODE (-pca)0&lt;br /&gt;
    -------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
    Fri Nov 15 01:05:50 2013&lt;br /&gt;
    Checking data format ...&lt;br /&gt;
    GENO_FILE: OK.&lt;br /&gt;
    SEQ_FILE: OK.&lt;br /&gt;
    COORD_FILE: OK.&lt;br /&gt;
&lt;br /&gt;
    Fri Nov 15 01:06:01 2013&lt;br /&gt;
    Reading reference genotypes ...&lt;br /&gt;
&lt;br /&gt;
    Fri Nov 15 01:09:15 2013&lt;br /&gt;
    Reading reference PCA coordinates ...&lt;br /&gt;
&lt;br /&gt;
    Fri Nov 15 01:09:15 2013&lt;br /&gt;
    Analyzing sequence samples ...&lt;br /&gt;
    Results for the sequence samples are output to &#039;test.SeqPC.coord&#039;.&lt;br /&gt;
&lt;br /&gt;
    Finished at: Fri Nov 15 01:09:21 2013&lt;br /&gt;
    ====================================================================&lt;br /&gt;
&lt;br /&gt;
The ancestry of input samples are store in the file &#039;&#039;&#039;test.SeqPC.coord&#039;&#039;&#039;, which content is shown below:&lt;br /&gt;
&lt;br /&gt;
    popID	indivID	L1	Ci	t	PC1	PC2&lt;br /&gt;
    NA12878.chrom22	NA12878.chrom22	1601	0.00858193	0.977243	31.522	224.098&lt;br /&gt;
&lt;br /&gt;
The ancestry coordinates for NA12878 samples are given in PC1 (31.522) and PC2 (224.098).&lt;br /&gt;
&lt;br /&gt;
It is recommended to visualize this results with HGDP reference samples whose coordinates are given in file: resource/HGDP/HGDP_938.RefPC.coord&lt;br /&gt;
&lt;br /&gt;
In our manuscript, an example figure is shown: &lt;br /&gt;
&lt;br /&gt;
[[File:LASER paper Figure 2.png|thumb|center|alt=LASER example outputs as in Figure 2|400px|LASER Outputs]] &lt;br /&gt;
&lt;br /&gt;
In this figure, 238 individuals were randomly selected from the total 938 HGDP samples as the testing set (colored symbols), &lt;br /&gt;
and the remaining 700 HGDP individuals were used as the reference panel (gray symbols).&lt;br /&gt;
&lt;br /&gt;
= File format  =&lt;br /&gt;
&lt;br /&gt;
== Geno file  ==&lt;br /&gt;
&lt;br /&gt;
Geno file are from reference samples. LASER use genotype of these samples as a reference panel. You can obtain geno file from VCF files using [https://github.com/zhanxw/vcf2geno vcf2geno].&lt;br /&gt;
&lt;br /&gt;
In our resource folder, we provide an example geno file for the HGDP data set (resource/HGDP/HGDP_938.geno):&lt;br /&gt;
&lt;br /&gt;
 Brahui	HGDP00001	1	2	1	1	0	2	0	2	1	2	2	2	1	1	2	1	0&lt;br /&gt;
 Brahui	HGDP00003	0	0	2	0	0	2	0	2	0	2	2	2	2	0	2	2	0&lt;br /&gt;
 Brahui	HGDP00005	0	2	2	0	0	1	0	2	1	2	2	2	2	1	2	2	1&lt;br /&gt;
 Brahui	HGDP00007	0	2	2	0	0	2	0	2	0	2	2	2	1	1	2	2	1&lt;br /&gt;
 Brahui	HGDP00009	0	1	0	1	0	2	0	2	0	2	2	2	2	0	2	2	0&lt;br /&gt;
 Brahui	HGDP00011	1	1	2	1	1	2	1	1	1	2	2	2	1	1	2	2	0&lt;br /&gt;
 Brahui	HGDP00013	1	2	2	1	1	2	1	2	0	2	2	2	2	0	2	2	0&lt;br /&gt;
 Brahui	HGDP00015	1	1	2	0	0	2	0	2	0	2	2	2	2	0	2	2	0&lt;br /&gt;
 Brahui	HGDP00017	1	1	2	0	0	1	0	0	0	2	0	1	1	2	2	2	0&lt;br /&gt;
 Brahui	HGDP00019	0	2	2	0	0	1	0	1	0	2	1	2	2	1	2	2	0&lt;br /&gt;
&lt;br /&gt;
The first and second columns represent the population id and individual id. &lt;br /&gt;
From the third column, each number represents a genotype.&lt;br /&gt;
To be consistent with the sequence data, genotypes should be given on the &#039;&#039;&#039;forward strand&#039;&#039;&#039;. Genotypes are coded by 0, 1, or 2, representing copies of the&lt;br /&gt;
reference allele at a locus in one individual. &lt;br /&gt;
&lt;br /&gt;
In this geno file, we have 632,960 columns which contains 632,958 markers from column 3 to the last column.&lt;br /&gt;
&lt;br /&gt;
== Seq file  ==&lt;br /&gt;
Seq file is generated from pileup files. It contains sequencing information and organize it in a LASER readable format.&lt;br /&gt;
The first two columns represent population id and individual id.&lt;br /&gt;
Subsequent columns are total read depths and reference base counts.&lt;br /&gt;
For example, column 3 and 4 are 0, 0 in the following example. That means at first marker, the sequence read depth is 0 and thus none of the reads has reference base.&lt;br /&gt;
We enforce tab delimiters between markers and space delimiters between each read depths and reference base counts.&lt;br /&gt;
On line of seq file looks like below:&lt;br /&gt;
&lt;br /&gt;
 NA12878.chrom22	NA12878.chrom22	0 0	0 0	0 0	0 0	0 &lt;br /&gt;
&lt;br /&gt;
== Pileup file  ==&lt;br /&gt;
&lt;br /&gt;
Pileup file are generated using samtools. An example pileup file is shown below:&lt;br /&gt;
 &lt;br /&gt;
 22	17094749	A	1	c	D&lt;br /&gt;
 22	17202602	T	1	.	D&lt;br /&gt;
 22	17411899	A	1	.	C&lt;br /&gt;
 22	17450515	G	2	.,	9&amp;lt;&lt;br /&gt;
 22	17452966	T	1	c	5&lt;br /&gt;
 22	17470779	C	1	,	A&lt;br /&gt;
 22	17492203	G	1	,	B&lt;br /&gt;
 22	17504945	C	3	,..	BCA&lt;br /&gt;
 22	17529814	T	3	..,	CCC&lt;br /&gt;
&lt;br /&gt;
The columns are chromosome, position (1-based), reference base, depth, bases and base qualities.&lt;br /&gt;
&lt;br /&gt;
== BED file  ==&lt;br /&gt;
BED file represents genomic regions and it follows [http://genome.ucsc.edu/FAQ/FAQformat.html#format1 UCSC conventions]:&lt;br /&gt;
&lt;br /&gt;
 1 752565 752566&lt;br /&gt;
 1 768447 768448&lt;br /&gt;
 1 1005805 1005806&lt;br /&gt;
 1 1018703 1018704&lt;br /&gt;
 1 1021414 1021415&lt;br /&gt;
&lt;br /&gt;
The columns are: chromosome, start position (0-based) and end position (1-based).&lt;br /&gt;
&lt;br /&gt;
== Coord file  ==&lt;br /&gt;
Coord files represent the ancestries of both reference samples and sequence samples.&lt;br /&gt;
An example coord file looks like below:&lt;br /&gt;
&lt;br /&gt;
 popID  indivID  L1    Ci        t         PC1       PC2&lt;br /&gt;
 YRI    NA19238  1409  0.304122  0.98933   52.7634   -39.7924&lt;br /&gt;
 CEU    NA12892  1552  0.330037  0.989709  9.82674   25.2898&lt;br /&gt;
 CEU    NA12891  1609  0.362198  0.988082  0.439573  26.8872&lt;br /&gt;
 CEU    NA12878  1579  0.334825  0.988677  8.83775   28.1342&lt;br /&gt;
 YRI    NA19239  1558  0.34898   0.988302  53.9104   -39.1727&lt;br /&gt;
 YRI    NA19240  1735  0.404142  0.990264  59.8379   -45.2765&lt;br /&gt;
&lt;br /&gt;
The columns are: popID means &amp;quot;population ID&amp;quot;, indivID means &amp;quot;individual ID&amp;quot;, L1 means number of loci has been covered, Ci means &amp;quot;average coverage&amp;quot;, t means Procrustes similarity.&lt;br /&gt;
PC1, PC2 means coordinates of first and second principal components. You may notice L1, Ci, and t are omitted in the coord files of reference samples. The reason is that reference samples use genotypes and do not have coverage information.&lt;br /&gt;
&lt;br /&gt;
== Site file ==&lt;br /&gt;
Site file is equivalent to BED file and it is used here to represent marker positions. An example site file looks like below:&lt;br /&gt;
 CHR  POS      ID          REF  ALT&lt;br /&gt;
 1    752566   rs3094315   G    A&lt;br /&gt;
 1    768448   rs12562034  G    A&lt;br /&gt;
 1    1005806  rs3934834   C    T&lt;br /&gt;
 1    1018704  rs9442372   A    G&lt;br /&gt;
 1    1021415  rs3737728   A    G&lt;br /&gt;
&lt;br /&gt;
The site file has header line, and it contains chromosome, position(1-based), id (usually marker name), ref (reference allele) and alt (alternative allele).&lt;br /&gt;
&lt;br /&gt;
= Advanced options =&lt;br /&gt;
&lt;br /&gt;
LASER has advanced options including (1) parallel computing; (2) increase ancestry inference accuracy using repeated runs; (3) generate PCA coordiates using genotypes.&lt;br /&gt;
See [http://www.sph.umich.edu/csg/chaolong/LASER/LASER_Manual.pdf LASER Manual] for detailed information.&lt;br /&gt;
&lt;br /&gt;
= Contact  =&lt;br /&gt;
Comments on this wiki page or questions related to preparing input files for LASER can be sent to [mailto:zhanxw@umich.edu Xiaowei Zhan].&lt;br /&gt;
Comments on the LASER software or the user&#039;s manual can be sent to [mailto:chaolong@umich.edu Chaolong Wang].&lt;br /&gt;
This project was directed by Gonçalo Abecasis and Sebastian Zöllner at the University of Michigan.&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=LiftOver&amp;diff=9479</id>
		<title>LiftOver</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=LiftOver&amp;diff=9479"/>
		<updated>2014-02-14T15:12:53Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: /* Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;LiftOver is a necesary step to bring all genetical analysis to the same reference build. &lt;br /&gt;
LiftOver can have three use cases: &lt;br /&gt;
&lt;br /&gt;
(1) [[#Lift genome positions | Convert genome position from one genome assembly to another genome assembly]]&lt;br /&gt;
&lt;br /&gt;
In most scenarios, we have known genome positions in NCBI build 36 (UCSC hg 18) and hope to lift them over to NCBI build 37 (UCSC hg19).&lt;br /&gt;
&lt;br /&gt;
(2) [[#Lift dbSNP rs numbers | Convert dbSNP rs number from one build to another]]&lt;br /&gt;
&lt;br /&gt;
(3) [[#Lift Merlin/PLINK format | Convert both genome position and dbSNP rs number over different versions]]&lt;br /&gt;
&lt;br /&gt;
It is likely to see such type of data in Merlin/PLINK format.&lt;br /&gt;
&lt;br /&gt;
We will explain the work flow for the above three cases. In the rest of this article, &lt;br /&gt;
our example is to lift over from lower/older build to newer/higher build, as it is the common practice.&lt;br /&gt;
&lt;br /&gt;
Using different tools, liftOver can be easy.&lt;br /&gt;
For example, UCSC liftOver tool is able to lift [http://genome.ucsc.edu/FAQ/FAQformat.html#format1 BED format] file between builds.&lt;br /&gt;
With our customized scripts, we can also lift rsNumber and Merlin/PLINK data files. &lt;br /&gt;
&lt;br /&gt;
== Lift genome positions ==&lt;br /&gt;
Genome positions are best represented in [http://genome.ucsc.edu/FAQ/FAQformat.html#format1 BED format]. UCSC provides tools to convert BED file from one genome assembly to another. &lt;br /&gt;
&lt;br /&gt;
=== Binary liftOver tool ===&lt;br /&gt;
We need [http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/liftOver liftOver binary] from UCSC and [http://hgdownload.cse.ucsc.edu/goldenPath/hg18/liftOver/hg18ToHg19.over.chain.gz hg18 to hg 19 chain file].&lt;br /&gt;
&lt;br /&gt;
Provide BED format file (e.g. input.bed)&lt;br /&gt;
&lt;br /&gt;
NOTE: Use the &#039;chr&#039; before each chromosome name&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chr1    743267  743268  rs3115860&lt;br /&gt;
chr1    766408  766409  rs12124819&lt;br /&gt;
chr1    773885  773886  rs17160939&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run liftOver:&lt;br /&gt;
&lt;br /&gt;
    liftOver input.bed hg18ToHg19.over.chain.gz output.bed unlifted.bed&lt;br /&gt;
&lt;br /&gt;
unlifted.bed file will contain all genome positions that cannot be lifted. The reason for that varies. See [[#Various reasons that lift over could fail | Various reasons that lift over could fail]]&lt;br /&gt;
&lt;br /&gt;
=== Web interface ===&lt;br /&gt;
Alternatively, you can lift over BED file in web interface&lt;br /&gt;
at: [http://genome.ucsc.edu/cgi-bin/hgLiftOver Link]&lt;br /&gt;
Web interface can tell you why some genome position cannot&lt;br /&gt;
be lifted if you click &amp;quot;Explain failure messages&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Lift dbSNP rs numbers ==&lt;br /&gt;
rs number is release by dbSNP. UCSC also make their own copy from each dbSNP version. Be aware that the same version of dbSNP from these two centers are not the same.&lt;br /&gt;
When we convert rs number from lower version to higher version, there are practically two ways.&lt;br /&gt;
&lt;br /&gt;
=== Use RsMergeArch and SNPHistory ===&lt;br /&gt;
It is necessary to quickly summarize how dbSNP merge/re-activate rs number:&lt;br /&gt;
&lt;br /&gt;
# when different rs number are found to refer to the same SNP, then higher rs number will be merged to lower rs number, and the merging will be recorded in RsMergeArch.bcp.gz.&lt;br /&gt;
# when rs number have to be retracted, rs number will be recorded in SNPHistory.bcp.gz&lt;br /&gt;
# a retracted SNP can be [http://www.ncbi.nlm.nih.gov/books/NBK44496/#Schema.rs4823903_which_has_merged_into re-activated] in SNPHistory.bcp.gz by adding comment&lt;br /&gt;
&lt;br /&gt;
With the above in mind, we are able to combine these two tables to obtain the relationship between older rs number and new rs number.&lt;br /&gt;
We have developed a script (for internal use), named [http://genome.sph.umich.edu/wiki/LiftRsNumber.py liftRsNumber.py] for lift rs numbers between builds.&lt;br /&gt;
This scripts require RsMergeArch.bcp.gz  and SNPHistory.bcp.gz, those can be found in [[#Resources | Resources]].&lt;br /&gt;
&lt;br /&gt;
Example input:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
3000&lt;br /&gt;
3001&lt;br /&gt;
3002&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
python liftRsNumber.py input.rs &amp;gt; output.rs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
unchanged       3000&lt;br /&gt;
lifted  2032&lt;br /&gt;
unchanged       3002&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lift Merlin/PLINK format ==&lt;br /&gt;
In Merlin/PLINK .map files, each line contains both genome position and dbSNP rs number. Our goal here is to use both information to liftOver as many position as possible.&lt;br /&gt;
There are 3 methods to liftOver and we recommend the first 2 method. The first method is common and applicable in most cases, and in our observations it lifts the most genome positions, however, it does not reflect the rs  number change between different dbSNP builds. The second method is more robust in the sense that each lifted rs number has valid genome position, as it lift over old rs number as the first step by using dbSNP data. The third method is not straigtforward, and we just briefly mention it.&lt;br /&gt;
&lt;br /&gt;
=== Lift Merlin format ===&lt;br /&gt;
&lt;br /&gt;
PLINK format and [http://www.sph.umich.edu/csg/abecasis/Merlin/tour/input_files.html Merlin format are nearly identical]. &lt;br /&gt;
The difference is that Merlin .map file have 4 columns. We will show&lt;br /&gt;
the lift over procedure for PLINK format, then you can use:&lt;br /&gt;
&lt;br /&gt;
  awk &#039;{print $1,$2,&amp;quot;\t&amp;quot;,$3;}&#039; PLINK.map &amp;gt; Merlin.map&lt;br /&gt;
&lt;br /&gt;
to obtain Merlin .map file. &lt;br /&gt;
&lt;br /&gt;
=== Lift PLINK format ===&lt;br /&gt;
[http://pngu.mgh.harvard.edu/~purcell/plink/data.shtml PLINK] format usually referrs to .ped and .map files. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Method 1 ====&lt;br /&gt;
We mainly use UCSC LiftOver binary tools to help lift over. &lt;br /&gt;
We have a script [[#Resources | liftMap.py]], however, it is recommended to understand the job step by step:&lt;br /&gt;
&lt;br /&gt;
(1) Convert .map to .bed file&lt;br /&gt;
&lt;br /&gt;
By rearrange columns of .map file, we obtain a standard BED format file.&lt;br /&gt;
&lt;br /&gt;
(2) LiftOver .bed file&lt;br /&gt;
&lt;br /&gt;
Use method mentioned [[#Lift genome positions | above]] to convert .bed file from one build to another.&lt;br /&gt;
&lt;br /&gt;
(3) Convert lifted .bed file back to .map file&lt;br /&gt;
&lt;br /&gt;
Rearrange column of .map file to obtain .bed file in the new build.&lt;br /&gt;
&lt;br /&gt;
(4) Modify .ped file&lt;br /&gt;
&lt;br /&gt;
.ped file have many column files. By convention, the first six columns are family_id, person_id, father_id, mother_id, sex, and phenotype.&lt;br /&gt;
From the 7th column, there are two letters/digits representing a genotype at the certain marker. In step (2), as some genome positions cannot&lt;br /&gt;
be lifted to the new version, we need to drop their corresponding columns from .ped file to keep consistency. You can use PLINK --exclude those snps,&lt;br /&gt;
see [http://pngu.mgh.harvard.edu/~purcell/plink/dataman.shtml#exclude Remove a subset of SNPs].&lt;br /&gt;
&lt;br /&gt;
(5) (optionally) change the rs number in the .map file&lt;br /&gt;
&lt;br /&gt;
Similar to the human reference build, dbSNP also have different versions. You may consider change rs number from the old dbSNP version to new dbSNP version &lt;br /&gt;
depending on your needs. Such steps are described in [[#Lift dbSNP rs numbers | Lift dbSNP rs numbers]].&lt;br /&gt;
&lt;br /&gt;
==== Method 2 ====&lt;br /&gt;
The idea is to use [[#Resources |LiftRsNumber.py]] to convert old rs number to new rs number, use the data file b132_SNPChrPosOnRef_37_1.bcp.gz (a data file containing each dbSNP and its positions in NCBI build 37), and adjust .map and .ped files accordingly. &lt;br /&gt;
&lt;br /&gt;
(1) Extract and lift rs numbers&lt;br /&gt;
&lt;br /&gt;
Use the tools [[#Use RsMergeArch and SNPHistory | LiftRsNumber.py]] to lift the rs number in the map file from old build to new build.&lt;br /&gt;
&lt;br /&gt;
(2) Lookup SNP positions from rs number&lt;br /&gt;
&lt;br /&gt;
dbSNP provides a file [[#Resources | b132_SNPChrPosOnRef_37_1.bcp.gz]] which contains rsNumber, chromosome and its position.&lt;br /&gt;
Use this file along with the new rsNumber obtained in the first step.&lt;br /&gt;
In practice, some rs numbers do not exist in build 132, or not suitable to be considered ( e.g. they do not reside on human reference, or they are mapped to multiple locations, these scenarios are noted by the chromosome column with values like &amp;quot;AltOnly&amp;quot;, &amp;quot;Multi&amp;quot;, &amp;quot;NotOn&amp;quot;, &amp;quot;PAR&amp;quot;, &amp;quot;Un&amp;quot;), we can drop them in the liftover procedure.&lt;br /&gt;
We will obtain the rs number and its position in the new build after this step.&lt;br /&gt;
&lt;br /&gt;
(3) Lift .map file and .ped file&lt;br /&gt;
&lt;br /&gt;
To lift over .map files, we can scan its content line by line, and skip those not lifted rs number.&lt;br /&gt;
Accordingly, it is necessary to drop the un-lifted SNP genotypes from .ped file.&lt;br /&gt;
&lt;br /&gt;
==== Method 3 ====&lt;br /&gt;
NCBI dbSNP team has provided a [[ #Resources | provisional map ]] for converting the genome position of a larget set dbSNP from NCBI build 36 to NCBI build 37. &lt;br /&gt;
In the second step, we have obtained unlifted genome positions, so we can try to use the table to convert those unlfted dbSNPs.&lt;br /&gt;
After this step, there are still some SNPs that cannot be lifted, as they are mostly located on non-reference chromosome.&lt;br /&gt;
Note: due to the limitation of the provisional map, some SNP can have multiple locations.&lt;br /&gt;
For example, we cannot convert rs10000199 to chromosome 4, 7, 12.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
10000199	A/G	4	166142415	166142415	2	3	G	+	4	165922965	165922965	2	3	G	+&lt;br /&gt;
10000199	A/G	7	4589694	4589694	2	3	C	-	7	4623168	4623168	2	3	C	-&lt;br /&gt;
10000199	A/G	12	57008620	57008620	2	3	C	-	12	58722353	58722353	2	3	C	-&lt;br /&gt;
10000199	A/G	5	156018406	156018406	2	3	C	-	5	156085828	156085828	2	3	C	-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can dissect this method into steps:&lt;br /&gt;
&lt;br /&gt;
(1) Remove invalid record in dbSNP provisional map.&lt;br /&gt;
&lt;br /&gt;
Provisional map have duplicated rs number or the chromsome in the new build can be &amp;quot;Unable to map&amp;quot;(UN), we need to clean this table.&lt;br /&gt;
&lt;br /&gt;
(2) Use provisional map to update .map file&lt;br /&gt;
&lt;br /&gt;
By joining .map file and this provisional map, we can obtain the new genome position in the new build.&lt;br /&gt;
Note: provisional map uses 1-based chromosomal index. Things will get tricker if we want to lift non-single site SNP e.g. AA/GG&lt;br /&gt;
Since provisional map provides a range in this case, it is necessary to know the genome position of that single base provided in the .map file, &lt;br /&gt;
and then we can look up the table, so it is not straigtforward.&lt;br /&gt;
&lt;br /&gt;
(3) Adjust .map and .ped file&lt;br /&gt;
&lt;br /&gt;
For those lifted dbSNP, we need to keep them in the .map files, otherwise, we need to delete them.&lt;br /&gt;
Accordingly, we need to deleted SNP genotypes for those cannot be lifted.&lt;br /&gt;
&lt;br /&gt;
== Various reasons that lift over can fail ==&lt;br /&gt;
&lt;br /&gt;
=== Genome position cannot be lifted ===&lt;br /&gt;
When a SNP resides in a contig that only exists in older reference build, liftOver cannot give it new genome.&lt;br /&gt;
&lt;br /&gt;
You can try the following SNP (in BED format) in UCSC online liftOver site:&lt;br /&gt;
 20 56737667 56737668 rs1073519&lt;br /&gt;
The error message will be: &amp;quot;Sequence intersects no chains&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== SNP in higher build are located in non-referernce assembly ===&lt;br /&gt;
Some SNP are not in autosomes or sex chromosomes in NCBI build 37. dbSNP does not include them. &lt;br /&gt;
You cannot use dbSNP database to lookup its genome position by rs number.&lt;br /&gt;
&lt;br /&gt;
Take rs1006094 as an example:&lt;br /&gt;
In NCBI dbSNP webpage, this SNP is reported as &amp;quot;Mapped unambiguously on non-reference assembly only&amp;quot;&lt;br /&gt;
Thus it is probably not very useful to lift this SNP.&lt;br /&gt;
&lt;br /&gt;
=== rs number changed in newer dbSNP build ===&lt;br /&gt;
It is possible that new dbSNP build does not have certain rs numbers.&lt;br /&gt;
When dbSNp release new build, higher rs number may be merged to lower rs number because of those rs numbers are actually the same SNP.&lt;br /&gt;
This merge process can be complicate. For short description, see [[ #Use RsMergeArch and SNPHistory | Use RsMergeArch and SNPHistory ]]. &lt;br /&gt;
For detail, see:&lt;br /&gt;
&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/books/NBK44395/#FTP.do_you_have_a_table_of_merged_snps_s Finding Specific Data in dbSNP’s FTP Files] &lt;br /&gt;
&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/books/NBK44468/#Build.can_two_id_numbers_correspond_to_t Merging RefSNP Numbers and RefSNP Clusters]&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
rs3001 has merged to rs2032.&lt;br /&gt;
&lt;br /&gt;
=== Different dbSNP build ===&lt;br /&gt;
NCBI released dbSNP132 (VCF format), and UCSC also have their version of dbSNP132 (plain txt).&lt;br /&gt;
The two database files differ not only in file format, but in content.&lt;br /&gt;
&lt;br /&gt;
For NCBI release, its [[#Resources| release]] will not contain:&lt;br /&gt;
* SNPs listed as microsatellites or named variations&lt;br /&gt;
* SNPs with multibyte alleles and unknown (N) adjacent base pairs&lt;br /&gt;
* SNPs that are not mapped on the reference genome (GRCh37)&lt;br /&gt;
&lt;br /&gt;
For UCSC release, see [[ #Resources | UCSC dbSNP track note ]]&lt;br /&gt;
&lt;br /&gt;
Use rs1054140 as an example:&lt;br /&gt;
&lt;br /&gt;
NCBI dbSNP website gives 1 location:&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?rs=1054140 Link]&lt;br /&gt;
&lt;br /&gt;
NCBI dbSNP VCF file has NO record.&lt;br /&gt;
&lt;br /&gt;
UCSC genome browser website gives 2 locations:&lt;br /&gt;
[http://genome.ucsc.edu/cgi-bin/hgTracks?clade=mammal&amp;amp;org=Human&amp;amp;db=hg19&amp;amp;position=rs1054140&amp;amp;hgt.suggest=&amp;amp;hgt.suggestTrack=knownGene&amp;amp;pix=800&amp;amp;Submit=submit&amp;amp;hgsid=205770459&amp;amp;hgt.newJQuery=1 Link]&lt;br /&gt;
&lt;br /&gt;
UCSC dbSNP file give 2 locations:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
721     chr10   17842693        17842694        rs1054140       0       +       T       T       A/T     genomic single  by-cluster,by-submitter ...&lt;br /&gt;
723     chr10   18089681        18089682        rs1054140       0       +       T       T       A/T     genomic single  by-cluster,by-submitter ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
* liftRsNumber.py [[liftRsNumber.py]] and its interal location: /net/dumbo/net/dumbo/home/zhanxw/amd/analyze/verifyBamID/liftRsNumber.py&lt;br /&gt;
* liftMap.py [[liftMap.py]]&lt;br /&gt;
* NCBI provisional map [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/misc/exchange/Remap_36_3_37_1.txt.gz file] and [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/misc/exchange/Remap_36_3_37_1.info info]&lt;br /&gt;
* NCBI RgMergeArch [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/database/organism_data/RsMergeArch.bcp.gz file] and [http://www.ncbi.nlm.nih.gov/SNP/snp_db_table_description.cgi?t=RsMergeArch schema]&lt;br /&gt;
* NCBI SNPHistory [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/database/organism_data/SNPHistory.bcp.gz file] and [http://www.ncbi.nlm.nih.gov/SNP/snp_db_table_description.cgi?t=SNPHistory schema]&lt;br /&gt;
* NCBI SNPChrPosOnRef build 132 [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/database/b132_archive/organism_data/b132_SNPChrPosOnRef_37_1.bcp.gz file] and [http://www.ncbi.nlm.nih.gov/SNP/snp_db_table_description.cgi?t=SNPChrPosOnRef schema]&lt;br /&gt;
* How UCSC dbSNP differs from NCBI dbSNP [http://genomewiki.ucsc.edu/index.php/DbSNP_Track_Notes UCSC dbSNP track note]&lt;br /&gt;
* The dbSNP mapping process [http://www.ncbi.nlm.nih.gov/books/NBK44455/ link]&lt;br /&gt;
* NCBI dbSNP release 132 [ftp://ftp.ncbi.nih.gov:/snp/organisms/human_9606/VCF/v4.0/ByChromosomeNoGeno/00-All.vcf.gz 00-All.vcf.gz]&lt;br /&gt;
* UCSC dbSNP release 132 [http://hgdownload.cse.ucsc.edu/goldenPath/hg19/database/snp132.txt.gz snp132.txt.gz]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Third party contribution ==&lt;br /&gt;
&lt;br /&gt;
* liftOver for BEDPE format by [mailto://doug.phanstiel@gmail.com Doug] - [http://www.sharedproteomics.com/forum/showthread.php?2930-liftOverBedpe.py-Convert-genome-coordinates-for-bedpe-files&amp;amp;p=4854#post4854 liftOverBedpe.py].&lt;br /&gt;
&lt;br /&gt;
== Acknowledge ==&lt;br /&gt;
&lt;br /&gt;
* Hyun: provides sample liftOver tool: [/net/wonderland/home/hmkang/prj/Sardinia/MetaboChip/scripts/j01-liftover-metabochip-positions.pl]&lt;br /&gt;
* Alex: careful examines of 0-based index in UCSC data file&lt;br /&gt;
* Adrian: explaination of SNPs omitted in NCBI dbSNP file&lt;br /&gt;
* Goncalo: all other supports&lt;br /&gt;
&lt;br /&gt;
== Questions and Comments ==&lt;br /&gt;
&lt;br /&gt;
Please contact [mailto:zhanxw@umich.edu Xiaowei Zhan].&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RvTests&amp;diff=9455</id>
		<title>RvTests</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RvTests&amp;diff=9455"/>
		<updated>2014-01-29T22:21:00Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Software]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Overview =&lt;br /&gt;
(See [[rvtests]] for more rare variants association tests or preparing meta-analysis inputs.)&lt;br /&gt;
&lt;br /&gt;
A few rare variants tests (Li-Leal&#039;s CMC and Madsen-Browning&#039;s weighted method) are implemented in the logisitc regression framework using C++. Please contact Youna Hu (youna@umich.edu) for comments, suggestions or questions.&lt;br /&gt;
&lt;br /&gt;
The source code is located at [[File:RV3Tests.v1.tar]]&lt;br /&gt;
&lt;br /&gt;
You can just download the tar file, extract it and go to the RV3Test.v1 folder and type make all to compile the code, the binary file will then be in the exectuables folder. &lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&lt;br /&gt;
See a detailed [[example]] here.&lt;br /&gt;
&lt;br /&gt;
= Syntax =&lt;br /&gt;
&lt;br /&gt;
This software uses command line interface as follows&lt;br /&gt;
&lt;br /&gt;
RARE VARIANT ANALYSIS OPTIONS:&lt;br /&gt;
                 GENOTYPE : --genofile [pos.012],&lt;br /&gt;
                            --geneList [outGeneSorted.txt], --cutoff [0.010],&lt;br /&gt;
                            --collapseChoice [or]&lt;br /&gt;
                PHENOTYPE : --phenofile [LDL.y.ID]&lt;br /&gt;
               COVARIATES : --covConsider, --covfile [covFile.ID.2.txt]&lt;br /&gt;
              PERMUTATION : --nPermute [10], --PermutationSeed [1]&lt;br /&gt;
   GENE LEVEL TEST RESULT : --geneGlobalTestOut [globalPermuteSummary.txt],&lt;br /&gt;
                            --geneTestpvalueFile [geneTestPvalues.txt]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;GENOTYPE&lt;br /&gt;
&lt;br /&gt;
;--genofile: A genotype 012 matrix (.012 is the file) This file can be prepared by using the prepare012s &lt;br /&gt;
  source code [[File:vcfReader.v1.tar]]&lt;br /&gt;
  Again, extract the tar file and then go into the directory to type make all to compile the code,&lt;br /&gt;
            you then will find binary file in the executables folder. &lt;br /&gt;
&lt;br /&gt;
 Note: You should use Yanming&#039;s vcf annotation [http://genome.sph.umich.edu/wiki/VcfCodingSnps] on your vcf file first &lt;br /&gt;
 to output a annotated vcf file. You SHOULD keep the log file from the annotation, which will be used to create the gene list.&lt;br /&gt;
&lt;br /&gt;
Data File PREPARATION&lt;br /&gt;
          Input files : --vcf [LDL.test.vcf], --log [], --IDfile []&lt;br /&gt;
   Subsetting choices : --All&lt;br /&gt;
         Output files : --outputPrefix [subsetGeno],&lt;br /&gt;
                        --outputGeneList [LDL.geneList.txt]&lt;br /&gt;
   --vcf: Input vcf file &lt;br /&gt;
   --log: This is the log file from Yanming&#039;s annotation output, we use this log to obtain the gene list&lt;br /&gt;
   --IDfile specifies a file with one column of subject IDs to subject from the vcf file. &lt;br /&gt;
    If it is not specified, then all subjects are included for the format conversion.&lt;br /&gt;
   --All:  specifies 1 to include all variants and 0 to include only nonsyn and stop annotated variants.&lt;br /&gt;
   -- outputPrefix: Specify the prefix for the four output files which will be used in rvTests&lt;br /&gt;
   *.012: A genotype matrix with subjects as rows and variant sites as columns.&lt;br /&gt;
   *.012.pos: Chromosome and position numbers. &lt;br /&gt;
   *.012.indv: Subject IDs.&lt;br /&gt;
   *.012.frq: The frequency of the included variants.&lt;br /&gt;
  --outputGeneList:  Specify a file to store the gene list which will be used in rvTest.&lt;br /&gt;
  The list file looks like this &lt;br /&gt;
  1	OR4F5	69090	70008&lt;br /&gt;
  1	SAMD11	860529	871276&lt;br /&gt;
  1	NOC2L	879583	893918&lt;br /&gt;
  1	KLHL17	895966	901095&lt;br /&gt;
  1	PLEKHN1	901876	910482&lt;br /&gt;
  1	C1orf170	910578	912021&lt;br /&gt;
&lt;br /&gt;
;--geneList: This file is an output from prepare012s using the option --outputGeneList  with columns as chromosome number, gene Name, start position, end position. There should be no header for this file. &lt;br /&gt;
&lt;br /&gt;
THE CHROMOSOME NUMBERS SHOULD BE NUMERICS!!!! 1 - chromosome 1, DO NOT USE chr1.&lt;br /&gt;
&lt;br /&gt;
;--cutoff: This is the minor allele frequency, you can specify it as 0.01, 0.05 or etc.&lt;br /&gt;
;--collapseChoice: Specify one of {or,sum,wt}. or: Li-Leal&#039;s CMC test, sum: Use the number of rare variants for each subject as the score, wt: Madeson-Browning&#039;s weighted rare variant score.&lt;br /&gt;
&lt;br /&gt;
;PHENOTYPE&lt;br /&gt;
;--phenofile: A file where the first column is subject ID and the second column is phenotype (0 or 1).&lt;br /&gt;
&lt;br /&gt;
;COVARIATES&lt;br /&gt;
;--covConsider: Default = 0, no covariate is considered. 1. covariate is considered.&lt;br /&gt;
;--covfile: Covariate file with the first column as subject ID and the other columns are covariates needed to be considered in the model.&lt;br /&gt;
&lt;br /&gt;
;PERMUTATION&lt;br /&gt;
;--nPermute: Number of permutation for the evaluation of p values.&lt;br /&gt;
;-- PermutationSeed: Default = 1. Can be changed to other numbers too.&lt;br /&gt;
&lt;br /&gt;
;GENE LEVEL TEST RESULT:&lt;br /&gt;
;--geneGlobalTestOut: This file stores the 5% and 95% quantiles of the p values for all the genes at each permutation&lt;br /&gt;
;--geneTestPvalueFile: This file gives you the gene name, number of rare variants, count of variants in case/control and p values from the RV test specified by collapseChoice.&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Other_uses&amp;diff=9454</id>
		<title>Template:Other uses</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Other_uses&amp;diff=9454"/>
		<updated>2014-01-29T22:11:42Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;&amp;lt;!--        BANNER ACROSS TOP OF PAGE        --&amp;gt; {| id=&amp;quot;mp-topbanner&amp;quot; style=&amp;quot;width:100%; background:#f9f9f9; margin:1.2em 0 6px 0; border:1px solid #ddd;&amp;quot; | style=&amp;quot;width:61%; ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--        BANNER ACROSS TOP OF PAGE        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-topbanner&amp;quot; style=&amp;quot;width:100%; background:#f9f9f9; margin:1.2em 0 6px 0; border:1px solid #ddd;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:61%; color:#000;&amp;quot; |&lt;br /&gt;
&amp;lt;!--        &amp;quot;WELCOME TO WIKIPEDIA&amp;quot; AND ARTICLE COUNT        --&amp;gt;&lt;br /&gt;
{| style=&amp;quot;width:280px; border:none; background:none;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:280px; text-align:center; white-space:nowrap; color:#000;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:162%; border:none; margin:0; padding:.1em; color:#000;&amp;quot;&amp;gt;Welcome to [[Wikipedia]],&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;top:+0.2em; font-size:95%;&amp;quot;&amp;gt;the [[free content|free]] [[encyclopedia]] that [[Wikipedia:Introduction|anyone can edit]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;articlecount&amp;quot; style=&amp;quot;font-size:85%;&amp;quot;&amp;gt;[[Special:Statistics|{{NUMBEROFARTICLES}}]] articles in [[English language|English]]&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        PORTAL LIST ON RIGHT-HAND SIDE        --&amp;gt;&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:Arts|Arts]]&lt;br /&gt;
* [[Portal:Biography|Biography]]&lt;br /&gt;
* [[Portal:Geography|Geography]]&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:History|History]]&lt;br /&gt;
* [[Portal:Mathematics|Mathematics]]&lt;br /&gt;
* [[Portal:Science|Science]]&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:Society|Society]]&lt;br /&gt;
* [[Portal:Technology|Technology]]&lt;br /&gt;
* &#039;&#039;&#039;[[Portal:Contents/Portals|All portals]]&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        MAIN PAGE BANNER        --&amp;gt;&lt;br /&gt;
{{#if:{{Main Page banner}}|&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-banner&amp;quot; style=&amp;quot;width: 100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;text-align:center; padding:0.2em; background-color:#fffaf5; border:1px solid #f2e0ce; color:#000; font-size:100%;&amp;quot;&amp;gt;{{Main Page banner}}&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED CONTENT        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-upper&amp;quot; style=&amp;quot;width: 100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED ARTICLE; DID YOU KNOW        --&amp;gt;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:55%; border:1px solid #cef2e0; background:#f5fffa; vertical-align:top; color:#000;&amp;quot; |&lt;br /&gt;
{| id=&amp;quot;mp-left&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#f5fffa;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-tfa-h2&amp;quot; style=&amp;quot;margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;{{#ifexpr:{{formatnum:{{PAGESIZE:Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|R}}&amp;gt;150|From today&#039;s featured article|Featured article &amp;lt;span style=&amp;quot;font-size:85%; font-weight:normal;&amp;quot;&amp;gt;(Check back later for today&#039;s.)&amp;lt;/span&amp;gt;}}&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000;&amp;quot; | &amp;lt;div id=&amp;quot;mp-tfa&amp;quot; style=&amp;quot;padding:2px 5px&amp;quot;&amp;gt;{{#ifexpr:{{formatnum:{{PAGESIZE:Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|R}}&amp;gt;150|{{Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|{{Wikipedia:Today&#039;s featured article/{{#time:F j, Y|-1 day}}}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-dyk-h2&amp;quot; style=&amp;quot;margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;Did you know...&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-dyk&amp;quot;&amp;gt;{{Did you know}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| style=&amp;quot;border:1px solid transparent;&amp;quot; |&lt;br /&gt;
&amp;lt;!--        IN THE NEWS; ON THIS DAY        --&amp;gt;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:45%; border:1px solid #cedff2; background:#f5faff; vertical-align:top;&amp;quot;|&lt;br /&gt;
{| id=&amp;quot;mp-right&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#f5faff;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-itn-h2&amp;quot; style=&amp;quot;margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;In the news&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-itn&amp;quot;&amp;gt;{{In the news}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-otd-h2&amp;quot; style=&amp;quot;margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;On this day...&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-otd&amp;quot;&amp;gt;{{Wikipedia:Selected anniversaries/{{#time:F j}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED LIST        --&amp;gt;&amp;lt;!-- CONDITIONAL: SHOW/HIDE FROM HERE --&amp;gt;{{#switch:{{CURRENTDAYNAME}}|Monday=&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-middle&amp;quot; style=&amp;quot;width:100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:100%; border:1px solid #f2cedd; background:#fff5fa; vertical-align:top; color:#000;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-center&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#fff5fa; color:#000;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;padding:2px;&amp;quot;&amp;gt;&amp;lt;h2 id=&amp;quot;mp-tfl-h2&amp;quot; style=&amp;quot;margin:3px; background:#f2cedd; font-size:120%; font-weight:bold; border:1px solid #bfa3af; text-align:left; color:#000; padding:0.2em 0.4em&amp;quot;&amp;gt;From today&#039;s featured list&amp;lt;/h2&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;color:#000;&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;mp-tfl&amp;quot; style=&amp;quot;padding:2px 5px;&amp;quot;&amp;gt;{{#ifexist:Wikipedia:Today&#039;s featured list/{{#time:F j, Y}}|{{Wikipedia:Today&#039;s featured list/{{#time:F j, Y}}}}|{{TFLempty}}}}&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;!--        END TODAY&#039;S FEATURED LIST        --&amp;gt;&amp;lt;!-- CONDITIONAL: SHOW/HIDE TO HERE --&amp;gt;|}}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED PICTURE        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-lower&amp;quot; style=&amp;quot;margin:4px 0 0 0; width:100%; background:none; border-spacing: 0px;&amp;quot;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:100%; border:1px solid #ddcef2; background:#faf5ff; vertical-align:top; color:#000;&amp;quot; |&lt;br /&gt;
{| id=&amp;quot;mp-bottom&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#faf5ff; color:#000;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-tfp-h2&amp;quot; style=&amp;quot;margin:3px; background:#ddcef2; font-size:120%; font-weight:bold; border:1px solid #afa3bf; text-align:left; color:#000; padding:0.2em 0.4em&amp;quot;&amp;gt;{{#ifexist:Template:POTD protected/{{#time:Y-m-d}}|Today&#039;s featured picture | Featured picture&amp;amp;ensp;&amp;lt;span style=&amp;quot;font-size:85%; font-weight:normal;&amp;quot;&amp;gt;(Check back later for today&#039;s.)&amp;lt;/span&amp;gt;}}&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-tfp&amp;quot;&amp;gt;{{#ifexist:Template:POTD protected/{{#time:Y-m-d}}|{{POTD protected/{{#time:Y-m-d}}}}|{{POTD protected/{{#time:Y-m-d|-1 day}}}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        SECTIONS AT BOTTOM OF PAGE        --&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;mp-other&amp;quot; style=&amp;quot;padding-top:4px; padding-bottom:2px;&amp;quot;&amp;gt;&lt;br /&gt;
== Other areas of Wikipedia ==&lt;br /&gt;
{{Other areas of Wikipedia}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div id=&amp;quot;mp-sister&amp;quot;&amp;gt;&lt;br /&gt;
== Wikipedia&#039;s sister projects ==&lt;br /&gt;
{{Wikipedia&#039;s sister projects}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div id=&amp;quot;mp-lang&amp;quot;&amp;gt;&lt;br /&gt;
== Wikipedia languages ==&lt;br /&gt;
{{Wikipedia languages}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!--        INTERWIKI STRAPLINE        --&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Main Page interwikis}}{{noexternallanglinks}}&amp;lt;/noinclude&amp;gt;__NOTOC____NOEDITSECTION__&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Main&amp;diff=9453</id>
		<title>Template:Main</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Main&amp;diff=9453"/>
		<updated>2014-01-29T22:11:17Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;&amp;lt;!--        BANNER ACROSS TOP OF PAGE        --&amp;gt; {| id=&amp;quot;mp-topbanner&amp;quot; style=&amp;quot;width:100%; background:#f9f9f9; margin:1.2em 0 6px 0; border:1px solid #ddd;&amp;quot; | style=&amp;quot;width:61%; ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--        BANNER ACROSS TOP OF PAGE        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-topbanner&amp;quot; style=&amp;quot;width:100%; background:#f9f9f9; margin:1.2em 0 6px 0; border:1px solid #ddd;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:61%; color:#000;&amp;quot; |&lt;br /&gt;
&amp;lt;!--        &amp;quot;WELCOME TO WIKIPEDIA&amp;quot; AND ARTICLE COUNT        --&amp;gt;&lt;br /&gt;
{| style=&amp;quot;width:280px; border:none; background:none;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:280px; text-align:center; white-space:nowrap; color:#000;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:162%; border:none; margin:0; padding:.1em; color:#000;&amp;quot;&amp;gt;Welcome to [[Wikipedia]],&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;top:+0.2em; font-size:95%;&amp;quot;&amp;gt;the [[free content|free]] [[encyclopedia]] that [[Wikipedia:Introduction|anyone can edit]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;articlecount&amp;quot; style=&amp;quot;font-size:85%;&amp;quot;&amp;gt;[[Special:Statistics|{{NUMBEROFARTICLES}}]] articles in [[English language|English]]&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        PORTAL LIST ON RIGHT-HAND SIDE        --&amp;gt;&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:Arts|Arts]]&lt;br /&gt;
* [[Portal:Biography|Biography]]&lt;br /&gt;
* [[Portal:Geography|Geography]]&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:History|History]]&lt;br /&gt;
* [[Portal:Mathematics|Mathematics]]&lt;br /&gt;
* [[Portal:Science|Science]]&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:Society|Society]]&lt;br /&gt;
* [[Portal:Technology|Technology]]&lt;br /&gt;
* &#039;&#039;&#039;[[Portal:Contents/Portals|All portals]]&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        MAIN PAGE BANNER        --&amp;gt;&lt;br /&gt;
{{#if:{{Main Page banner}}|&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-banner&amp;quot; style=&amp;quot;width: 100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;text-align:center; padding:0.2em; background-color:#fffaf5; border:1px solid #f2e0ce; color:#000; font-size:100%;&amp;quot;&amp;gt;{{Main Page banner}}&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED CONTENT        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-upper&amp;quot; style=&amp;quot;width: 100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED ARTICLE; DID YOU KNOW        --&amp;gt;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:55%; border:1px solid #cef2e0; background:#f5fffa; vertical-align:top; color:#000;&amp;quot; |&lt;br /&gt;
{| id=&amp;quot;mp-left&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#f5fffa;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-tfa-h2&amp;quot; style=&amp;quot;margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;{{#ifexpr:{{formatnum:{{PAGESIZE:Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|R}}&amp;gt;150|From today&#039;s featured article|Featured article &amp;lt;span style=&amp;quot;font-size:85%; font-weight:normal;&amp;quot;&amp;gt;(Check back later for today&#039;s.)&amp;lt;/span&amp;gt;}}&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000;&amp;quot; | &amp;lt;div id=&amp;quot;mp-tfa&amp;quot; style=&amp;quot;padding:2px 5px&amp;quot;&amp;gt;{{#ifexpr:{{formatnum:{{PAGESIZE:Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|R}}&amp;gt;150|{{Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|{{Wikipedia:Today&#039;s featured article/{{#time:F j, Y|-1 day}}}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-dyk-h2&amp;quot; style=&amp;quot;margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;Did you know...&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-dyk&amp;quot;&amp;gt;{{Did you know}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| style=&amp;quot;border:1px solid transparent;&amp;quot; |&lt;br /&gt;
&amp;lt;!--        IN THE NEWS; ON THIS DAY        --&amp;gt;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:45%; border:1px solid #cedff2; background:#f5faff; vertical-align:top;&amp;quot;|&lt;br /&gt;
{| id=&amp;quot;mp-right&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#f5faff;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-itn-h2&amp;quot; style=&amp;quot;margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;In the news&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-itn&amp;quot;&amp;gt;{{In the news}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-otd-h2&amp;quot; style=&amp;quot;margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;On this day...&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-otd&amp;quot;&amp;gt;{{Wikipedia:Selected anniversaries/{{#time:F j}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED LIST        --&amp;gt;&amp;lt;!-- CONDITIONAL: SHOW/HIDE FROM HERE --&amp;gt;{{#switch:{{CURRENTDAYNAME}}|Monday=&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-middle&amp;quot; style=&amp;quot;width:100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:100%; border:1px solid #f2cedd; background:#fff5fa; vertical-align:top; color:#000;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-center&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#fff5fa; color:#000;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;padding:2px;&amp;quot;&amp;gt;&amp;lt;h2 id=&amp;quot;mp-tfl-h2&amp;quot; style=&amp;quot;margin:3px; background:#f2cedd; font-size:120%; font-weight:bold; border:1px solid #bfa3af; text-align:left; color:#000; padding:0.2em 0.4em&amp;quot;&amp;gt;From today&#039;s featured list&amp;lt;/h2&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;color:#000;&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;mp-tfl&amp;quot; style=&amp;quot;padding:2px 5px;&amp;quot;&amp;gt;{{#ifexist:Wikipedia:Today&#039;s featured list/{{#time:F j, Y}}|{{Wikipedia:Today&#039;s featured list/{{#time:F j, Y}}}}|{{TFLempty}}}}&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;!--        END TODAY&#039;S FEATURED LIST        --&amp;gt;&amp;lt;!-- CONDITIONAL: SHOW/HIDE TO HERE --&amp;gt;|}}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED PICTURE        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-lower&amp;quot; style=&amp;quot;margin:4px 0 0 0; width:100%; background:none; border-spacing: 0px;&amp;quot;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:100%; border:1px solid #ddcef2; background:#faf5ff; vertical-align:top; color:#000;&amp;quot; |&lt;br /&gt;
{| id=&amp;quot;mp-bottom&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#faf5ff; color:#000;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-tfp-h2&amp;quot; style=&amp;quot;margin:3px; background:#ddcef2; font-size:120%; font-weight:bold; border:1px solid #afa3bf; text-align:left; color:#000; padding:0.2em 0.4em&amp;quot;&amp;gt;{{#ifexist:Template:POTD protected/{{#time:Y-m-d}}|Today&#039;s featured picture | Featured picture&amp;amp;ensp;&amp;lt;span style=&amp;quot;font-size:85%; font-weight:normal;&amp;quot;&amp;gt;(Check back later for today&#039;s.)&amp;lt;/span&amp;gt;}}&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-tfp&amp;quot;&amp;gt;{{#ifexist:Template:POTD protected/{{#time:Y-m-d}}|{{POTD protected/{{#time:Y-m-d}}}}|{{POTD protected/{{#time:Y-m-d|-1 day}}}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        SECTIONS AT BOTTOM OF PAGE        --&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;mp-other&amp;quot; style=&amp;quot;padding-top:4px; padding-bottom:2px;&amp;quot;&amp;gt;&lt;br /&gt;
== Other areas of Wikipedia ==&lt;br /&gt;
{{Other areas of Wikipedia}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div id=&amp;quot;mp-sister&amp;quot;&amp;gt;&lt;br /&gt;
== Wikipedia&#039;s sister projects ==&lt;br /&gt;
{{Wikipedia&#039;s sister projects}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div id=&amp;quot;mp-lang&amp;quot;&amp;gt;&lt;br /&gt;
== Wikipedia languages ==&lt;br /&gt;
{{Wikipedia languages}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!--        INTERWIKI STRAPLINE        --&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Main Page interwikis}}{{noexternallanglinks}}&amp;lt;/noinclude&amp;gt;__NOTOC____NOEDITSECTION__&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Documentation/docspace&amp;diff=9452</id>
		<title>Template:Documentation/docspace</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Documentation/docspace&amp;diff=9452"/>
		<updated>2014-01-29T22:05:08Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;&amp;lt;!--        BANNER ACROSS TOP OF PAGE        --&amp;gt; {| id=&amp;quot;mp-topbanner&amp;quot; style=&amp;quot;width:100%; background:#f9f9f9; margin:1.2em 0 6px 0; border:1px solid #ddd;&amp;quot; | style=&amp;quot;width:61%; ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--        BANNER ACROSS TOP OF PAGE        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-topbanner&amp;quot; style=&amp;quot;width:100%; background:#f9f9f9; margin:1.2em 0 6px 0; border:1px solid #ddd;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:61%; color:#000;&amp;quot; |&lt;br /&gt;
&amp;lt;!--        &amp;quot;WELCOME TO WIKIPEDIA&amp;quot; AND ARTICLE COUNT        --&amp;gt;&lt;br /&gt;
{| style=&amp;quot;width:280px; border:none; background:none;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:280px; text-align:center; white-space:nowrap; color:#000;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:162%; border:none; margin:0; padding:.1em; color:#000;&amp;quot;&amp;gt;Welcome to [[Wikipedia]],&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;top:+0.2em; font-size:95%;&amp;quot;&amp;gt;the [[free content|free]] [[encyclopedia]] that [[Wikipedia:Introduction|anyone can edit]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;articlecount&amp;quot; style=&amp;quot;font-size:85%;&amp;quot;&amp;gt;[[Special:Statistics|{{NUMBEROFARTICLES}}]] articles in [[English language|English]]&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        PORTAL LIST ON RIGHT-HAND SIDE        --&amp;gt;&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:Arts|Arts]]&lt;br /&gt;
* [[Portal:Biography|Biography]]&lt;br /&gt;
* [[Portal:Geography|Geography]]&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:History|History]]&lt;br /&gt;
* [[Portal:Mathematics|Mathematics]]&lt;br /&gt;
* [[Portal:Science|Science]]&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:Society|Society]]&lt;br /&gt;
* [[Portal:Technology|Technology]]&lt;br /&gt;
* &#039;&#039;&#039;[[Portal:Contents/Portals|All portals]]&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        MAIN PAGE BANNER        --&amp;gt;&lt;br /&gt;
{{#if:{{Main Page banner}}|&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-banner&amp;quot; style=&amp;quot;width: 100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;text-align:center; padding:0.2em; background-color:#fffaf5; border:1px solid #f2e0ce; color:#000; font-size:100%;&amp;quot;&amp;gt;{{Main Page banner}}&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED CONTENT        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-upper&amp;quot; style=&amp;quot;width: 100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED ARTICLE; DID YOU KNOW        --&amp;gt;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:55%; border:1px solid #cef2e0; background:#f5fffa; vertical-align:top; color:#000;&amp;quot; |&lt;br /&gt;
{| id=&amp;quot;mp-left&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#f5fffa;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-tfa-h2&amp;quot; style=&amp;quot;margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;{{#ifexpr:{{formatnum:{{PAGESIZE:Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|R}}&amp;gt;150|From today&#039;s featured article|Featured article &amp;lt;span style=&amp;quot;font-size:85%; font-weight:normal;&amp;quot;&amp;gt;(Check back later for today&#039;s.)&amp;lt;/span&amp;gt;}}&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000;&amp;quot; | &amp;lt;div id=&amp;quot;mp-tfa&amp;quot; style=&amp;quot;padding:2px 5px&amp;quot;&amp;gt;{{#ifexpr:{{formatnum:{{PAGESIZE:Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|R}}&amp;gt;150|{{Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|{{Wikipedia:Today&#039;s featured article/{{#time:F j, Y|-1 day}}}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-dyk-h2&amp;quot; style=&amp;quot;margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;Did you know...&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-dyk&amp;quot;&amp;gt;{{Did you know}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| style=&amp;quot;border:1px solid transparent;&amp;quot; |&lt;br /&gt;
&amp;lt;!--        IN THE NEWS; ON THIS DAY        --&amp;gt;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:45%; border:1px solid #cedff2; background:#f5faff; vertical-align:top;&amp;quot;|&lt;br /&gt;
{| id=&amp;quot;mp-right&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#f5faff;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-itn-h2&amp;quot; style=&amp;quot;margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;In the news&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-itn&amp;quot;&amp;gt;{{In the news}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-otd-h2&amp;quot; style=&amp;quot;margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;On this day...&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-otd&amp;quot;&amp;gt;{{Wikipedia:Selected anniversaries/{{#time:F j}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED LIST        --&amp;gt;&amp;lt;!-- CONDITIONAL: SHOW/HIDE FROM HERE --&amp;gt;{{#switch:{{CURRENTDAYNAME}}|Monday=&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-middle&amp;quot; style=&amp;quot;width:100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:100%; border:1px solid #f2cedd; background:#fff5fa; vertical-align:top; color:#000;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-center&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#fff5fa; color:#000;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;padding:2px;&amp;quot;&amp;gt;&amp;lt;h2 id=&amp;quot;mp-tfl-h2&amp;quot; style=&amp;quot;margin:3px; background:#f2cedd; font-size:120%; font-weight:bold; border:1px solid #bfa3af; text-align:left; color:#000; padding:0.2em 0.4em&amp;quot;&amp;gt;From today&#039;s featured list&amp;lt;/h2&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;color:#000;&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;mp-tfl&amp;quot; style=&amp;quot;padding:2px 5px;&amp;quot;&amp;gt;{{#ifexist:Wikipedia:Today&#039;s featured list/{{#time:F j, Y}}|{{Wikipedia:Today&#039;s featured list/{{#time:F j, Y}}}}|{{TFLempty}}}}&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;!--        END TODAY&#039;S FEATURED LIST        --&amp;gt;&amp;lt;!-- CONDITIONAL: SHOW/HIDE TO HERE --&amp;gt;|}}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED PICTURE        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-lower&amp;quot; style=&amp;quot;margin:4px 0 0 0; width:100%; background:none; border-spacing: 0px;&amp;quot;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:100%; border:1px solid #ddcef2; background:#faf5ff; vertical-align:top; color:#000;&amp;quot; |&lt;br /&gt;
{| id=&amp;quot;mp-bottom&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#faf5ff; color:#000;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-tfp-h2&amp;quot; style=&amp;quot;margin:3px; background:#ddcef2; font-size:120%; font-weight:bold; border:1px solid #afa3bf; text-align:left; color:#000; padding:0.2em 0.4em&amp;quot;&amp;gt;{{#ifexist:Template:POTD protected/{{#time:Y-m-d}}|Today&#039;s featured picture | Featured picture&amp;amp;ensp;&amp;lt;span style=&amp;quot;font-size:85%; font-weight:normal;&amp;quot;&amp;gt;(Check back later for today&#039;s.)&amp;lt;/span&amp;gt;}}&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-tfp&amp;quot;&amp;gt;{{#ifexist:Template:POTD protected/{{#time:Y-m-d}}|{{POTD protected/{{#time:Y-m-d}}}}|{{POTD protected/{{#time:Y-m-d|-1 day}}}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        SECTIONS AT BOTTOM OF PAGE        --&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;mp-other&amp;quot; style=&amp;quot;padding-top:4px; padding-bottom:2px;&amp;quot;&amp;gt;&lt;br /&gt;
== Other areas of Wikipedia ==&lt;br /&gt;
{{Other areas of Wikipedia}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div id=&amp;quot;mp-sister&amp;quot;&amp;gt;&lt;br /&gt;
== Wikipedia&#039;s sister projects ==&lt;br /&gt;
{{Wikipedia&#039;s sister projects}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div id=&amp;quot;mp-lang&amp;quot;&amp;gt;&lt;br /&gt;
== Wikipedia languages ==&lt;br /&gt;
{{Wikipedia languages}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!--        INTERWIKI STRAPLINE        --&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Main Page interwikis}}{{noexternallanglinks}}&amp;lt;/noinclude&amp;gt;__NOTOC____NOEDITSECTION__&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Documentation/template_page&amp;diff=9451</id>
		<title>Template:Documentation/template page</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Documentation/template_page&amp;diff=9451"/>
		<updated>2014-01-29T22:04:34Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;&amp;lt;!--        BANNER ACROSS TOP OF PAGE        --&amp;gt; {| id=&amp;quot;mp-topbanner&amp;quot; style=&amp;quot;width:100%; background:#f9f9f9; margin:1.2em 0 6px 0; border:1px solid #ddd;&amp;quot; | style=&amp;quot;width:61%; ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--        BANNER ACROSS TOP OF PAGE        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-topbanner&amp;quot; style=&amp;quot;width:100%; background:#f9f9f9; margin:1.2em 0 6px 0; border:1px solid #ddd;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:61%; color:#000;&amp;quot; |&lt;br /&gt;
&amp;lt;!--        &amp;quot;WELCOME TO WIKIPEDIA&amp;quot; AND ARTICLE COUNT        --&amp;gt;&lt;br /&gt;
{| style=&amp;quot;width:280px; border:none; background:none;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:280px; text-align:center; white-space:nowrap; color:#000;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:162%; border:none; margin:0; padding:.1em; color:#000;&amp;quot;&amp;gt;Welcome to [[Wikipedia]],&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;top:+0.2em; font-size:95%;&amp;quot;&amp;gt;the [[free content|free]] [[encyclopedia]] that [[Wikipedia:Introduction|anyone can edit]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;articlecount&amp;quot; style=&amp;quot;font-size:85%;&amp;quot;&amp;gt;[[Special:Statistics|{{NUMBEROFARTICLES}}]] articles in [[English language|English]]&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        PORTAL LIST ON RIGHT-HAND SIDE        --&amp;gt;&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:Arts|Arts]]&lt;br /&gt;
* [[Portal:Biography|Biography]]&lt;br /&gt;
* [[Portal:Geography|Geography]]&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:History|History]]&lt;br /&gt;
* [[Portal:Mathematics|Mathematics]]&lt;br /&gt;
* [[Portal:Science|Science]]&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:Society|Society]]&lt;br /&gt;
* [[Portal:Technology|Technology]]&lt;br /&gt;
* &#039;&#039;&#039;[[Portal:Contents/Portals|All portals]]&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        MAIN PAGE BANNER        --&amp;gt;&lt;br /&gt;
{{#if:{{Main Page banner}}|&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-banner&amp;quot; style=&amp;quot;width: 100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;text-align:center; padding:0.2em; background-color:#fffaf5; border:1px solid #f2e0ce; color:#000; font-size:100%;&amp;quot;&amp;gt;{{Main Page banner}}&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED CONTENT        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-upper&amp;quot; style=&amp;quot;width: 100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED ARTICLE; DID YOU KNOW        --&amp;gt;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:55%; border:1px solid #cef2e0; background:#f5fffa; vertical-align:top; color:#000;&amp;quot; |&lt;br /&gt;
{| id=&amp;quot;mp-left&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#f5fffa;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-tfa-h2&amp;quot; style=&amp;quot;margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;{{#ifexpr:{{formatnum:{{PAGESIZE:Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|R}}&amp;gt;150|From today&#039;s featured article|Featured article &amp;lt;span style=&amp;quot;font-size:85%; font-weight:normal;&amp;quot;&amp;gt;(Check back later for today&#039;s.)&amp;lt;/span&amp;gt;}}&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000;&amp;quot; | &amp;lt;div id=&amp;quot;mp-tfa&amp;quot; style=&amp;quot;padding:2px 5px&amp;quot;&amp;gt;{{#ifexpr:{{formatnum:{{PAGESIZE:Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|R}}&amp;gt;150|{{Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|{{Wikipedia:Today&#039;s featured article/{{#time:F j, Y|-1 day}}}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-dyk-h2&amp;quot; style=&amp;quot;margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;Did you know...&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-dyk&amp;quot;&amp;gt;{{Did you know}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| style=&amp;quot;border:1px solid transparent;&amp;quot; |&lt;br /&gt;
&amp;lt;!--        IN THE NEWS; ON THIS DAY        --&amp;gt;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:45%; border:1px solid #cedff2; background:#f5faff; vertical-align:top;&amp;quot;|&lt;br /&gt;
{| id=&amp;quot;mp-right&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#f5faff;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-itn-h2&amp;quot; style=&amp;quot;margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;In the news&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-itn&amp;quot;&amp;gt;{{In the news}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-otd-h2&amp;quot; style=&amp;quot;margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;On this day...&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-otd&amp;quot;&amp;gt;{{Wikipedia:Selected anniversaries/{{#time:F j}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED LIST        --&amp;gt;&amp;lt;!-- CONDITIONAL: SHOW/HIDE FROM HERE --&amp;gt;{{#switch:{{CURRENTDAYNAME}}|Monday=&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-middle&amp;quot; style=&amp;quot;width:100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:100%; border:1px solid #f2cedd; background:#fff5fa; vertical-align:top; color:#000;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-center&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#fff5fa; color:#000;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;padding:2px;&amp;quot;&amp;gt;&amp;lt;h2 id=&amp;quot;mp-tfl-h2&amp;quot; style=&amp;quot;margin:3px; background:#f2cedd; font-size:120%; font-weight:bold; border:1px solid #bfa3af; text-align:left; color:#000; padding:0.2em 0.4em&amp;quot;&amp;gt;From today&#039;s featured list&amp;lt;/h2&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;color:#000;&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;mp-tfl&amp;quot; style=&amp;quot;padding:2px 5px;&amp;quot;&amp;gt;{{#ifexist:Wikipedia:Today&#039;s featured list/{{#time:F j, Y}}|{{Wikipedia:Today&#039;s featured list/{{#time:F j, Y}}}}|{{TFLempty}}}}&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;!--        END TODAY&#039;S FEATURED LIST        --&amp;gt;&amp;lt;!-- CONDITIONAL: SHOW/HIDE TO HERE --&amp;gt;|}}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED PICTURE        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-lower&amp;quot; style=&amp;quot;margin:4px 0 0 0; width:100%; background:none; border-spacing: 0px;&amp;quot;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:100%; border:1px solid #ddcef2; background:#faf5ff; vertical-align:top; color:#000;&amp;quot; |&lt;br /&gt;
{| id=&amp;quot;mp-bottom&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#faf5ff; color:#000;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-tfp-h2&amp;quot; style=&amp;quot;margin:3px; background:#ddcef2; font-size:120%; font-weight:bold; border:1px solid #afa3bf; text-align:left; color:#000; padding:0.2em 0.4em&amp;quot;&amp;gt;{{#ifexist:Template:POTD protected/{{#time:Y-m-d}}|Today&#039;s featured picture | Featured picture&amp;amp;ensp;&amp;lt;span style=&amp;quot;font-size:85%; font-weight:normal;&amp;quot;&amp;gt;(Check back later for today&#039;s.)&amp;lt;/span&amp;gt;}}&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-tfp&amp;quot;&amp;gt;{{#ifexist:Template:POTD protected/{{#time:Y-m-d}}|{{POTD protected/{{#time:Y-m-d}}}}|{{POTD protected/{{#time:Y-m-d|-1 day}}}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        SECTIONS AT BOTTOM OF PAGE        --&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;mp-other&amp;quot; style=&amp;quot;padding-top:4px; padding-bottom:2px;&amp;quot;&amp;gt;&lt;br /&gt;
== Other areas of Wikipedia ==&lt;br /&gt;
{{Other areas of Wikipedia}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div id=&amp;quot;mp-sister&amp;quot;&amp;gt;&lt;br /&gt;
== Wikipedia&#039;s sister projects ==&lt;br /&gt;
{{Wikipedia&#039;s sister projects}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div id=&amp;quot;mp-lang&amp;quot;&amp;gt;&lt;br /&gt;
== Wikipedia languages ==&lt;br /&gt;
{{Wikipedia languages}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!--        INTERWIKI STRAPLINE        --&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Main Page interwikis}}{{noexternallanglinks}}&amp;lt;/noinclude&amp;gt;__NOTOC____NOEDITSECTION__&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Documentation/end_box&amp;diff=9450</id>
		<title>Template:Documentation/end box</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Documentation/end_box&amp;diff=9450"/>
		<updated>2014-01-29T22:03:01Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;&amp;lt;!--        BANNER ACROSS TOP OF PAGE        --&amp;gt; {| id=&amp;quot;mp-topbanner&amp;quot; style=&amp;quot;width:100%; background:#f9f9f9; margin:1.2em 0 6px 0; border:1px solid #ddd;&amp;quot; | style=&amp;quot;width:61%; ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--        BANNER ACROSS TOP OF PAGE        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-topbanner&amp;quot; style=&amp;quot;width:100%; background:#f9f9f9; margin:1.2em 0 6px 0; border:1px solid #ddd;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:61%; color:#000;&amp;quot; |&lt;br /&gt;
&amp;lt;!--        &amp;quot;WELCOME TO WIKIPEDIA&amp;quot; AND ARTICLE COUNT        --&amp;gt;&lt;br /&gt;
{| style=&amp;quot;width:280px; border:none; background:none;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:280px; text-align:center; white-space:nowrap; color:#000;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:162%; border:none; margin:0; padding:.1em; color:#000;&amp;quot;&amp;gt;Welcome to [[Wikipedia]],&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;top:+0.2em; font-size:95%;&amp;quot;&amp;gt;the [[free content|free]] [[encyclopedia]] that [[Wikipedia:Introduction|anyone can edit]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;articlecount&amp;quot; style=&amp;quot;font-size:85%;&amp;quot;&amp;gt;[[Special:Statistics|{{NUMBEROFARTICLES}}]] articles in [[English language|English]]&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        PORTAL LIST ON RIGHT-HAND SIDE        --&amp;gt;&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:Arts|Arts]]&lt;br /&gt;
* [[Portal:Biography|Biography]]&lt;br /&gt;
* [[Portal:Geography|Geography]]&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:History|History]]&lt;br /&gt;
* [[Portal:Mathematics|Mathematics]]&lt;br /&gt;
* [[Portal:Science|Science]]&lt;br /&gt;
| style=&amp;quot;width:13%; font-size:95%;&amp;quot; |&lt;br /&gt;
* [[Portal:Society|Society]]&lt;br /&gt;
* [[Portal:Technology|Technology]]&lt;br /&gt;
* &#039;&#039;&#039;[[Portal:Contents/Portals|All portals]]&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        MAIN PAGE BANNER        --&amp;gt;&lt;br /&gt;
{{#if:{{Main Page banner}}|&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-banner&amp;quot; style=&amp;quot;width: 100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;text-align:center; padding:0.2em; background-color:#fffaf5; border:1px solid #f2e0ce; color:#000; font-size:100%;&amp;quot;&amp;gt;{{Main Page banner}}&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED CONTENT        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-upper&amp;quot; style=&amp;quot;width: 100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED ARTICLE; DID YOU KNOW        --&amp;gt;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:55%; border:1px solid #cef2e0; background:#f5fffa; vertical-align:top; color:#000;&amp;quot; |&lt;br /&gt;
{| id=&amp;quot;mp-left&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#f5fffa;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-tfa-h2&amp;quot; style=&amp;quot;margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;{{#ifexpr:{{formatnum:{{PAGESIZE:Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|R}}&amp;gt;150|From today&#039;s featured article|Featured article &amp;lt;span style=&amp;quot;font-size:85%; font-weight:normal;&amp;quot;&amp;gt;(Check back later for today&#039;s.)&amp;lt;/span&amp;gt;}}&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000;&amp;quot; | &amp;lt;div id=&amp;quot;mp-tfa&amp;quot; style=&amp;quot;padding:2px 5px&amp;quot;&amp;gt;{{#ifexpr:{{formatnum:{{PAGESIZE:Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|R}}&amp;gt;150|{{Wikipedia:Today&#039;s featured article/{{#time:F j, Y}}}}|{{Wikipedia:Today&#039;s featured article/{{#time:F j, Y|-1 day}}}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-dyk-h2&amp;quot; style=&amp;quot;margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;Did you know...&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-dyk&amp;quot;&amp;gt;{{Did you know}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| style=&amp;quot;border:1px solid transparent;&amp;quot; |&lt;br /&gt;
&amp;lt;!--        IN THE NEWS; ON THIS DAY        --&amp;gt;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:45%; border:1px solid #cedff2; background:#f5faff; vertical-align:top;&amp;quot;|&lt;br /&gt;
{| id=&amp;quot;mp-right&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#f5faff;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-itn-h2&amp;quot; style=&amp;quot;margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;In the news&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-itn&amp;quot;&amp;gt;{{In the news}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-otd-h2&amp;quot; style=&amp;quot;margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;On this day...&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px 5px 5px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-otd&amp;quot;&amp;gt;{{Wikipedia:Selected anniversaries/{{#time:F j}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED LIST        --&amp;gt;&amp;lt;!-- CONDITIONAL: SHOW/HIDE FROM HERE --&amp;gt;{{#switch:{{CURRENTDAYNAME}}|Monday=&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-middle&amp;quot; style=&amp;quot;width:100%; margin:4px 0 0 0; background:none; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:100%; border:1px solid #f2cedd; background:#fff5fa; vertical-align:top; color:#000;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;table id=&amp;quot;mp-center&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#fff5fa; color:#000;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;padding:2px;&amp;quot;&amp;gt;&amp;lt;h2 id=&amp;quot;mp-tfl-h2&amp;quot; style=&amp;quot;margin:3px; background:#f2cedd; font-size:120%; font-weight:bold; border:1px solid #bfa3af; text-align:left; color:#000; padding:0.2em 0.4em&amp;quot;&amp;gt;From today&#039;s featured list&amp;lt;/h2&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;color:#000;&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;mp-tfl&amp;quot; style=&amp;quot;padding:2px 5px;&amp;quot;&amp;gt;{{#ifexist:Wikipedia:Today&#039;s featured list/{{#time:F j, Y}}|{{Wikipedia:Today&#039;s featured list/{{#time:F j, Y}}}}|{{TFLempty}}}}&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;!--        END TODAY&#039;S FEATURED LIST        --&amp;gt;&amp;lt;!-- CONDITIONAL: SHOW/HIDE TO HERE --&amp;gt;|}}&lt;br /&gt;
&amp;lt;!--        TODAY&#039;S FEATURED PICTURE        --&amp;gt;&lt;br /&gt;
{| id=&amp;quot;mp-lower&amp;quot; style=&amp;quot;margin:4px 0 0 0; width:100%; background:none; border-spacing: 0px;&amp;quot;&lt;br /&gt;
| class=&amp;quot;MainPageBG&amp;quot; style=&amp;quot;width:100%; border:1px solid #ddcef2; background:#faf5ff; vertical-align:top; color:#000;&amp;quot; |&lt;br /&gt;
{| id=&amp;quot;mp-bottom&amp;quot; style=&amp;quot;width:100%; vertical-align:top; background:#faf5ff; color:#000;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding:2px;&amp;quot; | &amp;lt;h2 id=&amp;quot;mp-tfp-h2&amp;quot; style=&amp;quot;margin:3px; background:#ddcef2; font-size:120%; font-weight:bold; border:1px solid #afa3bf; text-align:left; color:#000; padding:0.2em 0.4em&amp;quot;&amp;gt;{{#ifexist:Template:POTD protected/{{#time:Y-m-d}}|Today&#039;s featured picture | Featured picture&amp;amp;ensp;&amp;lt;span style=&amp;quot;font-size:85%; font-weight:normal;&amp;quot;&amp;gt;(Check back later for today&#039;s.)&amp;lt;/span&amp;gt;}}&amp;lt;/h2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color:#000; padding:2px;&amp;quot; | &amp;lt;div id=&amp;quot;mp-tfp&amp;quot;&amp;gt;{{#ifexist:Template:POTD protected/{{#time:Y-m-d}}|{{POTD protected/{{#time:Y-m-d}}}}|{{POTD protected/{{#time:Y-m-d|-1 day}}}}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!--        SECTIONS AT BOTTOM OF PAGE        --&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;mp-other&amp;quot; style=&amp;quot;padding-top:4px; padding-bottom:2px;&amp;quot;&amp;gt;&lt;br /&gt;
== Other areas of Wikipedia ==&lt;br /&gt;
{{Other areas of Wikipedia}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div id=&amp;quot;mp-sister&amp;quot;&amp;gt;&lt;br /&gt;
== Wikipedia&#039;s sister projects ==&lt;br /&gt;
{{Wikipedia&#039;s sister projects}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div id=&amp;quot;mp-lang&amp;quot;&amp;gt;&lt;br /&gt;
== Wikipedia languages ==&lt;br /&gt;
{{Wikipedia languages}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!--        INTERWIKI STRAPLINE        --&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Main Page interwikis}}{{noexternallanglinks}}&amp;lt;/noinclude&amp;gt;__NOTOC____NOEDITSECTION__&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Pp-meta&amp;diff=9449</id>
		<title>Template:Pp-meta</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Pp-meta&amp;diff=9449"/>
		<updated>2014-01-29T22:02:40Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;{{#ifeq:{{#switch:{{lc:{{{type}}}}}   |move=&amp;lt;!--  --&amp;gt;{{#ifeq:       {{#switch:{{lc:{{{demolevel|undefined}}}}}         |semi |autoconfirmed           = autoconfirmed         |...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#ifeq:{{#switch:{{lc:{{{type}}}}}&lt;br /&gt;
  |move=&amp;lt;!--&lt;br /&gt;
 --&amp;gt;{{#ifeq:&lt;br /&gt;
      {{#switch:{{lc:{{{demolevel|undefined}}}}}&lt;br /&gt;
        |semi |autoconfirmed           = autoconfirmed&lt;br /&gt;
        |administrator |full |sysop    = sysop&lt;br /&gt;
        |undefined                     = {{PROTECTIONLEVEL:move}}&lt;br /&gt;
        |#default                      = &amp;lt;!--fallback value: null&lt;br /&gt;
   --&amp;gt;}}&lt;br /&gt;
      |sysop|yes|no&lt;br /&gt;
    }}&lt;br /&gt;
  |create=&amp;lt;!--&lt;br /&gt;
 --&amp;gt;{{#if:&lt;br /&gt;
      {{#switch:{{lc:{{{demolevel|undefined}}}}}&lt;br /&gt;
        |semi |autoconfirmed           = autoconfirmed&lt;br /&gt;
        |administrator |full |sysop    = sysop&lt;br /&gt;
        |undefined                     = {{PROTECTIONLEVEL:create}}&lt;br /&gt;
        |#default                      = &amp;lt;!--fallback value: null&lt;br /&gt;
   --&amp;gt;}}&lt;br /&gt;
      |yes|no&lt;br /&gt;
    }}&lt;br /&gt;
  |template=&amp;lt;!--&lt;br /&gt;
 --&amp;gt;{{#if:&lt;br /&gt;
      {{#switch:{{lc:{{{demolevel|undefined}}}}}&lt;br /&gt;
        |templateeditor |template      = templateeditor&lt;br /&gt;
        |administrator |full |sysop    = sysop&lt;br /&gt;
        |undefined                     = {{PROTECTIONLEVEL:edit}}&lt;br /&gt;
        |#default                      = &amp;lt;!--fallback value: null&lt;br /&gt;
   --&amp;gt;}}&lt;br /&gt;
      |yes|no&lt;br /&gt;
    }}&lt;br /&gt;
  |pc1 =&amp;lt;!--&lt;br /&gt;
 --&amp;gt;{{#ifeq:&lt;br /&gt;
      {{#switch:{{lc:{{{demolevel|undefined}}}}}&lt;br /&gt;
        |pc1                           = autoconfirmed &amp;lt;!-- this is the value that the PENDINGCHANGELEVEL magic word returns for pc1 --&amp;gt;&lt;br /&gt;
        |undefined                     = {{PENDINGCHANGELEVEL}}&lt;br /&gt;
        |#default                      = &amp;lt;!--fallback value: null&lt;br /&gt;
   --&amp;gt;}}&lt;br /&gt;
      |autoconfirmed&lt;br /&gt;
      |yes|no&lt;br /&gt;
    }}&lt;br /&gt;
  |pc2 =&amp;lt;!--&lt;br /&gt;
 --&amp;gt;{{#ifeq:&lt;br /&gt;
      {{#switch:{{lc:{{{demolevel|undefined}}}}}&lt;br /&gt;
        |pc2                           = review &amp;lt;!-- this is the value that the PENDINGCHANGELEVEL magic word returns for pc2 --&amp;gt;&lt;br /&gt;
        |undefined                     = {{PENDINGCHANGELEVEL}}&lt;br /&gt;
        |#default                      = &amp;lt;!--fallback value: null&lt;br /&gt;
   --&amp;gt;}}&lt;br /&gt;
      |review&lt;br /&gt;
      |yes|no&lt;br /&gt;
    }}&lt;br /&gt;
|#default&amp;lt;!--includes all other types--&amp;gt;=&amp;lt;!--&lt;br /&gt;
 --&amp;gt;{{#if:&lt;br /&gt;
      {{#switch:{{lc:{{{demolevel|undefined}}}}}&lt;br /&gt;
        |semi |autoconfirmed           = autoconfirmed&lt;br /&gt;
        |administrator |full |sysop    = sysop&lt;br /&gt;
        |undefined                     = {{PROTECTIONLEVEL:edit}}&lt;br /&gt;
        |#default                      = &amp;lt;!--fallback value: null&lt;br /&gt;
   --&amp;gt;}}&lt;br /&gt;
      |{{#ifeq:{{#switch:{{lc:{{{disallowlevel|}}}}}&lt;br /&gt;
                 |semi |autoconfirmed           = autoconfirmed&lt;br /&gt;
                 |administrator |full |sysop    = sysop&lt;br /&gt;
                 |#default                      = &amp;lt;!--fallback value: null--&amp;gt;}}&lt;br /&gt;
         |{{#switch:{{lc:{{{demolevel|undefined}}}}}&lt;br /&gt;
            |semi |autoconfirmed           = autoconfirmed&lt;br /&gt;
            |administrator |full |sysop    = sysop&lt;br /&gt;
            |undefined                     = {{PROTECTIONLEVEL:edit}}&lt;br /&gt;
            |#default                      = &amp;lt;!--fallback value: null&lt;br /&gt;
       --&amp;gt;}}&lt;br /&gt;
         |no|yes&lt;br /&gt;
       }}&lt;br /&gt;
   |no}}&lt;br /&gt;
}}|yes|{{#ifeq:{{lc:{{{small|}}}}}|yes|&lt;br /&gt;
&amp;lt;div class=&amp;quot;metadata topicon nopopups&amp;quot; id=&amp;quot;protected-icon&amp;quot; style=&amp;quot;display:none; right:{{#if:{{{right|}}}|{{{right}}}|55px}};&amp;quot;&amp;gt;[[Image:{{{image|{{#switch:{{lc:{{{type}}}}}&lt;br /&gt;
 |full=Padlock.svg&lt;br /&gt;
 |semi=Padlock-silver.svg&lt;br /&gt;
 |template=Padlock-pink.svg&lt;br /&gt;
 |pc1=Padlock-silver-light.svg&lt;br /&gt;
 |pc2=Padlock-orange.svg&lt;br /&gt;
 |move=Padlock-olive.svg&lt;br /&gt;
 |indef=Padlock-red.svg&lt;br /&gt;
 |office=Padlock-black.svg&lt;br /&gt;
 |create=Padlock-skyblue.svg&lt;br /&gt;
 |#default=Transparent.gif&lt;br /&gt;
}}}}}|20px|link={{{icon-link|Wikipedia:Protection policy#{{lc:{{{type}}}}}}}}|{{{icon-text|{{#switch:{{lc:{{{type}}}}}&lt;br /&gt;
|pc1 = All edits by unregistered and new users are subject to review&lt;br /&gt;
|pc2 = All edits by users who are not reviewers or administrators are subject to review&lt;br /&gt;
|template = This is a permanently protected {{pp-meta/pagetype}}&lt;br /&gt;
|#default = This {{pp-meta/pagetype}} is {{#switch:{{lc:{{{type}}}}}&lt;br /&gt;
  |semi=semi-&lt;br /&gt;
  |move=move-&lt;br /&gt;
  |indef=permanently&amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |create=creation-&lt;br /&gt;
  |office=&amp;lt;!--null, but should this have a special tag?--&amp;gt;&lt;br /&gt;
  |full&lt;br /&gt;
  |#default=&amp;lt;!--null--&amp;gt;&lt;br /&gt;
  }}protected&lt;br /&gt;
}}{{#ifeq:{{lc:{{{type}}}}}|indef||{{#if:{{{expiry|}}}|&amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;until {{#time:F j, Y|{{{expiry}}}}}{{#if:{{{icon-reason|}}}|,}}}}}}{{#if:{{{icon-reason|}}}|&amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;{{{icon-reason}}}}}.}}}|alt={{#ifeq:{{lc:{{{type}}}}}|template&lt;br /&gt;
 |{{#switch:{{NAMESPACENUMBER}}&lt;br /&gt;
   |10|828=Permanently protected {{pp-meta/pagetype}}&lt;br /&gt;
   |#default=Page permanently protected&lt;br /&gt;
  }}&lt;br /&gt;
 |Page {{#switch:{{lc:{{{type}}}}}&lt;br /&gt;
          |pc1=protected with pending changes level 1&lt;br /&gt;
          |pc2=protected with pending changes level 2&lt;br /&gt;
          |semi=semi-protected&lt;br /&gt;
          |move=move-protected&lt;br /&gt;
          |indef=permanently protected&lt;br /&gt;
          |create=creation-protected&lt;br /&gt;
          |office=&amp;lt;!--null, but should this have a special tag?--&amp;gt;&lt;br /&gt;
          |full&lt;br /&gt;
          |#default=protected&lt;br /&gt;
       }}&lt;br /&gt;
}}]]&amp;lt;/div&amp;gt;&lt;br /&gt;
|&amp;lt;!-- else, not small --&amp;gt;&lt;br /&gt;
{{mbox &lt;br /&gt;
| name = {{{name|Pp-meta}}}&lt;br /&gt;
| subst = {{{subst|}}}&lt;br /&gt;
| demospace = {{{demospace|}}}&lt;br /&gt;
| type = protection&lt;br /&gt;
| image = [[Image:{{{image|{{#switch:{{lc:{{{type}}}}}&lt;br /&gt;
 |full=Padlock.svg&lt;br /&gt;
 |semi=Padlock-silver.svg&lt;br /&gt;
 |pc1=Padlock-silver-light.svg&lt;br /&gt;
 |pc2=Padlock-orange.svg&lt;br /&gt;
 |move=Padlock-olive.svg&lt;br /&gt;
 |template=Padlock-pink.svg&lt;br /&gt;
 |indef=Padlock-red.svg&lt;br /&gt;
 |office=Padlock-black.svg&lt;br /&gt;
 |create=Padlock-skyblue.svg&lt;br /&gt;
 |#default=Transparent.gif&lt;br /&gt;
}}}}}|40px|{{{icon-text|{{#ifeq:{{lc:{{{type}}}}}|template&lt;br /&gt;
                         |{{#switch:{{NAMESPACENUMBER}}&lt;br /&gt;
                           |10|828=This is a permanently protected {{pp-meta/pagetype}}&lt;br /&gt;
                           |#default=This page is permanently protected&lt;br /&gt;
                          }}&lt;br /&gt;
                         |This page is {{#switch:{{lc:{{{type}}}}}&lt;br /&gt;
                                        |pc1=protected with pending changes level 1&lt;br /&gt;
                                        |pc2=protected with pending changes level 2&lt;br /&gt;
                                        |semi=semi-protected&lt;br /&gt;
                                        |move=move-protected&lt;br /&gt;
                                        |indef=permanently protected&lt;br /&gt;
                                        |create=creation-protected&lt;br /&gt;
                                        |office=protected&amp;lt;!--should this have a special tag?--&amp;gt;&lt;br /&gt;
                                        |full&lt;br /&gt;
                                        |#default=protected&lt;br /&gt;
                                       }}&lt;br /&gt;
                        }}.}}}]]&lt;br /&gt;
| text = &#039;&#039;&#039;{{{reason-text|{{#switch:{{lc:{{{type}}}}}&lt;br /&gt;
 |full=This {{pp-meta/pagetype}} is currently [[Help:Protection|protected]] from editing&lt;br /&gt;
 |semi=Editing of this {{pp-meta/pagetype}} by [[Wikipedia:User access levels#New users|new]] or [[Wikipedia:User access levels#Unregistered users|unregistered]] users is currently [[Help:Protection|disabled]]&lt;br /&gt;
 |pc1=All edits made to this {{pp-meta/pagetype}} by [[Wikipedia:User access levels#New users|new]] or [[Wikipedia:User access levels#Unregistered users|unregistered]] users are currently [[Wikipedia:Pending changes|subject to review]]&lt;br /&gt;
 |pc2=All edits made to this {{pp-meta/pagetype}} by users who are not [[Wikipedia:Reviewing|reviewers]] or [[Wikipedia:Administrators|administrators]] are currently [[Wikipedia:Pending changes|subject to review]]&lt;br /&gt;
 |move=This {{pp-meta/pagetype}} is currently [[Help:Protection|protected]] from [[Help:Moving a page|page moves]]&lt;br /&gt;
 |template=This is a permanently [[Help:Protection|protected]] {{pp-meta/pagetype}}, as it is [[Wikipedia:High-risk templates|high-risk]]&lt;br /&gt;
 |indef=This page is [[Help:Protection|protected]] from editing &#039;&#039;indefinitely&#039;&#039;&lt;br /&gt;
 |office=This {{pp-meta/pagetype}} is currently [[Help:Protection|protected]] from editing&lt;br /&gt;
 |create=[[Help:Starting a new page|Recreation]] of this {{pp-meta/pagetype}} [[Help:Protection|has been disabled]]&lt;br /&gt;
}}{{#ifeq:{{lc:{{{type}}}}}|indef||{{#if:{{{expiry|}}}|&amp;amp;#32;until {{#time:F j, Y|{{{expiry}}}}}{{#if:{{{reason|}}}|,}}}}}}{{{reason&amp;lt;includeonly&amp;gt;|&amp;lt;/includeonly&amp;gt;}}}.}}}&#039;&#039;&#039;&amp;lt;br /&amp;gt; {{{explanation-text|{{#ifeq:{{lc:{{{dispute}}}}}|yes|This protection is &#039;&#039;&#039;not&#039;&#039;&#039; an endorsement of the {{#ifeq:{{{type}}}|move|[{{fullurl:Special:Log|type=move&amp;amp;page={{FULLPAGENAMEE}}}} current title]|[{{fullurl:{{FULLPAGENAMEE}}|action=history}} current version]}}.}} See the [[Wikipedia:Protection policy#Semi-protection|protection policy]] and [{{fullurl:Special:Log|type={{#switch:{{lc:{{{type}}}}} | pc1 | pc2 = stable | #default = protect }}&amp;amp;page={{FULLPAGENAMEE}}}} {{#switch:{{lc:{{{type}}}}} | pc1 | pc2 = pending changes | #default = protection }} log] for more details. {{#switch:{{lc:{{{type}}}}}&lt;br /&gt;
 |full|indef=Please discuss any changes on the [[{{TALKPAGENAME}}#{{#if:{{{section|}}}|{{{section}}}|top}}|talk page]]; you may {{Submit an edit request/link|display=submit a request}} to ask an [[Wikipedia:Administrators|administrator]] to make an edit if it is [[Help:Minor edit#When to mark an edit as a minor edit|uncontroversial]] or supported by [[Wikipedia:Consensus|consensus]]. {{#ifeq:{{NAMESPACE}}|{{ns:8}}&amp;lt;!--MediaWiki--&amp;gt;||You may also [[Wikipedia:Requests for page protection#Current requests for reduction in protection level|request]] that this page be unprotected.}}&lt;br /&gt;
 |semi=If you cannot edit this {{pp-meta/pagetype}} and you wish to make a change, you can {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}||{{submit an edit request/link|type=semi|display=request an edit}}, [[{{TALKPAGENAME}}|discuss changes on the talk page]],}} [[Wikipedia:Requests for page protection#Current requests for reduction in protection level|request unprotection]], [[Special:Userlogin|log in]], or [[Special:UserLogin/signup|create an account]].&lt;br /&gt;
 |move=The page may still be edited but cannot be moved until unprotected. Please discuss any suggested moves on the [[{{TALKPAGENAME}}|talk page]] or at [[Wikipedia:Requested moves]].  You can also [[Wikipedia:Requests for page protection|request]] that the page be unprotected.  &lt;br /&gt;
 |template=Please discuss any changes on the [[{{TALKPAGENAME}}#{{#if:{{{section|}}}|{{{section}}}|top}}|talk page]]; you may {{Submit an edit request/link|type=template|display=submit a request}} to ask an [[Wikipedia:Administrators|administrator]] or [[Wikipedia:Template editor|template editor]] to make an edit if it is [[Help:Minor edit#When to mark an edit as a minor edit|uncontroversial]] or supported by [[Wikipedia:Consensus|consensus]]. {{#ifeq:{{NAMESPACE}}|{{ns:8}}&amp;lt;!--MediaWiki--&amp;gt;||You may also [[Wikipedia:Requests for page protection|request]] that this page be unprotected.}}&lt;br /&gt;
 |office=If you can edit this page, please discuss all changes and additions on the [[{{TALKPAGENAME}}|talk page]] first. &#039;&#039;&#039;Do not remove protection from this page unless you are authorized by the Wikimedia Foundation to do so.&#039;&#039;&#039;&lt;br /&gt;
 |create=Please see the {{#if:{{{xfd|}}}|&#039;&#039;&#039;[[{{{xfd}}}|deletion discussion]]&#039;&#039;&#039; or the}} [{{fullurl:Special:Log|type=delete&amp;amp;page={{FULLPAGENAMEE}}}} deletion log] for details of why this page was deleted. If you would like to create a page at this title, you must first [[Wikipedia:Requests for page protection|request]] for it to be unprotected, or contact the administrator who deleted the page for the deleted material to be restored. If unsuccessful, you can use [[Wikipedia:Deletion review|deletion review]].&lt;br /&gt;
}}}}}&lt;br /&gt;
}}&lt;br /&gt;
}}|&amp;lt;includeonly&amp;gt;[[Category:Wikipedia pages with incorrect protection templates]]&amp;lt;/includeonly&amp;gt;}}&amp;lt;!--End if small--&amp;gt;&amp;lt;includeonly&amp;gt;{{#ifeq:{{lc:{{{categories|no}}}}}|no||{{{categories|}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;!-- Add categories and interwikis to the /doc subpage, not here! --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Documentation/end_box2&amp;diff=9448</id>
		<title>Template:Documentation/end box2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Documentation/end_box2&amp;diff=9448"/>
		<updated>2014-01-29T22:02:13Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;&amp;lt;noinclude&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/noinclude&amp;gt;&amp;lt;div style=&amp;quot;clear: both;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;!--So right or left floating items don&amp;#039;t stick out of the doc box.--&amp;gt; &amp;lt;/div&amp;gt;&amp;lt;!--End of green doc box--&amp;gt;&amp;lt;!--   Link...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/noinclude&amp;gt;&amp;lt;div style=&amp;quot;clear: both;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;!--So right or left floating items don&#039;t stick out of the doc box.--&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;!--End of green doc box--&amp;gt;&amp;lt;!--&lt;br /&gt;
  Link box below for the doc meta-data:&lt;br /&gt;
--&amp;gt;{{documentation/end box&lt;br /&gt;
| preload = {{{preload|}}}   &amp;lt;!--Allow custom preloads--&amp;gt;&lt;br /&gt;
| content = {{{content|}}}&lt;br /&gt;
| link box = {{{link box|}}}   &amp;lt;!--So &amp;quot;link box=off&amp;quot; works--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| docpage = &lt;br /&gt;
  {{#if: {{{1|}}}&lt;br /&gt;
  | {{{1|}}}&lt;br /&gt;
  | {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/doc&lt;br /&gt;
  }}&lt;br /&gt;
| doc exist = &lt;br /&gt;
  {{#ifexist: &lt;br /&gt;
    {{#if: {{{1|}}}&lt;br /&gt;
    | {{{1|}}}   &amp;lt;!--Other docname fed--&amp;gt;&lt;br /&gt;
    | {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/doc&lt;br /&gt;
    }}&lt;br /&gt;
  | yes&lt;br /&gt;
  }}&lt;br /&gt;
| docname fed =&lt;br /&gt;
  {{#if: {{{1|}}}&lt;br /&gt;
  | yes&lt;br /&gt;
  }}&lt;br /&gt;
&lt;br /&gt;
| sandbox = &lt;br /&gt;
  {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/sandbox&lt;br /&gt;
| testcases = &lt;br /&gt;
  {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/testcases&lt;br /&gt;
&lt;br /&gt;
| template page = &lt;br /&gt;
  {{NAMESPACE}}:{{{template page|{{PAGENAME}}}}}&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{pp-template}}&lt;br /&gt;
&amp;lt;!-- Add categories and interwikis to the /doc subpage, not here! --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Pp-template&amp;diff=9447</id>
		<title>Template:Pp-template</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Pp-template&amp;diff=9447"/>
		<updated>2014-01-29T22:01:47Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;&amp;lt;includeonly&amp;gt;{{pp-meta |type={{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}    |semi    |autoconfir...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{pp-meta&lt;br /&gt;
|type={{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}&lt;br /&gt;
   |semi&lt;br /&gt;
   |autoconfirmed=semi&lt;br /&gt;
   |administrator&lt;br /&gt;
   |full&lt;br /&gt;
   |sysop=indef&lt;br /&gt;
   |move=move&lt;br /&gt;
   |templateeditor=template&lt;br /&gt;
   |#default=template&amp;lt;!--fallback value--&amp;gt;}}&lt;br /&gt;
|small={{{small|yes}}}&lt;br /&gt;
|right={{{right|}}}&lt;br /&gt;
|demospace={{{demospace|}}}&lt;br /&gt;
|demolevel={{#ifeq:{{PAGENAME}}/{{NAMESPACE}}|{{SUBPAGENAME}}/{{ns:Template}}|{{{demolevel|undefined}}}|{{#ifeq:{{lc:{{SUBPAGENAME}}}}|sandbox|sysop|{{{demolevel|undefined}}}}}}}&lt;br /&gt;
|expiry=&amp;lt;!--not applicable--&amp;gt;&lt;br /&gt;
|dispute=no&lt;br /&gt;
|icon-text=This {{#ifeq:{{NAMESPACE}}|{{ns:6}}|image, included in a high-risk template or message,|high-risk {{pp-meta/pagetype}} }} is permanently {{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}&lt;br /&gt;
   |semi&lt;br /&gt;
   |autoconfirmed=semi-protected from editing&lt;br /&gt;
   |move=move-protected&lt;br /&gt;
   |administrator&lt;br /&gt;
   |full&lt;br /&gt;
   |sysop&lt;br /&gt;
   |templateeditor&lt;br /&gt;
   |#default=&amp;lt;!--fallback value--&amp;gt; protected from editing}} to prevent vandalism.&lt;br /&gt;
|reason-text=This {{#switch:{{NAMESPACE}}&lt;br /&gt;
  |{{ns:image}}=image, used in one or more [[Wikipedia:High-risk templates|high-risk templates]]{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}&lt;br /&gt;
   |semi&lt;br /&gt;
   |autoconfirmed=&lt;br /&gt;
   |administrator&lt;br /&gt;
   |full&lt;br /&gt;
   |sysop=&amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;and/or [[Special:Allmessages|system messages]],&lt;br /&gt;
   |templateeditor=&amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;and/or [[Special:Allmessages|system messages]],&lt;br /&gt;
   |#default=&amp;lt;!--fallback value--&amp;gt;}}&lt;br /&gt;
  |#default=[[Wikipedia:High-risk templates|high-risk {{pp-meta/pagetype}}]]&lt;br /&gt;
}} has been [[Wikipedia:This page is protected|{{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}&lt;br /&gt;
   |semi&lt;br /&gt;
   |autoconfirmed=semi-&lt;br /&gt;
   |move=move-&lt;br /&gt;
   |administrator&lt;br /&gt;
   |full&lt;br /&gt;
   |sysop&lt;br /&gt;
   |templateeditor&amp;lt;!--uses default--&amp;gt;&lt;br /&gt;
   |#default=&amp;lt;!--fallback value--&amp;gt;permanently&amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;}}protected]]{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop||&amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;from editing}} to prevent [[Wikipedia:Vandalism|vandalism]]. {{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}&lt;br /&gt;
   |semi&lt;br /&gt;
   |autoconfirmed=&lt;br /&gt;
   |administrator&lt;br /&gt;
   |full&lt;br /&gt;
   |sysop&lt;br /&gt;
   |templateeditor&amp;lt;!--uses default--&amp;gt;&lt;br /&gt;
   |#default={{#switch:{{NAMESPACE}}|{{ns:image}}=&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;&#039;&#039;&#039;Do not move this image&#039;&#039;&#039; to [[commons:|Wikimedia Commons]].&amp;lt;/small&amp;gt;}}}}&lt;br /&gt;
|categories={{{categories|{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}&lt;br /&gt;
   |semi&lt;br /&gt;
   |autoconfirmed=[[Category:Wikipedia semi-protected templates|{{PAGENAME}}]]{{#ifeq:{{PROTECTIONLEVEL:move}}|sysop|[[Category:Wikipedia move-protected templates|{{PAGENAME}}]]}}&lt;br /&gt;
   |move=[[Category:Wikipedia move-protected templates|{{PAGENAME}}]]&lt;br /&gt;
   |administrator&lt;br /&gt;
   |full&lt;br /&gt;
   |sysop&lt;br /&gt;
   |templateeditor&amp;lt;!--uses default--&amp;gt;&lt;br /&gt;
   |#default=[[Category:Wikipedia protected templates|{{PAGENAME}}]]&amp;lt;!--fallback value--&amp;gt;}}}}{{#ifeq:{{NAMESPACE}}|{{ns:6}}|[[Category:{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}&lt;br /&gt;
   |semi&lt;br /&gt;
   |autoconfirmed=Semi-protected&lt;br /&gt;
   |administrator&lt;br /&gt;
   |full&lt;br /&gt;
   |sysop&lt;br /&gt;
   |templateeditor&amp;lt;!--uses default--&amp;gt;&lt;br /&gt;
   |#default=Protected&amp;lt;!--fallback value--&amp;gt;}} images|{{PAGENAME}}]]}}}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{pp-template|categories=no}}  &amp;lt;!-- Show the small version --&amp;gt;&lt;br /&gt;
{{pp-template|small=no}}      &amp;lt;!-- Show the large version --&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;!-- Add categories and interwikis to the /doc subpage, not here! --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Documentation/start_box&amp;diff=9446</id>
		<title>Template:Documentation/start box</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Documentation/start_box&amp;diff=9446"/>
		<updated>2014-01-29T22:01:19Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;&amp;lt;!--   Start of green doc box --&amp;gt;&amp;lt;div id=&amp;quot;template-documentation&amp;quot; class=&amp;quot;template-documentation iezoomfix&amp;quot;&amp;gt;&amp;lt;!--   Add the heading at the top of the doc box: --&amp;gt;{{#ifeq: {{{hea...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--&lt;br /&gt;
  Start of green doc box&lt;br /&gt;
--&amp;gt;&amp;lt;div id=&amp;quot;template-documentation&amp;quot; class=&amp;quot;template-documentation iezoomfix&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
  Add the heading at the top of the doc box:&lt;br /&gt;
--&amp;gt;{{#ifeq: {{{heading|¬}}} | &amp;lt;!--Defined but empty--&amp;gt;&lt;br /&gt;
| &amp;lt;!--&amp;quot;heading=&amp;quot;, do nothing--&amp;gt;&lt;br /&gt;
| &amp;lt;div style=&amp;quot;padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;{{#if: {{{heading-style|}}}&lt;br /&gt;
  | {{{heading-style|}}}&lt;br /&gt;
  | {{#ifeq: {{SUBJECTSPACE}} | {{ns:Template}}&lt;br /&gt;
    | font-weight: bold; font-size: 125%&lt;br /&gt;
    | font-size: 150%&lt;br /&gt;
    }}&lt;br /&gt;
  }}&amp;quot;&amp;gt;{{#switch: {{{heading|¬}}}&lt;br /&gt;
  | ¬ =   &lt;br /&gt;
    &amp;lt;!--&amp;quot;heading&amp;quot; not defined in this or previous level--&amp;gt;&lt;br /&gt;
    {{#switch: {{SUBJECTSPACE}} &lt;br /&gt;
    | {{ns:Template}} = [[File:Template-info.png|50px|link=|alt=Documentation icon]] Template documentation&lt;br /&gt;
    | {{ns:Module}} = [[File:Template-info.png|50px|link=|alt=Documentation icon]] Module documentation&lt;br /&gt;
    | {{ns:File}} = Summary&lt;br /&gt;
    | #default = Documentation&lt;br /&gt;
    }}&lt;br /&gt;
  | #default = &lt;br /&gt;
    &amp;lt;!--&amp;quot;heading&amp;quot; has data or is empty but defined--&amp;gt;&lt;br /&gt;
    {{{heading|}}}&lt;br /&gt;
  }}&amp;lt;/span&amp;gt;{{&lt;br /&gt;
  #if: {{{content|}}}&lt;br /&gt;
  | &lt;br /&gt;
  | &amp;lt;!--Add the [view][edit][history][purge] or [create] links--&amp;gt;&lt;br /&gt;
    &amp;lt;span class=&amp;quot;mw-editsection plainlinks&amp;quot; id=&amp;quot;doc_editlinks&amp;quot;&amp;gt;{{&lt;br /&gt;
    #if: {{{doc exist|yes}}}&lt;br /&gt;
    | &amp;amp;#91;[[{{{docpage|{{FULLPAGENAME}}/doc}}}|view]]&amp;amp;#93; [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history]] [{{purge|purge}}] &lt;br /&gt;
    | &amp;lt;!--/doc doesn&#039;t exist--&amp;gt;&lt;br /&gt;
      [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&amp;amp;preload={{&lt;br /&gt;
        #if: {{{preload|}}} &lt;br /&gt;
        | {{urlencode:{{{preload}}}}}&lt;br /&gt;
        | {{#ifeq: {{SUBJECTSPACE}} | {{ns:File}}&lt;br /&gt;
          | Template:Documentation/preload-filespace&lt;br /&gt;
          | Template:Documentation/preload&lt;br /&gt;
          }} }} }} create]]&lt;br /&gt;
    }}&amp;lt;/span&amp;gt;&lt;br /&gt;
  }}&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&amp;lt;noinclude&amp;gt;&amp;lt;!-- close the div --&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{pp-template}}&lt;br /&gt;
&amp;lt;!-- Add categories and interwikis to the /doc subpage, not here! --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Documentation/start_box2&amp;diff=9445</id>
		<title>Template:Documentation/start box2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Documentation/start_box2&amp;diff=9445"/>
		<updated>2014-01-29T21:56:42Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;{{documentation/start box | preload = {{{preload|}}}   &amp;lt;!--Allow custom preloads--&amp;gt; | heading = {{{heading|¬}}}   &amp;lt;!--Empty but defined means no header--&amp;gt; | heading-style = {...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{documentation/start box&lt;br /&gt;
| preload = {{{preload|}}}   &amp;lt;!--Allow custom preloads--&amp;gt;&lt;br /&gt;
| heading = {{{heading|¬}}}   &amp;lt;!--Empty but defined means no header--&amp;gt;&lt;br /&gt;
| heading-style = {{{heading-style|}}}&lt;br /&gt;
| content = {{{content|}}}&lt;br /&gt;
&lt;br /&gt;
| docpage = &lt;br /&gt;
  {{#if: {{{1|}}}&lt;br /&gt;
  | {{{1|}}}&lt;br /&gt;
  | {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/doc&lt;br /&gt;
  }}&lt;br /&gt;
&lt;br /&gt;
| doc exist = &lt;br /&gt;
  {{#ifexist: &lt;br /&gt;
    {{#if: {{{1|}}}&lt;br /&gt;
    | {{{1|}}}   &amp;lt;!--Other docname fed--&amp;gt;&lt;br /&gt;
    | {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/doc&lt;br /&gt;
    }}&lt;br /&gt;
  | yes&lt;br /&gt;
  }}&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{pp-template}}&lt;br /&gt;
&amp;lt;!-- Add categories and interwikis to the /doc subpage, not here! --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Template_other&amp;diff=9444</id>
		<title>Template:Template other</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Template_other&amp;diff=9444"/>
		<updated>2014-01-29T21:56:17Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;{{#switch:   &amp;lt;!--If no or empty &amp;quot;demospace&amp;quot; parameter then detect namespace--&amp;gt;   {{#if:{{{demospace|}}}   | {{lc: {{{demospace}}} }}    &amp;lt;!--Use lower case &amp;quot;demospace&amp;quot;--&amp;gt;   | {...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#switch:&lt;br /&gt;
  &amp;lt;!--If no or empty &amp;quot;demospace&amp;quot; parameter then detect namespace--&amp;gt;&lt;br /&gt;
  {{#if:{{{demospace|}}}&lt;br /&gt;
  | {{lc: {{{demospace}}} }}    &amp;lt;!--Use lower case &amp;quot;demospace&amp;quot;--&amp;gt;&lt;br /&gt;
  | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}&lt;br /&gt;
    | template&lt;br /&gt;
    | other&lt;br /&gt;
    }}&lt;br /&gt;
  }}&lt;br /&gt;
| template = {{{1|}}}&lt;br /&gt;
| other&lt;br /&gt;
| #default = {{{2|}}}&lt;br /&gt;
}}&amp;lt;!--End switch--&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;!-- Add categories and interwikis to the /doc subpage, not here! --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Str_left&amp;diff=9443</id>
		<title>Template:Str left</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Str_left&amp;diff=9443"/>
		<updated>2014-01-29T21:52:06Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;&amp;lt;includeonly&amp;gt;{{ {{{|safesubst:}}}padleft:|{{{2|1}}}|{{{1}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt; {{documentation}} &amp;lt;/noinclude&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{ {{{|safesubst:}}}padleft:|{{{2|1}}}|{{{1}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Namespace_detect&amp;diff=9442</id>
		<title>Template:Namespace detect</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Namespace_detect&amp;diff=9442"/>
		<updated>2014-01-29T21:51:03Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;{{#invoke:Namespace detect|main}}&amp;lt;noinclude&amp;gt;  {{documentation}} &amp;lt;!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --&amp;gt; &amp;lt;/noinclude&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#invoke:Namespace detect|main}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Documentation&amp;diff=9441</id>
		<title>Template:Documentation</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Documentation&amp;diff=9441"/>
		<updated>2014-01-29T21:49:31Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;&amp;lt;!--   Automatically add {{template sandbox notice}} when on a /sandbox page. --&amp;gt;{{#ifeq: {{SUBPAGENAME}} | sandbox | &amp;lt;div style=&amp;quot;clear: both;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;{{template sandbox notice...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--&lt;br /&gt;
  Automatically add {{template sandbox notice}} when on a /sandbox page.&lt;br /&gt;
--&amp;gt;{{#ifeq: {{SUBPAGENAME}} | sandbox&lt;br /&gt;
| &amp;lt;div style=&amp;quot;clear: both;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;{{template sandbox notice|{{{livepage|}}}}}&lt;br /&gt;
}}&amp;lt;!--&lt;br /&gt;
  Automatically add {{pp-template}} to protected templates.&lt;br /&gt;
--&amp;gt;{{template other&lt;br /&gt;
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop&lt;br /&gt;
  | {{pp-template|docusage=yes}}&lt;br /&gt;
  | {{#if: {{PROTECTIONLEVEL:edit}}&lt;br /&gt;
    | {{pp-template|docusage=yes}}&lt;br /&gt;
    | &amp;lt;!--Not protected, or only semi-move-protected--&amp;gt;&lt;br /&gt;
    }}&lt;br /&gt;
  }}&lt;br /&gt;
}}&amp;lt;!--&lt;br /&gt;
  Start of green doc box.&lt;br /&gt;
--&amp;gt;{{documentation/start box2&lt;br /&gt;
| preload = {{{preload|}}}   &amp;lt;!--Allow custom preloads--&amp;gt;&lt;br /&gt;
| heading = {{{heading|¬}}}   &amp;lt;!--Empty but defined means no header--&amp;gt;&lt;br /&gt;
| heading-style = {{{heading-style|}}}&lt;br /&gt;
| content = {{{content|}}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Some namespaces must have the /doc, /sandbox and /testcases &lt;br /&gt;
    in talk space--&amp;gt;&lt;br /&gt;
| docspace = {{documentation/docspace}}&lt;br /&gt;
&lt;br /&gt;
| 1 = {{{1|}}}   &amp;lt;!--Other docname, if fed--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The namespace is added in /start box2--&amp;gt;&lt;br /&gt;
| template page = {{documentation/template page}}&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;!-- Start content --&amp;gt;&amp;lt;!--&lt;br /&gt;
  Start load the /doc content:&lt;br /&gt;
  Note: The line breaks between this comment and the next line are necessary&lt;br /&gt;
  so  &amp;quot;=== Headings ===&amp;quot; at the start and end of docs are interpreted.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
{{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{documentation/docspace}}:{{documentation/template page}}/doc|1|0}}&lt;br /&gt;
| 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 &lt;br /&gt;
| 1111 = {{{content|}}}&lt;br /&gt;
| 0110 | 0111 = {{ {{{1}}} }}&lt;br /&gt;
| 0001 | 0011 = {{ {{documentation/docspace}}:{{documentation/template page}}/doc }}&lt;br /&gt;
| 0000 | 0100 | 0010 | 0101 = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
  End load the /doc content:&lt;br /&gt;
  Note: The line breaks between this comment and the previous line are necessary&lt;br /&gt;
  so  &amp;quot;=== Headings ===&amp;quot; at the start and end of docs are interpreted.&lt;br /&gt;
--&amp;gt;{{documentation/end box2&lt;br /&gt;
| preload = {{{preload|}}}   &amp;lt;!--Allow custom preloads--&amp;gt;&lt;br /&gt;
| content = {{{content|}}}&lt;br /&gt;
| link box = {{{link box|}}}   &amp;lt;!--So &amp;quot;link box=off&amp;quot; works--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Some namespaces must have the /doc, /sandbox and /testcases &lt;br /&gt;
    in talk space--&amp;gt;&lt;br /&gt;
| docspace = {{documentation/docspace}}&lt;br /&gt;
&lt;br /&gt;
| 1 = {{{1|}}}   &amp;lt;!--Other docname, if fed--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The namespace is added in /end box2--&amp;gt;&lt;br /&gt;
| template page = {{documentation/template page}}&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;!--&lt;br /&gt;
  End of green doc box&lt;br /&gt;
--&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add categories and interwikis to the /doc subpage, not here! --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:Hatnote&amp;diff=9440</id>
		<title>Template:Hatnote</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:Hatnote&amp;diff=9440"/>
		<updated>2014-01-29T21:48:56Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;&amp;lt;div class=&amp;quot;dablink&amp;quot;&amp;gt;{{{1}}}&amp;lt;/div&amp;gt;&amp;lt;noinclude&amp;gt; {{documentation}} &amp;lt;/noinclude&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;dablink&amp;quot;&amp;gt;{{{1}}}&amp;lt;/div&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Template:About&amp;diff=9439</id>
		<title>Template:About</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Template:About&amp;diff=9439"/>
		<updated>2014-01-29T21:47:43Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;{{Hatnote|&amp;lt;!-- --&amp;gt;{{#if: {{{1|}}}|&amp;lt;!--   --&amp;gt;This {{namespace detect|main=article|category=category|other=page}} is about {{{1}}}.&amp;amp;#32;&amp;amp;#32;}}&amp;lt;!-- --&amp;gt;For {{#if:{{{2|}}}|{{{2}}}...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Hatnote|&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if: {{{1|}}}|&amp;lt;!--&lt;br /&gt;
  --&amp;gt;This {{namespace detect|main=article|category=category|other=page}} is about {{{1}}}.&amp;amp;#32;&amp;amp;#32;}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;For {{#if:{{{2|}}}|{{{2}}}|other uses}}, see {{#if:{{{3|}}}|[[{{{3}}}]]{{#ifeq:{{{4|}}}|and|&amp;amp;#32;and {{#if:{{{5|}}}|[[{{{5}}}]]|[[{{PAGENAME}} (disambiguation)]]}}}}|[[{{PAGENAME}} (disambiguation)]]}}.&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{2|}}}|{{#if:{{{4|}}}|&amp;lt;!--&lt;br /&gt;
  --&amp;gt;{{#ifeq:{{{4|}}}|and||&amp;lt;!-- &amp;quot;and&amp;quot; is a special word, don&#039;t output &amp;quot;For and, ...&amp;quot;&lt;br /&gt;
    --&amp;gt;&amp;amp;#32;&amp;amp;#32;For {{#ifeq:{{{4}}}|1|other uses|{{{4}}}}}, see {{#if:{{{5|}}}|[[{{{5}}}]]{{#ifeq:{{{6|}}}|and|&amp;amp;#32;and {{#if:{{{7|}}}|[[{{{7}}}]]|[[{{PAGENAME}} (disambiguation)]]}}}}|[[{{PAGENAME}} (disambiguation)]]}}.}}&amp;lt;!--&lt;br /&gt;
  --&amp;gt;{{#if:{{{6|}}}|&amp;lt;!--&lt;br /&gt;
    --&amp;gt;{{#ifeq:{{{6|}}}|and||&amp;lt;!--&lt;br /&gt;
      --&amp;gt;&amp;amp;#32;&amp;amp;#32;For {{#ifeq:{{{6}}}|1|other uses|{{{6}}}}}, see {{#if:{{{7|}}}|[[{{{7}}}]]{{#ifeq:{{{8|}}}|and|&amp;amp;#32;and {{#if:{{{9|}}}|[[{{{9}}}]]|[[{{PAGENAME}} (disambiguation)]]}}}}|[[{{PAGENAME}} (disambiguation)]]}}.}}&amp;lt;!--&lt;br /&gt;
    --&amp;gt;{{#if:{{{8|}}}|&amp;lt;!--&lt;br /&gt;
      --&amp;gt;{{#ifeq:{{{8|}}}|and||&amp;lt;!--&lt;br /&gt;
        --&amp;gt;&amp;amp;#32;&amp;amp;#32;For {{#ifeq:{{{8}}}|1|other uses|{{{8}}}}}, see {{#if:{{{9|}}}|[[{{{9}}}]]|[[{{PAGENAME}} (disambiguation)]]}}.}}&amp;lt;!--&lt;br /&gt;
    --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
  --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;}}}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{_nocat|}}}||{{#if:{{{1|}}}{{{2|}}}||{{#if:{{{3|}}}|[[Category:Hatnote templates using unusual parameters|A{{PAGENAME}}]]}}}}{{#ifeq:{{str left|{{{1}}}|3}}|is |[[Category:Hatnote templates using unusual parameters|B{{PAGENAME}}]]}}}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Talk:RAREMETAL&amp;diff=9046</id>
		<title>Talk:RAREMETAL</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Talk:RAREMETAL&amp;diff=9046"/>
		<updated>2013-11-26T17:27:55Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;Xiaowei: It&amp;#039;s necessary to include a wiki to explain software outputs, especially for people outside of CSG.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Xiaowei: It&#039;s necessary to include a wiki to explain software outputs, especially for people outside of CSG.&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=9045</id>
		<title>RAREMETAL</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=9045"/>
		<updated>2013-11-26T17:25:13Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Undo revision 9044 by Shuang Feng (talk)&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. Currently, RAREMETAL is being 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 [[Shuang_Feng|&#039;&#039;&#039;Shuang Feng&#039;&#039;&#039;]] via email: sfengsph 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;
* The [[Summary Statistics Files Specification for RAREMETAL and rvtests]]&lt;br /&gt;
&lt;br /&gt;
* The [[Rvtests | Rvtests documentation]]&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>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=9042</id>
		<title>RAREMETAL</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=9042"/>
		<updated>2013-11-26T17:12:22Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Undo revision 9041 by Shuang Feng (talk)&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. Currently, RAREMETAL is being 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 [[Shuang_Feng|&#039;&#039;&#039;Shuang Feng&#039;&#039;&#039;]] via email: sfengsph 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;
* The [[Summary Statistics Files Specification for RAREMETAL and rvtests]]&lt;br /&gt;
&lt;br /&gt;
* The [[Rvtests | Rvtests documentation]]&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>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=9040</id>
		<title>RAREMETAL</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=9040"/>
		<updated>2013-11-26T16:35:19Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: &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. Currently, RAREMETAL is being 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 [[Shuang_Feng|&#039;&#039;&#039;Shuang Feng&#039;&#039;&#039;]] via email: sfengsph 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;
* The [[Summary Statistics Files Specification for RAREMETAL and rvtests]]&lt;br /&gt;
&lt;br /&gt;
* The [[Rvtests | Rvtests documentation]]&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>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Summary_Files_Specification_for_RAREMETAL&amp;diff=9039</id>
		<title>Summary Files Specification for RAREMETAL</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Summary_Files_Specification_for_RAREMETAL&amp;diff=9039"/>
		<updated>2013-11-26T16:33:49Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Zhanxw moved page Summary Files Specification for RAREMETAL to Summary Statistics Files Specification for RAREMETAL and rvtests&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Summary Statistics Files Specification for RAREMETAL and rvtests]]&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Summary_Statistics_Files_Specification_for_RAREMETAL_and_rvtests&amp;diff=9038</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=9038"/>
		<updated>2013-11-26T16:33:48Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Zhanxw moved page Summary Files Specification for RAREMETAL to Summary Statistics Files Specification for RAREMETAL and rvtests&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Software]]&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.0.7&lt;br /&gt;
  ##Samples=2778&lt;br /&gt;
  ##AnalyzedSamples=2778&lt;br /&gt;
  ##Families=2778&lt;br /&gt;
  ##AnalyzedFamilies=2778&lt;br /&gt;
  ##Founders=2778&lt;br /&gt;
  ##AnalyzedFounders=2778&lt;br /&gt;
  ##Covariates=sex,age,age2,pc1,pc2&lt;br /&gt;
  ##CovariateSummaries    min     25th    median  75th    max     mean    variance&lt;br /&gt;
  ##sex   1       1       1       2       2       1.33873 0.224074&lt;br /&gt;
  ##age   21      54      65      73      91      63.0734 157.295&lt;br /&gt;
  ##age2  441     2916    4225    5329    8281    4135.5  2.33363e+06&lt;br /&gt;
  ##pc1   -0.1834 -0.0039 0.0016  0.0068  0.026   0.000368719     0.000147096&lt;br /&gt;
  ##pc2   -0.0942 -0.007  -0.001  0.0053  0.0912  -0.000418035    0.000150827&lt;br /&gt;
  ##InverseNormal=ON&lt;br /&gt;
  ##TraitSummaries        min     25th    median  75th    max     mean    variance&lt;br /&gt;
  ##HDL   -3.5797 -0.6737 -0.0052 0.6694  3.5797  0.000389273     0.997184&lt;br /&gt;
  ##AnalyzedTrait -3.56781        -0.67449        -0.000451157    0.673357        3.56781 3.01766e-11     0.999888&lt;br /&gt;
  ##Heritability=0%&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&lt;br /&gt;
  1       564766  T       C       2778    0.220122        0.220122        1223    1       0       2166    1       611     -51.7512        43.6541 -0.0271435      0.235827&lt;br /&gt;
  1       564862  T       C       2778    0       0       5556    1       1       0       0       2778    0       0       nan     nan&lt;br /&gt;
  1       565111  T       C       2778    0.0170986       0.0170986       95      1       4.19613e-102    2730    1       47      24.0897 13.6258 0.129688        0.0770708&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;
&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>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=9027</id>
		<title>RAREMETAL</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=9027"/>
		<updated>2013-11-26T01:43:10Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Undo revision 9010 by Shuang Feng (talk)&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. Currently, RAREMETAL is being 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 [[Shuang_Feng|&#039;&#039;&#039;Shuang Feng&#039;&#039;&#039;]] via email: sfengsph 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 [[Summary Files Specification for RAREMETAL]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | RAREMETALWORKER documentation]]&lt;br /&gt;
&lt;br /&gt;
* The [[Rvtests | Rvtests documentation]]&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;
[[Rvtests]] is a software tool for rare-variant association analysis can also generate output compatible with 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 genomewide scans.&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Summary_Statistics_Files_Specification_for_RAREMETAL_and_rvtests&amp;diff=9005</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=9005"/>
		<updated>2013-11-24T05:25:16Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Software]]&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.0.7&lt;br /&gt;
  ##Samples=2778&lt;br /&gt;
  ##AnalyzedSamples=2778&lt;br /&gt;
  ##Families=2778&lt;br /&gt;
  ##AnalyzedFamilies=2778&lt;br /&gt;
  ##Founders=2778&lt;br /&gt;
  ##AnalyzedFounders=2778&lt;br /&gt;
  ##Covariates=sex,age,age2,pc1,pc2&lt;br /&gt;
  ##CovariateSummaries    min     25th    median  75th    max     mean    variance&lt;br /&gt;
  ##sex   1       1       1       2       2       1.33873 0.224074&lt;br /&gt;
  ##age   21      54      65      73      91      63.0734 157.295&lt;br /&gt;
  ##age2  441     2916    4225    5329    8281    4135.5  2.33363e+06&lt;br /&gt;
  ##pc1   -0.1834 -0.0039 0.0016  0.0068  0.026   0.000368719     0.000147096&lt;br /&gt;
  ##pc2   -0.0942 -0.007  -0.001  0.0053  0.0912  -0.000418035    0.000150827&lt;br /&gt;
  ##InverseNormal=ON&lt;br /&gt;
  ##TraitSummaries        min     25th    median  75th    max     mean    variance&lt;br /&gt;
  ##HDL   -3.5797 -0.6737 -0.0052 0.6694  3.5797  0.000389273     0.997184&lt;br /&gt;
  ##AnalyzedTrait -3.56781        -0.67449        -0.000451157    0.673357        3.56781 3.01766e-11     0.999888&lt;br /&gt;
  ##Heritability=0%&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&lt;br /&gt;
  1       564766  T       C       2778    0.220122        0.220122        1223    1       0       2166    1       611     -51.7512        43.6541 -0.0271435      0.235827&lt;br /&gt;
  1       564862  T       C       2778    0       0       5556    1       1       0       0       2778    0       0       nan     nan&lt;br /&gt;
  1       565111  T       C       2778    0.0170986       0.0170986       95      1       4.19613e-102    2730    1       47      24.0897 13.6258 0.129688        0.0770708&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;
&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>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Summary_Statistics_Files_Specification_for_RAREMETAL_and_rvtests&amp;diff=9004</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=9004"/>
		<updated>2013-11-24T05:24:27Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Software]]&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  ===&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.0.7&lt;br /&gt;
  ##Samples=2778&lt;br /&gt;
  ##AnalyzedSamples=2778&lt;br /&gt;
  ##Families=2778&lt;br /&gt;
  ##AnalyzedFamilies=2778&lt;br /&gt;
  ##Founders=2778&lt;br /&gt;
  ##AnalyzedFounders=2778&lt;br /&gt;
  ##Covariates=sex,age,age2,pc1,pc2&lt;br /&gt;
  ##CovariateSummaries    min     25th    median  75th    max     mean    variance&lt;br /&gt;
  ##sex   1       1       1       2       2       1.33873 0.224074&lt;br /&gt;
  ##age   21      54      65      73      91      63.0734 157.295&lt;br /&gt;
  ##age2  441     2916    4225    5329    8281    4135.5  2.33363e+06&lt;br /&gt;
  ##pc1   -0.1834 -0.0039 0.0016  0.0068  0.026   0.000368719     0.000147096&lt;br /&gt;
  ##pc2   -0.0942 -0.007  -0.001  0.0053  0.0912  -0.000418035    0.000150827&lt;br /&gt;
  ##InverseNormal=ON&lt;br /&gt;
  ##TraitSummaries        min     25th    median  75th    max     mean    variance&lt;br /&gt;
  ##HDL   -3.5797 -0.6737 -0.0052 0.6694  3.5797  0.000389273     0.997184&lt;br /&gt;
  ##AnalyzedTrait -3.56781        -0.67449        -0.000451157    0.673357        3.56781 3.01766e-11     0.999888&lt;br /&gt;
  ##Heritability=0%&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&lt;br /&gt;
  1       564766  T       C       2778    0.220122        0.220122        1223    1       0       2166    1       611     -51.7512        43.6541 -0.0271435      0.235827&lt;br /&gt;
  1       564862  T       C       2778    0       0       5556    1       1       0       0       2778    0       0       nan     nan&lt;br /&gt;
  1       565111  T       C       2778    0.0170986       0.0170986       95      1       4.19613e-102    2730    1       47      24.0897 13.6258 0.129688        0.0770708&lt;br /&gt;
&lt;br /&gt;
=== Rvtests  ===&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;
&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  ===&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  ===&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>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Summary_Statistics_Files_Specification_for_RAREMETAL_and_rvtests&amp;diff=9003</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=9003"/>
		<updated>2013-11-24T05:17:55Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: Created page with &amp;quot;Category:Software  RAREMETAL use summary statistics files to perform meta-analysis. These includes (1) score statistics file and (2) covariance file. Both RAREMETALWORKE...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Software]]&lt;br /&gt;
&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 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.0.7&lt;br /&gt;
  ##Samples=2778&lt;br /&gt;
  ##AnalyzedSamples=2778&lt;br /&gt;
  ##Families=2778&lt;br /&gt;
  ##AnalyzedFamilies=2778&lt;br /&gt;
  ##Founders=2778&lt;br /&gt;
  ##AnalyzedFounders=2778&lt;br /&gt;
  ##Covariates=sex,age,age2,pc1,pc2&lt;br /&gt;
  ##CovariateSummaries    min     25th    median  75th    max     mean    variance&lt;br /&gt;
  ##sex   1       1       1       2       2       1.33873 0.224074&lt;br /&gt;
  ##age   21      54      65      73      91      63.0734 157.295&lt;br /&gt;
  ##age2  441     2916    4225    5329    8281    4135.5  2.33363e+06&lt;br /&gt;
  ##pc1   -0.1834 -0.0039 0.0016  0.0068  0.026   0.000368719     0.000147096&lt;br /&gt;
  ##pc2   -0.0942 -0.007  -0.001  0.0053  0.0912  -0.000418035    0.000150827&lt;br /&gt;
  ##InverseNormal=ON&lt;br /&gt;
  ##TraitSummaries        min     25th    median  75th    max     mean    variance&lt;br /&gt;
  ##HDL   -3.5797 -0.6737 -0.0052 0.6694  3.5797  0.000389273     0.997184&lt;br /&gt;
  ##AnalyzedTrait -3.56781        -0.67449        -0.000451157    0.673357        3.56781 3.01766e-11     0.999888&lt;br /&gt;
  ##Heritability=0%&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&lt;br /&gt;
  1       564766  T       C       2778    0.220122        0.220122        1223    1       0       2166    1       611     -51.7512        43.6541 -0.0271435      0.235827&lt;br /&gt;
  1       564862  T       C       2778    0       0       5556    1       1       0       0       2778    0       0       nan     nan&lt;br /&gt;
  1       565111  T       C       2778    0.0170986       0.0170986       95      1       4.19613e-102    2730    1       47      24.0897 13.6258 0.129688        0.0770708&lt;br /&gt;
&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;
&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 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 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>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=9002</id>
		<title>RAREMETAL</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=9002"/>
		<updated>2013-11-24T04:38:23Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: /* Useful Wiki Pages */&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. Currently, RAREMETAL is being 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 [[Shuang_Feng|&#039;&#039;&#039;Shuang Feng&#039;&#039;&#039;]] via email: sfengsph 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 [[Summary Files Specification for RAREMETAL]]&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETALWORKER | RAREMETALWORKER documentation]]&lt;br /&gt;
&lt;br /&gt;
* The [[Rvtests | Rvtests documentation]]&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;
[[Rvtests]] is a software tool for rare-variant association analysis can also generate output compatible with 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 genomewide scans.&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=9001</id>
		<title>RAREMETAL</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=RAREMETAL&amp;diff=9001"/>
		<updated>2013-11-24T04:34:13Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: /* Related Programs */&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. Currently, RAREMETAL is being 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 [[Shuang_Feng|&#039;&#039;&#039;Shuang Feng&#039;&#039;&#039;]] via email: sfengsph 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;
== 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;
[[Rvtests]] is a software tool for rare-variant association analysis can also generate output compatible with 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 genomewide scans.&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=CheckVCF.py&amp;diff=9000</id>
		<title>CheckVCF.py</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=CheckVCF.py&amp;diff=9000"/>
		<updated>2013-11-23T16:38:27Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: /* checkVCF.py */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= checkVCF.py =&lt;br /&gt;
&lt;br /&gt;
checkVCF.py is a small tool written in [http://www.python.org/ Python] to check input [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-41 VCF] files before association tests. It can report monomorphic sites, sites with reference alleles inconsistent with the reference genome, sites with invalid genotypes, non-SNP site (e.g. indels), and all sites with allele frequencies greater than &#039;&#039;0.5&#039;&#039;. After you passed the checking, you can go on to run [https://github.com/zhanxw/rvtests rvtests] - rare-variant test software.&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
&lt;br /&gt;
Download from [http://www.sph.umich.edu/csg/zhanxw/software/checkVCF/checkVCF-20131123.tar.gz this] and unzip the downloaded file. This includes [https://github.com/zhanxw/checkVCF/blob/master/checkVCF.py checkVCF.py] script, reference genome in FASTA format and its index file.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;python checkVCF.py -r hs37d5.fa -o test $your_VCF&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Outputs ==&lt;br /&gt;
&lt;br /&gt;
=== Console output and .log file ===&lt;br /&gt;
&lt;br /&gt;
Upon successfully running checkVCF.py on the example file, you will see following outputs:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;checkVCF.py -- check validity of VCF file for meta-analysis&lt;br /&gt;
version 1.3 (20130223)&lt;br /&gt;
contact zhanxw@umich.edu or dajiang@umich.edu for problems.&lt;br /&gt;
Python version is [ 2.7.3.final.0 ] &lt;br /&gt;
Begin checking vcfFile [ example.vcf.gz ]&lt;br /&gt;
---------------     REPORT     ---------------&lt;br /&gt;
Total [ 18 ] lines processed&lt;br /&gt;
Examine [ 7 ] VCF header lines, [ 11 ] variant sites, [ 6 ] samples&lt;br /&gt;
[ 0 ] duplicated sites&lt;br /&gt;
[ 0 ] NonSNP site are outputted to [ tmp.check.nonSnp ]&lt;br /&gt;
[ 10 ] Inconsistent reference sites are outputted to [ tmp.check.ref ]&lt;br /&gt;
[ 0 ] Variant sites with invalid genotypes are outputted to [ tmp.check.geno ]&lt;br /&gt;
[ 1 ] Alternative allele frequency &amp;amp;gt; 0.5 sites are outputted to [ tmp.check.af ]&lt;br /&gt;
[ 1 ] Monomorphic sites are outputted to [ tmp.check.mono ]&lt;br /&gt;
---------------     ACTION ITEM     ---------------&lt;br /&gt;
* Read tmp.check.ref, for autosomal sites, make sure the you are using the forward strand&lt;br /&gt;
* Upload these files to the ftp: tmp.check.log tmp.check.dup tmp.check.noSnp tmp.check.ref tmp.check.geno tmp.check.af tmp.check.mono&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== .check.nonSnp file ===&lt;br /&gt;
&lt;br /&gt;
This file includes all non-SNP sites. These sites can be detected when the length of the reference allele or alternative allele is larger than one. For example, reference allele is AT. Non-SNP sites also include reference alleles that are not composited of &#039;A&#039;, &#039;C&#039;, &#039;G&#039;, &#039;T&#039; alleles or alternative alleles that are not composited of &#039;A&#039;, &#039;T&#039;, &#039;G&#039;, &#039;C&#039;, &#039;.&#039; alleles.&lt;br /&gt;
&lt;br /&gt;
=== .check.ref file ===&lt;br /&gt;
&lt;br /&gt;
This file includes the variant sites that do not match reference alleles. That can happen when: (1) variant chromosome names do not appear in the reference genome file. You will see a line with &amp;amp;quot;FailedGetBase&amp;amp;quot; and chromosome:position from the input VCF file; (2) reference alleles do not match. You will see &amp;amp;quot;MismatchRefBase&amp;amp;quot; and chromosome:position:trueReferenceAllele-referenceAlleleInVCF:referenceAlleleInVCF. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;MismatchRefBase 19:50578409:G-C/T&lt;br /&gt;
FailedGetBase   23:208316&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== .check.geno file ===&lt;br /&gt;
&lt;br /&gt;
This file contains line numbers in which genotypes are not found or not formatted correctly. You will get either &amp;amp;quot;IndividualMissingGTField&amp;amp;quot; warning or &amp;amp;quot;IndividualHasInvalidGT&amp;amp;quot; warnings.&lt;br /&gt;
&lt;br /&gt;
=== .check.af file ===&lt;br /&gt;
&lt;br /&gt;
This file contains the sites where alternative allele frequencies are larger than 0.5 . It is normal that this file contains a number of lines. For human exome chip, you are likely to have ~10k lines in this file. That means out of total ~250k variants, around 10k SNP variants have allele frequencies larger than 0.5.&lt;br /&gt;
&lt;br /&gt;
=== .check.mono file ===&lt;br /&gt;
&lt;br /&gt;
This file contains the monomorphic sites. It is normal that this file contains a number of lines. In the ideal case, VCF files should only contain variant sites. However, it is practical or convenient to keep some monomorhipc sites in the VCF file. This file records these monomorphic sites.&lt;br /&gt;
&lt;br /&gt;
== Contact ==&lt;br /&gt;
&lt;br /&gt;
Questions or comments can be sent to [mailto:zhanxw@umich.edu Xiaowei Zhan] or [mailto:dajiang@umich.edu Dajiang Liu].&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=LASER&amp;diff=8978</id>
		<title>LASER</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=LASER&amp;diff=8978"/>
		<updated>2013-11-15T06:21:41Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: /* Estimate ancestries of sequence samples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction  =&lt;br /&gt;
&lt;br /&gt;
LASER, which stands for Locating Ancestry using SEquencing Reads, is a C++ software package that can estimate individual ancestry directly from genome-wide shortgun sequencing reads without calling genotypes. The method relies on the availability of a set of reference individuals whose genome-wide SNP genotypes and ancestral information are known. We first construct a reference coordinate system by applying principal components analysis (PCA) to the genotype data of the reference individuals. Then, for each sequencing sample, use the genome-wide sequencing reads to place the sample into the reference PCA space. With an appropriate reference panel, the estimated coordinates of the sequencing samples identify their ancestral background and can be directly used to correct for population structure in association studies or to ensure adequate matching of cases and controls. &lt;br /&gt;
&lt;br /&gt;
The goal of this wiki page is to help you get start using LASER, and we encourage you to read the [http://www.sph.umich.edu/csg/chaolong/LASER/LASER_Manual.pdf manual] for more details.&lt;br /&gt;
&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
To get a copy of the software and manual, go to the [http://www.sph.umich.edu/csg/chaolong/LASER/ LASER Download] page.&lt;br /&gt;
&lt;br /&gt;
= Workflow  =&lt;br /&gt;
&lt;br /&gt;
LASER generates the coordinates from both reference individuals and sequence samples. It requires essentially two input files: &lt;br /&gt;
&lt;br /&gt;
[[File:LASER-Workflow.png|thumb|center|alt=LASER workflow|400px|LASER Workflow]] &lt;br /&gt;
&lt;br /&gt;
*Seq file: a text file processed from BAM (alignment) files. (See [[#Process sequencing file (BAM)|Processing sequencing file]] for how to prepare seq file) &lt;br /&gt;
*Geno file: genotypes of reference individuals. (See [[#Geno file|Geno file]] to understand geno file format)&lt;br /&gt;
&lt;br /&gt;
LASER typically outputs two coord files: (1) in reference individuals&#039; coord file(Reference.coord), LASER outputs the reference coordinates in the PCA space; (2) in sequence samples&#039; coord files(AllSamples.coord), LASER infers their ancestries by placing their ancestry coordinates onto reference samples&#039; PCA space.&lt;br /&gt;
&lt;br /&gt;
An example result of the coord file of sequence samples is shown below:&lt;br /&gt;
&lt;br /&gt;
 popID  indivID  L1    Ci        t         PC1       PC2&lt;br /&gt;
 YRI    NA19238  1409  0.304122  0.98933   52.7634   -39.7924&lt;br /&gt;
 CEU    NA12892  1552  0.330037  0.989709  9.82674   25.2898&lt;br /&gt;
 CEU    NA12891  1609  0.362198  0.988082  0.439573  26.8872&lt;br /&gt;
 CEU    NA12878  1579  0.334825  0.988677  8.83775   28.1342&lt;br /&gt;
 YRI    NA19239  1558  0.34898   0.988302  53.9104   -39.1727&lt;br /&gt;
 YRI    NA19240  1735  0.404142  0.990264  59.8379   -45.2765&lt;br /&gt;
&lt;br /&gt;
In the header line, popID means &amp;quot;population ID&amp;quot;, indivID means &amp;quot;individual ID&amp;quot;, L1 means number of loci that has been covered by at least one read, Ci means &amp;quot;average coverage&amp;quot;, t means Procrustes similarity. PC1 and PC2 mean coordinates of the first and second principal components.&lt;br /&gt;
&lt;br /&gt;
= Tutorial  =&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we will show you how to prepare data and run LASER.&lt;br /&gt;
&lt;br /&gt;
== Process sequencing file (BAM)  ==&lt;br /&gt;
&lt;br /&gt;
We illustrate how to obtain .seq file from BAM files in this section. &lt;br /&gt;
In this example, we use HGDP data set as a reference, which contains 938 individuals and 632,958 markers.&lt;br /&gt;
[[File:LASER-DataProcessing.png|thumb|center|alt=LASER workflow|400px|LASER Data Processing Procedure]] &lt;br /&gt;
&lt;br /&gt;
1. Obtain pileup files from BAM files  &lt;br /&gt;
&lt;br /&gt;
The first step is to generate a BED file:&lt;br /&gt;
&lt;br /&gt;
 cat ../resource/HGDP/HGDP_938.site |awk &#039;{if (NR &amp;gt; 1) {print $1, $2-1, $2;}}&#039; &amp;gt; HGDP_938.bed&lt;br /&gt;
&lt;br /&gt;
This BED file contains the positions of all the reference markers.  &lt;br /&gt;
&lt;br /&gt;
Then we use &#039;&#039;samtools&#039;&#039; to extract the sequence bases overlapping these 632,958 reference markers.&lt;br /&gt;
Assuming your BAM file name is &#039;&#039;NA12878.chrom22.recal.bam&#039;&#039; (our example BAM file), you can use this:&lt;br /&gt;
&lt;br /&gt;
 samtools mpileup -q 30 -Q 20 -f ../../LASER-resource/reference/hs37d5.fa -l HGDP_938.bed exampleBAM/NA12878.chrom22.recal.bam &amp;gt; NA12878.chrom22.pileup&lt;br /&gt;
&lt;br /&gt;
to obtain a pileup file named &#039;&#039;NA12878.chrom22.pileup&#039;&#039;. It is required to keep the &#039;&#039;.pileup&#039; suffix.&lt;br /&gt;
&lt;br /&gt;
2. Obtain a seq file from pileup files. &lt;br /&gt;
&lt;br /&gt;
After obtaining pileup files from each BAM file, you can convert them into a single seq file before running LASER. &lt;br /&gt;
Use the same site file and all generated pileup files from step 1 to generate a seq file:&lt;br /&gt;
&lt;br /&gt;
 python pileup2seq.py  -m ../resource/HGDP/HGDP_938.site -o test NA12878.chrom22.pileup&lt;br /&gt;
&lt;br /&gt;
You should obtain test.seq file after this step.&lt;br /&gt;
&lt;br /&gt;
== Estimate ancestries of sequence samples  ==&lt;br /&gt;
&lt;br /&gt;
The easiest way to perform LASER using its exemplar data is: &lt;br /&gt;
&lt;br /&gt;
 ./laser -s pileup2seq/test.seq  -g resource/HGDP/HGDP_938.geno -c resource/HGDP/HGDP_938.RefPC.coord -o test -k 2&lt;br /&gt;
&lt;br /&gt;
Upon successful calculation,  you will find a result file &amp;quot;test.SeqPC.coord&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Interpret LASER outputs ==&lt;br /&gt;
&lt;br /&gt;
Upon successfully launching LASER command line as above, the output messages should be similar to below: &lt;br /&gt;
&lt;br /&gt;
    ===================================================================&lt;br /&gt;
    ====       LASER: Locating Ancestry from SEquencing Reads       ====&lt;br /&gt;
    ====            Version 1.0 | (c) Chaolong Wang 2013            ====&lt;br /&gt;
    ====================================================================&lt;br /&gt;
    Started at: Fri Nov 15 01:05:48 2013&lt;br /&gt;
&lt;br /&gt;
    938 individuals are detected in the GENO_FILE.&lt;br /&gt;
    632958 loci are detected in the GENO_FILE.&lt;br /&gt;
    1 individuals are detected in the SEQ_FILE.&lt;br /&gt;
    632958 loci are detected in the SEQ_FILE.&lt;br /&gt;
    938 individuals are detected in the COORD_FILE.&lt;br /&gt;
    100 PCs are detected in the COORD_FILE.&lt;br /&gt;
&lt;br /&gt;
    Parameter values used in execution:&lt;br /&gt;
    -------------------------------------------------&lt;br /&gt;
    GENO_FILE (-g)resource/HGDP/HGDP_938.geno&lt;br /&gt;
    SEQ_FILE (-s)pileup2seq/test.seq&lt;br /&gt;
    COORD_FILE (-c)resource/HGDP/HGDP_938.RefPC.coord&lt;br /&gt;
    OUT_PREFIX (-o)test&lt;br /&gt;
    DIM (-k)2&lt;br /&gt;
    MIN_LOCI (-l)100&lt;br /&gt;
    SEQ_ERR (-e)0.01&lt;br /&gt;
    FIRST_IND (-x)1&lt;br /&gt;
    LAST_IND (-y)1&lt;br /&gt;
    REPS (-r)1&lt;br /&gt;
    OUTPUT_REPS (-R)0&lt;br /&gt;
    CHECK_FORMAT (-fmt)10&lt;br /&gt;
    CHECK_COVERAGE (-cov)0&lt;br /&gt;
    PCA_MODE (-pca)0&lt;br /&gt;
    -------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
    Fri Nov 15 01:05:50 2013&lt;br /&gt;
    Checking data format ...&lt;br /&gt;
    GENO_FILE: OK.&lt;br /&gt;
    SEQ_FILE: OK.&lt;br /&gt;
    COORD_FILE: OK.&lt;br /&gt;
&lt;br /&gt;
    Fri Nov 15 01:06:01 2013&lt;br /&gt;
    Reading reference genotypes ...&lt;br /&gt;
&lt;br /&gt;
    Fri Nov 15 01:09:15 2013&lt;br /&gt;
    Reading reference PCA coordinates ...&lt;br /&gt;
&lt;br /&gt;
    Fri Nov 15 01:09:15 2013&lt;br /&gt;
    Analyzing sequence samples ...&lt;br /&gt;
    Results for the sequence samples are output to &#039;test.SeqPC.coord&#039;.&lt;br /&gt;
&lt;br /&gt;
    Finished at: Fri Nov 15 01:09:21 2013&lt;br /&gt;
    ====================================================================&lt;br /&gt;
&lt;br /&gt;
The ancestry of input samples are store in the file &#039;&#039;&#039;test.SeqPC.coord&#039;&#039;&#039;, which content is shown below:&lt;br /&gt;
&lt;br /&gt;
    popID	indivID	L1	Ci	t	PC1	PC2&lt;br /&gt;
    NA12878.chrom22	NA12878.chrom22	1601	0.00858193	0.977243	31.522	224.098&lt;br /&gt;
&lt;br /&gt;
The ancestry coordinates for NA12878 samples are given in PC1 (31.522) and PC2 (224.098).&lt;br /&gt;
&lt;br /&gt;
It is recommended to visualize this results with HGDP reference samples whose coordinates are given in file: resource/HGDP/HGDP_938.RefPC.coord&lt;br /&gt;
&lt;br /&gt;
In our manuscript, an example figure is shown: &lt;br /&gt;
&lt;br /&gt;
[[File:LASER paper Figure 2.png|thumb|center|alt=LASER example outputs as in Figure 2|400px|LASER Outputs]] &lt;br /&gt;
&lt;br /&gt;
In this figure, 238 individuals were randomly selected from the total 938 HGDP samples as the testing set (colored symbols), &lt;br /&gt;
and the remaining 700 HGDP individuals were used as the reference panel (gray symbols).&lt;br /&gt;
&lt;br /&gt;
= File format  =&lt;br /&gt;
&lt;br /&gt;
== Geno file  ==&lt;br /&gt;
&lt;br /&gt;
Geno file are from reference samples. LASER use genotype of these samples as a reference panel. You can obtain geno file from VCF files using [https://github.com/zhanxw/vcf2geno vcf2geno].&lt;br /&gt;
&lt;br /&gt;
In our resource folder, we provide an example geno file for the HGDP data set (resource/HGDP/HGDP_938.geno):&lt;br /&gt;
&lt;br /&gt;
 Brahui	HGDP00001	1	2	1	1	0	2	0	2	1	2	2	2	1	1	2	1	0&lt;br /&gt;
 Brahui	HGDP00003	0	0	2	0	0	2	0	2	0	2	2	2	2	0	2	2	0&lt;br /&gt;
 Brahui	HGDP00005	0	2	2	0	0	1	0	2	1	2	2	2	2	1	2	2	1&lt;br /&gt;
 Brahui	HGDP00007	0	2	2	0	0	2	0	2	0	2	2	2	1	1	2	2	1&lt;br /&gt;
 Brahui	HGDP00009	0	1	0	1	0	2	0	2	0	2	2	2	2	0	2	2	0&lt;br /&gt;
 Brahui	HGDP00011	1	1	2	1	1	2	1	1	1	2	2	2	1	1	2	2	0&lt;br /&gt;
 Brahui	HGDP00013	1	2	2	1	1	2	1	2	0	2	2	2	2	0	2	2	0&lt;br /&gt;
 Brahui	HGDP00015	1	1	2	0	0	2	0	2	0	2	2	2	2	0	2	2	0&lt;br /&gt;
 Brahui	HGDP00017	1	1	2	0	0	1	0	0	0	2	0	1	1	2	2	2	0&lt;br /&gt;
 Brahui	HGDP00019	0	2	2	0	0	1	0	1	0	2	1	2	2	1	2	2	0&lt;br /&gt;
&lt;br /&gt;
The first and second columns represent the population id and individual id. &lt;br /&gt;
From the third column, each number represents a genotype.&lt;br /&gt;
To be consistent with the sequence data, genotypes should be given on the &#039;&#039;&#039;forward strand&#039;&#039;&#039;. Genotypes are coded by 0, 1, or 2, representing copies of the&lt;br /&gt;
reference allele at a locus in one individual. &lt;br /&gt;
&lt;br /&gt;
In this geno file, we have 632,960 columns which contains 632,958 markers from column 3 to the last column.&lt;br /&gt;
&lt;br /&gt;
== Seq file  ==&lt;br /&gt;
Seq file is generated from pileup files. It contains sequencing information and organize it in a LASER readable format.&lt;br /&gt;
The first two columns represent population id and individual id.&lt;br /&gt;
Subsequent columns are total read depths and reference base counts.&lt;br /&gt;
For example, column 3 and 4 are 0, 0 in the following example. That means at first marker, the sequence read depth is 0 and thus none of the reads has reference base.&lt;br /&gt;
We enforce tab delimiters between markers and space delimiters between each read depths and reference base counts.&lt;br /&gt;
On line of seq file looks like below:&lt;br /&gt;
&lt;br /&gt;
 NA12878.chrom22	NA12878.chrom22	0 0	0 0	0 0	0 0	0 &lt;br /&gt;
&lt;br /&gt;
== Pileup file  ==&lt;br /&gt;
&lt;br /&gt;
Pileup file are generated using samtools. An example pileup file is shown below:&lt;br /&gt;
 &lt;br /&gt;
 22	17094749	A	1	c	D&lt;br /&gt;
 22	17202602	T	1	.	D&lt;br /&gt;
 22	17411899	A	1	.	C&lt;br /&gt;
 22	17450515	G	2	.,	9&amp;lt;&lt;br /&gt;
 22	17452966	T	1	c	5&lt;br /&gt;
 22	17470779	C	1	,	A&lt;br /&gt;
 22	17492203	G	1	,	B&lt;br /&gt;
 22	17504945	C	3	,..	BCA&lt;br /&gt;
 22	17529814	T	3	..,	CCC&lt;br /&gt;
&lt;br /&gt;
The columns are chromosome, position (1-based), reference base, depth, bases and base qualities.&lt;br /&gt;
&lt;br /&gt;
== BED file  ==&lt;br /&gt;
BED file represents genomic regions and it follows [http://genome.ucsc.edu/FAQ/FAQformat.html#format1 UCSC conventions]:&lt;br /&gt;
&lt;br /&gt;
 1 752565 752566&lt;br /&gt;
 1 768447 768448&lt;br /&gt;
 1 1005805 1005806&lt;br /&gt;
 1 1018703 1018704&lt;br /&gt;
 1 1021414 1021415&lt;br /&gt;
&lt;br /&gt;
The columns are: chromosome, start position (0-based) and end position (1-based).&lt;br /&gt;
&lt;br /&gt;
== Coord file  ==&lt;br /&gt;
Coord files represent the ancestries of both reference samples and sequence samples.&lt;br /&gt;
An example coord file looks like below:&lt;br /&gt;
&lt;br /&gt;
 popID  indivID  L1    Ci        t         PC1       PC2&lt;br /&gt;
 YRI    NA19238  1409  0.304122  0.98933   52.7634   -39.7924&lt;br /&gt;
 CEU    NA12892  1552  0.330037  0.989709  9.82674   25.2898&lt;br /&gt;
 CEU    NA12891  1609  0.362198  0.988082  0.439573  26.8872&lt;br /&gt;
 CEU    NA12878  1579  0.334825  0.988677  8.83775   28.1342&lt;br /&gt;
 YRI    NA19239  1558  0.34898   0.988302  53.9104   -39.1727&lt;br /&gt;
 YRI    NA19240  1735  0.404142  0.990264  59.8379   -45.2765&lt;br /&gt;
&lt;br /&gt;
The columns are: popID means &amp;quot;population ID&amp;quot;, indivID means &amp;quot;individual ID&amp;quot;, L1 means number of loci has been covered, Ci means &amp;quot;average coverage&amp;quot;, t means Procrustes similarity.&lt;br /&gt;
PC1, PC2 means coordinates of first and second principal components. You may notice L1, Ci, and t are omitted in the coord files of reference samples. The reason is that reference samples use genotypes and do not have coverage information.&lt;br /&gt;
&lt;br /&gt;
== Site file ==&lt;br /&gt;
Site file is equivalent to BED file and it is used here to represent marker positions. An example site file looks like below:&lt;br /&gt;
 CHR  POS      ID          REF  ALT&lt;br /&gt;
 1    752566   rs3094315   G    A&lt;br /&gt;
 1    768448   rs12562034  G    A&lt;br /&gt;
 1    1005806  rs3934834   C    T&lt;br /&gt;
 1    1018704  rs9442372   A    G&lt;br /&gt;
 1    1021415  rs3737728   A    G&lt;br /&gt;
&lt;br /&gt;
The site file has header line, and it contains chromosome, position(1-based), id (usually marker name), ref (reference allele) and alt (alternative allele).&lt;br /&gt;
&lt;br /&gt;
= Advanced options =&lt;br /&gt;
&lt;br /&gt;
LASER has advanced options including (1) parallel computing; (2) increase ancestry inference accuracy using repeated runs; (3) generate PCA coordiates using genotypes.&lt;br /&gt;
See [http://www.sph.umich.edu/csg/chaolong/LASER/LASER_Manual.pdf LASER Manual] for detailed information.&lt;br /&gt;
&lt;br /&gt;
= Contact  =&lt;br /&gt;
Comments on this wiki page or questions related to preparing input files for LASER can be sent to [mailto:zhanxw@umich.edu Xiaowei Zhan].&lt;br /&gt;
Comments on the LASER software or the user&#039;s manual can be sent to [mailto:chaolong@umich.edu Chaolong Wang].&lt;br /&gt;
This project was directed by Gonçalo Abecasis and Sebastian Zöllner at the University of Michigan.&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=File:LASER_paper_Figure_2.png&amp;diff=8977</id>
		<title>File:LASER paper Figure 2.png</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=File:LASER_paper_Figure_2.png&amp;diff=8977"/>
		<updated>2013-11-15T06:20:03Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=LASER&amp;diff=8976</id>
		<title>LASER</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=LASER&amp;diff=8976"/>
		<updated>2013-11-15T04:34:03Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: /* Geno file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction  =&lt;br /&gt;
&lt;br /&gt;
LASER, which stands for Locating Ancestry using SEquencing Reads, is a C++ software package that can estimate individual ancestry directly from genome-wide shortgun sequencing reads without calling genotypes. The method relies on the availability of a set of reference individuals whose genome-wide SNP genotypes and ancestral information are known. We first construct a reference coordinate system by applying principal components analysis (PCA) to the genotype data of the reference individuals. Then, for each sequencing sample, use the genome-wide sequencing reads to place the sample into the reference PCA space. With an appropriate reference panel, the estimated coordinates of the sequencing samples identify their ancestral background and can be directly used to correct for population structure in association studies or to ensure adequate matching of cases and controls. &lt;br /&gt;
&lt;br /&gt;
The goal of this wiki page is to help you get start using LASER, and we encourage you to read the [http://www.sph.umich.edu/csg/chaolong/LASER/LASER_Manual.pdf manual] for more details.&lt;br /&gt;
&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
To get a copy of the software and manual, go to the [http://www.sph.umich.edu/csg/chaolong/LASER/ LASER Download] page.&lt;br /&gt;
&lt;br /&gt;
= Workflow  =&lt;br /&gt;
&lt;br /&gt;
LASER generates the coordinates from both reference individuals and sequence samples. It requires essentially two input files: &lt;br /&gt;
&lt;br /&gt;
[[File:LASER-Workflow.png|thumb|center|alt=LASER workflow|400px|LASER Workflow]] &lt;br /&gt;
&lt;br /&gt;
*Seq file: a text file processed from BAM (alignment) files. (See [[#Process sequencing file (BAM)|Processing sequencing file]] for how to prepare seq file) &lt;br /&gt;
*Geno file: genotypes of reference individuals. (See [[#Geno file|Geno file]] to understand geno file format)&lt;br /&gt;
&lt;br /&gt;
LASER typically outputs two coord files: (1) in reference individuals&#039; coord file(Reference.coord), LASER outputs the reference coordinates in the PCA space; (2) in sequence samples&#039; coord files(AllSamples.coord), LASER infers their ancestries by placing their ancestry coordinates onto reference samples&#039; PCA space.&lt;br /&gt;
&lt;br /&gt;
An example result of the coord file of sequence samples is shown below:&lt;br /&gt;
&lt;br /&gt;
 popID  indivID  L1    Ci        t         PC1       PC2&lt;br /&gt;
 YRI    NA19238  1409  0.304122  0.98933   52.7634   -39.7924&lt;br /&gt;
 CEU    NA12892  1552  0.330037  0.989709  9.82674   25.2898&lt;br /&gt;
 CEU    NA12891  1609  0.362198  0.988082  0.439573  26.8872&lt;br /&gt;
 CEU    NA12878  1579  0.334825  0.988677  8.83775   28.1342&lt;br /&gt;
 YRI    NA19239  1558  0.34898   0.988302  53.9104   -39.1727&lt;br /&gt;
 YRI    NA19240  1735  0.404142  0.990264  59.8379   -45.2765&lt;br /&gt;
&lt;br /&gt;
In the header line, popID means &amp;quot;population ID&amp;quot;, indivID means &amp;quot;individual ID&amp;quot;, L1 means number of loci that has been covered by at least one read, Ci means &amp;quot;average coverage&amp;quot;, t means Procrustes similarity. PC1 and PC2 mean coordinates of the first and second principal components.&lt;br /&gt;
&lt;br /&gt;
= Tutorial  =&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we will show you how to prepare data and run LASER.&lt;br /&gt;
&lt;br /&gt;
== Process sequencing file (BAM)  ==&lt;br /&gt;
&lt;br /&gt;
We illustrate how to obtain .seq file from BAM files in this section. &lt;br /&gt;
In this example, we use HGDP data set as a reference, which contains 938 individuals and 632,958 markers.&lt;br /&gt;
[[File:LASER-DataProcessing.png|thumb|center|alt=LASER workflow|400px|LASER Data Processing Procedure]] &lt;br /&gt;
&lt;br /&gt;
1. Obtain pileup files from BAM files  &lt;br /&gt;
&lt;br /&gt;
The first step is to generate a BED file:&lt;br /&gt;
&lt;br /&gt;
 cat ../resource/HGDP/HGDP_938.site |awk &#039;{if (NR &amp;gt; 1) {print $1, $2-1, $2;}}&#039; &amp;gt; HGDP_938.bed&lt;br /&gt;
&lt;br /&gt;
This BED file contains the positions of all the reference markers.  &lt;br /&gt;
&lt;br /&gt;
Then we use &#039;&#039;samtools&#039;&#039; to extract the sequence bases overlapping these 632,958 reference markers.&lt;br /&gt;
Assuming your BAM file name is &#039;&#039;NA12878.chrom22.recal.bam&#039;&#039; (our example BAM file), you can use this:&lt;br /&gt;
&lt;br /&gt;
 samtools mpileup -q 30 -Q 20 -f ../../LASER-resource/reference/hs37d5.fa -l HGDP_938.bed exampleBAM/NA12878.chrom22.recal.bam &amp;gt; NA12878.chrom22.pileup&lt;br /&gt;
&lt;br /&gt;
to obtain a pileup file named &#039;&#039;NA12878.chrom22.pileup&#039;&#039;. It is required to keep the &#039;&#039;.pileup&#039; suffix.&lt;br /&gt;
&lt;br /&gt;
2. Obtain a seq file from pileup files. &lt;br /&gt;
&lt;br /&gt;
After obtaining pileup files from each BAM file, you can convert them into a single seq file before running LASER. &lt;br /&gt;
Use the same site file and all generated pileup files from step 1 to generate a seq file:&lt;br /&gt;
&lt;br /&gt;
 python pileup2seq.py  -m ../resource/HGDP/HGDP_938.site -o test NA12878.chrom22.pileup&lt;br /&gt;
&lt;br /&gt;
You should obtain test.seq file after this step.&lt;br /&gt;
&lt;br /&gt;
== Estimate ancestries of sequence samples  ==&lt;br /&gt;
&lt;br /&gt;
The easiest way to perform LASER using its exemplar data is: &lt;br /&gt;
&lt;br /&gt;
 ./laser -s pileup2seq/test.seq  -g resource/HGDP/HGDP_938.geno -c resource/HGDP/HGDP_938.RefPC.coord -o test -k 2&lt;br /&gt;
&lt;br /&gt;
Upon successful calculation,  you will find a result file &amp;quot;test.SeqPC.coord&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= File format  =&lt;br /&gt;
&lt;br /&gt;
== Geno file  ==&lt;br /&gt;
&lt;br /&gt;
Geno file are from reference samples. LASER use genotype of these samples as a reference panel. You can obtain geno file from VCF files using [https://github.com/zhanxw/vcf2geno vcf2geno].&lt;br /&gt;
&lt;br /&gt;
In our resource folder, we provide an example geno file for the HGDP data set (resource/HGDP/HGDP_938.geno):&lt;br /&gt;
&lt;br /&gt;
 Brahui	HGDP00001	1	2	1	1	0	2	0	2	1	2	2	2	1	1	2	1	0&lt;br /&gt;
 Brahui	HGDP00003	0	0	2	0	0	2	0	2	0	2	2	2	2	0	2	2	0&lt;br /&gt;
 Brahui	HGDP00005	0	2	2	0	0	1	0	2	1	2	2	2	2	1	2	2	1&lt;br /&gt;
 Brahui	HGDP00007	0	2	2	0	0	2	0	2	0	2	2	2	1	1	2	2	1&lt;br /&gt;
 Brahui	HGDP00009	0	1	0	1	0	2	0	2	0	2	2	2	2	0	2	2	0&lt;br /&gt;
 Brahui	HGDP00011	1	1	2	1	1	2	1	1	1	2	2	2	1	1	2	2	0&lt;br /&gt;
 Brahui	HGDP00013	1	2	2	1	1	2	1	2	0	2	2	2	2	0	2	2	0&lt;br /&gt;
 Brahui	HGDP00015	1	1	2	0	0	2	0	2	0	2	2	2	2	0	2	2	0&lt;br /&gt;
 Brahui	HGDP00017	1	1	2	0	0	1	0	0	0	2	0	1	1	2	2	2	0&lt;br /&gt;
 Brahui	HGDP00019	0	2	2	0	0	1	0	1	0	2	1	2	2	1	2	2	0&lt;br /&gt;
&lt;br /&gt;
The first and second columns represent the population id and individual id. &lt;br /&gt;
From the third column, each number represents a genotype.&lt;br /&gt;
To be consistent with the sequence data, genotypes should be given on the &#039;&#039;&#039;forward strand&#039;&#039;&#039;. Genotypes are coded by 0, 1, or 2, representing copies of the&lt;br /&gt;
reference allele at a locus in one individual. &lt;br /&gt;
&lt;br /&gt;
In this geno file, we have 632,960 columns which contains 632,958 markers from column 3 to the last column.&lt;br /&gt;
&lt;br /&gt;
== Seq file  ==&lt;br /&gt;
Seq file is generated from pileup files. It contains sequencing information and organize it in a LASER readable format.&lt;br /&gt;
The first two columns represent population id and individual id.&lt;br /&gt;
Subsequent columns are total read depths and reference base counts.&lt;br /&gt;
For example, column 3 and 4 are 0, 0 in the following example. That means at first marker, the sequence read depth is 0 and thus none of the reads has reference base.&lt;br /&gt;
We enforce tab delimiters between markers and space delimiters between each read depths and reference base counts.&lt;br /&gt;
On line of seq file looks like below:&lt;br /&gt;
&lt;br /&gt;
 NA12878.chrom22	NA12878.chrom22	0 0	0 0	0 0	0 0	0 &lt;br /&gt;
&lt;br /&gt;
== Pileup file  ==&lt;br /&gt;
&lt;br /&gt;
Pileup file are generated using samtools. An example pileup file is shown below:&lt;br /&gt;
 &lt;br /&gt;
 22	17094749	A	1	c	D&lt;br /&gt;
 22	17202602	T	1	.	D&lt;br /&gt;
 22	17411899	A	1	.	C&lt;br /&gt;
 22	17450515	G	2	.,	9&amp;lt;&lt;br /&gt;
 22	17452966	T	1	c	5&lt;br /&gt;
 22	17470779	C	1	,	A&lt;br /&gt;
 22	17492203	G	1	,	B&lt;br /&gt;
 22	17504945	C	3	,..	BCA&lt;br /&gt;
 22	17529814	T	3	..,	CCC&lt;br /&gt;
&lt;br /&gt;
The columns are chromosome, position (1-based), reference base, depth, bases and base qualities.&lt;br /&gt;
&lt;br /&gt;
== BED file  ==&lt;br /&gt;
BED file represents genomic regions and it follows [http://genome.ucsc.edu/FAQ/FAQformat.html#format1 UCSC conventions]:&lt;br /&gt;
&lt;br /&gt;
 1 752565 752566&lt;br /&gt;
 1 768447 768448&lt;br /&gt;
 1 1005805 1005806&lt;br /&gt;
 1 1018703 1018704&lt;br /&gt;
 1 1021414 1021415&lt;br /&gt;
&lt;br /&gt;
The columns are: chromosome, start position (0-based) and end position (1-based).&lt;br /&gt;
&lt;br /&gt;
== Coord file  ==&lt;br /&gt;
Coord files represent the ancestries of both reference samples and sequence samples.&lt;br /&gt;
An example coord file looks like below:&lt;br /&gt;
&lt;br /&gt;
 popID  indivID  L1    Ci        t         PC1       PC2&lt;br /&gt;
 YRI    NA19238  1409  0.304122  0.98933   52.7634   -39.7924&lt;br /&gt;
 CEU    NA12892  1552  0.330037  0.989709  9.82674   25.2898&lt;br /&gt;
 CEU    NA12891  1609  0.362198  0.988082  0.439573  26.8872&lt;br /&gt;
 CEU    NA12878  1579  0.334825  0.988677  8.83775   28.1342&lt;br /&gt;
 YRI    NA19239  1558  0.34898   0.988302  53.9104   -39.1727&lt;br /&gt;
 YRI    NA19240  1735  0.404142  0.990264  59.8379   -45.2765&lt;br /&gt;
&lt;br /&gt;
The columns are: popID means &amp;quot;population ID&amp;quot;, indivID means &amp;quot;individual ID&amp;quot;, L1 means number of loci has been covered, Ci means &amp;quot;average coverage&amp;quot;, t means Procrustes similarity.&lt;br /&gt;
PC1, PC2 means coordinates of first and second principal components. You may notice L1, Ci, and t are omitted in the coord files of reference samples. The reason is that reference samples use genotypes and do not have coverage information.&lt;br /&gt;
&lt;br /&gt;
== Site file ==&lt;br /&gt;
Site file is equivalent to BED file and it is used here to represent marker positions. An example site file looks like below:&lt;br /&gt;
 CHR  POS      ID          REF  ALT&lt;br /&gt;
 1    752566   rs3094315   G    A&lt;br /&gt;
 1    768448   rs12562034  G    A&lt;br /&gt;
 1    1005806  rs3934834   C    T&lt;br /&gt;
 1    1018704  rs9442372   A    G&lt;br /&gt;
 1    1021415  rs3737728   A    G&lt;br /&gt;
&lt;br /&gt;
The site file has header line, and it contains chromosome, position(1-based), id (usually marker name), ref (reference allele) and alt (alternative allele).&lt;br /&gt;
&lt;br /&gt;
= Advanced options =&lt;br /&gt;
&lt;br /&gt;
LASER has advanced options including (1) parallel computing; (2) increase ancestry inference accuracy using repeated runs; (3) generate PCA coordiates using genotypes.&lt;br /&gt;
See [http://www.sph.umich.edu/csg/chaolong/LASER/LASER_Manual.pdf LASER Manual] for detailed information.&lt;br /&gt;
&lt;br /&gt;
= Contact  =&lt;br /&gt;
Comments on this wiki page or questions related to preparing input files for LASER can be sent to [mailto:zhanxw@umich.edu Xiaowei Zhan].&lt;br /&gt;
Comments on the LASER software or the user&#039;s manual can be sent to [mailto:chaolong@umich.edu Chaolong Wang].&lt;br /&gt;
This project was directed by Gonçalo Abecasis and Sebastian Zöllner at the University of Michigan.&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Documentation&amp;diff=8837</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=8837"/>
		<updated>2013-10-10T13:59:50Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 key pages:&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL|RAREMETAL Home Page]]&lt;br /&gt;
&lt;br /&gt;
* The [[Tutorial:_RAREMETAL|RAREMETAL Quick Start Tutorial]]&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;]&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;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; 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;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; performs single variant metal-analysis by default. &lt;br /&gt;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; allows customized groups of variants to be tested.&lt;br /&gt;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; allows conditional analysis to be performed in both gene-level meta-analysis and single variants meta-analysis.&lt;br /&gt;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; generate QQ plots and manhattan plots by default.&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. &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; 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. &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; 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;]]. [http://arxiv.org/abs/1305.1318 &#039;&#039;&#039;Manuscript&#039;&#039;&#039;] for the methodology has been accepted by Nature Genetics.&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. The main formulae are tabulated in the following:&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;
|+&#039;&#039;&#039;Formulae for RAREMETAL&#039;&#039;&#039;&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;120pt&amp;quot; | Test&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;50pt&amp;quot; | Statistics&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;225pt&amp;quot; | Null Distribution&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;225pt&amp;quot; | Notation&lt;br /&gt;
|-&lt;br /&gt;
| Single Variant  || &amp;lt;math&amp;gt;T=\sum_{i=1}^n {U_i}\bigg/\sqrt{\sum_{i=1}^n{V_i}}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;T\sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt; ||&amp;lt;math&amp;gt; U_i \text{ is the score statistic from study }i;&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt; V_i \text{ is the variance of } U_i.&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| un-weighted Burden      || &amp;lt;math&amp;gt;T_b=\sum_{i=1}^n{\mathbf{U_i}}\Big/\sqrt{\sum_{i=1}^n{\mathbf{V_i}}}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;T_b\sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt; ||&amp;lt;math&amp;gt; \mathbf{U_i}\text{ is the vector of score statistics from study }i, or &amp;lt;/math&amp;gt; &amp;lt;math&amp;gt; \mathbf{U_i}=\{U_{i1},...,U_{im}\};&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;\mathbf{V_i} \text{ is the covariance of } \mathbf{U_i}.&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Weighted Burden || &amp;lt;math&amp;gt;T_{wb}=\mathbf{w^T}\sum_{i=1}^n{\mathbf{U_i}}\bigg/\sqrt{\mathbf{w^T}\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\mathbf{w}}&amp;lt;/math&amp;gt;  || &amp;lt;math&amp;gt;T_{wb}\sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt; \mathbf{w^T}=\{w_1,w_2,...,w_m\}^T \text{ is the weight vector.}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-style=&amp;quot;height: 50pt;&amp;quot;&lt;br /&gt;
| VT || &amp;lt;math&amp;gt;T_{VT}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}),\text{ where}&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\sum_{i=1}^n{\mathbf{U_i}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;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)\text{,} &amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\text{where }\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt; ||  &amp;lt;math&amp;gt; \boldsymbol{\phi}_{f_j}\text{ is a vector of } 0 \text{s and } 1\text{s,} &amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;\text{indicating the inclusion of a variant using threshold }f_j; &amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
| SKAT || &amp;lt;math&amp;gt;\mathbf{Q}=\left(\sum_{i=1}^n{\mathbf{U_i^T}}\right) \mathbf{W}\left(\sum_{i=1}^n{\mathbf{U_i}}\right)&amp;lt;/math&amp;gt; ||&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2},\text{ where}&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)\text{ are eigen values of}&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\left(\sum_{i=1}^n{\mathbf{V_i}}\right)^\frac{1}{2}\mathbf{W}\left(\sum_{i=1}^n{\mathbf{V_i}}\right)^\frac{1}{2}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\mathbf{W}\text{ is a diagonal matrix of weights.}&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&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/fantasia/home/sfengsph/code/Rare-Metal/raremetal/bin/raremetal &lt;br /&gt;
&lt;br /&gt;
=== Where to Download ===&lt;br /&gt;
* The software package for Linux and Mac (source code included) can be downloaded here: [[Media:Raremetal.0.3.0.tar.gz|&#039;&#039;&#039;software package download&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
=== How to Compile ===&lt;br /&gt;
* Save it to your local path and decompress using the following command:&lt;br /&gt;
  tar xvzf raremetal.0.3.0.tar.gz&lt;br /&gt;
* Go to raremetal_0.3.0/raremetal/src and type the following command to compile:&lt;br /&gt;
  make&lt;br /&gt;
&lt;br /&gt;
=== How to Execute ===&lt;br /&gt;
* Go to raremetal_0.2.9/raremetal/bin and use the following:&lt;br /&gt;
  ./raremetal&lt;br /&gt;
* For example usage, please refer to [[http://genome.sph.umich.edu/wiki/Rare-Metal#Example_Usage example command lines]]&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Instructions ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;raeMETAL&#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:&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;
* --studyName 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.&lt;br /&gt;
* An example file is in the following:&lt;br /&gt;
&lt;br /&gt;
  /net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/TwinsUK/TwinsUK.TG&lt;br /&gt;
  #/net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/HUNT/RareMetalWorker/HUNT_MI_case.TG&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;
  /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/TwinsUK/TwinsUK.TG.singlevar.cov.txt.gz&lt;br /&gt;
  /net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/TwinsUK/TwinsUK.TG.singlevar.score.txt.gz.tbi&lt;br /&gt;
  /net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/TwinsUK/TwinsUK.TG.singlevar.cov.txt.gz.tbi&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. The default is maf&amp;lt;0.05.&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;
=== 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;
&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;
&lt;br /&gt;
=== Generate a VCF File to Annotate Outside of Rare Metal ===&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;
&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 --studyName. &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;
&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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --annotatedVcf your.annotated.vcf --annotation nonsyn/splicing/stop --burden --MB --SKAT --VT --maf 0.01 --prefix yourPrefix&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 Shuang Feng (sfengsph at umich dot edu) for questions.&lt;br /&gt;
&lt;br /&gt;
== Change Log ==&lt;br /&gt;
* Version 0.0.1 released to U of M CSG group. (2/13/2013)&lt;br /&gt;
* Version 0.0.1 released to public. (2/24/2013)&lt;br /&gt;
* Version 0.1.2 released to public after fixing a few bugs, adding conditional analysis and automatic graphing to the tool. (8/5/2013)&lt;br /&gt;
* Version 0.2.9 released to public after fixing a bug in SKAT and writing PDF when all variants are monomorphic. (10/7/2013)&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Documentation&amp;diff=8822</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=8822"/>
		<updated>2013-10-09T18:52:10Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: /* Summary Statistics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 key pages:&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL|RAREMETAL Home Page]]&lt;br /&gt;
&lt;br /&gt;
* The [[Tutorial:_RAREMETAL|RAREMETAL Quick Start Tutorial]]&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;]&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;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; 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;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; performs single variant metal-analysis by default. &lt;br /&gt;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; allows customized groups of variants to be tested.&lt;br /&gt;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; allows conditional analysis to be performed in both gene-level meta-analysis and single variants meta-analysis.&lt;br /&gt;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; generate QQ plots and manhattan plots by default.&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. &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; 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. &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; generated 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 using the same methodology is [[RareMetals|available]]]. Manuscript for this tool is in preparation. Please contact sfengsph at umich dot edu for questions.&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. The main formulae are tabulated in the following:&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;
|+&#039;&#039;&#039;Formulae for RAREMETAL&#039;&#039;&#039;&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;120pt&amp;quot; | Test&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;50pt&amp;quot; | Statistics&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;225pt&amp;quot; | Null Distribution&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;225pt&amp;quot; | Notation&lt;br /&gt;
|-&lt;br /&gt;
| Single Variant  || &amp;lt;math&amp;gt;T=\sum_{i=1}^n {U_i}\bigg/\sqrt{\sum_{i=1}^n{V_i}}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;T\sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt; ||&amp;lt;math&amp;gt; U_i \text{ is the score statistic from study }i;&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt; V_i \text{ is the variance of } U_i.&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| un-weighted Burden      || &amp;lt;math&amp;gt;T_b=\sum_{i=1}^n{\mathbf{U_i}}\Big/\sqrt{\sum_{i=1}^n{\mathbf{V_i}}}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;T_b\sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt; ||&amp;lt;math&amp;gt; \mathbf{U_i}\text{ is the vector of score statistics from study }i, or &amp;lt;/math&amp;gt; &amp;lt;math&amp;gt; \mathbf{U_i}=\{U_{i1},...,U_{im}\};&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;\mathbf{V_i} \text{ is the covariance of } \mathbf{U_i}.&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Weighted Burden || &amp;lt;math&amp;gt;T_{wb}=\mathbf{w^T}\sum_{i=1}^n{\mathbf{U_i}}\bigg/\sqrt{\mathbf{w^T}\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\mathbf{w}}&amp;lt;/math&amp;gt;  || &amp;lt;math&amp;gt;T_{wb}\sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt; \mathbf{w^T}=\{w_1,w_2,...,w_m\}^T \text{ is the weight vector.}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-style=&amp;quot;height: 50pt;&amp;quot;&lt;br /&gt;
| VT || &amp;lt;math&amp;gt;T_{VT}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}),\text{ where}&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\sum_{i=1}^n{\mathbf{U_i}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;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)\text{,} &amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\text{where }\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt; ||  &amp;lt;math&amp;gt; \boldsymbol{\phi}_{f_j}\text{ is a vector of } 0 \text{s and } 1\text{s,} &amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;\text{indicating the inclusion of a variant using threshold }f_j; &amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
| SKAT || &amp;lt;math&amp;gt;\mathbf{Q}=\left(\sum_{i=1}^n{\mathbf{U_i^T}}\right) \mathbf{W}\left(\sum_{i=1}^n{\mathbf{U_i}}\right)&amp;lt;/math&amp;gt; ||&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2},\text{ where}&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)\text{ are eigen values of}&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\left(\sum_{i=1}^n{\mathbf{V_i}}\right)^\frac{1}{2}\mathbf{W}\left(\sum_{i=1}^n{\mathbf{V_i}}\right)^\frac{1}{2}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\mathbf{W}\text{ is a diagonal matrix of weights.}&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&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/fantasia/home/sfengsph/code/Rare-Metal/raremetal/bin/raremetal &lt;br /&gt;
&lt;br /&gt;
=== Where to Download ===&lt;br /&gt;
* The software package for Linux and Mac (source code included) can be downloaded here: [[Media:Raremetal.0.3.0.tar.gz|&#039;&#039;&#039;software package download&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
=== How to Compile ===&lt;br /&gt;
* Save it to your local path and decompress using the following command:&lt;br /&gt;
  tar xvzf raremetal.0.3.0.tar.gz&lt;br /&gt;
* Go to raremetal_0.3.0/raremetal/src and type the following command to compile:&lt;br /&gt;
  make&lt;br /&gt;
&lt;br /&gt;
=== How to Execute ===&lt;br /&gt;
* Go to raremetal_0.2.9/raremetal/bin and use the following:&lt;br /&gt;
  ./raremetal&lt;br /&gt;
* For example usage, please refer to [[http://genome.sph.umich.edu/wiki/Rare-Metal#Example_Usage example command lines]]&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Instructions ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;raeMETAL&#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:&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;
* --studyName 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.&lt;br /&gt;
* An example file is in the following:&lt;br /&gt;
&lt;br /&gt;
  /net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/TwinsUK/TwinsUK.TG&lt;br /&gt;
  #/net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/HUNT/RareMetalWorker/HUNT_MI_case.TG&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;
  /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/TwinsUK/TwinsUK.TG.singlevar.cov.txt.gz&lt;br /&gt;
  /net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/TwinsUK/TwinsUK.TG.singlevar.score.txt.gz.tbi&lt;br /&gt;
  /net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/TwinsUK/TwinsUK.TG.singlevar.cov.txt.gz.tbi&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. The default is maf&amp;lt;0.05.&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;
=== 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;
&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;
&lt;br /&gt;
=== Generate a VCF File to Annotate Outside of Rare Metal ===&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;
&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 --studyName. &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;
&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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --annotatedVcf your.annotated.vcf --annotation nonsyn/splicing/stop --burden --MB --SKAT --VT --maf 0.01 --prefix yourPrefix&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 Shuang Feng (sfengsph at umich dot edu) for questions.&lt;br /&gt;
&lt;br /&gt;
== Change Log ==&lt;br /&gt;
* Version 0.0.1 released to U of M CSG group. (2/13/2013)&lt;br /&gt;
* Version 0.0.1 released to public. (2/24/2013)&lt;br /&gt;
* Version 0.1.2 released to public after fixing a few bugs, adding conditional analysis and automatic graphing to the tool. (8/5/2013)&lt;br /&gt;
* Version 0.2.9 released to public after fixing a bug in SKAT and writing PDF when all variants are monomorphic. (10/7/2013)&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Documentation&amp;diff=8821</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=8821"/>
		<updated>2013-10-09T18:50:45Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: /* Prepare Input Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 key pages:&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL|RAREMETAL Home Page]]&lt;br /&gt;
&lt;br /&gt;
* The [[Tutorial:_RAREMETAL|RAREMETAL Quick Start Tutorial]]&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;]&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;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; 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;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; performs single variant metal-analysis by default. &lt;br /&gt;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; allows customized groups of variants to be tested.&lt;br /&gt;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; allows conditional analysis to be performed in both gene-level meta-analysis and single variants meta-analysis.&lt;br /&gt;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; generate QQ plots and manhattan plots by default.&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. &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; 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. &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; generated 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 using the same methodology is [[RareMetals|available]]]. Manuscript for this tool is in preparation. Please contact sfengsph at umich dot edu for questions.&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. The main formulae are tabulated in the following:&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;
|+&#039;&#039;&#039;Formulae for RAREMETAL&#039;&#039;&#039;&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;120pt&amp;quot; | Test&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;50pt&amp;quot; | Statistics&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;225pt&amp;quot; | Null Distribution&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;225pt&amp;quot; | Notation&lt;br /&gt;
|-&lt;br /&gt;
| Single Variant  || &amp;lt;math&amp;gt;T=\sum_{i=1}^n {U_i}\bigg/\sqrt{\sum_{i=1}^n{V_i}}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;T\sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt; ||&amp;lt;math&amp;gt; U_i \text{ is the score statistic from study }i;&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt; V_i \text{ is the variance of } U_i.&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| un-weighted Burden      || &amp;lt;math&amp;gt;T_b=\sum_{i=1}^n{\mathbf{U_i}}\Big/\sqrt{\sum_{i=1}^n{\mathbf{V_i}}}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;T_b\sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt; ||&amp;lt;math&amp;gt; \mathbf{U_i}\text{ is the vector of score statistics from study }i, or &amp;lt;/math&amp;gt; &amp;lt;math&amp;gt; \mathbf{U_i}=\{U_{i1},...,U_{im}\};&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;\mathbf{V_i} \text{ is the covariance of } \mathbf{U_i}.&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Weighted Burden || &amp;lt;math&amp;gt;T_{wb}=\mathbf{w^T}\sum_{i=1}^n{\mathbf{U_i}}\bigg/\sqrt{\mathbf{w^T}\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\mathbf{w}}&amp;lt;/math&amp;gt;  || &amp;lt;math&amp;gt;T_{wb}\sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt; \mathbf{w^T}=\{w_1,w_2,...,w_m\}^T \text{ is the weight vector.}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-style=&amp;quot;height: 50pt;&amp;quot;&lt;br /&gt;
| VT || &amp;lt;math&amp;gt;T_{VT}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}),\text{ where}&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\sum_{i=1}^n{\mathbf{U_i}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;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)\text{,} &amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\text{where }\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt; ||  &amp;lt;math&amp;gt; \boldsymbol{\phi}_{f_j}\text{ is a vector of } 0 \text{s and } 1\text{s,} &amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;\text{indicating the inclusion of a variant using threshold }f_j; &amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
| SKAT || &amp;lt;math&amp;gt;\mathbf{Q}=\left(\sum_{i=1}^n{\mathbf{U_i^T}}\right) \mathbf{W}\left(\sum_{i=1}^n{\mathbf{U_i}}\right)&amp;lt;/math&amp;gt; ||&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2},\text{ where}&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)\text{ are eigen values of}&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\left(\sum_{i=1}^n{\mathbf{V_i}}\right)^\frac{1}{2}\mathbf{W}\left(\sum_{i=1}^n{\mathbf{V_i}}\right)^\frac{1}{2}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\mathbf{W}\text{ is a diagonal matrix of weights.}&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&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/fantasia/home/sfengsph/code/Rare-Metal/raremetal/bin/raremetal &lt;br /&gt;
&lt;br /&gt;
=== Where to Download ===&lt;br /&gt;
* The software package for Linux and Mac (source code included) can be downloaded here: [[Media:Raremetal.0.3.0.tar.gz|&#039;&#039;&#039;software package download&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
=== How to Compile ===&lt;br /&gt;
* Save it to your local path and decompress using the following command:&lt;br /&gt;
  tar xvzf raremetal.0.3.0.tar.gz&lt;br /&gt;
* Go to raremetal_0.3.0/raremetal/src and type the following command to compile:&lt;br /&gt;
  make&lt;br /&gt;
&lt;br /&gt;
=== How to Execute ===&lt;br /&gt;
* Go to raremetal_0.2.9/raremetal/bin and use the following:&lt;br /&gt;
  ./raremetal&lt;br /&gt;
* For example usage, please refer to [[http://genome.sph.umich.edu/wiki/Rare-Metal#Example_Usage example command lines]]&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Instructions ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;raeMETAL&#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:&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.singlevar.score.txt.gz&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=====List of Studies=====&lt;br /&gt;
* --studyName 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.&lt;br /&gt;
* An example file is in the following:&lt;br /&gt;
&lt;br /&gt;
  /net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/TwinsUK/TwinsUK.TG&lt;br /&gt;
  #/net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/HUNT/RareMetalWorker/HUNT_MI_case.TG&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;
  /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/TwinsUK/TwinsUK.TG.singlevar.cov.txt.gz&lt;br /&gt;
  /net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/TwinsUK/TwinsUK.TG.singlevar.score.txt.gz.tbi&lt;br /&gt;
  /net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/TwinsUK/TwinsUK.TG.singlevar.cov.txt.gz.tbi&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. The default is maf&amp;lt;0.05.&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;
=== 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;
&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;
&lt;br /&gt;
=== Generate a VCF File to Annotate Outside of Rare Metal ===&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;
&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 --studyName. &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;
&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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --annotatedVcf your.annotated.vcf --annotation nonsyn/splicing/stop --burden --MB --SKAT --VT --maf 0.01 --prefix yourPrefix&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 Shuang Feng (sfengsph at umich dot edu) for questions.&lt;br /&gt;
&lt;br /&gt;
== Change Log ==&lt;br /&gt;
* Version 0.0.1 released to U of M CSG group. (2/13/2013)&lt;br /&gt;
* Version 0.0.1 released to public. (2/24/2013)&lt;br /&gt;
* Version 0.1.2 released to public after fixing a few bugs, adding conditional analysis and automatic graphing to the tool. (8/5/2013)&lt;br /&gt;
* Version 0.2.9 released to public after fixing a bug in SKAT and writing PDF when all variants are monomorphic. (10/7/2013)&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=RAREMETAL_Documentation&amp;diff=8820</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=8820"/>
		<updated>2013-10-09T18:50:21Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 key pages:&lt;br /&gt;
&lt;br /&gt;
* The [[RAREMETAL|RAREMETAL Home Page]]&lt;br /&gt;
&lt;br /&gt;
* The [[Tutorial:_RAREMETAL|RAREMETAL Quick Start Tutorial]]&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;]&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;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; 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;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; performs single variant metal-analysis by default. &lt;br /&gt;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; allows customized groups of variants to be tested.&lt;br /&gt;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; allows conditional analysis to be performed in both gene-level meta-analysis and single variants meta-analysis.&lt;br /&gt;
* &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; generate QQ plots and manhattan plots by default.&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. &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; 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. &#039;&#039;&#039;RAREMETAL&#039;&#039;&#039; generated 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 using the same methodology is [[RareMetals|available]]]. Manuscript for this tool is in preparation. Please contact sfengsph at umich dot edu for questions.&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. The main formulae are tabulated in the following:&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;
|+&#039;&#039;&#039;Formulae for RAREMETAL&#039;&#039;&#039;&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;120pt&amp;quot; | Test&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;50pt&amp;quot; | Statistics&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;225pt&amp;quot; | Null Distribution&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;225pt&amp;quot; | Notation&lt;br /&gt;
|-&lt;br /&gt;
| Single Variant  || &amp;lt;math&amp;gt;T=\sum_{i=1}^n {U_i}\bigg/\sqrt{\sum_{i=1}^n{V_i}}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;T\sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt; ||&amp;lt;math&amp;gt; U_i \text{ is the score statistic from study }i;&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt; V_i \text{ is the variance of } U_i.&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| un-weighted Burden      || &amp;lt;math&amp;gt;T_b=\sum_{i=1}^n{\mathbf{U_i}}\Big/\sqrt{\sum_{i=1}^n{\mathbf{V_i}}}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;T_b\sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt; ||&amp;lt;math&amp;gt; \mathbf{U_i}\text{ is the vector of score statistics from study }i, or &amp;lt;/math&amp;gt; &amp;lt;math&amp;gt; \mathbf{U_i}=\{U_{i1},...,U_{im}\};&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;\mathbf{V_i} \text{ is the covariance of } \mathbf{U_i}.&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Weighted Burden || &amp;lt;math&amp;gt;T_{wb}=\mathbf{w^T}\sum_{i=1}^n{\mathbf{U_i}}\bigg/\sqrt{\mathbf{w^T}\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\mathbf{w}}&amp;lt;/math&amp;gt;  || &amp;lt;math&amp;gt;T_{wb}\sim\mathbf{N}(0,1)&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt; \mathbf{w^T}=\{w_1,w_2,...,w_m\}^T \text{ is the weight vector.}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-style=&amp;quot;height: 50pt;&amp;quot;&lt;br /&gt;
| VT || &amp;lt;math&amp;gt;T_{VT}=\max(T_{b\left(f_1\right)},T_{b\left(f_2\right)},\dots,T_{b\left(f_m\right)}),\text{ where}&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;T_{b\left(f_j\right)}=\boldsymbol{\phi}_{f_j}^\mathbf{T}\sum_{i=1}^n{\mathbf{U_i}}\bigg/\sqrt{\boldsymbol{\phi}_{f_j}^\mathbf{T}\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_j}} &amp;lt;/math&amp;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)\text{,} &amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\text{where }\boldsymbol{\Omega_{ij}}=\frac{\boldsymbol{\phi}_{f_i}^T\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_j}}{\sqrt{\boldsymbol{\phi}_{f_i}^T\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_i}}\sqrt{\boldsymbol{\phi}_{f_j}^T\left(\sum_{i=1}^n{\mathbf{V_i}}\right)\boldsymbol{\phi}_{f_j}}}&amp;lt;/math&amp;gt; ||  &amp;lt;math&amp;gt; \boldsymbol{\phi}_{f_j}\text{ is a vector of } 0 \text{s and } 1\text{s,} &amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;\text{indicating the inclusion of a variant using threshold }f_j; &amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
| SKAT || &amp;lt;math&amp;gt;\mathbf{Q}=\left(\sum_{i=1}^n{\mathbf{U_i^T}}\right) \mathbf{W}\left(\sum_{i=1}^n{\mathbf{U_i}}\right)&amp;lt;/math&amp;gt; ||&amp;lt;math&amp;gt;\mathbf{Q}\sim\sum_{i=1}^m{\lambda_i\chi_{1,i}^2},\text{ where}&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;\left(\lambda_1,\lambda_2,\dots,\lambda_m\right)\text{ are eigen values of}&amp;lt;/math&amp;gt;&amp;lt;math&amp;gt;\left(\sum_{i=1}^n{\mathbf{V_i}}\right)^\frac{1}{2}\mathbf{W}\left(\sum_{i=1}^n{\mathbf{V_i}}\right)^\frac{1}{2}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\mathbf{W}\text{ is a diagonal matrix of weights.}&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&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/fantasia/home/sfengsph/code/Rare-Metal/raremetal/bin/raremetal &lt;br /&gt;
&lt;br /&gt;
=== Where to Download ===&lt;br /&gt;
* The software package for Linux and Mac (source code included) can be downloaded here: [[Media:Raremetal.0.3.0.tar.gz|&#039;&#039;&#039;software package download&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
=== How to Compile ===&lt;br /&gt;
* Save it to your local path and decompress using the following command:&lt;br /&gt;
  tar xvzf raremetal.0.3.0.tar.gz&lt;br /&gt;
* Go to raremetal_0.3.0/raremetal/src and type the following command to compile:&lt;br /&gt;
  make&lt;br /&gt;
&lt;br /&gt;
=== How to Execute ===&lt;br /&gt;
* Go to raremetal_0.2.9/raremetal/bin and use the following:&lt;br /&gt;
  ./raremetal&lt;br /&gt;
* For example usage, please refer to [[http://genome.sph.umich.edu/wiki/Rare-Metal#Example_Usage example command lines]]&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Instructions ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;raeMETAL&#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;
or [http://genome.sph.umich.edu/wiki/Rvtests &#039;&#039;&#039;rvtests&#039;&#039;&#039;]&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:&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.singlevar.score.txt.gz&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=====List of Studies=====&lt;br /&gt;
* --studyName 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.&lt;br /&gt;
* An example file is in the following:&lt;br /&gt;
&lt;br /&gt;
  /net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/TwinsUK/TwinsUK.TG&lt;br /&gt;
  #/net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/HUNT/RareMetalWorker/HUNT_MI_case.TG&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;
  /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/TwinsUK/TwinsUK.TG.singlevar.cov.txt.gz&lt;br /&gt;
  /net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/TwinsUK/TwinsUK.TG.singlevar.score.txt.gz.tbi&lt;br /&gt;
  /net/fantasia/home/sfengsph/prj/raremetal/raremetal/bin/META/TwinsUK/TwinsUK.TG.singlevar.cov.txt.gz.tbi&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. The default is maf&amp;lt;0.05.&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;
=== 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;
&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;
&lt;br /&gt;
=== Generate a VCF File to Annotate Outside of Rare Metal ===&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;
&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 --studyName. &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;
&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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --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 --studyName your.studyName.file --annotatedVcf your.annotated.vcf --annotation nonsyn/splicing/stop --burden --MB --SKAT --VT --maf 0.01 --prefix yourPrefix&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 Shuang Feng (sfengsph at umich dot edu) for questions.&lt;br /&gt;
&lt;br /&gt;
== Change Log ==&lt;br /&gt;
* Version 0.0.1 released to U of M CSG group. (2/13/2013)&lt;br /&gt;
* Version 0.0.1 released to public. (2/24/2013)&lt;br /&gt;
* Version 0.1.2 released to public after fixing a few bugs, adding conditional analysis and automatic graphing to the tool. (8/5/2013)&lt;br /&gt;
* Version 0.2.9 released to public after fixing a bug in SKAT and writing PDF when all variants are monomorphic. (10/7/2013)&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=QPLOT&amp;diff=7572</id>
		<title>QPLOT</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=QPLOT&amp;diff=7572"/>
		<updated>2013-06-29T18:09:31Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The qplot program calculates various summary statistics some of which are plotted in a PDF file. These statistics can be used to assess the sequencing quality of sequence reads mapped to the reference genome. The main statistics are empirical Phred scores which are calculated based on the background mismatch rate. Background mismatch rate is the rate that sequenced bases are different from the reference genome, EXCLUDING dbSNP positions. Other statistics include GC biases, insert size distribution, depth distribution, genome coverage, empirical Q20 count, and so on. &lt;br /&gt;
&lt;br /&gt;
In the following sections, we will guide you through: [[#Where to Find It |how to obtain qplot]], [[#Usage |how to use qplot]], [[#Built-in example |example outputs]], [[#anchorOfInteractiveQplot |interactive diagnostic plots]], and [[#Diagnose sequencing quality |real applications]] in which qplot has helped identify sequencing problems.&lt;br /&gt;
&lt;br /&gt;
= Where to Find It =&lt;br /&gt;
&lt;br /&gt;
You can obtain qplot in two ways: &lt;br /&gt;
&lt;br /&gt;
(1) Download the pre-compiled binary along with the source code as described in [[#Binary Download|Binary Download]]. &lt;br /&gt;
&lt;br /&gt;
(2) Download source code only and compile it on your own machine. Please follow the instruction in [[#Source Code Distribution|Source Code Distribution]] on fetching source code and building instructions.&lt;br /&gt;
&lt;br /&gt;
== Binary Download ==&lt;br /&gt;
&lt;br /&gt;
We have prepared a pre-compiled (under Ubuntu) qplot along with source code . You can download it from: [http://www.sph.umich.edu/csg/zhanxw/software/qplot/qplot.20130627.tar.gz qplot.20130627.tar.gz (File Size: 1.7G)] &lt;br /&gt;
&lt;br /&gt;
The executable file is under qplot/bin/qplot. &lt;br /&gt;
&lt;br /&gt;
In addition, we provided the necessary input files under qplot/data/ (NCBI human genome build v37, dbSNP 130, and pre-computed GC file with windows size 100).&lt;br /&gt;
&lt;br /&gt;
You can also find an example BAM input file under qplot/example/chrom20.9M.10M.bam. It is taken from the 1000 Genome Project with sequencing reads aligned to chromosome 20 positions 8M to 9M.&lt;br /&gt;
&lt;br /&gt;
== Source Code Distribution ==&lt;br /&gt;
&lt;br /&gt;
We provide a source code only download in [http://www.sph.umich.edu/csg/zhanxw/software/qplot/qplot-source.20130627.tar.gz qplot-source.20130627.tar.gz]. Optionally, you can download example file and/or data file:&lt;br /&gt;
&lt;br /&gt;
[http://www.sph.umich.edu/csg/zhanxw/software/qplot/qplot-example.tar.gz  example]: example input file, and expected outputs if you following the [[#Built-in example | direction]]. &lt;br /&gt;
&lt;br /&gt;
[http://www.sph.umich.edu/csg/zhanxw/software/qplot/qplot-data.tar.gz resources data]: necessary input files for qplot, including NCBI human genome build v37, dbSNP 130, and pre-computed GC file with windows size 100.&lt;br /&gt;
&lt;br /&gt;
You can put above file(s) in the same folder and follow these steps:&lt;br /&gt;
&lt;br /&gt;
* 1. Unarchive downloaded file&lt;br /&gt;
 tar zvxf qplot-source.20130627.tar.gz&lt;br /&gt;
&lt;br /&gt;
A new folder &#039;&#039;qplot&#039;&#039; will be created.&lt;br /&gt;
&lt;br /&gt;
* 2. Build libStatGen&lt;br /&gt;
 cd qplot&lt;br /&gt;
 (cd ../libStatGen; make cloneLib)&lt;br /&gt;
&lt;br /&gt;
This step will download a necessary software library [http://genome.sph.umich.edu/wiki/C%2B%2B_Library:_libStatGen libStatGen] and compile source code into a binary code library.&lt;br /&gt;
&lt;br /&gt;
* 3. Build qplot&lt;br /&gt;
 make &lt;br /&gt;
&lt;br /&gt;
This step will then build qplot. Upon success, the executable qplot can be found under qplot/bin/.&lt;br /&gt;
&lt;br /&gt;
* 4. (Optional) unarchive example and/or data&lt;br /&gt;
 tar zvxf qplot-example.tar.gz&lt;br /&gt;
&lt;br /&gt;
An example file, &#039;&#039;chrom20.9M.10M.bam&#039;&#039;, will be extracted to qplot/example/. It contains ~1.1 million aligned Illumina sequencing reads of NA12878 from 1000 Genome Project. Example command line, &#039;&#039;cmd.sh&#039;&#039;, example outputs, &#039;&#039;qplot.pdf&#039;&#039;, &#039;&#039;qplot.stats&#039;&#039;, and &#039;&#039;qplot.R&#039;&#039; are also provided and will be extracted qplot/example/ as well. &lt;br /&gt;
&lt;br /&gt;
 tar zvxf qplot-data.tar.gz&lt;br /&gt;
&lt;br /&gt;
Three files will be extracted to qplot/data/: &#039;&#039;human.g1k.v37-bs.umfa&#039;&#039; is binary NCBI reference genome build 37; &#039;&#039;dbSNP130.UCSC.coordinates.tbl&#039;&#039; is dbSNP version 130; and &#039;&#039;human.g1k.w100.gc&#039;&#039; is pre-calculated GC content with windows size 100.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Please download source code from [[]], the building &lt;br /&gt;
{{ToolGitRepo|repoName=qplot|noDownload=}}&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&lt;br /&gt;
== Command line ==&lt;br /&gt;
&lt;br /&gt;
After you obtain the qplot executable (either by compiling the source code or by downloading the pre-compiled binary file), you will find the executable file under qplot/bin/qplot. &lt;br /&gt;
&lt;br /&gt;
Here is the qplot help page by invoking qplot without any command line arguments:&lt;br /&gt;
&lt;br /&gt;
  some_linux_host &amp;gt; qplot/bin/qplot&lt;br /&gt;
    The following parameters are available.  Ones with &amp;quot;[]&amp;quot; are in effect:&lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
                    References : --reference [/net/fantasia/home/zhanxw/software/qplot/data/human.g1k.v37.fa],&lt;br /&gt;
                                 --dbsnp [/net/fantasia/home/zhanxw/software/qplot/data/dbSNP130.UCSC.coordinates.tbl]&lt;br /&gt;
       GC content file options : --winsize [100]&lt;br /&gt;
                   Region list : --regions [], --invertRegion&lt;br /&gt;
                  Flag filters : --read1_skip, --read2_skip, --paired_skip,&lt;br /&gt;
                                 --unpaired_skip&lt;br /&gt;
                Dup and QCFail : --dup_keep, --qcfail_keep&lt;br /&gt;
               Mapping filters : --minMapQuality [0.00]&lt;br /&gt;
            Records to process : --first_n_record [-1]&lt;br /&gt;
              Lanes to process : --lanes []&lt;br /&gt;
         Read group to process : --readGroup []&lt;br /&gt;
            Input file options : --noeof&lt;br /&gt;
                  Output files : --plot [], --stats [], --Rcode [], --xml []&lt;br /&gt;
                   Plot labels : --label [], --bamLabel []&lt;br /&gt;
        Obsoleted (DO NOT USE) : --gccontent [], --create_gc&lt;br /&gt;
&lt;br /&gt;
== Input files ==&lt;br /&gt;
&lt;br /&gt;
qplot runs on the input BAM/SAM file(s) specified on the command-line after all other parameters.&lt;br /&gt;
&lt;br /&gt;
Additionally, three (3) precomputed files are required. &lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;--reference&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reference genome is the same as karma reference genome. If the index files do not exist, qplot will create the index files &#039;&#039;&#039;automatically&#039;&#039;&#039; using the input reference fasta file.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;--dbsnp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has two columns. First column is the chromosome name which must be consistent with the reference created above. Second column is 1-based SNP position. If you want to create your own dbSNP data from downloaded UCSC dbSNP file, one way to do it is: &amp;lt;code&amp;gt;cat dbsnp_129_b36.rod|grep &amp;quot;single&amp;quot; | awk &#039;$4-$3==1&#039; |cut -f2,4 &amp;gt; dbSNP_129_b36.tbl&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt; **OBSOLETED** --gccontent, --create_gc &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although GC content can be calculated on the fly each time, it is much more efficient to load a precomputed GC content from a file. &lt;br /&gt;
GC content file name is automatically determined in this format: &amp;lt;reference_genome_base_file_name&amp;gt;.winsize&amp;lt;gc_content_window_size&amp;gt;.gc.&lt;br /&gt;
For example, if your reference genome is human.g1k.v37.fa and the window size is 100, then the GC content file name is: human.g1k.v37.winsize100.gc .&lt;br /&gt;
&lt;br /&gt;
As it said, there is no need to use --gccontent to specify GC content file in each run.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt; input files &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
QPLOT take SAM/BAM files.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note&#039;&#039;: Before running qplot, it is critical to check how the chromosome names are coded. Some BAM/SAM files use just numbers, others use chr + numbers. &#039;&#039;&#039;You need to make sure that the chromosome names from the reference and dbSNP are consistent with the BAM/SAM files.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
Some of the command line parameters are described here, but most are self explanatory.&lt;br /&gt;
&lt;br /&gt;
*Flag filter&lt;br /&gt;
&lt;br /&gt;
By default all reads are processed. If it is desired to check only the first read of a pair, use &amp;lt;code&amp;gt;--read2_skip&amp;lt;/code&amp;gt; to ignore the second read. And so on.&lt;br /&gt;
&lt;br /&gt;
*Duplication and QCFail&lt;br /&gt;
&lt;br /&gt;
By default reads marked as duplication and QCFail are ignored but can be retained by &lt;br /&gt;
 --dup_keep &lt;br /&gt;
or &lt;br /&gt;
 --qcfail_keep&lt;br /&gt;
&lt;br /&gt;
*Records to process &lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;--first_n_record&amp;lt;/code&amp;gt; option followed by a number, &#039;&#039;&#039;n&#039;&#039;&#039;, will enable qplot to read the first &#039;&#039;&#039;n&#039;&#039;&#039; reads to test the bam files and verify it works.&lt;br /&gt;
&lt;br /&gt;
* Lanes to process (only works for Illumina sequences)&lt;br /&gt;
&lt;br /&gt;
If the input bam files have more than one lane and only some of them need to be checked, use something like &amp;lt;code&amp;gt;--lanes 1,3,5&amp;lt;/code&amp;gt; to specify that only lanes 1, 3, and 5 need to be checked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; In order for this to work, the lane info has to be encoded in the read name such that the lane number is the second field with the delimiter &amp;quot;:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* Read group to process : &lt;br /&gt;
&lt;br /&gt;
Read group option can restrict qplot to process a subset of reads. For example, if BAM contain the following @RG tags:&lt;br /&gt;
&lt;br /&gt;
 @RG	ID:UM0348_1:1	PL:ILLUMINA	LB:M5390	SM:M5390	CN:UM&lt;br /&gt;
 @RG	ID:UM0348_2:1	PL:ILLUMINA	LB:M5390	SM:M5390	CN:UM&lt;br /&gt;
 @RG	ID:UM0348_3:1	PL:ILLUMINA	LB:M5390	SM:M5390	CN:UM&lt;br /&gt;
 @RG	ID:UM0348_4:1	PL:ILLUMINA	LB:M5390	SM:M5390	CN:UM&lt;br /&gt;
 @RG	ID:UM0360_1:1	PL:ILLUMINA	LB:M5390	SM:M5390	CN:UM&lt;br /&gt;
 @RG	ID:UM0360_2:1	PL:ILLUMINA	LB:M5390	SM:M5390	CN:UM&lt;br /&gt;
 @RG	ID:UM0360_3:1	PL:ILLUMINA	LB:M5390	SM:M5390	CN:UM&lt;br /&gt;
 @RG	ID:UM0360_4:1	PL:ILLUMINA	LB:M5390	SM:M5390	CN:UM&lt;br /&gt;
&lt;br /&gt;
If specify nothing or not using &amp;quot;--readGroup&amp;quot;, QPLOT by default will process all reads; &lt;br /&gt;
If specify &amp;quot;--readGroup UM0348&amp;quot;, then only read group UM0348_1, UM_0348_2, UM_0348_3, UM_0348_4 will be processed; &lt;br /&gt;
If specify &amp;quot;--readGroup UM0348_1&amp;quot;, then only one read group UM0348_1 will be processed.&lt;br /&gt;
&lt;br /&gt;
* Input file options :&lt;br /&gt;
&lt;br /&gt;
BAM files are compress by BGZF algorithm and it should contain EOF by default. QPLOT will by default stop working when it does not found a valid EOF tag inside BAM files. &lt;br /&gt;
However, you can force QPLOT to continue process using --noeof. But you should be award the input files may be corrupted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Mapping filters&lt;br /&gt;
&lt;br /&gt;
Qplot will exclude reads with lower mapping qualities than the user specified parameter, &amp;lt;code&amp;gt;--minMapQuality&amp;lt;/code&amp;gt;. By default, mapped reads with all mapping quality will be included in the analysis.&lt;br /&gt;
&lt;br /&gt;
*Region list&lt;br /&gt;
&lt;br /&gt;
If the interest of qplot is a list of regions, e.g. exons, this can be achieved by providing a list of regions. The regions should be in the form of &amp;quot;chr start end label&amp;quot; each line in the file (NOTE: &#039;&#039;start&#039;&#039; and &#039;&#039;end&#039;&#039; position are inclusive and they follow the convention of [http://genome.ucsc.edu/FAQ/FAQformat#format1 BED file]). &lt;br /&gt;
In order for this option to work, within each chromosome (contig) the regions have to be sorted by starting position, and also the input bam files have to be sorted. &lt;br /&gt;
For example, you can create a text file, region.txt like following:&lt;br /&gt;
&lt;br /&gt;
 1 100 500 region_A&lt;br /&gt;
 1 600 800 region_B&lt;br /&gt;
 2 100 300 region_C&lt;br /&gt;
 &lt;br /&gt;
Then specifying &amp;lt;code&amp;gt; --regions region.txt&amp;lt;/code&amp;gt; enables qplot to calculate various statistics out of sequenced bases only within the above 3 regions.&lt;br /&gt;
&lt;br /&gt;
Qplot also provides the &amp;lt;code&amp;gt;--invertRegion&amp;lt;/code&amp;gt; option. Enabling this option tells qplot to operate on those sequence bases that are outside the given region.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Plot labels&lt;br /&gt;
&lt;br /&gt;
Two kinds of labels are enabled. &amp;lt;code&amp;gt;--label&amp;lt;/code&amp;gt; is the label for the plot (default is empty) which is appended to the title of each subplot. &amp;lt;code&amp;gt;--bamLabels&amp;lt;/code&amp;gt; followed by a column separated list of labels provides the labels for each input SAM/BAM file, e.g. sample ID (default is numbers 1, 2, ... until the number of input bam files). For example:&lt;br /&gt;
 --label Run100 --bamLabels s1,s2,s3,s4,s5,s6,s7,s8&lt;br /&gt;
&lt;br /&gt;
== Output files ==&lt;br /&gt;
&lt;br /&gt;
There are three (optional) output files.&lt;br /&gt;
* &amp;lt;code&amp;gt;--plot &#039;&#039;qa.pdf&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Qplot will generate a PDF file named &#039;&#039;qa.pdf&#039;&#039; containing 2 pages each with 4 figures. The plot is generated using Rscript.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;--stats &#039;&#039;qa.stats&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Qplot will generate a text file named &#039;&#039;qa.stats&#039;&#039; containing various summary statistics for each input BAM/SAM file.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;--Rcode &#039;&#039;qa.R&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Qplot will generate &#039;&#039;qa.R&#039;&#039; which is the R code used for plotting the figures in the &#039;&#039;qa.pdf&#039;&#039; file. If Rscript is not installed in the system, you can use the qa.R to generate the figures on other machines, or extract plotting data from each run and combine multiple runs together to generate more comprehensive plots (See [[#Example | Example]]).&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&lt;br /&gt;
Qplot can generate diagnostic graphs, related R code, and summary statistics for each SAM/BAM file.&lt;br /&gt;
&lt;br /&gt;
== Built-in example ==&lt;br /&gt;
&lt;br /&gt;
In the pre-compiled binary download, you will find a subdirectory named examples. We provide a sample file from the 1000 Genome project, it contains aligned reads on chromosome 20 from position 8 Mbp to 9Mbp. You can invoke qplot using the following command line:&lt;br /&gt;
&lt;br /&gt;
 ../bin/qplot --reference ../data/human.g1k.v37.umfa --dbsnp ../data/dbSNP130.UCSC.coordinates.tbl --gccontent ../data/human.g1k.w100.gc --plot qplot.pdf --stats qplot.stats --Rcode qplot.R --label &amp;quot;chr20:9M-10M&amp;quot; chrom20.9M.10M.bam&lt;br /&gt;
&lt;br /&gt;
Sample outputs are listed below:&lt;br /&gt;
&lt;br /&gt;
1) Figure: [[Media:qplot.pdf | qplot.pdf]]&lt;br /&gt;
&lt;br /&gt;
2) Summary statistics:&lt;br /&gt;
 Stats\BAM       chrom20.9M.10M.bam&lt;br /&gt;
 TotalReads(e6)  1.11&lt;br /&gt;
 MappingRate(%)  97.24&lt;br /&gt;
 MapRate_MQpass(%)       97.24&lt;br /&gt;
 TargetMapping(%)        0.00&lt;br /&gt;
 ZeroMapQual(%)  2.39&lt;br /&gt;
 MapQual&amp;lt;10(%)   2.86&lt;br /&gt;
 PairedReads(%)  83.76&lt;br /&gt;
 ProperPaired(%) 71.34&lt;br /&gt;
 MappedBases(e9) 0.04&lt;br /&gt;
 Q20Bases(e9)    0.04&lt;br /&gt;
 Q20BasesPct(%)  88.63&lt;br /&gt;
 MeanDepth       42.22&lt;br /&gt;
 GenomeCover(%)  0.03&lt;br /&gt;
 EPS_MSE 1.81&lt;br /&gt;
 EPS_Cycle_Mean  18.71&lt;br /&gt;
 GCBiasMSE       0.01&lt;br /&gt;
 ISize_mode      137&lt;br /&gt;
 ISize_medium    184&lt;br /&gt;
 DupRate(%)      5.90&lt;br /&gt;
 QCFailRate(%)   0.00&lt;br /&gt;
 BaseComp_A(%)   29.9&lt;br /&gt;
 BaseComp_C(%)   20.1&lt;br /&gt;
 BaseComp_G(%)   20.2&lt;br /&gt;
 BaseComp_T(%)   29.8&lt;br /&gt;
 BaseComp_O(%)   0.1&lt;br /&gt;
&lt;br /&gt;
== Gallery of examples ==&lt;br /&gt;
&lt;br /&gt;
Here we show qplot can be applied in various sequencing scenarios. Also users can customize statistics generated by qplot to their needs.&lt;br /&gt;
&lt;br /&gt;
* Whole genome sequencing with 24-multiplexing&lt;br /&gt;
&lt;br /&gt;
With a customized script, we aggregated 24 bar-coded samples in the same graph.&lt;br /&gt;
The graph will help compare sequencing quality between samples. &lt;br /&gt;
&lt;br /&gt;
[[Media: qplot.Pool.9847.pdf | QPlot of 24 samples(PDF) ]]&lt;br /&gt;
&lt;br /&gt;
* Interactive qplot &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;anchorOfInteractiveQplot&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
Qplot can be interactive. In the following example, you can use mouse scroll to zoom in and zoom out on each graph and pan to a certain part of the graph.&lt;br /&gt;
By presenting qplot data on a web page, users can easily identify problematic sequencing samples. Users of qplot can customize its outputs into web page format greatly easing the data exploring process.&lt;br /&gt;
&lt;br /&gt;
[http://www-personal.umich.edu/~zhanxw/qplot.Pool.9847.html  QPlot of 24 samples(HTML) ]&lt;br /&gt;
&lt;br /&gt;
== Diagnose sequencing quality ==&lt;br /&gt;
&lt;br /&gt;
Qplot is designed and implemented for the need of checking sequencing quality. &lt;br /&gt;
Besides the example of analyzing RNA-seq data as shown in our manuscript, &lt;br /&gt;
here we demonstrate two additional scenarios in which qplot can help identify problems after obtaining sequencing data. &lt;br /&gt;
&lt;br /&gt;
* Base quality distributed abnormally&lt;br /&gt;
&lt;br /&gt;
[[Media: WrongBaseQual.pdf | Example of qplot helping to identify wrong phred base quality]]&lt;br /&gt;
&lt;br /&gt;
By checking the first graph &amp;quot;Empirical vs reported Phred score&amp;quot;, we found reported base qualities are shifted to the right.&lt;br /&gt;
In this particular example, &#039;33&#039; was incorrectly added to all base qualities. &lt;br /&gt;
When such data used in variant calling, we may increase false positive SNP variants.&lt;br /&gt;
&lt;br /&gt;
* Bar-coded samples&lt;br /&gt;
&lt;br /&gt;
[[Media: WrongBarCoding.pdf | Example of qplot identifying the effect of ignoring bar-coding]]&lt;br /&gt;
&lt;br /&gt;
By checking &amp;quot;Empirical phred score by cycle&amp;quot; (top right graph on the first page), we noticed the empirical qualities in the first several cycles are abnormally low. This phenomenon leads us to hypothesize that the first several bases have different properties. Further investigation confirmed that this sequencing was done using bar-coded DNA samples, but the analysis did not properly de-multiplex each sample.&lt;br /&gt;
&lt;br /&gt;
= Contact =&lt;br /&gt;
&lt;br /&gt;
Questions and requests should be sent to Bingshan Li ([mailto:bingshan@umich.edu bingshan@umich.edu]) or Xiaowei Zhan ([mailto:zhanxw@umich.edu zhanxw@umich.edu]) or Goncalo Abecasis ([mailto:goncalo@umich.edu goncalo@umich.edu])&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Xiaowei_Zhan&amp;diff=7542</id>
		<title>Xiaowei Zhan</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Xiaowei_Zhan&amp;diff=7542"/>
		<updated>2013-06-20T18:39:33Z</updated>

		<summary type="html">&lt;p&gt;Zhanxw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Tux_flying.gif|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Xiaowei Zhan is a PhD student in Abecasis lab.&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Some software he has been working on (click&amp;amp;nbsp;[http://genome.sph.umich.edu/w/index.php?title=Special%3ASearch&amp;amp;search=xiaowei+zhan&amp;amp;go=Go here]).&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
</feed>