<?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=Jchen</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=Jchen"/>
	<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/wiki/Special:Contributions/Jchen"/>
	<updated>2026-09-24T08:51:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14434</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14434"/>
		<updated>2016-11-15T21:39:09Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Download reference files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.v1.4.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, in the folder &amp;quot;GREGOR&amp;quot; you can find 4 directories (./Copyrights, ./example, ./lib  ./script) and 2 files (README, release_version.txt).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
ownload the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download].&lt;br /&gt;
&lt;br /&gt;
Reference files are created for the different population groups(AFR, AMR, ASN, EUR, SAN) from 1000G data (Release date : May 21, 2011).&lt;br /&gt;
&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.7, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.7.&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.2, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.2.&lt;br /&gt;
&lt;br /&gt;
After download reference files, you need merge the part files to one gz file. Use the command line likes:&lt;br /&gt;
&lt;br /&gt;
  cat \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.00 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.01 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.02 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.03 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.04 \&lt;br /&gt;
    &amp;gt; GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
 &lt;br /&gt;
Then extract this file:&lt;br /&gt;
  tar zxvf GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
&lt;br /&gt;
You will get one directory which has the name &amp;quot;AFR&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index &lt;br /&gt;
  REF_DIR = /workingdirectory/ref/&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  POPULATION = AFR  ## define the population, you can specify EUR, AFR, AMR or ASN&lt;br /&gt;
  TOPNBEDFILES = 2&lt;br /&gt;
  JOBNUMBER = 10&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = mosix ##  submit jobs on MOSIX&lt;br /&gt;
  #BATCHOPTS = -E/tmp -i -m2000 -j10,11,12,13,14,15,16,17,18,19,120,122,123,124,125 sh -c&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = slurm   ##  submit jobs on SLURM&lt;br /&gt;
  #BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  BATCHTYPE = local ##  run jobs on local machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here. If your &amp;quot;AFR&amp;quot; folder is at &amp;quot;/home/myid/GRGORE/ref/AFR/&amp;quot;, then define this parameter to &amp;quot;/home/myid/GRGORE/ref/&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size. If you download r2 &amp;amp;ge; 0.7， you can define this number between 1 and 0.7.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
POPULATION: If you use reference file &amp;quot;AFR&amp;quot;, define this to AFR. You have 5 optiones: AFR, AMR, ASN, EUR and SAN.&lt;br /&gt;
&lt;br /&gt;
GREGOR can run on local machine or on the cluster with MOSIX or SLURM.&lt;br /&gt;
BATCHTYPE: When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14433</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14433"/>
		<updated>2016-11-15T21:38:12Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Configuration File */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.v1.4.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, in the folder &amp;quot;GREGOR&amp;quot; you can find 4 directories (./Copyrights, ./example, ./lib  ./script) and 2 files (README, release_version.txt).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
ownload the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download].&lt;br /&gt;
&lt;br /&gt;
Reference files is created by populations(AFR, AMR, ASN, EUR, SAN) from 1000G data (Release date : May 21, 2011).&lt;br /&gt;
&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.7, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.7.&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.2, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.2.&lt;br /&gt;
&lt;br /&gt;
After download reference files, you need merge the part files to one gz file. Use the command line likes:&lt;br /&gt;
&lt;br /&gt;
  cat \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.00 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.01 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.02 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.03 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.04 \&lt;br /&gt;
    &amp;gt; GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
 &lt;br /&gt;
Then extract this file:&lt;br /&gt;
  tar zxvf GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
&lt;br /&gt;
You will get one directory which has the name &amp;quot;AFR&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index &lt;br /&gt;
  REF_DIR = /workingdirectory/ref/&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  POPULATION = AFR  ## define the population, you can specify EUR, AFR, AMR or ASN&lt;br /&gt;
  TOPNBEDFILES = 2&lt;br /&gt;
  JOBNUMBER = 10&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = mosix ##  submit jobs on MOSIX&lt;br /&gt;
  #BATCHOPTS = -E/tmp -i -m2000 -j10,11,12,13,14,15,16,17,18,19,120,122,123,124,125 sh -c&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = slurm   ##  submit jobs on SLURM&lt;br /&gt;
  #BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  BATCHTYPE = local ##  run jobs on local machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here. If your &amp;quot;AFR&amp;quot; folder is at &amp;quot;/home/myid/GRGORE/ref/AFR/&amp;quot;, then define this parameter to &amp;quot;/home/myid/GRGORE/ref/&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size. If you download r2 &amp;amp;ge; 0.7， you can define this number between 1 and 0.7.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
POPULATION: If you use reference file &amp;quot;AFR&amp;quot;, define this to AFR. You have 5 optiones: AFR, AMR, ASN, EUR and SAN.&lt;br /&gt;
&lt;br /&gt;
GREGOR can run on local machine or on the cluster with MOSIX or SLURM.&lt;br /&gt;
BATCHTYPE: When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14432</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14432"/>
		<updated>2016-11-15T21:24:38Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* GREGOR */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.v1.4.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, in the folder &amp;quot;GREGOR&amp;quot; you can find 4 directories (./Copyrights, ./example, ./lib  ./script) and 2 files (README, release_version.txt).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
ownload the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download].&lt;br /&gt;
&lt;br /&gt;
Reference files is created by populations(AFR, AMR, ASN, EUR, SAN) from 1000G data (Release date : May 21, 2011).&lt;br /&gt;
&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.7, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.7.&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.2, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.2.&lt;br /&gt;
&lt;br /&gt;
After download reference files, you need merge the part files to one gz file. Use the command line likes:&lt;br /&gt;
&lt;br /&gt;
  cat \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.00 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.01 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.02 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.03 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.04 \&lt;br /&gt;
    &amp;gt; GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
 &lt;br /&gt;
Then extract this file:&lt;br /&gt;
  tar zxvf GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
&lt;br /&gt;
You will get one directory which has the name &amp;quot;AFR&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index &lt;br /&gt;
  REF_DIR = /workingdirectory/ref/&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  POPULATION = AFR  ## define the population, you can specify EUR, AFR, AMR or ASN&lt;br /&gt;
  TOPNBEDFILES = 2&lt;br /&gt;
  JOBNUMBER = 10&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = mosix ##  submit jobs on MOSIX&lt;br /&gt;
  #BATCHOPTS = -E/tmp -i -m2000 -j10,11,12,13,14,15,16,17,18,19,120,122,123,124,125 sh -c&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = slurm   ##  submit jobs on SLURM&lt;br /&gt;
  #BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  BATCHTYPE = local ##  run jobs on local machine&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here. If your &amp;quot;AFR&amp;quot; folder is at &amp;quot;/home/myid/GRGORE/ref/AFR/&amp;quot;, then define this parameter to &amp;quot;/home/myid/GRGORE/ref/&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size. If you download r2 &amp;amp;ge; 0.7， you can define this number between 1 and 0.7.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
POPULATION: If you use reference file &amp;quot;AFR&amp;quot;, define this to AFR. You have 5 optiones: AFR, AMR, ASN, EUR and SAN.&lt;br /&gt;
&lt;br /&gt;
GREGOR can run on local machine or on the cluster with MOSIX or SLURM.&lt;br /&gt;
BATCHTYPE: When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14431</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14431"/>
		<updated>2016-11-15T21:23:12Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* GREGOR */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;_G_&#039;&#039;&#039;enomic &#039;&#039;&#039;_R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.v1.4.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, in the folder &amp;quot;GREGOR&amp;quot; you can find 4 directories (./Copyrights, ./example, ./lib  ./script) and 2 files (README, release_version.txt).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
ownload the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download].&lt;br /&gt;
&lt;br /&gt;
Reference files is created by populations(AFR, AMR, ASN, EUR, SAN) from 1000G data (Release date : May 21, 2011).&lt;br /&gt;
&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.7, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.7.&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.2, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.2.&lt;br /&gt;
&lt;br /&gt;
After download reference files, you need merge the part files to one gz file. Use the command line likes:&lt;br /&gt;
&lt;br /&gt;
  cat \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.00 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.01 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.02 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.03 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.04 \&lt;br /&gt;
    &amp;gt; GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
 &lt;br /&gt;
Then extract this file:&lt;br /&gt;
  tar zxvf GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
&lt;br /&gt;
You will get one directory which has the name &amp;quot;AFR&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index &lt;br /&gt;
  REF_DIR = /workingdirectory/ref/&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  POPULATION = AFR  ## define the population, you can specify EUR, AFR, AMR or ASN&lt;br /&gt;
  TOPNBEDFILES = 2&lt;br /&gt;
  JOBNUMBER = 10&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = mosix ##  submit jobs on MOSIX&lt;br /&gt;
  #BATCHOPTS = -E/tmp -i -m2000 -j10,11,12,13,14,15,16,17,18,19,120,122,123,124,125 sh -c&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = slurm   ##  submit jobs on SLURM&lt;br /&gt;
  #BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  BATCHTYPE = local ##  run jobs on local machine&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here. If your &amp;quot;AFR&amp;quot; folder is at &amp;quot;/home/myid/GRGORE/ref/AFR/&amp;quot;, then define this parameter to &amp;quot;/home/myid/GRGORE/ref/&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size. If you download r2 &amp;amp;ge; 0.7， you can define this number between 1 and 0.7.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
POPULATION: If you use reference file &amp;quot;AFR&amp;quot;, define this to AFR. You have 5 optiones: AFR, AMR, ASN, EUR and SAN.&lt;br /&gt;
&lt;br /&gt;
GREGOR can run on local machine or on the cluster with MOSIX or SLURM.&lt;br /&gt;
BATCHTYPE: When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14430</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14430"/>
		<updated>2016-11-15T21:22:59Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* GREGOR */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;_G&#039;&#039;&#039;enomic &#039;&#039;&#039;_R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.v1.4.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, in the folder &amp;quot;GREGOR&amp;quot; you can find 4 directories (./Copyrights, ./example, ./lib  ./script) and 2 files (README, release_version.txt).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
ownload the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download].&lt;br /&gt;
&lt;br /&gt;
Reference files is created by populations(AFR, AMR, ASN, EUR, SAN) from 1000G data (Release date : May 21, 2011).&lt;br /&gt;
&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.7, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.7.&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.2, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.2.&lt;br /&gt;
&lt;br /&gt;
After download reference files, you need merge the part files to one gz file. Use the command line likes:&lt;br /&gt;
&lt;br /&gt;
  cat \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.00 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.01 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.02 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.03 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.04 \&lt;br /&gt;
    &amp;gt; GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
 &lt;br /&gt;
Then extract this file:&lt;br /&gt;
  tar zxvf GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
&lt;br /&gt;
You will get one directory which has the name &amp;quot;AFR&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index &lt;br /&gt;
  REF_DIR = /workingdirectory/ref/&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  POPULATION = AFR  ## define the population, you can specify EUR, AFR, AMR or ASN&lt;br /&gt;
  TOPNBEDFILES = 2&lt;br /&gt;
  JOBNUMBER = 10&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = mosix ##  submit jobs on MOSIX&lt;br /&gt;
  #BATCHOPTS = -E/tmp -i -m2000 -j10,11,12,13,14,15,16,17,18,19,120,122,123,124,125 sh -c&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = slurm   ##  submit jobs on SLURM&lt;br /&gt;
  #BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  BATCHTYPE = local ##  run jobs on local machine&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here. If your &amp;quot;AFR&amp;quot; folder is at &amp;quot;/home/myid/GRGORE/ref/AFR/&amp;quot;, then define this parameter to &amp;quot;/home/myid/GRGORE/ref/&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size. If you download r2 &amp;amp;ge; 0.7， you can define this number between 1 and 0.7.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
POPULATION: If you use reference file &amp;quot;AFR&amp;quot;, define this to AFR. You have 5 optiones: AFR, AMR, ASN, EUR and SAN.&lt;br /&gt;
&lt;br /&gt;
GREGOR can run on local machine or on the cluster with MOSIX or SLURM.&lt;br /&gt;
BATCHTYPE: When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14429</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14429"/>
		<updated>2016-11-15T21:21:32Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Configuration File */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.v1.4.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, in the folder &amp;quot;GREGOR&amp;quot; you can find 4 directories (./Copyrights, ./example, ./lib  ./script) and 2 files (README, release_version.txt).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
ownload the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download].&lt;br /&gt;
&lt;br /&gt;
Reference files is created by populations(AFR, AMR, ASN, EUR, SAN) from 1000G data (Release date : May 21, 2011).&lt;br /&gt;
&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.7, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.7.&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.2, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.2.&lt;br /&gt;
&lt;br /&gt;
After download reference files, you need merge the part files to one gz file. Use the command line likes:&lt;br /&gt;
&lt;br /&gt;
  cat \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.00 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.01 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.02 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.03 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.04 \&lt;br /&gt;
    &amp;gt; GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
 &lt;br /&gt;
Then extract this file:&lt;br /&gt;
  tar zxvf GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
&lt;br /&gt;
You will get one directory which has the name &amp;quot;AFR&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index &lt;br /&gt;
  REF_DIR = /workingdirectory/ref/&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  POPULATION = AFR  ## define the population, you can specify EUR, AFR, AMR or ASN&lt;br /&gt;
  TOPNBEDFILES = 2&lt;br /&gt;
  JOBNUMBER = 10&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = mosix ##  submit jobs on MOSIX&lt;br /&gt;
  #BATCHOPTS = -E/tmp -i -m2000 -j10,11,12,13,14,15,16,17,18,19,120,122,123,124,125 sh -c&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = slurm   ##  submit jobs on SLURM&lt;br /&gt;
  #BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  BATCHTYPE = local ##  run jobs on local machine&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here. If your &amp;quot;AFR&amp;quot; folder is at &amp;quot;/home/myid/GRGORE/ref/AFR/&amp;quot;, then define this parameter to &amp;quot;/home/myid/GRGORE/ref/&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size. If you download r2 &amp;amp;ge; 0.7， you can define this number between 1 and 0.7.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
POPULATION: If you use reference file &amp;quot;AFR&amp;quot;, define this to AFR. You have 5 optiones: AFR, AMR, ASN, EUR and SAN.&lt;br /&gt;
&lt;br /&gt;
GREGOR can run on local machine or on the cluster with MOSIX or SLURM.&lt;br /&gt;
BATCHTYPE: When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14428</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14428"/>
		<updated>2016-11-15T21:17:42Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Configuration File */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.v1.4.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, in the folder &amp;quot;GREGOR&amp;quot; you can find 4 directories (./Copyrights, ./example, ./lib  ./script) and 2 files (README, release_version.txt).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
ownload the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download].&lt;br /&gt;
&lt;br /&gt;
Reference files is created by populations(AFR, AMR, ASN, EUR, SAN) from 1000G data (Release date : May 21, 2011).&lt;br /&gt;
&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.7, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.7.&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.2, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.2.&lt;br /&gt;
&lt;br /&gt;
After download reference files, you need merge the part files to one gz file. Use the command line likes:&lt;br /&gt;
&lt;br /&gt;
  cat \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.00 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.01 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.02 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.03 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.04 \&lt;br /&gt;
    &amp;gt; GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
 &lt;br /&gt;
Then extract this file:&lt;br /&gt;
  tar zxvf GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
&lt;br /&gt;
You will get one directory which has the name &amp;quot;AFR&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index &lt;br /&gt;
  REF_DIR = /workingdirectory/ref/&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  POPULATION = AFR  ## define the population, you can specify EUR, AFR, AMR or ASN&lt;br /&gt;
  TOPNBEDFILES = 2&lt;br /&gt;
  JOBNUMBER = 10&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = mosix ##  submit jobs on MOSIX&lt;br /&gt;
  #BATCHOPTS = -E/tmp -i -m2000 -j10,11,12,13,14,15,16,17,18,19,120,122,123,124,125 sh -c&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = slurm   ##  submit jobs on SLURM&lt;br /&gt;
  #BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  BATCHTYPE = local ##  run jobs on local machine&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here. If your &amp;quot;AFR&amp;quot; folder is at &amp;quot;/home/myid/GRGORE/ref/AFR/&amp;quot;, then define this parameter to &amp;quot;/home/myid/GRGORE/ref/&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size. If you download r2 &amp;amp;ge; 0.7&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
BATCHTYPE: We have three options for this parameter. When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14427</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14427"/>
		<updated>2016-11-15T21:16:23Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Configuration File */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.v1.4.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, in the folder &amp;quot;GREGOR&amp;quot; you can find 4 directories (./Copyrights, ./example, ./lib  ./script) and 2 files (README, release_version.txt).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
ownload the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download].&lt;br /&gt;
&lt;br /&gt;
Reference files is created by populations(AFR, AMR, ASN, EUR, SAN) from 1000G data (Release date : May 21, 2011).&lt;br /&gt;
&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.7, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.7.&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.2, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.2.&lt;br /&gt;
&lt;br /&gt;
After download reference files, you need merge the part files to one gz file. Use the command line likes:&lt;br /&gt;
&lt;br /&gt;
  cat \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.00 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.01 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.02 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.03 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.04 \&lt;br /&gt;
    &amp;gt; GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
 &lt;br /&gt;
Then extract this file:&lt;br /&gt;
  tar zxvf GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
&lt;br /&gt;
You will get one directory which has the name &amp;quot;AFR&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index &lt;br /&gt;
  REF_DIR = /workingdirectory/ref/&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  POPULATION = AFR  ## define the population, you can specify EUR, AFR, AMR or ASN&lt;br /&gt;
  TOPNBEDFILES = 2&lt;br /&gt;
  JOBNUMBER = 10&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = mosix ##  submit jobs on MOSIX&lt;br /&gt;
  #BATCHOPTS = -E/tmp -i -m2000 -j10,11,12,13,14,15,16,17,18,19,120,122,123,124,125 sh -c&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  #BATCHTYPE = slurm   ##  submit jobs on SLURM&lt;br /&gt;
  #BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  BATCHTYPE = local ##  run jobs on local machine&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here. If your &amp;quot;AFR&amp;quot; folder is at &amp;quot;/home/myid/GRGORE/ref/AFR/&amp;quot;, then define this parameter to &amp;quot;/home/myid/GRGORE/ref/&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size. If you download r2 &amp;amp;le 0.7&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
BATCHTYPE: We have three options for this parameter. When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14426</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14426"/>
		<updated>2016-11-15T21:10:48Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Configuration File */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.v1.4.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, in the folder &amp;quot;GREGOR&amp;quot; you can find 4 directories (./Copyrights, ./example, ./lib  ./script) and 2 files (README, release_version.txt).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
ownload the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download].&lt;br /&gt;
&lt;br /&gt;
Reference files is created by populations(AFR, AMR, ASN, EUR, SAN) from 1000G data (Release date : May 21, 2011).&lt;br /&gt;
&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.7, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.7.&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.2, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.2.&lt;br /&gt;
&lt;br /&gt;
After download reference files, you need merge the part files to one gz file. Use the command line likes:&lt;br /&gt;
&lt;br /&gt;
  cat \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.00 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.01 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.02 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.03 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.04 \&lt;br /&gt;
    &amp;gt; GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
 &lt;br /&gt;
Then extract this file:&lt;br /&gt;
  tar zxvf GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
&lt;br /&gt;
You will get one directory which has the name &amp;quot;AFR&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index &lt;br /&gt;
  REF_DIR = /workingdirectory/ref/&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
BATCHTYPE: We have three options for this parameter. When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14425</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14425"/>
		<updated>2016-11-15T21:08:26Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Download reference files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.v1.4.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, in the folder &amp;quot;GREGOR&amp;quot; you can find 4 directories (./Copyrights, ./example, ./lib  ./script) and 2 files (README, release_version.txt).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
ownload the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download].&lt;br /&gt;
&lt;br /&gt;
Reference files is created by populations(AFR, AMR, ASN, EUR, SAN) from 1000G data (Release date : May 21, 2011).&lt;br /&gt;
&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.7, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.7.&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.2, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.2.&lt;br /&gt;
&lt;br /&gt;
After download reference files, you need merge the part files to one gz file. Use the command line likes:&lt;br /&gt;
&lt;br /&gt;
  cat \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.00 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.01 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.02 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.03 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.04 \&lt;br /&gt;
    &amp;gt; GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
 &lt;br /&gt;
Then extract this file:&lt;br /&gt;
  tar zxvf GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
&lt;br /&gt;
You will get one directory which has the name &amp;quot;AFR&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
BATCHTYPE: We have three options for this parameter. When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14424</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14424"/>
		<updated>2016-11-15T21:07:51Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Download reference files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.v1.4.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, in the folder &amp;quot;GREGOR&amp;quot; you can find 4 directories (./Copyrights, ./example, ./lib  ./script) and 2 files (README, release_version.txt).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
ownload the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download].&lt;br /&gt;
&lt;br /&gt;
Reference files is created by populations(AFR, AMR, ASN, EUR, SAN) from 1000G data.&lt;br /&gt;
&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.7, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.7.&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.2, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.2.&lt;br /&gt;
&lt;br /&gt;
After download reference files, you need merge the part files to one gz file. Use the command line likes:&lt;br /&gt;
&lt;br /&gt;
  cat \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.00 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.01 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.02 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.03 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.04 \&lt;br /&gt;
    &amp;gt; GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
 &lt;br /&gt;
Then extract this file:&lt;br /&gt;
  tar zxvf GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
&lt;br /&gt;
You will get one directory which has the name &amp;quot;AFR&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
BATCHTYPE: We have three options for this parameter. When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14423</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14423"/>
		<updated>2016-11-15T21:06:45Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Download reference files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.v1.4.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, in the folder &amp;quot;GREGOR&amp;quot; you can find 4 directories (./Copyrights, ./example, ./lib  ./script) and 2 files (README, release_version.txt).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
ownload the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download].&lt;br /&gt;
&lt;br /&gt;
Reference files is created by populations(AFR, AMR, ASN, EUR, SAN) from 1000G data.&lt;br /&gt;
&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.7, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.7.&lt;br /&gt;
If your LD r2 threshold equals or greater than 0.2, please download reference files from category: LD window size = 1MB; LD r2 ≥ 0.2.&lt;br /&gt;
&lt;br /&gt;
After download reference files, you need merge the part files to one gz file. Use the command line likes:&lt;br /&gt;
&lt;br /&gt;
  cat \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.00 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.01 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.02 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.03 \&lt;br /&gt;
    GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz.part.04 \&lt;br /&gt;
    &amp;gt; GREGOR.AFR.ref.r2.greater.than.0.2.tar.gz&lt;br /&gt;
 &lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
BATCHTYPE: We have three options for this parameter. When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14422</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14422"/>
		<updated>2016-11-15T20:55:35Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Build GREGOR */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.v1.4.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, in the folder &amp;quot;GREGOR&amp;quot; you can find 4 directories (./Copyrights, ./example, ./lib  ./script) and 2 files (README, release_version.txt).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
BATCHTYPE: We have three options for this parameter. When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14191</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14191"/>
		<updated>2016-06-01T14:14:05Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Reference Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
BATCHTYPE: We have three options for this parameter. When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
*LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
**All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14190</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14190"/>
		<updated>2016-06-01T14:13:20Z</updated>

		<summary type="html">&lt;p&gt;Jchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
BATCHTYPE: We have three options for this parameter. When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Reference Files  ==&lt;br /&gt;
We provide two kinds of reference files. The difference between these reference data are LD buddy definitions.&lt;br /&gt;
LD window size = 1MB; LD r2 ≥ 0.7：&lt;br /&gt;
    All LD buddies are in window size 1MB and r2 is greater than and equals to 0.7. If you want to calculate LD buddies in 1MB and r2 ≥ 0.7 (such as 0.9,0.8,0.7), please use these reference data.&lt;br /&gt;
LD window size = 1MB; LD r2 ≥ 0.2： &lt;br /&gt;
    All LD buddies are in window size 1MB and r2 is greater than and equals to 0.2. If you want to calculate LD buddies in 1MB and r2 ≥ 0.2 (such as 0.6,0.5,0.4,0.3,0.2), please use these reference data.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14077</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14077"/>
		<updated>2016-02-01T15:28:37Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Results Output */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
BATCHTYPE: We have three options for this parameter. When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
** If one index SNP and its LD-buddies are not in any bed region, the Pvalue could be defined to &amp;quot;NA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14076</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14076"/>
		<updated>2016-02-01T15:27:27Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Results Output */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
BATCHTYPE: We have three options for this parameter. When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  &lt;br /&gt;
**SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14075</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14075"/>
		<updated>2016-02-01T15:26:34Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Results Output */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
BATCHTYPE: We have three options for this parameter. When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
[[File:GREGOR Summary 20160201.png]]&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=File:GREGOR_Summary_20160201.png&amp;diff=14074</id>
		<title>File:GREGOR Summary 20160201.png</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=File:GREGOR_Summary_20160201.png&amp;diff=14074"/>
		<updated>2016-02-01T15:25:49Z</updated>

		<summary type="html">&lt;p&gt;Jchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14073</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=14073"/>
		<updated>2016-02-01T14:55:27Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Configuration File */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  BATCHTYPE = slurm&lt;br /&gt;
  BATCHOPTS = --partition=main --time=0:30:0&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
BATCHTYPE: We have three options for this parameter. When you run GREGOR on local machine, specify &amp;quot;local&amp;quot;; when run on MOSIX system, specify &amp;quot;mosix&amp;quot;; when run on SLURM system, specify &amp;quot;slurm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
BATCHOPTS: This parameter works with BATCHTYPE when you specify &amp;quot;mosix&amp;quot; or &amp;quot;slurm&amp;quot;. For example, when you define mosix, this parameter can be &amp;quot;-E/tmp -i -m2000 -j10,11,12,13,14,15,16 sh -c&amp;quot;; when you define &amp;quot;slurm&amp;quot;, it can be &amp;quot;--partition=1000g --time=0:30:0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13477</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13477"/>
		<updated>2015-06-05T17:16:18Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Download from webpage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://csg.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13476</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13476"/>
		<updated>2015-06-05T17:15:50Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Download reference files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://gvt.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://csg.sph.umich.edu/GREGOR/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13451</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13451"/>
		<updated>2015-05-27T13:34:53Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Download reference files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://gvt.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://csg.sph.umich.edu/jich/GREGOR/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13450</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13450"/>
		<updated>2015-05-27T13:14:31Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Download reference files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://gvt.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://www.sph.umich.edu/csg/jich/GREGOR/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13163</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13163"/>
		<updated>2015-04-14T16:52:23Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Download from webpage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://gvt.sph.umich.edu/GREGOR/  GREGOR], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://www.sph.umich.edu/csg/jich/FallInBed/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13162</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13162"/>
		<updated>2015-04-14T16:52:01Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Get GREGOR Source Codes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://gvt.sph.umich.edu/GREGOR/  GREGOR Download], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://www.sph.umich.edu/csg/jich/FallInBed/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13161</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13161"/>
		<updated>2015-04-14T16:51:23Z</updated>

		<summary type="html">&lt;p&gt;Jchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/FallInBed/  GREGOR Download], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://www.sph.umich.edu/csg/jich/FallInBed/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13160</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13160"/>
		<updated>2015-04-14T16:51:11Z</updated>

		<summary type="html">&lt;p&gt;Jchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/FallInBed/  GREGOR Download], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/GREGOR&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/GREGOR/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;GREGOR&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://www.sph.umich.edu/csg/jich/FallInBed/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13159</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=13159"/>
		<updated>2015-04-14T16:50:41Z</updated>

		<summary type="html">&lt;p&gt;Jchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/FallInBed/  GREGOR Download], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/GREGOR&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/GREGOR&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/GREGOR/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;GREGOR&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://www.sph.umich.edu/csg/jich/FallInBed/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /workingdirectory/example/example.index.snps.rsid.list.txt    ## e.g. /workingdirectory/example/example.index.snps.rsid.list.txt&lt;br /&gt;
  BED_FILE_INDEX = /workingdirectory/example/example.bed.file.index ## e.g. /workingdirectory/example/example.bed.file.index&lt;br /&gt;
  REF_DIR = /workingdirectory/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /workingdirectory/example/example.rsid.20130808/ ## e.g. /workingdirectory/example/example.rsid.20130808/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP (and control SNP) LD proxies by r2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define the minimum number of control SNPs for each index SNP. Script will find no less than this number around every index SNP.  If you make this number of control SNPs very large, the control SNPs will be less closely matched on the three matching properties (distance to nearest gene, frequency and number of SNPs in LD).&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11825</id>
		<title>Genezoom</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11825"/>
		<updated>2014-10-23T13:26:36Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Get geneZoom Source Codes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;GeneZoom&#039;&#039;&#039; plot is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals. It takes an annotated VCF file as input and generate a text file with specific variant information extracted from VCF file. An R script is used to draw GeneZoom plot based on the text file.&lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your VCF file is also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get geneZoom Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/GeneZoom/  geneZoom Download], you can download a copy of geneZoom.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called geneZoom in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/geneZoom&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/geneZoom&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/geneZoom/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;geneZoom&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build geneZoom ==&lt;br /&gt;
&lt;br /&gt;
To build geneZoom, copy the geneZoom package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf geneZoom.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;geneZoom&amp;quot; (./example  ./lib  ./scripts ./ref).&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about geneZoom&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
GeneZoom.pl :&lt;br /&gt;
-------------&lt;br /&gt;
This tool is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
The SNPs and VCF should be hg19 version.&lt;br /&gt;
VCF file must have the header greater than 4.0 version.&lt;br /&gt;
This tool will run ANOVAR to annotate VCF. The annotation values should be in the value list of ANOVAR(http://www.openbioinformatics.org/annovar/annovar_gene.html).&lt;br /&gt;
&lt;br /&gt;
Version : 1.0.1&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
-------------------------------------&lt;br /&gt;
Usage :&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --flag &amp;quot;splicing:0.01:0.02,nonsense:blue,missense&amp;quot; --format pdf --outDIR outDIR&lt;br /&gt;
&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --snpChrFieldName chr --snpPosFieldName pos --snpDelim tab/comma/blank --flag &amp;quot;splicing:green,nonsense:0.02:0.03,missense&amp;quot; --lables &amp;quot;chr1:123,chr2:234&amp;quot; --outDIR outDIR&lt;br /&gt;
--------------------------------------&lt;br /&gt;
&lt;br /&gt;
== Get Help ==&lt;br /&gt;
When you run&lt;br /&gt;
  perl geneZoom.pl --man&lt;br /&gt;
  perl geneZoom.pl --help&lt;br /&gt;
  perldoc geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
You can get the help document.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&#039;&#039;&#039;vcf&#039;&#039;&#039;: The VCF file has SNP information. This VCF must have header with sample ID. It can be a gz file or ASCII file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;gene&#039;&#039;&#039;: The gene region will be plotted. For example, &amp;quot;PCSK9&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeFile&#039;&#039;&#039;: The phenotype has phenotype value and sample ID. This file must have header to spcify which colum is phenotype value and sample ID.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sampleFieldName&#039;&#039;&#039;: The field name of sample ID in the phenotype file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeFieldName&#039;&#039;&#039;: The field name of phenotype value in the phenotype file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeDelim&#039;&#039;&#039;: The delim in phenotype file. It can be tab, blank or comma.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpList&#039;&#039;&#039;: SNP list which you want to show in plot. If you have a lot SNPs in the gene region, you can specify the SNPs only shown in the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpChrFieldName&#039;&#039;&#039;: The field name of CHR in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpPosFieldName&#039;&#039;&#039;: The field name of POS in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpChrPosFieldName&#039;&#039;&#039;: The field name of CHR:POS in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpDelim&#039;&#039;&#039;: The delim in snp list. It can be tab, blank or comma. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;lableSNPs&#039;&#039;&#039;: The SNP which will be labled in plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;flags&#039;&#039;&#039;: The annotation values, MAF range and colors. For example,splicing:0:0.01:red,readthrough:blue. You must specify annotation value,MAF range and color can be empty. The tool will use the default MAF range(0,0.5), and random select one color.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;defaultIntron&#039;&#039;&#039;: The default intron lenght in plot. When draw enxon region, tool re-define the intron region with this value. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;title&#039;&#039;&#039;: The titile of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;xlab&#039;&#039;&#039;: The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ylab&#039;&#039;&#039;: The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;titleCex&#039;&#039;&#039;: The cex of title. This value can change the size of title. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;xlabCex&#039;&#039;&#039;: The cex of xlab. This value can change the size of xlab. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ylabCex&#039;&#039;&#039;: The cex of ylab. This value can change the size of ylab. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;scatterYAxisCex&#039;&#039;&#039;: The cex of y axis. This value can change the size of y axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeMeanLineColor&#039;&#039;&#039;: The color of mean value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeMeanLineType&#039;&#039;&#039;: The line type of mean value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeSDLineColor&#039;&#039;&#039;: The color of standard deviation value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeSDLineType&#039;&#039;&#039;: The line type of standard deviation value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;exonRegionColor&#039;&#039;&#039;: The color of exon region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLabelAngle&#039;&#039;&#039;: The lable angle of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLableCex&#039;&#039;&#039;: The cex of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLablePos1&#039;&#039;&#039;: The position 1 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLablePos2&#039;&#039;&#039;: The position 2 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;width&#039;&#039;&#039;: The width of plot. Default is 14.1 . Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;height&#039;&#039;&#039;: The height of plot. Default is 10. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;format&#039;&#039;&#039;: The format of plot. It can be pdf,tiff and png. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;outDIR&#039;&#039;&#039;: The result directory. All intermediate files and result plot file are in this folder.&lt;br /&gt;
&lt;br /&gt;
== Testing geneZoom ==&lt;br /&gt;
There is an example directory in ~/geneZoom. You can find vcf file, phenotype file and on sh file.&lt;br /&gt;
Run geneZoom example.sh.&lt;br /&gt;
&lt;br /&gt;
  sh ~/geneZoom/example/example.sh&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;PCSK9.pdf&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
&#039;&#039;&#039;geneZoom&#039;&#039;&#039; is the result of collaborative efforts by Cristen Willer, Jin Chen, He zhang, Ellen Schmidt, Wei Zhou, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=FallInBed&amp;diff=11633</id>
		<title>FallInBed</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=FallInBed&amp;diff=11633"/>
		<updated>2014-09-24T11:15:55Z</updated>

		<summary type="html">&lt;p&gt;Jchen: Jchen moved page FallInBed to GREGOR&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[GREGOR]]&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=11632</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=11632"/>
		<updated>2014-09-24T11:15:54Z</updated>

		<summary type="html">&lt;p&gt;Jchen: Jchen moved page FallInBed to GREGOR&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/FallInBed/  GREGOR Download], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/GREGOR.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/GREGOR.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called GREGOR in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/GREGOR&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/GREGOR&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/GREGOR/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;GREGOR&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://www.sph.umich.edu/csg/jich/FallInBed/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.index.snps.rsid.list.txt    ## e.g. /home/myid/data/FallInBed/example.snp.txt&lt;br /&gt;
  BED_FILE_INDEX = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.bed.file.index ## e.g. /home/myid/data/FallInBed/bedfiles.index&lt;br /&gt;
  REF_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.rsid.20130808/ ## e.g. /home/myid/data/FallInBed/result/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP LD proxies by R2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define neighbor number around index SNP. Script will find no less than this number around every index SNP.&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=11631</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=11631"/>
		<updated>2014-09-24T11:09:00Z</updated>

		<summary type="html">&lt;p&gt;Jchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/FallInBed/  GREGOR Download], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/GREGOR.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/GREGOR.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called GREGOR in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/GREGOR&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/GREGOR&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/GREGOR/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;GREGOR&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://www.sph.umich.edu/csg/jich/FallInBed/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.index.snps.rsid.list.txt    ## e.g. /home/myid/data/FallInBed/example.snp.txt&lt;br /&gt;
  BED_FILE_INDEX = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.bed.file.index ## e.g. /home/myid/data/FallInBed/bedfiles.index&lt;br /&gt;
  REF_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.rsid.20130808/ ## e.g. /home/myid/data/FallInBed/result/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP LD proxies by R2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define neighbor number around index SNP. Script will find no less than this number around every index SNP.&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=11630</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=11630"/>
		<updated>2014-09-24T11:07:39Z</updated>

		<summary type="html">&lt;p&gt;Jchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/FallInBed/  GREGOR Download], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/GREGOR.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/GREGOR.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called GREGOR in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/GREGOR&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/GREGOR&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/GREGOR/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;FallInBed&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://www.sph.umich.edu/csg/jich/FallInBed/  GREGOR Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.index.snps.rsid.list.txt    ## e.g. /home/myid/data/FallInBed/example.snp.txt&lt;br /&gt;
  BED_FILE_INDEX = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.bed.file.index ## e.g. /home/myid/data/FallInBed/bedfiles.index&lt;br /&gt;
  REF_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.rsid.20130808/ ## e.g. /home/myid/data/FallInBed/result/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP LD proxies by R2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define neighbor number around index SNP. Script will find no less than this number around every index SNP.&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=11629</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=11629"/>
		<updated>2014-09-24T10:59:00Z</updated>

		<summary type="html">&lt;p&gt;Jchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==GREGOR==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;GREGOR&#039;&#039;&#039; (&#039;&#039;&#039;G&#039;&#039;&#039;enomic &#039;&#039;&#039;R&#039;&#039;&#039;egulatory &#039;&#039;&#039;E&#039;&#039;&#039;lements and &#039;&#039;&#039;G&#039;&#039;&#039;was &#039;&#039;&#039;O&#039;&#039;&#039;verlap algo&#039;&#039;&#039;R&#039;&#039;&#039;ithm) is a tool built to evaluate global enrichment of trait-associated variants in experimentally annotated epigenomic regulatory features. &lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your index SNP list and BED files are also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get GREGOR Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/FallInBed/  FallInBed Download], you can download a copy of GREGOR.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/GREGOR.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/GREGOR.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called GREGOR in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/GREGOR&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/GREGOR&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/GREGOR/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;FallInBed&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build GREGOR ==&lt;br /&gt;
&lt;br /&gt;
To build GREGOR, copy the GREGOR package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;GREGOR&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://www.sph.umich.edu/csg/jich/FallInBed/  FallInBed Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf GREGOR.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about GREGOR&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
GREGOR.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl GREGOR.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the GREGOR configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.index.snps.rsid.list.txt    ## e.g. /home/myid/data/FallInBed/example.snp.txt&lt;br /&gt;
  BED_FILE_INDEX = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.bed.file.index ## e.g. /home/myid/data/FallInBed/bedfiles.index&lt;br /&gt;
  REF_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.rsid.20130808/ ## e.g. /home/myid/data/FallInBed/result/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP LD proxies by R2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define neighbor number around index SNP. Script will find no less than this number around every index SNP.&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing GREGOR ==&lt;br /&gt;
There is an example directory in ~/GREGOR. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/GREGOR/script/GREGOR.pl --conf ~/GREGOR/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
GREGOR is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11599</id>
		<title>Genezoom</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11599"/>
		<updated>2014-09-16T09:45:44Z</updated>

		<summary type="html">&lt;p&gt;Jchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;GeneZoom&#039;&#039;&#039; plot is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals. It takes an annotated VCF file as input and generate a text file with specific variant information extracted from VCF file. An R script is used to draw GeneZoom plot based on the text file.&lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your VCF file is also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get geneZoom Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/geneZoom/  geneZoom Download], you can download a copy of geneZoom.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called geneZoom in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/geneZoom&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/geneZoom&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/geneZoom/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;geneZoom&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build geneZoom ==&lt;br /&gt;
&lt;br /&gt;
To build geneZoom, copy the geneZoom package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf geneZoom.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;geneZoom&amp;quot; (./example  ./lib  ./scripts ./ref).&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about geneZoom&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
GeneZoom.pl :&lt;br /&gt;
-------------&lt;br /&gt;
This tool is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
The SNPs and VCF should be hg19 version.&lt;br /&gt;
VCF file must have the header greater than 4.0 version.&lt;br /&gt;
This tool will run ANOVAR to annotate VCF. The annotation values should be in the value list of ANOVAR(http://www.openbioinformatics.org/annovar/annovar_gene.html).&lt;br /&gt;
&lt;br /&gt;
Version : 1.0.1&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
-------------------------------------&lt;br /&gt;
Usage :&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --flag &amp;quot;splicing:0.01:0.02,nonsense:blue,missense&amp;quot; --format pdf --outDIR outDIR&lt;br /&gt;
&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --snpChrFieldName chr --snpPosFieldName pos --snpDelim tab/comma/blank --flag &amp;quot;splicing:green,nonsense:0.02:0.03,missense&amp;quot; --lables &amp;quot;chr1:123,chr2:234&amp;quot; --outDIR outDIR&lt;br /&gt;
--------------------------------------&lt;br /&gt;
&lt;br /&gt;
== Get Help ==&lt;br /&gt;
When you run&lt;br /&gt;
  perl geneZoom.pl --man&lt;br /&gt;
  perl geneZoom.pl --help&lt;br /&gt;
  perldoc geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
You can get the help document.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&#039;&#039;&#039;vcf&#039;&#039;&#039;: The VCF file has SNP information. This VCF must have header with sample ID. It can be a gz file or ASCII file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;gene&#039;&#039;&#039;: The gene region will be plotted. For example, &amp;quot;PCSK9&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeFile&#039;&#039;&#039;: The phenotype has phenotype value and sample ID. This file must have header to spcify which colum is phenotype value and sample ID.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sampleFieldName&#039;&#039;&#039;: The field name of sample ID in the phenotype file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeFieldName&#039;&#039;&#039;: The field name of phenotype value in the phenotype file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeDelim&#039;&#039;&#039;: The delim in phenotype file. It can be tab, blank or comma.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpList&#039;&#039;&#039;: SNP list which you want to show in plot. If you have a lot SNPs in the gene region, you can specify the SNPs only shown in the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpChrFieldName&#039;&#039;&#039;: The field name of CHR in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpPosFieldName&#039;&#039;&#039;: The field name of POS in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpChrPosFieldName&#039;&#039;&#039;: The field name of CHR:POS in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpDelim&#039;&#039;&#039;: The delim in snp list. It can be tab, blank or comma. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;lableSNPs&#039;&#039;&#039;: The SNP which will be labled in plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;flags&#039;&#039;&#039;: The annotation values, MAF range and colors. For example,splicing:0:0.01:red,readthrough:blue. You must specify annotation value,MAF range and color can be empty. The tool will use the default MAF range(0,0.5), and random select one color.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;defaultIntron&#039;&#039;&#039;: The default intron lenght in plot. When draw enxon region, tool re-define the intron region with this value. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;title&#039;&#039;&#039;: The titile of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;xlab&#039;&#039;&#039;: The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ylab&#039;&#039;&#039;: The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;titleCex&#039;&#039;&#039;: The cex of title. This value can change the size of title. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;xlabCex&#039;&#039;&#039;: The cex of xlab. This value can change the size of xlab. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ylabCex&#039;&#039;&#039;: The cex of ylab. This value can change the size of ylab. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;scatterYAxisCex&#039;&#039;&#039;: The cex of y axis. This value can change the size of y axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeMeanLineColor&#039;&#039;&#039;: The color of mean value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeMeanLineType&#039;&#039;&#039;: The line type of mean value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeSDLineColor&#039;&#039;&#039;: The color of standard deviation value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeSDLineType&#039;&#039;&#039;: The line type of standard deviation value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;exonRegionColor&#039;&#039;&#039;: The color of exon region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLabelAngle&#039;&#039;&#039;: The lable angle of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLableCex&#039;&#039;&#039;: The cex of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLablePos1&#039;&#039;&#039;: The position 1 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLablePos2&#039;&#039;&#039;: The position 2 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;width&#039;&#039;&#039;: The width of plot. Default is 14.1 . Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;height&#039;&#039;&#039;: The height of plot. Default is 10. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;format&#039;&#039;&#039;: The format of plot. It can be pdf,tiff and png. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;outDIR&#039;&#039;&#039;: The result directory. All intermediate files and result plot file are in this folder.&lt;br /&gt;
&lt;br /&gt;
== Testing geneZoom ==&lt;br /&gt;
There is an example directory in ~/geneZoom. You can find vcf file, phenotype file and on sh file.&lt;br /&gt;
Run geneZoom example.sh.&lt;br /&gt;
&lt;br /&gt;
  sh ~/geneZoom/example/example.sh&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;PCSK9.pdf&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
&#039;&#039;&#039;geneZoom&#039;&#039;&#039; is the result of collaborative efforts by Cristen Willer, Jin Chen, He zhang, Ellen Schmidt, Wei Zhou, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11598</id>
		<title>Genezoom</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11598"/>
		<updated>2014-09-16T09:25:16Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Parameters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;GeneZoom&#039;&#039;&#039; plot is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals. It takes an annotated VCF file as input and generate a text file with specific variant information extracted from VCF file. An R script is used to draw GeneZoom plot based on the text file.&lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your VCF file is also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get geneZoom Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/geneZoom/  geneZoom Download], you can download a copy of geneZoom.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called geneZoom in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/geneZoom&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/geneZoom&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/geneZoom/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;geneZoom&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build geneZoom ==&lt;br /&gt;
&lt;br /&gt;
To build geneZoom, copy the geneZoom package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf geneZoom.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;geneZoom&amp;quot; (./example  ./lib  ./scripts ./ref).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about geneZoom&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
GeneZoom.pl :&lt;br /&gt;
-------------&lt;br /&gt;
This tool is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
The SNPs and VCF should be hg19 version.&lt;br /&gt;
VCF file must have the header greater than 4.0 version.&lt;br /&gt;
This tool will run ANOVAR to annotate VCF. The annotation values should be in the value list of ANOVAR(http://www.openbioinformatics.org/annovar/annovar_gene.html).&lt;br /&gt;
&lt;br /&gt;
Version : 1.0.1&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
-------------------------------------&lt;br /&gt;
Usage :&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --flag &amp;quot;splicing:0.01:0.02,nonsense:blue,missense&amp;quot; --format pdf --outDIR outDIR&lt;br /&gt;
&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --snpChrFieldName chr --snpPosFieldName pos --snpDelim tab/comma/blank --flag &amp;quot;splicing:green,nonsense:0.02:0.03,missense&amp;quot; --lables &amp;quot;chr1:123,chr2:234&amp;quot; --outDIR outDIR&lt;br /&gt;
--------------------------------------&lt;br /&gt;
&lt;br /&gt;
== Get Help ==&lt;br /&gt;
When you run&lt;br /&gt;
  perl geneZoom.pl --man&lt;br /&gt;
  perl geneZoom.pl --help&lt;br /&gt;
  perldoc geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
You can get the help document.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&#039;&#039;&#039;vcf&#039;&#039;&#039;: The VCF file has SNP information. This VCF must have header with sample ID. It can be a gz file or ASCII file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;gene&#039;&#039;&#039;: The gene region will be plotted. For example, &amp;quot;PCSK9&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeFile&#039;&#039;&#039;: The phenotype has phenotype value and sample ID. This file must have header to spcify which colum is phenotype value and sample ID.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sampleFieldName&#039;&#039;&#039;: The field name of sample ID in the phenotype file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeFieldName&#039;&#039;&#039;: The field name of phenotype value in the phenotype file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeDelim&#039;&#039;&#039;: The delim in phenotype file. It can be tab, blank or comma.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpList&#039;&#039;&#039;: SNP list which you want to show in plot. If you have a lot SNPs in the gene region, you can specify the SNPs only shown in the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpChrFieldName&#039;&#039;&#039;: The field name of CHR in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpPosFieldName&#039;&#039;&#039;: The field name of POS in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpChrPosFieldName&#039;&#039;&#039;: The field name of CHR:POS in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpDelim&#039;&#039;&#039;: The delim in snp list. It can be tab, blank or comma. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;lableSNPs&#039;&#039;&#039;: The SNP which will be labled in plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;flags&#039;&#039;&#039;: The annotation values, MAF range and colors. For example,splicing:0:0.01:red,readthrough:blue. You must specify annotation value,MAF range and color can be empty. The tool will use the default MAF range(0,0.5), and random select one color.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;defaultIntron&#039;&#039;&#039;: The default intron lenght in plot. When draw enxon region, tool re-define the intron region with this value. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;title&#039;&#039;&#039;: The titile of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;xlab&#039;&#039;&#039;: The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ylab&#039;&#039;&#039;: The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;titleCex&#039;&#039;&#039;: The cex of title. This value can change the size of title. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;xlabCex&#039;&#039;&#039;: The cex of xlab. This value can change the size of xlab. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ylabCex&#039;&#039;&#039;: The cex of ylab. This value can change the size of ylab. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;scatterYAxisCex&#039;&#039;&#039;: The cex of y axis. This value can change the size of y axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeMeanLineColor&#039;&#039;&#039;: The color of mean value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeMeanLineType&#039;&#039;&#039;: The line type of mean value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeSDLineColor&#039;&#039;&#039;: The color of standard deviation value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeSDLineType&#039;&#039;&#039;: The line type of standard deviation value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;exonRegionColor&#039;&#039;&#039;: The color of exon region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLabelAngle&#039;&#039;&#039;: The lable angle of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLableCex&#039;&#039;&#039;: The cex of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLablePos1&#039;&#039;&#039;: The position 1 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLablePos2&#039;&#039;&#039;: The position 2 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;width&#039;&#039;&#039;: The width of plot. Default is 14.1 . Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;height&#039;&#039;&#039;: The height of plot. Default is 10. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;format&#039;&#039;&#039;: The format of plot. It can be pdf,tiff and png. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;outDIR&#039;&#039;&#039;: The result directory. All intermediate files and result plot file are in this folder.&lt;br /&gt;
&lt;br /&gt;
== Testing geneZoom ==&lt;br /&gt;
There is an example directory in ~/geneZoom. You can find vcf file, phenotype file and on sh file.&lt;br /&gt;
Run geneZoom example.sh.&lt;br /&gt;
&lt;br /&gt;
  sh ~/geneZoom/example/example.sh&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;PCSK9.pdf&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
&#039;&#039;&#039;geneZoom&#039;&#039;&#039; is the result of collaborative efforts by Cristen Willer, Jin Chen, He zhang, Ellen Schmidt, Wei Zhou, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11597</id>
		<title>Genezoom</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11597"/>
		<updated>2014-09-16T08:37:09Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Acknowledgements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;GeneZoom&#039;&#039;&#039; plot is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals. It takes an annotated VCF file as input and generate a text file with specific variant information extracted from VCF file. An R script is used to draw GeneZoom plot based on the text file.&lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your VCF file is also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get geneZoom Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/geneZoom/  geneZoom Download], you can download a copy of geneZoom.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called geneZoom in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/geneZoom&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/geneZoom&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/geneZoom/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;geneZoom&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build geneZoom ==&lt;br /&gt;
&lt;br /&gt;
To build geneZoom, copy the geneZoom package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf geneZoom.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;geneZoom&amp;quot; (./example  ./lib  ./scripts ./ref).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about geneZoom&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
GeneZoom.pl :&lt;br /&gt;
-------------&lt;br /&gt;
This tool is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
The SNPs and VCF should be hg19 version.&lt;br /&gt;
VCF file must have the header greater than 4.0 version.&lt;br /&gt;
This tool will run ANOVAR to annotate VCF. The annotation values should be in the value list of ANOVAR(http://www.openbioinformatics.org/annovar/annovar_gene.html).&lt;br /&gt;
&lt;br /&gt;
Version : 1.0.1&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
-------------------------------------&lt;br /&gt;
Usage :&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --flag &amp;quot;splicing:0.01:0.02,nonsense:blue,missense&amp;quot; --format pdf --outDIR outDIR&lt;br /&gt;
&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --snpChrFieldName chr --snpPosFieldName pos --snpDelim tab/comma/blank --flag &amp;quot;splicing:green,nonsense:0.02:0.03,missense&amp;quot; --lables &amp;quot;chr1:123,chr2:234&amp;quot; --outDIR outDIR&lt;br /&gt;
--------------------------------------&lt;br /&gt;
&lt;br /&gt;
== Get Help ==&lt;br /&gt;
When you run&lt;br /&gt;
  perl geneZoom.pl --man&lt;br /&gt;
  perl geneZoom.pl --help&lt;br /&gt;
  perldoc geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
You can get the help document.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&#039;&#039;&#039;vcf&#039;&#039;&#039;: The VCF file has SNP information. This VCF must have header with sample ID.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;gene&#039;&#039;&#039;: The gene region will be plotted. For example, &amp;quot;PCSK9&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeFile&#039;&#039;&#039;: The phenotype has phenotype value and sample ID. This file must have header to spcify which colum is phenotype value and sample ID.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sampleFieldName&#039;&#039;&#039;: The field name of sample ID in the phenotype file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeFieldName&#039;&#039;&#039;: The field name of phenotype value in the phenotype file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeDelim&#039;&#039;&#039;: The delim in phenotype file. It can be tab, blank or comma.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpList&#039;&#039;&#039;: SNP list which you want to show in plot. If you have a lot SNPs in the gene region, you can specify the SNPs only shown in the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpChrFieldName&#039;&#039;&#039;: The field name of CHR in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpPosFieldName&#039;&#039;&#039;: The field name of POS in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpChrPosFieldName&#039;&#039;&#039;: The field name of CHR:POS in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpDelim&#039;&#039;&#039;: The delim in snp list. It can be tab, blank or comma. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;lableSNPs&#039;&#039;&#039;: The SNP which will be labled in plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;flags&#039;&#039;&#039;: The annotation values, MAF range and colors. For example,splicing:0:0.01:red,readthrough:blue. You must specify annotation value,MAF range and color can be empty. The tool will use the default MAF range(0,0.5), and random select one color.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;defaultIntron&#039;&#039;&#039;: The default intron lenght in plot. When draw enxon region, tool re-define the intron region with this value. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;title&#039;&#039;&#039;: The titile of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;xlab&#039;&#039;&#039;: The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ylab&#039;&#039;&#039;: The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;titleCex&#039;&#039;&#039;: The cex of title. This value can change the size of title. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;xlabCex&#039;&#039;&#039;: The cex of xlab. This value can change the size of xlab. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ylabCex&#039;&#039;&#039;: The cex of ylab. This value can change the size of ylab. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;scatterYAxisCex&#039;&#039;&#039;: The cex of y axis. This value can change the size of y axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeMeanLineColor&#039;&#039;&#039;: The color of mean value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeMeanLineType&#039;&#039;&#039;: The line type of mean value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeSDLineColor&#039;&#039;&#039;: The color of standard deviation value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeSDLineType&#039;&#039;&#039;: The line type of standard deviation value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;exonRegionColor&#039;&#039;&#039;: The color of exon region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLabelAngle&#039;&#039;&#039;: The lable angle of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLableCex&#039;&#039;&#039;: The cex of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLablePos1&#039;&#039;&#039;: The position 1 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLablePos2&#039;&#039;&#039;: The position 2 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;width&#039;&#039;&#039;: The width of plot. Default is 14.1 . Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;height&#039;&#039;&#039;: The height of plot. Default is 10. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;format&#039;&#039;&#039;: The format of plot. It can be pdf,tiff and png. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;outDIR&#039;&#039;&#039;: The result directory. All intermediate files and result plot file are in this folder.&lt;br /&gt;
&lt;br /&gt;
== Testing geneZoom ==&lt;br /&gt;
There is an example directory in ~/geneZoom. You can find vcf file, phenotype file and on sh file.&lt;br /&gt;
Run geneZoom example.sh.&lt;br /&gt;
&lt;br /&gt;
  sh ~/geneZoom/example/example.sh&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;PCSK9.pdf&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
&#039;&#039;&#039;geneZoom&#039;&#039;&#039; is the result of collaborative efforts by Cristen Willer, Jin Chen, He zhang, Ellen Schmidt, Wei Zhou, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11596</id>
		<title>Genezoom</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11596"/>
		<updated>2014-09-16T08:36:43Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Parameters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;GeneZoom&#039;&#039;&#039; plot is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals. It takes an annotated VCF file as input and generate a text file with specific variant information extracted from VCF file. An R script is used to draw GeneZoom plot based on the text file.&lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your VCF file is also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get geneZoom Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/geneZoom/  geneZoom Download], you can download a copy of geneZoom.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called geneZoom in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/geneZoom&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/geneZoom&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/geneZoom/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;geneZoom&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build geneZoom ==&lt;br /&gt;
&lt;br /&gt;
To build geneZoom, copy the geneZoom package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf geneZoom.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;geneZoom&amp;quot; (./example  ./lib  ./scripts ./ref).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about geneZoom&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
GeneZoom.pl :&lt;br /&gt;
-------------&lt;br /&gt;
This tool is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
The SNPs and VCF should be hg19 version.&lt;br /&gt;
VCF file must have the header greater than 4.0 version.&lt;br /&gt;
This tool will run ANOVAR to annotate VCF. The annotation values should be in the value list of ANOVAR(http://www.openbioinformatics.org/annovar/annovar_gene.html).&lt;br /&gt;
&lt;br /&gt;
Version : 1.0.1&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
-------------------------------------&lt;br /&gt;
Usage :&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --flag &amp;quot;splicing:0.01:0.02,nonsense:blue,missense&amp;quot; --format pdf --outDIR outDIR&lt;br /&gt;
&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --snpChrFieldName chr --snpPosFieldName pos --snpDelim tab/comma/blank --flag &amp;quot;splicing:green,nonsense:0.02:0.03,missense&amp;quot; --lables &amp;quot;chr1:123,chr2:234&amp;quot; --outDIR outDIR&lt;br /&gt;
--------------------------------------&lt;br /&gt;
&lt;br /&gt;
== Get Help ==&lt;br /&gt;
When you run&lt;br /&gt;
  perl geneZoom.pl --man&lt;br /&gt;
  perl geneZoom.pl --help&lt;br /&gt;
  perldoc geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
You can get the help document.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&#039;&#039;&#039;vcf&#039;&#039;&#039;: The VCF file has SNP information. This VCF must have header with sample ID.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;gene&#039;&#039;&#039;: The gene region will be plotted. For example, &amp;quot;PCSK9&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeFile&#039;&#039;&#039;: The phenotype has phenotype value and sample ID. This file must have header to spcify which colum is phenotype value and sample ID.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sampleFieldName&#039;&#039;&#039;: The field name of sample ID in the phenotype file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeFieldName&#039;&#039;&#039;: The field name of phenotype value in the phenotype file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotypeDelim&#039;&#039;&#039;: The delim in phenotype file. It can be tab, blank or comma.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpList&#039;&#039;&#039;: SNP list which you want to show in plot. If you have a lot SNPs in the gene region, you can specify the SNPs only shown in the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpChrFieldName&#039;&#039;&#039;: The field name of CHR in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpPosFieldName&#039;&#039;&#039;: The field name of POS in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpChrPosFieldName&#039;&#039;&#039;: The field name of CHR:POS in SNP list. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;snpDelim&#039;&#039;&#039;: The delim in snp list. It can be tab, blank or comma. If you don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;lableSNPs&#039;&#039;&#039;: The SNP which will be labled in plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;flags&#039;&#039;&#039;: The annotation values, MAF range and colors. For example,splicing:0:0.01:red,readthrough:blue. You must specify annotation value,MAF range and color can be empty. The tool will use the default MAF range(0,0.5), and random select one color.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;defaultIntron&#039;&#039;&#039;: The default intron lenght in plot. When draw enxon region, tool re-define the intron region with this value. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;title&#039;&#039;&#039;: The titile of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;xlab&#039;&#039;&#039;: The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ylab&#039;&#039;&#039;: The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;titleCex&#039;&#039;&#039;: The cex of title. This value can change the size of title. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;xlabCex&#039;&#039;&#039;: The cex of xlab. This value can change the size of xlab. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ylabCex&#039;&#039;&#039;: The cex of ylab. This value can change the size of ylab. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;scatterYAxisCex&#039;&#039;&#039;: The cex of y axis. This value can change the size of y axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeMeanLineColor&#039;&#039;&#039;: The color of mean value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeMeanLineType&#039;&#039;&#039;: The line type of mean value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeSDLineColor&#039;&#039;&#039;: The color of standard deviation value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;phenotyeSDLineType&#039;&#039;&#039;: The line type of standard deviation value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;exonRegionColor&#039;&#039;&#039;: The color of exon region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLabelAngle&#039;&#039;&#039;: The lable angle of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLableCex&#039;&#039;&#039;: The cex of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLablePos1&#039;&#039;&#039;: The position 1 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;beanPlotXAxisLablePos2&#039;&#039;&#039;: The position 2 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;width&#039;&#039;&#039;: The width of plot. Default is 14.1 . Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;height&#039;&#039;&#039;: The height of plot. Default is 10. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;format&#039;&#039;&#039;: The format of plot. It can be pdf,tiff and png. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;outDIR&#039;&#039;&#039;: The result directory. All intermediate files and result plot file are in this folder.&lt;br /&gt;
&lt;br /&gt;
== Testing geneZoom ==&lt;br /&gt;
There is an example directory in ~/geneZoom. You can find vcf file, phenotype file and on sh file.&lt;br /&gt;
Run geneZoom example.sh.&lt;br /&gt;
&lt;br /&gt;
  sh ~/geneZoom/example/example.sh&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;PCSK9.pdf&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
geneZoom is the result of collaborative efforts by Cristen Willer, Jin Chen, He zhang, Ellen Schmidt, Wei Zhou, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11595</id>
		<title>Genezoom</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11595"/>
		<updated>2014-09-16T08:29:12Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Parameters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;GeneZoom&#039;&#039;&#039; plot is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals. It takes an annotated VCF file as input and generate a text file with specific variant information extracted from VCF file. An R script is used to draw GeneZoom plot based on the text file.&lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your VCF file is also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get geneZoom Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/geneZoom/  geneZoom Download], you can download a copy of geneZoom.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called geneZoom in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/geneZoom&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/geneZoom&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/geneZoom/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;geneZoom&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build geneZoom ==&lt;br /&gt;
&lt;br /&gt;
To build geneZoom, copy the geneZoom package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf geneZoom.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;geneZoom&amp;quot; (./example  ./lib  ./scripts ./ref).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about geneZoom&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
GeneZoom.pl :&lt;br /&gt;
-------------&lt;br /&gt;
This tool is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
The SNPs and VCF should be hg19 version.&lt;br /&gt;
VCF file must have the header greater than 4.0 version.&lt;br /&gt;
This tool will run ANOVAR to annotate VCF. The annotation values should be in the value list of ANOVAR(http://www.openbioinformatics.org/annovar/annovar_gene.html).&lt;br /&gt;
&lt;br /&gt;
Version : 1.0.1&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
-------------------------------------&lt;br /&gt;
Usage :&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --flag &amp;quot;splicing:0.01:0.02,nonsense:blue,missense&amp;quot; --format pdf --outDIR outDIR&lt;br /&gt;
&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --snpChrFieldName chr --snpPosFieldName pos --snpDelim tab/comma/blank --flag &amp;quot;splicing:green,nonsense:0.02:0.03,missense&amp;quot; --lables &amp;quot;chr1:123,chr2:234&amp;quot; --outDIR outDIR&lt;br /&gt;
--------------------------------------&lt;br /&gt;
&lt;br /&gt;
== Get Help ==&lt;br /&gt;
When you run&lt;br /&gt;
  perl geneZoom.pl --man&lt;br /&gt;
  perl geneZoom.pl --help&lt;br /&gt;
  perldoc geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
You can get the help document.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&#039;&#039;&#039;vcf&#039;&#039;&#039;: The VCF file has SNP information. This VCF must have header with sample ID.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;gene&#039;&#039;&#039;&#039;: The gene region will be plotted. For example, &amp;quot;PCSK9&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
phenotypeFile: The phenotype has phenotype value and sample ID. This file must have header to spcify which colum is phenotype value and sample ID.&lt;br /&gt;
&lt;br /&gt;
sampleFieldName: The field name of sample ID in the phenotype file.&lt;br /&gt;
&lt;br /&gt;
phenotypeFieldName: The field name of phenotype value in the phenotype file&lt;br /&gt;
&lt;br /&gt;
phenotypeDelim: The delim in phenotype file. It can be tab, blank or comma.&lt;br /&gt;
&lt;br /&gt;
snpList: SNP list which you want to show in plot. If you have a lot SNPs&lt;br /&gt;
            in the gene region, you can specify the SNPs only shown in the&lt;br /&gt;
            plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    snpChrFieldName&lt;br /&gt;
            The field name of CHR in SNP list. If you don&#039;t define snpList,&lt;br /&gt;
            this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    snpPosFieldName&lt;br /&gt;
            The field name of POS in SNP list. If you don&#039;t define snpList,&lt;br /&gt;
            this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    snpChrPosFieldName&lt;br /&gt;
            The field name of CHR:POS in SNP list. If you don&#039;t define&lt;br /&gt;
            snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    snpDelim&lt;br /&gt;
            The delim in snp list. It can be tab, blank or comma. If you&lt;br /&gt;
            don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    lableSNPs&lt;br /&gt;
            The SNP which will be labled in plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    flags   The annotation values, MAF range and colors. For example,&lt;br /&gt;
            splicing:0:0.01:red,readthrough:blue. You must specify&lt;br /&gt;
            annotation value,MAF range and color can be empty. The tool will&lt;br /&gt;
            use the default MAF range(0,0.5), and random select one color.&lt;br /&gt;
&lt;br /&gt;
    defaultIntron&lt;br /&gt;
            The default intron lenght in plot. When draw enxon region, tool&lt;br /&gt;
            re-define the intron region with this value. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    title   The titile of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    xlab    The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    ylab    The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    titleCex&lt;br /&gt;
            The cex of title. This value can change the size of title. Can&lt;br /&gt;
            be NULL.&lt;br /&gt;
&lt;br /&gt;
    xlabCex The cex of xlab. This value can change the size of xlab. Can be&lt;br /&gt;
            NULL.&lt;br /&gt;
&lt;br /&gt;
    ylabCex The cex of ylab. This value can change the size of ylab. Can be&lt;br /&gt;
            NULL.&lt;br /&gt;
&lt;br /&gt;
    scatterYAxisCex&lt;br /&gt;
            The cex of y axis. This value can change the size of y axis. Can&lt;br /&gt;
            be NULL.&lt;br /&gt;
&lt;br /&gt;
    phenotyeMeanLineColor&lt;br /&gt;
            The color of mean value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    phenotyeMeanLineType&lt;br /&gt;
            The line type of mean value of all SNPs in gene region. Can be&lt;br /&gt;
            NULL.&lt;br /&gt;
&lt;br /&gt;
    phenotyeSDLineColor&lt;br /&gt;
            The color of standard deviation value of all SNPs in gene&lt;br /&gt;
            region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    phenotyeSDLineType&lt;br /&gt;
            The line type of standard deviation value of all SNPs in gene&lt;br /&gt;
            region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    exonRegionColor&lt;br /&gt;
            The color of exon region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    beanPlotXAxisLabelAngle&lt;br /&gt;
            The lable angle of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    beanPlotXAxisLableCex&lt;br /&gt;
            The cex of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    beanPlotXAxisLablePos1&lt;br /&gt;
            The position 1 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    beanPlotXAxisLablePos2&lt;br /&gt;
            The position 2 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    width   The width of plot. Default is 14.1 . Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    height  The height of plot. Default is 10. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    format  The format of plot. It can be pdf,tiff and png. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    outDIR  The result directory. All intermediate files and result plot&lt;br /&gt;
            file are in this folder.&lt;br /&gt;
&lt;br /&gt;
== Testing geneZoom ==&lt;br /&gt;
There is an example directory in ~/geneZoom. You can find vcf file, phenotype file and on sh file.&lt;br /&gt;
Run geneZoom example.sh.&lt;br /&gt;
&lt;br /&gt;
  sh ~/geneZoom/example/example.sh&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;PCSK9.pdf&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
geneZoom is the result of collaborative efforts by Cristen Willer, Jin Chen, He zhang, Ellen Schmidt, Wei Zhou, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11594</id>
		<title>Genezoom</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11594"/>
		<updated>2014-09-16T08:28:57Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Parameters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;GeneZoom&#039;&#039;&#039; plot is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals. It takes an annotated VCF file as input and generate a text file with specific variant information extracted from VCF file. An R script is used to draw GeneZoom plot based on the text file.&lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your VCF file is also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get geneZoom Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/geneZoom/  geneZoom Download], you can download a copy of geneZoom.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called geneZoom in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/geneZoom&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/geneZoom&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/geneZoom/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;geneZoom&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build geneZoom ==&lt;br /&gt;
&lt;br /&gt;
To build geneZoom, copy the geneZoom package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf geneZoom.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;geneZoom&amp;quot; (./example  ./lib  ./scripts ./ref).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about geneZoom&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
GeneZoom.pl :&lt;br /&gt;
-------------&lt;br /&gt;
This tool is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
The SNPs and VCF should be hg19 version.&lt;br /&gt;
VCF file must have the header greater than 4.0 version.&lt;br /&gt;
This tool will run ANOVAR to annotate VCF. The annotation values should be in the value list of ANOVAR(http://www.openbioinformatics.org/annovar/annovar_gene.html).&lt;br /&gt;
&lt;br /&gt;
Version : 1.0.1&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
-------------------------------------&lt;br /&gt;
Usage :&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --flag &amp;quot;splicing:0.01:0.02,nonsense:blue,missense&amp;quot; --format pdf --outDIR outDIR&lt;br /&gt;
&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --snpChrFieldName chr --snpPosFieldName pos --snpDelim tab/comma/blank --flag &amp;quot;splicing:green,nonsense:0.02:0.03,missense&amp;quot; --lables &amp;quot;chr1:123,chr2:234&amp;quot; --outDIR outDIR&lt;br /&gt;
--------------------------------------&lt;br /&gt;
&lt;br /&gt;
== Get Help ==&lt;br /&gt;
When you run&lt;br /&gt;
  perl geneZoom.pl --man&lt;br /&gt;
  perl geneZoom.pl --help&lt;br /&gt;
  perldoc geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
You can get the help document.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&#039;&#039;&#039;vcf&#039;&#039;&#039;: The VCF file has SNP information. This VCF must have header with sample ID.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;gene&#039;&#039;: The gene region will be plotted. For example, &amp;quot;PCSK9&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
phenotypeFile: The phenotype has phenotype value and sample ID. This file must have header to spcify which colum is phenotype value and sample ID.&lt;br /&gt;
&lt;br /&gt;
sampleFieldName: The field name of sample ID in the phenotype file.&lt;br /&gt;
&lt;br /&gt;
phenotypeFieldName: The field name of phenotype value in the phenotype file&lt;br /&gt;
&lt;br /&gt;
phenotypeDelim: The delim in phenotype file. It can be tab, blank or comma.&lt;br /&gt;
&lt;br /&gt;
snpList: SNP list which you want to show in plot. If you have a lot SNPs&lt;br /&gt;
            in the gene region, you can specify the SNPs only shown in the&lt;br /&gt;
            plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    snpChrFieldName&lt;br /&gt;
            The field name of CHR in SNP list. If you don&#039;t define snpList,&lt;br /&gt;
            this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    snpPosFieldName&lt;br /&gt;
            The field name of POS in SNP list. If you don&#039;t define snpList,&lt;br /&gt;
            this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    snpChrPosFieldName&lt;br /&gt;
            The field name of CHR:POS in SNP list. If you don&#039;t define&lt;br /&gt;
            snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    snpDelim&lt;br /&gt;
            The delim in snp list. It can be tab, blank or comma. If you&lt;br /&gt;
            don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    lableSNPs&lt;br /&gt;
            The SNP which will be labled in plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    flags   The annotation values, MAF range and colors. For example,&lt;br /&gt;
            splicing:0:0.01:red,readthrough:blue. You must specify&lt;br /&gt;
            annotation value,MAF range and color can be empty. The tool will&lt;br /&gt;
            use the default MAF range(0,0.5), and random select one color.&lt;br /&gt;
&lt;br /&gt;
    defaultIntron&lt;br /&gt;
            The default intron lenght in plot. When draw enxon region, tool&lt;br /&gt;
            re-define the intron region with this value. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    title   The titile of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    xlab    The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    ylab    The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    titleCex&lt;br /&gt;
            The cex of title. This value can change the size of title. Can&lt;br /&gt;
            be NULL.&lt;br /&gt;
&lt;br /&gt;
    xlabCex The cex of xlab. This value can change the size of xlab. Can be&lt;br /&gt;
            NULL.&lt;br /&gt;
&lt;br /&gt;
    ylabCex The cex of ylab. This value can change the size of ylab. Can be&lt;br /&gt;
            NULL.&lt;br /&gt;
&lt;br /&gt;
    scatterYAxisCex&lt;br /&gt;
            The cex of y axis. This value can change the size of y axis. Can&lt;br /&gt;
            be NULL.&lt;br /&gt;
&lt;br /&gt;
    phenotyeMeanLineColor&lt;br /&gt;
            The color of mean value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    phenotyeMeanLineType&lt;br /&gt;
            The line type of mean value of all SNPs in gene region. Can be&lt;br /&gt;
            NULL.&lt;br /&gt;
&lt;br /&gt;
    phenotyeSDLineColor&lt;br /&gt;
            The color of standard deviation value of all SNPs in gene&lt;br /&gt;
            region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    phenotyeSDLineType&lt;br /&gt;
            The line type of standard deviation value of all SNPs in gene&lt;br /&gt;
            region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    exonRegionColor&lt;br /&gt;
            The color of exon region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    beanPlotXAxisLabelAngle&lt;br /&gt;
            The lable angle of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    beanPlotXAxisLableCex&lt;br /&gt;
            The cex of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    beanPlotXAxisLablePos1&lt;br /&gt;
            The position 1 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    beanPlotXAxisLablePos2&lt;br /&gt;
            The position 2 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    width   The width of plot. Default is 14.1 . Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    height  The height of plot. Default is 10. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    format  The format of plot. It can be pdf,tiff and png. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    outDIR  The result directory. All intermediate files and result plot&lt;br /&gt;
            file are in this folder.&lt;br /&gt;
&lt;br /&gt;
== Testing geneZoom ==&lt;br /&gt;
There is an example directory in ~/geneZoom. You can find vcf file, phenotype file and on sh file.&lt;br /&gt;
Run geneZoom example.sh.&lt;br /&gt;
&lt;br /&gt;
  sh ~/geneZoom/example/example.sh&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;PCSK9.pdf&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
geneZoom is the result of collaborative efforts by Cristen Willer, Jin Chen, He zhang, Ellen Schmidt, Wei Zhou, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11593</id>
		<title>Genezoom</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11593"/>
		<updated>2014-09-16T08:28:37Z</updated>

		<summary type="html">&lt;p&gt;Jchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;GeneZoom&#039;&#039;&#039; plot is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals. It takes an annotated VCF file as input and generate a text file with specific variant information extracted from VCF file. An R script is used to draw GeneZoom plot based on the text file.&lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your VCF file is also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get geneZoom Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/geneZoom/  geneZoom Download], you can download a copy of geneZoom.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called geneZoom in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/geneZoom&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/geneZoom&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/geneZoom/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;geneZoom&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build geneZoom ==&lt;br /&gt;
&lt;br /&gt;
To build geneZoom, copy the geneZoom package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf geneZoom.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;geneZoom&amp;quot; (./example  ./lib  ./scripts ./ref).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about geneZoom&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
GeneZoom.pl :&lt;br /&gt;
-------------&lt;br /&gt;
This tool is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
The SNPs and VCF should be hg19 version.&lt;br /&gt;
VCF file must have the header greater than 4.0 version.&lt;br /&gt;
This tool will run ANOVAR to annotate VCF. The annotation values should be in the value list of ANOVAR(http://www.openbioinformatics.org/annovar/annovar_gene.html).&lt;br /&gt;
&lt;br /&gt;
Version : 1.0.1&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
-------------------------------------&lt;br /&gt;
Usage :&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --flag &amp;quot;splicing:0.01:0.02,nonsense:blue,missense&amp;quot; --format pdf --outDIR outDIR&lt;br /&gt;
&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --snpChrFieldName chr --snpPosFieldName pos --snpDelim tab/comma/blank --flag &amp;quot;splicing:green,nonsense:0.02:0.03,missense&amp;quot; --lables &amp;quot;chr1:123,chr2:234&amp;quot; --outDIR outDIR&lt;br /&gt;
--------------------------------------&lt;br /&gt;
&lt;br /&gt;
== Get Help ==&lt;br /&gt;
When you run&lt;br /&gt;
  perl geneZoom.pl --man&lt;br /&gt;
  perl geneZoom.pl --help&lt;br /&gt;
  perldoc geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
You can get the help document.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
vcf: The VCF file has SNP information. This VCF must have header with sample ID.&lt;br /&gt;
&lt;br /&gt;
gene: The gene region will be plotted. For example, &amp;quot;PCSK9&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
phenotypeFile: The phenotype has phenotype value and sample ID. This file must have header to spcify which colum is phenotype value and sample ID.&lt;br /&gt;
&lt;br /&gt;
sampleFieldName: The field name of sample ID in the phenotype file.&lt;br /&gt;
&lt;br /&gt;
phenotypeFieldName: The field name of phenotype value in the phenotype file&lt;br /&gt;
&lt;br /&gt;
phenotypeDelim: The delim in phenotype file. It can be tab, blank or comma.&lt;br /&gt;
&lt;br /&gt;
snpList: SNP list which you want to show in plot. If you have a lot SNPs&lt;br /&gt;
            in the gene region, you can specify the SNPs only shown in the&lt;br /&gt;
            plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    snpChrFieldName&lt;br /&gt;
            The field name of CHR in SNP list. If you don&#039;t define snpList,&lt;br /&gt;
            this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    snpPosFieldName&lt;br /&gt;
            The field name of POS in SNP list. If you don&#039;t define snpList,&lt;br /&gt;
            this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    snpChrPosFieldName&lt;br /&gt;
            The field name of CHR:POS in SNP list. If you don&#039;t define&lt;br /&gt;
            snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    snpDelim&lt;br /&gt;
            The delim in snp list. It can be tab, blank or comma. If you&lt;br /&gt;
            don&#039;t define snpList, this Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    lableSNPs&lt;br /&gt;
            The SNP which will be labled in plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    flags   The annotation values, MAF range and colors. For example,&lt;br /&gt;
            splicing:0:0.01:red,readthrough:blue. You must specify&lt;br /&gt;
            annotation value,MAF range and color can be empty. The tool will&lt;br /&gt;
            use the default MAF range(0,0.5), and random select one color.&lt;br /&gt;
&lt;br /&gt;
    defaultIntron&lt;br /&gt;
            The default intron lenght in plot. When draw enxon region, tool&lt;br /&gt;
            re-define the intron region with this value. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    title   The titile of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    xlab    The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    ylab    The xlab of the plot. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    titleCex&lt;br /&gt;
            The cex of title. This value can change the size of title. Can&lt;br /&gt;
            be NULL.&lt;br /&gt;
&lt;br /&gt;
    xlabCex The cex of xlab. This value can change the size of xlab. Can be&lt;br /&gt;
            NULL.&lt;br /&gt;
&lt;br /&gt;
    ylabCex The cex of ylab. This value can change the size of ylab. Can be&lt;br /&gt;
            NULL.&lt;br /&gt;
&lt;br /&gt;
    scatterYAxisCex&lt;br /&gt;
            The cex of y axis. This value can change the size of y axis. Can&lt;br /&gt;
            be NULL.&lt;br /&gt;
&lt;br /&gt;
    phenotyeMeanLineColor&lt;br /&gt;
            The color of mean value of all SNPs in gene region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    phenotyeMeanLineType&lt;br /&gt;
            The line type of mean value of all SNPs in gene region. Can be&lt;br /&gt;
            NULL.&lt;br /&gt;
&lt;br /&gt;
    phenotyeSDLineColor&lt;br /&gt;
            The color of standard deviation value of all SNPs in gene&lt;br /&gt;
            region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    phenotyeSDLineType&lt;br /&gt;
            The line type of standard deviation value of all SNPs in gene&lt;br /&gt;
            region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    exonRegionColor&lt;br /&gt;
            The color of exon region. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    beanPlotXAxisLabelAngle&lt;br /&gt;
            The lable angle of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    beanPlotXAxisLableCex&lt;br /&gt;
            The cex of bean plot x axis. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    beanPlotXAxisLablePos1&lt;br /&gt;
            The position 1 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    beanPlotXAxisLablePos2&lt;br /&gt;
            The position 2 of bean plot x axis lable. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    width   The width of plot. Default is 14.1 . Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    height  The height of plot. Default is 10. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    format  The format of plot. It can be pdf,tiff and png. Can be NULL.&lt;br /&gt;
&lt;br /&gt;
    outDIR  The result directory. All intermediate files and result plot&lt;br /&gt;
            file are in this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing geneZoom ==&lt;br /&gt;
There is an example directory in ~/geneZoom. You can find vcf file, phenotype file and on sh file.&lt;br /&gt;
Run geneZoom example.sh.&lt;br /&gt;
&lt;br /&gt;
  sh ~/geneZoom/example/example.sh&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;PCSK9.pdf&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
geneZoom is the result of collaborative efforts by Cristen Willer, Jin Chen, He zhang, Ellen Schmidt, Wei Zhou, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] with any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11577</id>
		<title>Genezoom</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11577"/>
		<updated>2014-09-16T02:42:57Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Basic Usage Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;GeneZoom&#039;&#039;&#039; plot is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals. It takes an annotated VCF file as input and generate a text file with specific variant information extracted from VCF file. An R script is used to draw GeneZoom plot based on the text file.&lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your VCF file is also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get geneZoom Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/geneZoom/  geneZoom Download], you can download a copy of geneZoom.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called geneZoom in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/geneZoom&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/geneZoom&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/geneZoom/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;geneZoom&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build geneZoom ==&lt;br /&gt;
&lt;br /&gt;
To build geneZoom, copy the geneZoom package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf geneZoom.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;geneZoom&amp;quot; (./example  ./lib  ./scripts ./ref).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about geneZoom&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
GeneZoom.pl :&lt;br /&gt;
-------------&lt;br /&gt;
This tool is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
The SNPs and VCF should be hg19 version.&lt;br /&gt;
VCF file must have the header greater than 4.0 version.&lt;br /&gt;
This tool will run ANOVAR to annotate VCF. The annotation values should be in the value list of ANOVAR(http://www.openbioinformatics.org/annovar/annovar_gene.html).&lt;br /&gt;
&lt;br /&gt;
Version : 1.0.1&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
-------------------------------------&lt;br /&gt;
Usage :&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --flag &amp;quot;splicing:0.01:0.02,nonsense:blue,missense&amp;quot; --format pdf --outDIR outDIR&lt;br /&gt;
&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --snpChrFieldName chr --snpPosFieldName pos --snpDelim tab/comma/blank --flag &amp;quot;splicing:green,nonsense:0.02:0.03,missense&amp;quot; --lables &amp;quot;chr1:123,chr2:234&amp;quot; --outDIR outDIR&lt;br /&gt;
--------------------------------------&lt;br /&gt;
&lt;br /&gt;
== Get Help ==&lt;br /&gt;
When you run&lt;br /&gt;
  perl geneZoom.pl --man&lt;br /&gt;
  perl geneZoom.pl --help&lt;br /&gt;
  perldoc geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
You can get the help document.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11576</id>
		<title>Genezoom</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11576"/>
		<updated>2014-09-16T02:41:26Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Basic Usage Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;GeneZoom&#039;&#039;&#039; plot is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals. It takes an annotated VCF file as input and generate a text file with specific variant information extracted from VCF file. An R script is used to draw GeneZoom plot based on the text file.&lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your VCF file is also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get geneZoom Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/geneZoom/  geneZoom Download], you can download a copy of geneZoom.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called geneZoom in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/geneZoom&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/geneZoom&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/geneZoom/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;geneZoom&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build geneZoom ==&lt;br /&gt;
&lt;br /&gt;
To build geneZoom, copy the geneZoom package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf geneZoom.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;geneZoom&amp;quot; (./example  ./lib  ./scripts ./ref).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about geneZoom&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
GeneZoom.pl :&lt;br /&gt;
-------------&lt;br /&gt;
This tool is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
The SNPs and VCF should be hg19 version.&lt;br /&gt;
VCF file must have the header greater than 4.0 version.&lt;br /&gt;
This tool will run ANOVAR to annotate VCF. The annotation values should be in the value list of ANOVAR(http://www.openbioinformatics.org/annovar/annovar_gene.html).&lt;br /&gt;
&lt;br /&gt;
Version : 1.0.1&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
-------------------------------------&lt;br /&gt;
Usage :&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --flag &amp;quot;splicing:0.01:0.02,nonsense:blue,missense&amp;quot; --format pdf --outDIR outDIR&lt;br /&gt;
&lt;br /&gt;
perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --snpChrFieldName chr --snpPosFieldName pos --snpDelim tab/comma/blank --flag &amp;quot;splicing:green,nonsense:0.02:0.03,missense&amp;quot; --lables &amp;quot;chr1:123,chr2:234&amp;quot; --outDIR outDIR&lt;br /&gt;
--------------------------------------&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11575</id>
		<title>Genezoom</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11575"/>
		<updated>2014-09-16T02:40:11Z</updated>

		<summary type="html">&lt;p&gt;Jchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;GeneZoom&#039;&#039;&#039; plot is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals. It takes an annotated VCF file as input and generate a text file with specific variant information extracted from VCF file. An R script is used to draw GeneZoom plot based on the text file.&lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your VCF file is also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get geneZoom Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/geneZoom/  geneZoom Download], you can download a copy of geneZoom.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called geneZoom in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/geneZoom&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/geneZoom&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/geneZoom/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;geneZoom&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build geneZoom ==&lt;br /&gt;
&lt;br /&gt;
To build geneZoom, copy the geneZoom package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf geneZoom.tar.gz&lt;br /&gt;
&lt;br /&gt;
After you unzip, you can find 3 directories in &amp;quot;geneZoom&amp;quot; (./example  ./lib  ./scripts ./ref).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl geneZoom.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about geneZoom&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
GeneZoom.pl :&lt;br /&gt;
-------------&lt;br /&gt;
This tool is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
  The SNPs and VCF should be hg19 version.&lt;br /&gt;
  VCF file must have the header greater than 4.0 version.&lt;br /&gt;
  This tool will run ANOVAR to annotate VCF. The annotation values should be in the value list of ANOVAR(http://www.openbioinformatics.org/annovar/annovar_gene.html).&lt;br /&gt;
&lt;br /&gt;
Version : 1.0.1&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
-------------------------------------&lt;br /&gt;
Usage :&lt;br /&gt;
  perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --flag &amp;quot;splicing:0.01:0.02,nonsense:blue,missense&amp;quot; --format pdf --outDIR outDIR&lt;br /&gt;
&lt;br /&gt;
  perl GeneZoom.pl --vcf vcf --phenotypeFile phenotypeFile --sampleFieldName sample --phenotypeFieldName phenotype --phenotypeDelim tab/comma/blank --snpList snpList --snpChrFieldName chr --snpPosFieldName pos --snpDelim tab/comma/blank --flag &amp;quot;splicing:green,nonsense:0.02:0.03,missense&amp;quot; --lables &amp;quot;chr1:123,chr2:234&amp;quot; --outDIR outDIR&lt;br /&gt;
--------------------------------------&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11574</id>
		<title>Genezoom</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Genezoom&amp;diff=11574"/>
		<updated>2014-09-16T02:20:52Z</updated>

		<summary type="html">&lt;p&gt;Jchen: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;GeneZoom&amp;#039;&amp;#039;&amp;#039; plot is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals. It takes an annotated VCF file as input and ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;GeneZoom&#039;&#039;&#039; plot is a visualization tool that shows the frequency of variants in a predefined region for groups of individuals. It takes an annotated VCF file as input and generate a text file with specific variant information extracted from VCF file. An R script is used to draw GeneZoom plot based on the text file.&lt;br /&gt;
&lt;br /&gt;
Because all reference data are version hg19, please make sure that your VCF file is also version hg19.&lt;br /&gt;
&lt;br /&gt;
== Get geneZoom Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download from webpage === &lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/geneZoom/  geneZoom Download], you can download a copy of geneZoom.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your own git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/geneZoom.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory called geneZoom in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already downloaded your copy, use the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/geneZoom&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you can still download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Go to : https://github.com/jinchen-umich/geneZoom&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/geneZoom/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;geneZoom&amp;lt;/code&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=9073</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=9073"/>
		<updated>2013-12-03T21:09:51Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Download reference files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==FallInBed==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FallInBed&#039;&#039;&#039; is a tool to test for global enrichment of trait-associated variants in experimentally annotated regulatory domains. Because all reference data are hg19, make sure your index SNP list and BED files are also in hg19 version.&lt;br /&gt;
&lt;br /&gt;
== Get FallInBed Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download FallInBed from webpage === &lt;br /&gt;
&lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/FallInBed/  FallInBed Download], you can download a copy of FallInBed.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your won git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/FallInBed.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/FallInBed.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory which called FallInBed in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already gotten your copy, using the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/FallInBed&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you still can download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Goto : https://github.com/jinchen-umich/FallInBed&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/FallInBed/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;FallInBed&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build FallInBed ==&lt;br /&gt;
&lt;br /&gt;
To build FallInBed, copy the FallInBed package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf FallInBed.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you can find 3 directories in &amp;quot;FallInBed&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://www.sph.umich.edu/csg/jich/FallInBed/  FallInBed Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf FallInBed.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;~/ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl FallInBed.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about FallInBed&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
FallInBeds.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl FallInBeds.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl FallInBed.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the FallInBed configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.index.snps.rsid.list.txt    ## e.g. /home/myid/data/FallInBed/example.snp.txt&lt;br /&gt;
  BED_FILE_INDEX = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.bed.file.index ## e.g. /home/myid/data/FallInBed/bedfiles.index&lt;br /&gt;
  REF_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.rsid.20130808/ ## e.g. /home/myid/data/FallInBed/result/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP LD proxies by R2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define neighbor number around index SNP. Script will find no less than this number around every index SNP.&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing FallInBed ==&lt;br /&gt;
There is an example directory in ~/FallInBed. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/FallInBed/script/FallInBed.pl --conf ~/FallInBed/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
FallInBed is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] for any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=9072</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=9072"/>
		<updated>2013-12-03T21:09:03Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Download From GitHub without Git */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==FallInBed==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FallInBed&#039;&#039;&#039; is a tool to test for global enrichment of trait-associated variants in experimentally annotated regulatory domains. Because all reference data are hg19, make sure your index SNP list and BED files are also in hg19 version.&lt;br /&gt;
&lt;br /&gt;
== Get FallInBed Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download FallInBed from webpage === &lt;br /&gt;
&lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/FallInBed/  FallInBed Download], you can download a copy of FallInBed.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your won git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/FallInBed.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/FallInBed.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory which called FallInBed in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already gotten your copy, using the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/FallInBed&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you still can download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Goto : https://github.com/jinchen-umich/FallInBed&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/FallInBed/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;FallInBed&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build FallInBed ==&lt;br /&gt;
&lt;br /&gt;
To build FallInBed, copy the FallInBed package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf FallInBed.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you can find 3 directories in &amp;quot;FallInBed&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://www.sph.umich.edu/csg/jich/FallInBed/  FallInBed Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf FallInBed.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;./ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl FallInBed.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about FallInBed&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
FallInBeds.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl FallInBeds.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl FallInBed.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the FallInBed configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.index.snps.rsid.list.txt    ## e.g. /home/myid/data/FallInBed/example.snp.txt&lt;br /&gt;
  BED_FILE_INDEX = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.bed.file.index ## e.g. /home/myid/data/FallInBed/bedfiles.index&lt;br /&gt;
  REF_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.rsid.20130808/ ## e.g. /home/myid/data/FallInBed/result/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP LD proxies by R2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define neighbor number around index SNP. Script will find no less than this number around every index SNP.&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing FallInBed ==&lt;br /&gt;
There is an example directory in ~/FallInBed. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/FallInBed/script/FallInBed.pl --conf ~/FallInBed/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
FallInBed is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] for any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=9071</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=9071"/>
		<updated>2013-12-03T21:08:51Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Download From GitHub without Git */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==FallInBed==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FallInBed&#039;&#039;&#039; is a tool to test for global enrichment of trait-associated variants in experimentally annotated regulatory domains. Because all reference data are hg19, make sure your index SNP list and BED files are also in hg19 version.&lt;br /&gt;
&lt;br /&gt;
== Get FallInBed Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download FallInBed from webpage === &lt;br /&gt;
&lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/FallInBed/  FallInBed Download], you can download a copy of FallInBed.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your won git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/FallInBed.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/FallInBed.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory which called FallInBed in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already gotten your copy, using the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/FallInBed&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you still can download from GitHub:&lt;br /&gt;
#: Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Goto : https://github.com/jinchen-umich/FallInBed&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/FallInBed/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;FallInBed&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build FallInBed ==&lt;br /&gt;
&lt;br /&gt;
To build FallInBed, copy the FallInBed package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf FallInBed.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you can find 3 directories in &amp;quot;FallInBed&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://www.sph.umich.edu/csg/jich/FallInBed/  FallInBed Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf FallInBed.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;./ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl FallInBed.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about FallInBed&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
FallInBeds.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl FallInBeds.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl FallInBed.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the FallInBed configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.index.snps.rsid.list.txt    ## e.g. /home/myid/data/FallInBed/example.snp.txt&lt;br /&gt;
  BED_FILE_INDEX = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.bed.file.index ## e.g. /home/myid/data/FallInBed/bedfiles.index&lt;br /&gt;
  REF_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.rsid.20130808/ ## e.g. /home/myid/data/FallInBed/result/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP LD proxies by R2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define neighbor number around index SNP. Script will find no less than this number around every index SNP.&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing FallInBed ==&lt;br /&gt;
There is an example directory in ~/FallInBed. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/FallInBed/script/FallInBed.pl --conf ~/FallInBed/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
FallInBed is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] for any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=9070</id>
		<title>GREGOR</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GREGOR&amp;diff=9070"/>
		<updated>2013-12-03T21:08:21Z</updated>

		<summary type="html">&lt;p&gt;Jchen: /* Update your copy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==FallInBed==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FallInBed&#039;&#039;&#039; is a tool to test for global enrichment of trait-associated variants in experimentally annotated regulatory domains. Because all reference data are hg19, make sure your index SNP list and BED files are also in hg19 version.&lt;br /&gt;
&lt;br /&gt;
== Get FallInBed Source Codes ==&lt;br /&gt;
&lt;br /&gt;
=== Download FallInBed from webpage === &lt;br /&gt;
&lt;br /&gt;
Through this link [http://www.sph.umich.edu/csg/jich/FallInBed/  FallInBed Download], you can download a copy of FallInBed.&lt;br /&gt;
&lt;br /&gt;
=== Download from GitHub with Git ===&lt;br /&gt;
You can create your won git clone(copy) using:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/jinchen-umich/FallInBed.git&lt;br /&gt;
or&lt;br /&gt;
  git clone git://github.com/jinchen-umich/FallInBed.git&lt;br /&gt;
&lt;br /&gt;
Either of these two commands creates a directory which called FallInBed in the current directory.&lt;br /&gt;
&lt;br /&gt;
=== Update your copy ===&lt;br /&gt;
If you have already gotten your copy, using the following commands to update:&lt;br /&gt;
  1. cd pathToYourCopy/FallInBed&lt;br /&gt;
  2. git pull&lt;br /&gt;
&lt;br /&gt;
=== Download From GitHub without Git ===&lt;br /&gt;
If there is no git in your system, you still can download from GitHub:&lt;br /&gt;
# Latest Code (master branch)&lt;br /&gt;
#: via Website&lt;br /&gt;
#:# Goto : https://github.com/jinchen-umich/FallInBed&lt;br /&gt;
#:# Click on the &amp;lt;code&amp;gt;Download ZIP&amp;lt;/code&amp;gt; button on the right side panel.&lt;br /&gt;
#: via Command Line&lt;br /&gt;
#:: &amp;lt;code&amp;gt;wget https://github.com/jinchen-umich/FallInBed/archive/master.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the file, uncompress (unzip/untar) it.  The directory created will be named &amp;lt;code&amp;gt;FallInBed&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Build FallInBed ==&lt;br /&gt;
&lt;br /&gt;
To build FallInBed, copy the FallInBed package to the directory you want, and then run the following command:&lt;br /&gt;
&lt;br /&gt;
  tar xzvf FallInBed.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you can find 3 directories in &amp;quot;FallInBed&amp;quot; (./example  ./lib  ./script).&lt;br /&gt;
&lt;br /&gt;
== Download reference files ==&lt;br /&gt;
&lt;br /&gt;
Download the reference files from this link [http://www.sph.umich.edu/csg/jich/FallInBed/  FallInBed Download], then un-package the file&lt;br /&gt;
&lt;br /&gt;
  tar xzvf FallInBed.ref.tar.gz&lt;br /&gt;
&lt;br /&gt;
After unzip, you will get 47 reference files in the directory &amp;quot;./ref&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Usage Example ==&lt;br /&gt;
&lt;br /&gt;
When you run &lt;br /&gt;
&lt;br /&gt;
  perl FallInBed.pl&lt;br /&gt;
&lt;br /&gt;
you will get some information about FallInBed&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
FallInBeds.pl : Functional annotation of trait-associated variants&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
This program tests for enrichment of an input list of trait-associated index&lt;br /&gt;
SNPs ([chr:pos] format or rsID, hg19) in experimentally annotated regulatory&lt;br /&gt;
domains (BED files).&lt;br /&gt;
&lt;br /&gt;
Note: the index SNPs should be hg19 version. All maf and LD data are from 1000G&lt;br /&gt;
EUR samples! (Release date : May 21, 2011)&lt;br /&gt;
&lt;br /&gt;
Version : 1.1.0&lt;br /&gt;
&lt;br /&gt;
Report Bug(s) : jich[at]umich[dot]edu&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
Usage : perl FallInBeds.pl --conf [conf.file]&lt;br /&gt;
----------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following command is a typical command line:&lt;br /&gt;
&lt;br /&gt;
  perl FallInBed.pl --conf [conf.file]&lt;br /&gt;
&lt;br /&gt;
Example configuration file can be found in example directory. Users have to modify the configurations before running.&lt;br /&gt;
&lt;br /&gt;
== Configuration File  ==&lt;br /&gt;
The example configuration file below illustrate how to configure the FallInBed configuration file.&lt;br /&gt;
&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  # CHIPSEQ ENRICHMENT CONFIGURATION FILE&lt;br /&gt;
  # This configuration file contains run-time configuration of&lt;br /&gt;
  # CHIP_SEQ ENRICHMENT&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  ## KEY ELEMENTS TO CONFIGURE : NEED TO MODIFY&lt;br /&gt;
  ###############################################################################&lt;br /&gt;
  INDEX_SNP_FILE = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.index.snps.rsid.list.txt    ## e.g. /home/myid/data/FallInBed/example.snp.txt&lt;br /&gt;
  BED_FILE_INDEX = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.bed.file.index ## e.g. /home/myid/data/FallInBed/bedfiles.index&lt;br /&gt;
  REF_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/ref/ ## reference directory&lt;br /&gt;
  R2THRESHOLD = 0.7&lt;br /&gt;
  LDWINDOWSIZE = 1000000&lt;br /&gt;
  OUT_DIR = /net/dumbo/home/jchen/prj/chiseq/codes/FallInBed_Binomial/example/example.rsid.20130808/ ## e.g. /home/myid/data/FallInBed/result/&lt;br /&gt;
  MIN_NEIGHBOR_NUM = 500&lt;br /&gt;
  BEDFILE_IS_SORTED = True&lt;br /&gt;
  MOSRUN = mosbatch -E/tmp -i -m2000 -j20,43,122,135,137,138,149,151,153,154,155,156,162,163 sh -c&lt;br /&gt;
&lt;br /&gt;
In the config file, there are several parameters to adjust:&lt;br /&gt;
&lt;br /&gt;
INDEX_SNP_FILE: This file contains a single column of trait-associated input SNPs, without a header. Variants can be listed in rsid or hg19 chr:pos format.&lt;br /&gt;
&lt;br /&gt;
BED_FILE_INDEX: This file lists the datasets (e.g. BED files) to be used for enrichment analysis. Use complete paths to file locations and make sure positions are in hg19 format.&lt;br /&gt;
&lt;br /&gt;
REF_DIR: Define reference file directory which you download at here.&lt;br /&gt;
&lt;br /&gt;
R2THRESHOLD and LDWINDOWSIZE: These two parameters define the index SNP LD proxies by R2 threshold and LD window size.&lt;br /&gt;
&lt;br /&gt;
OUT_DIR: All result files are saved to this folder, where the script will create multiple sub-directories. Index SNPs are in the folder &amp;quot;index_SNP&amp;quot;; Random SNPs are in the folder &amp;quot;random_SNP&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
MIN_NEIGHBOR_NUM: Define neighbor number around index SNP. Script will find no less than this number around every index SNP.&lt;br /&gt;
&lt;br /&gt;
BEDFILE_IS_SORTED: True or false, depending on whether the BED files listed in the index file are sorted.&lt;br /&gt;
&lt;br /&gt;
== Results Output ==&lt;br /&gt;
The file StatisticSummaryFile.txt in the output directory contains enrichment results with the following information:&lt;br /&gt;
&lt;br /&gt;
Bed_File: The individual datasets used in the enrichment analysis&lt;br /&gt;
&lt;br /&gt;
InBed_Index_SNP: Number of index SNPs or their LD proxies that overlaps regulatory regions in each dataset&lt;br /&gt;
&lt;br /&gt;
Pvalue: P-value calculated assuming a sum of binomial distributions to represent the number of index SNPs (or LD proxies) that overlap a dataset compared to the expectation observed in the matched control sets&lt;br /&gt;
&lt;br /&gt;
*Note:  SNPs that cannot be converted from rsID to chr:pos format are listed in the output file rsid.index.snp.txt.  SNPs for which there are no LD proxies or no MAF data available are listed in the output file nonannoted.index.snp.txt.&lt;br /&gt;
&lt;br /&gt;
== Testing FallInBed ==&lt;br /&gt;
There is an example directory in ~/FallInBed. You can find index SNP file, 3 bed files, bed file index and example config file.&lt;br /&gt;
After change your config file, you can run a test.&lt;br /&gt;
&lt;br /&gt;
  perl ~/FallInBed/script/FallInBed.pl --conf ~/FallInBed/example/example.conf&lt;br /&gt;
&lt;br /&gt;
After running 2 minutes +/- 1 minutes. You will get result file &amp;quot;StatisticSummaryFile.txt&amp;quot; in your defined output directory.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements  ==&lt;br /&gt;
FallInBed is the result of collaborative efforts by Cristen Willer, Jin Chen, Wei Zhou, Ellen Schmidt, He Zhang, and Goncalo Abecasis. Please email Cristen Willer [cristen@umich.edu] for any questions.&lt;/div&gt;</summary>
		<author><name>Jchen</name></author>
	</entry>
</feed>