<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://info.gersteinlab.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lukas.habegger</id>
	<title>GersteinInfo - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://info.gersteinlab.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lukas.habegger"/>
	<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/Special:Contributions/Lukas.habegger"/>
	<updated>2026-05-13T16:15:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.6</generator>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1352</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1352"/>
		<updated>2011-06-16T14:23:34Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* gencode2interval */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All annotated variant use the above format to capture information about the gene.  The format describing the list of affected transcripts depends on the variant class (SNP, indel, or SV) and the variant type as shown in the table below:&lt;br /&gt;
&lt;br /&gt;
[[File:VariantFormat.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of indels in [[#VCF|VCF]] format. The program determines the effect of an indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate a number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server (&#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c&amp;amp;type=coding Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1350</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1350"/>
		<updated>2011-06-15T15:33:30Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Setup of the web server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
* [http://rna.urmc.rochester.edu/RNAstructure.html RNAstructure] - RNAstructure is a software package for RNA structure prediction and analysis. This tool is utilized by VAT for prediction of structures for RNA sequences with and without the variants.&lt;br /&gt;
* [http://varna.lri.fr/downloads.html VARNA] - VARNA is a java applet for producing high quality RNA secondary structure plots. VAT utilizes VARNA for visualization of the RNA secondary structures.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/libbios-1.0.0.tar.gz libbios-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0.tar.gz vat-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0_64bit.zip vat-1.0.0_64bit.zip] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of RNAstructure and VARNA ===&lt;br /&gt;
&lt;br /&gt;
Download RNAstructure and follow the building instructions. Make sure that the build directory is included in PATH environment variable. In addition, RNAstructure needs an environment variable named DATAPATH to be set to the directory of thermodynamic parameter files that are distributed with RNAstructure package. &lt;br /&gt;
&lt;br /&gt;
Download VARNA jar file and add the jar file path to CLASSPATH environment variable. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Pre-processed annotation sets&#039;&#039;&#039; &lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
** The construction of the vat_cgi URL requires following item/value pairs (for example: http://dynamic.gersteinlab.org/people/lh372/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c&amp;amp;type=coding):&lt;br /&gt;
*** mode=process&lt;br /&gt;
*** dataSet=SampleData&lt;br /&gt;
*** annotationSet=nameOfAnnotationSet&lt;br /&gt;
*** type=coding or nonCoding &lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of pre-processed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in [http://info.gersteinlab.org/VAT#Interval Interval] format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* miRNAs where &#039;&#039;gene_type&#039;&#039; is &#039;&#039;miRNA&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1349</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1349"/>
		<updated>2011-06-15T15:33:09Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Setup of the web server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
* [http://rna.urmc.rochester.edu/RNAstructure.html RNAstructure] - RNAstructure is a software package for RNA structure prediction and analysis. This tool is utilized by VAT for prediction of structures for RNA sequences with and without the variants.&lt;br /&gt;
* [http://varna.lri.fr/downloads.html VARNA] - VARNA is a java applet for producing high quality RNA secondary structure plots. VAT utilizes VARNA for visualization of the RNA secondary structures.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/libbios-1.0.0.tar.gz libbios-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0.tar.gz vat-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0_64bit.zip vat-1.0.0_64bit.zip] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of RNAstructure and VARNA ===&lt;br /&gt;
&lt;br /&gt;
Download RNAstructure and follow the building instructions. Make sure that the build directory is included in PATH environment variable. In addition, RNAstructure needs an environment variable named DATAPATH to be set to the directory of thermodynamic parameter files that are distributed with RNAstructure package. &lt;br /&gt;
&lt;br /&gt;
Download VARNA jar file and add the jar file path to CLASSPATH environment variable. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; &lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
** The construction of the vat_cgi URL requires following item/value pairs (for example: http://dynamic.gersteinlab.org/people/lh372/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c&amp;amp;type=coding):&lt;br /&gt;
*** mode=process&lt;br /&gt;
*** dataSet=SampleData&lt;br /&gt;
*** annotationSet=nameOfAnnotationSet&lt;br /&gt;
*** type=coding or nonCoding &lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of pre-processed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in [http://info.gersteinlab.org/VAT#Interval Interval] format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* miRNAs where &#039;&#039;gene_type&#039;&#039; is &#039;&#039;miRNA&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1348</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1348"/>
		<updated>2011-06-15T15:32:27Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Setup of the web server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
* [http://rna.urmc.rochester.edu/RNAstructure.html RNAstructure] - RNAstructure is a software package for RNA structure prediction and analysis. This tool is utilized by VAT for prediction of structures for RNA sequences with and without the variants.&lt;br /&gt;
* [http://varna.lri.fr/downloads.html VARNA] - VARNA is a java applet for producing high quality RNA secondary structure plots. VAT utilizes VARNA for visualization of the RNA secondary structures.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/libbios-1.0.0.tar.gz libbios-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0.tar.gz vat-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0_64bit.zip vat-1.0.0_64bit.zip] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of RNAstructure and VARNA ===&lt;br /&gt;
&lt;br /&gt;
Download RNAstructure and follow the building instructions. Make sure that the build directory is included in PATH environment variable. In addition, RNAstructure needs an environment variable named DATAPATH to be set to the directory of thermodynamic parameter files that are distributed with RNAstructure package. &lt;br /&gt;
&lt;br /&gt;
Download VARNA jar file and add the jar file path to CLASSPATH environment variable. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; &lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
** The construction of the vat_cgi URL requires following item/value pairs (for example: http://dynamic.gersteinlab.org/people/lh372/vat_cgi?&#039;&#039;&#039;mode=process&#039;&#039;&#039;&amp;amp;&#039;&#039;&#039;dataSet=ALL.2of4intersection.20100804.chr22&#039;&#039;&#039;&amp;amp;&#039;&#039;&#039;annotationSet=gencode3c&#039;&#039;&#039;&amp;amp;&#039;&#039;&#039;type=coding&#039;&#039;&#039;):&lt;br /&gt;
*** mode=process&lt;br /&gt;
*** dataSet=SampleData&lt;br /&gt;
*** annotationSet=nameOfAnnotationSet&lt;br /&gt;
*** type=coding or nonCoding &lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of pre-processed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in [http://info.gersteinlab.org/VAT#Interval Interval] format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* miRNAs where &#039;&#039;gene_type&#039;&#039; is &#039;&#039;miRNA&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1347</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1347"/>
		<updated>2011-06-15T15:30:54Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Setup of the web server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
* [http://rna.urmc.rochester.edu/RNAstructure.html RNAstructure] - RNAstructure is a software package for RNA structure prediction and analysis. This tool is utilized by VAT for prediction of structures for RNA sequences with and without the variants.&lt;br /&gt;
* [http://varna.lri.fr/downloads.html VARNA] - VARNA is a java applet for producing high quality RNA secondary structure plots. VAT utilizes VARNA for visualization of the RNA secondary structures.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/libbios-1.0.0.tar.gz libbios-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0.tar.gz vat-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0_64bit.zip vat-1.0.0_64bit.zip] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of RNAstructure and VARNA ===&lt;br /&gt;
&lt;br /&gt;
Download RNAstructure and follow the building instructions. Make sure that the build directory is included in PATH environment variable. In addition, RNAstructure needs an environment variable named DATAPATH to be set to the directory of thermodynamic parameter files that are distributed with RNAstructure package. &lt;br /&gt;
&lt;br /&gt;
Download VARNA jar file and add the jar file path to CLASSPATH environment variable. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; &lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
** The construction of the vat_cgi URL requires following item/value pairs:&lt;br /&gt;
*** mode=process&lt;br /&gt;
*** dataSet=SampleData&lt;br /&gt;
*** annotationSet=nameOfAnnotationSet&lt;br /&gt;
*** type=coding or nonCoding &lt;br /&gt;
http://dynamic.gersteinlab.org/people/lh372/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c&amp;amp;type=coding&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of pre-processed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in [http://info.gersteinlab.org/VAT#Interval Interval] format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* miRNAs where &#039;&#039;gene_type&#039;&#039; is &#039;&#039;miRNA&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1346</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1346"/>
		<updated>2011-06-15T15:24:20Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Setup of the web server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
* [http://rna.urmc.rochester.edu/RNAstructure.html RNAstructure] - RNAstructure is a software package for RNA structure prediction and analysis. This tool is utilized by VAT for prediction of structures for RNA sequences with and without the variants.&lt;br /&gt;
* [http://varna.lri.fr/downloads.html VARNA] - VARNA is a java applet for producing high quality RNA secondary structure plots. VAT utilizes VARNA for visualization of the RNA secondary structures.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/libbios-1.0.0.tar.gz libbios-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0.tar.gz vat-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0_64bit.zip vat-1.0.0_64bit.zip] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of RNAstructure and VARNA ===&lt;br /&gt;
&lt;br /&gt;
Download RNAstructure and follow the building instructions. Make sure that the build directory is included in PATH environment variable. In addition, RNAstructure needs an environment variable named DATAPATH to be set to the directory of thermodynamic parameter files that are distributed with RNAstructure package. &lt;br /&gt;
&lt;br /&gt;
Download VARNA jar file and add the jar file path to CLASSPATH environment variable. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; &lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of pre-processed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in [http://info.gersteinlab.org/VAT#Interval Interval] format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* miRNAs where &#039;&#039;gene_type&#039;&#039; is &#039;&#039;miRNA&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/dataSets&amp;diff=1345</id>
		<title>VAT/dataSets</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/dataSets&amp;diff=1345"/>
		<updated>2011-06-14T18:25:13Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 1000 Genomes Pilot Project: Low coverage samples ===&lt;br /&gt;
&lt;br /&gt;
 - Data files&lt;br /&gt;
     - Source: pilot_data, release: 2010_07, FTP:  ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/&lt;br /&gt;
     - Indels&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/indels/CEU.low_coverage.2010_07.indel.genotypes.vcf.gz CEU.low_coverage.2010_07.indel.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/indels/JPTCHB.low_coverage.2010_07.indel.genotypes.vcf.gz JPTCHB.low_coverage.2010_07.indel.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/indels/YRI.low_coverage.2010_07.indel.genotypes.vcf.gz YRI.low_coverage.2010_07.indel.genotypes.vcf.gz]&lt;br /&gt;
     - SNPs&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/snps/CEU.low_coverage.2010_07.genotypes.vcf.gz CEU.low_coverage.2010_07.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/snps/CHBJPT.low_coverage.2010_07.genotypes.vcf.gz CHBJPT.low_coverage.2010_07.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/snps/YRI.low_coverage.2010_07.genotypes.vcf.gz YRI.low_coverage.2010_07.genotypes.vcf.gz]&lt;br /&gt;
 - Annotation file: [ftp://ftp.sanger.ac.uk/pub/gencode/release_3b/gencode.v3b.annotation.NCBI36.gtf.gz GENCODE (version 3b, hg18)] using CDS elements where &#039;&#039;gene_type = protein_coding&#039;&#039; and &#039;&#039;transcript_type = protein_coding&#039;&#039;&lt;br /&gt;
 - Results: [http://dynamic.gersteinlab.org/people/lh372/vat_cgi?mode=process&amp;amp;dataSet=1000genomes_lowCoverage&amp;amp;annotationSet=gencode3b&amp;amp;type=coding VAT]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 1000 Genomes Project, Phase I, chr22, SNP calls ===&lt;br /&gt;
&lt;br /&gt;
 - Data files&lt;br /&gt;
     - Source: release: 20100804, FTP: ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/&lt;br /&gt;
     - SNPs: [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz ALL.2of4intersection.20100804.genotypes.vcf.gz]&lt;br /&gt;
 - Annotation file: [ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz GENCODE (version 3c, hg19)] using CDS elements where &#039;&#039;gene_type = protein_coding&#039;&#039; and &#039;&#039;transcript_type = protein_coding&#039;&#039;&lt;br /&gt;
 - Results: [http://dynamic.gersteinlab.org/people/lh372/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c&amp;amp;type=coding VAT]&lt;br /&gt;
 - [http://info.gersteinlab.org/VAT#Example_workflow Detailed workflow]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Pre-processed GENCODE annotation sets ==&lt;br /&gt;
&lt;br /&gt;
The pre-processed GENCODE annotation sets can be downloaded [http://info.gersteinlab.org/VAT/download#Download_of_pre-processed_annotation_sets here].&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1344</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1344"/>
		<updated>2011-06-14T18:23:54Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Setting up the web server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All annotated variant use the above format to capture information about the gene.  The format describing the list of affected transcripts depends on the variant class (SNP, indel, or SV) and the variant type as shown in the table below:&lt;br /&gt;
&lt;br /&gt;
[[File:VariantFormat.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of indels in [[#VCF|VCF]] format. The program determines the effect of an indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate a number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server (&#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c&amp;amp;type=coding Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1343</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1343"/>
		<updated>2011-06-14T18:23:19Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Executables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
* [http://rna.urmc.rochester.edu/RNAstructure.html RNAstructure] - RNAstructure is a software package for RNA structure prediction and analysis. This tool is utilized by VAT for prediction of structures for RNA sequences with and without the variants.&lt;br /&gt;
* [http://varna.lri.fr/downloads.html VARNA] - VARNA is a java applet for producing high quality RNA secondary structure plots. VAT utilizes VARNA for visualization of the RNA secondary structures.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/libbios-1.0.0.tar.gz libbios-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0.tar.gz vat-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0_64bit.zip vat-1.0.0_64bit.zip] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of RNAstructure and VARNA ===&lt;br /&gt;
&lt;br /&gt;
Download RNAstructure and follow the building instructions. Make sure that the build directory is included in PATH environment variable. In addition, RNAstructure needs an environment variable named DATAPATH to be set to the directory of thermodynamic parameter files that are distributed with RNAstructure package. &lt;br /&gt;
&lt;br /&gt;
Download VARNA jar file and add the jar file path to CLASSPATH environment variable. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of pre-processed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in [http://info.gersteinlab.org/VAT#Interval Interval] format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* miRNAs where &#039;&#039;gene_type&#039;&#039; is &#039;&#039;miRNA&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1342</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1342"/>
		<updated>2011-06-14T18:20:15Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
* [http://rna.urmc.rochester.edu/RNAstructure.html RNAstructure] - RNAstructure is a software package for RNA structure prediction and analysis. This tool is utilized by VAT for prediction of structures for RNA sequences with and without the variants.&lt;br /&gt;
* [http://varna.lri.fr/downloads.html VARNA] - VARNA is a java applet for producing high quality RNA secondary structure plots. VAT utilizes VARNA for visualization of the RNA secondary structures.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/libbios-1.0.0.tar.gz libbios-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0.tar.gz vat-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0_32bit.zip vat-1.0.0_32bit.zip] - Initial upload (6/14/2011)&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0_64bit.zip vat-1.0.0_64bit.zip] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of RNAstructure and VARNA ===&lt;br /&gt;
&lt;br /&gt;
Download RNAstructure and follow the building instructions. Make sure that the build directory is included in PATH environment variable. In addition, RNAstructure needs an environment variable named DATAPATH to be set to the directory of thermodynamic parameter files that are distributed with RNAstructure package. &lt;br /&gt;
&lt;br /&gt;
Download VARNA jar file and add the jar file path to CLASSPATH environment variable. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of pre-processed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in [http://info.gersteinlab.org/VAT#Interval Interval] format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* miRNAs where &#039;&#039;gene_type&#039;&#039; is &#039;&#039;miRNA&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1341</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1341"/>
		<updated>2011-06-14T18:18:20Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Source code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
* [http://rna.urmc.rochester.edu/RNAstructure.html RNAstructure] - RNAstructure is a software package for RNA structure prediction and analysis. This tool is utilized by VAT for prediction of structures for RNA sequences with and without the variants.&lt;br /&gt;
* [http://varna.lri.fr/downloads.html VARNA] - VARNA is a java applet for producing high quality RNA secondary structure plots. VAT utilizes VARNA for visualization of the RNA secondary structures.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/libbios-1.0.0.tar.gz libbios-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
* [http://homes.gersteinlab.org/people/lh372/VAT/vat-1.0.0.tar.gz vat-1.0.0.tar.gz] - Initial upload (6/14/2011)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of RNAstructure and VARNA ===&lt;br /&gt;
&lt;br /&gt;
Download RNAstructure and follow the building instructions. Make sure that the build directory is included in PATH environment variable. In addition, RNAstructure needs an environment variable named DATAPATH to be set to the directory of thermodynamic parameter files that are distributed with RNAstructure package. &lt;br /&gt;
&lt;br /&gt;
Download VARNA jar file and add the jar file path to CLASSPATH environment variable. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of pre-processed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in [http://info.gersteinlab.org/VAT#Interval Interval] format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* miRNAs where &#039;&#039;gene_type&#039;&#039; is &#039;&#039;miRNA&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1340</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1340"/>
		<updated>2011-06-14T17:45:17Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
* [http://rna.urmc.rochester.edu/RNAstructure.html RNAstructure] - RNAstructure is a software package for RNA structure prediction and analysis. This tool is utilized by VAT for prediction of structures for RNA sequences with and without the variants.&lt;br /&gt;
* [http://varna.lri.fr/downloads.html VARNA] - VARNA is a java applet for producing high quality RNA secondary structure plots. VAT utilizes VARNA for visualization of the RNA secondary structures.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of RNAstructure and VARNA ===&lt;br /&gt;
&lt;br /&gt;
Download RNAstructure and follow the building instructions. Make sure that the build directory is included in PATH environment variable. In addition, RNAstructure needs an environment variable named DATAPATH to be set to the directory of thermodynamic parameter files that are distributed with RNAstructure package. &lt;br /&gt;
&lt;br /&gt;
Download VARNA jar file and add the jar file path to CLASSPATH environment variable. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of pre-processed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in [http://info.gersteinlab.org/VAT#Interval Interval] format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* miRNAs where &#039;&#039;gene_type&#039;&#039; is &#039;&#039;miRNA&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1339</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1339"/>
		<updated>2011-06-14T17:24:53Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
* [http://rna.urmc.rochester.edu/RNAstructure.html RNAstructure] - RNAstructure is a software package for RNA structure prediction and analysis. This tool is utilized by VAT for prediction of structures for RNA sequences with and without the variants.&lt;br /&gt;
* [http://varna.lri.fr/downloads.html VARNA] - VARNA is a java applet for producing high quality RNA secondary structure plots. VAT utilizes VARNA for visualization of the RNA secondary structures.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of RNAstructure and VARNA ===&lt;br /&gt;
&lt;br /&gt;
Download RNAstructure and follow the building instructions. Make sure that the build directory is included in PATH environment variable. In addition, RNAstructure needs an environment variable named DATAPATH to be set to the directory of thermodynamic parameter files that are distributed with RNAstructure package. &lt;br /&gt;
&lt;br /&gt;
Download VARNA jar file and add the jar file path to CLASSPATH environment variable. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of pre-processed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in [http://info.gersteinlab.org/VAT#Interval Interval] format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* miRNAs where &#039;&#039;gene_type&#039;&#039; is &#039;&#039;miRNA&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1335</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1335"/>
		<updated>2011-06-13T14:35:46Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Setting up the web server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All annotated variant use the above format to capture information about the gene.  The format describing the list of affected transcripts depends on the variant class (SNP, indel, or SV) and the variant type as shown in the table below:&lt;br /&gt;
&lt;br /&gt;
[[File:VariantFormat.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of indels in [[#VCF|VCF]] format. The program determines the effect of an indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate a number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server (&#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c&amp;amp;type=coding Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1324</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1324"/>
		<updated>2011-06-07T14:24:35Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All annotated variant use the above format to capture information about the gene.  The format describing the list of affected transcripts depends on the variant class (SNP, indel, or SV) and the variant type as shown in the table below:&lt;br /&gt;
&lt;br /&gt;
[[File:VariantFormat.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of indels in [[#VCF|VCF]] format. The program determines the effect of an indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate a number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server (&#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1323</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1323"/>
		<updated>2011-06-06T16:08:21Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Setting up the web server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All annotated variant use the above format to capture information about the gene.  The format describing the list of affected transcripts depends on the variant class (SNP, Indel, or SV) and the variant type as shown in the table below:&lt;br /&gt;
&lt;br /&gt;
[[File:VariantFormat.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and Indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of Indels in [[#VCF|VCF]] format. The program determines the effect of an Indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated Indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate a number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of Indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of Indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server (&#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/dataSets&amp;diff=1322</id>
		<title>VAT/dataSets</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/dataSets&amp;diff=1322"/>
		<updated>2011-06-06T16:07:50Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Data sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 1000 Genomes Pilot Project: Low coverage samples ===&lt;br /&gt;
&lt;br /&gt;
 - Data files&lt;br /&gt;
     - Source: pilot_data, release: 2010_07, FTP:  ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/&lt;br /&gt;
     - Indels&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/indels/CEU.low_coverage.2010_07.indel.genotypes.vcf.gz CEU.low_coverage.2010_07.indel.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/indels/JPTCHB.low_coverage.2010_07.indel.genotypes.vcf.gz JPTCHB.low_coverage.2010_07.indel.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/indels/YRI.low_coverage.2010_07.indel.genotypes.vcf.gz YRI.low_coverage.2010_07.indel.genotypes.vcf.gz]&lt;br /&gt;
     - SNPs&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/snps/CEU.low_coverage.2010_07.genotypes.vcf.gz CEU.low_coverage.2010_07.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/snps/CHBJPT.low_coverage.2010_07.genotypes.vcf.gz CHBJPT.low_coverage.2010_07.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/snps/YRI.low_coverage.2010_07.genotypes.vcf.gz YRI.low_coverage.2010_07.genotypes.vcf.gz]&lt;br /&gt;
 - Annotation file: [ftp://ftp.sanger.ac.uk/pub/gencode/release_3b/gencode.v3b.annotation.NCBI36.gtf.gz GENCODE (version 3b, hg18)] using CDS elements where &#039;&#039;gene_type = protein_coding&#039;&#039; and &#039;&#039;transcript_type = protein_coding&#039;&#039;&lt;br /&gt;
 - Results: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=1000genomes_lowCoverage&amp;amp;annotationSet=gencode3b&amp;amp;type=coding VAT]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 1000 Genomes Project, Phase I, chr22, SNP calls ===&lt;br /&gt;
&lt;br /&gt;
 - Data files&lt;br /&gt;
     - Source: release: 20100804, FTP: ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/&lt;br /&gt;
     - SNPs: [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz ALL.2of4intersection.20100804.genotypes.vcf.gz]&lt;br /&gt;
 - Annotation file: [ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz GENCODE (version 3c, hg19)] using CDS elements where &#039;&#039;gene_type = protein_coding&#039;&#039; and &#039;&#039;transcript_type = protein_coding&#039;&#039;&lt;br /&gt;
 - Results: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c&amp;amp;type=coding VAT]&lt;br /&gt;
 - [http://info.gersteinlab.org/VAT#Example_workflow Detailed workflow]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Pre-processed GENCODE annotation sets ==&lt;br /&gt;
&lt;br /&gt;
The pre-processed GENCODE annotation sets can be downloaded [http://info.gersteinlab.org/VAT/download#Download_of_pre-processed_annotation_sets here].&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/dataSets&amp;diff=1321</id>
		<title>VAT/dataSets</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/dataSets&amp;diff=1321"/>
		<updated>2011-06-06T16:07:12Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Data sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data sets ==&lt;br /&gt;
&lt;br /&gt;
=== 1000 Genomes Project ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1000 Genomes Pilot Project: Low coverage samples ====&lt;br /&gt;
&lt;br /&gt;
 - Data files&lt;br /&gt;
     - Source: pilot_data, release: 2010_07, FTP:  ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/&lt;br /&gt;
     - Indels&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/indels/CEU.low_coverage.2010_07.indel.genotypes.vcf.gz CEU.low_coverage.2010_07.indel.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/indels/JPTCHB.low_coverage.2010_07.indel.genotypes.vcf.gz JPTCHB.low_coverage.2010_07.indel.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/indels/YRI.low_coverage.2010_07.indel.genotypes.vcf.gz YRI.low_coverage.2010_07.indel.genotypes.vcf.gz]&lt;br /&gt;
     - SNPs&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/snps/CEU.low_coverage.2010_07.genotypes.vcf.gz CEU.low_coverage.2010_07.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/snps/CHBJPT.low_coverage.2010_07.genotypes.vcf.gz CHBJPT.low_coverage.2010_07.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/snps/YRI.low_coverage.2010_07.genotypes.vcf.gz YRI.low_coverage.2010_07.genotypes.vcf.gz]&lt;br /&gt;
 - Annotation file: [ftp://ftp.sanger.ac.uk/pub/gencode/release_3b/gencode.v3b.annotation.NCBI36.gtf.gz GENCODE (version 3b, hg18)] using CDS elements where &#039;&#039;gene_type = protein_coding&#039;&#039; and &#039;&#039;transcript_type = protein_coding&#039;&#039;&lt;br /&gt;
 - Results: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=1000genomes_lowCoverage&amp;amp;annotationSet=gencode3b&amp;amp;type=coding VAT]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1000 Genomes Project, Phase I, chr22, SNP calls ====&lt;br /&gt;
&lt;br /&gt;
 - Data files&lt;br /&gt;
     - Source: release: 20100804, FTP: ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/&lt;br /&gt;
     - SNPs: [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz ALL.2of4intersection.20100804.genotypes.vcf.gz]&lt;br /&gt;
 - Annotation file: [ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz GENCODE (version 3c, hg19)] using CDS elements where &#039;&#039;gene_type = protein_coding&#039;&#039; and &#039;&#039;transcript_type = protein_coding&#039;&#039;&lt;br /&gt;
 - Results: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c&amp;amp;type=coding VAT]&lt;br /&gt;
 - [http://info.gersteinlab.org/VAT#Example_workflow Detailed workflow]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Pre-processed GENCODE annotation sets ==&lt;br /&gt;
&lt;br /&gt;
The pre-processed GENCODE annotation sets can be downloaded [http://info.gersteinlab.org/VAT/download#Download_of_pre-processed_annotation_sets here].&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1320</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1320"/>
		<updated>2011-06-06T16:04:28Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Download of preprocessed annotation sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of pre-processed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in [http://info.gersteinlab.org/VAT#Interval Interval] format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* miRNAs where &#039;&#039;gene_type&#039;&#039; is &#039;&#039;miRNA&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1319</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1319"/>
		<updated>2011-06-06T16:03:57Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Download of preprocessed annotation sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of preprocessed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in [http://info.gersteinlab.org/VAT#Interval Interval] format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* miRNAs where &#039;&#039;gene_type&#039;&#039; is &#039;&#039;miRNA&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.miRNA.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1318</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1318"/>
		<updated>2011-06-06T15:59:19Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Download of preprocessed annotation sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of preprocessed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in [http://info.gersteinlab.org/VAT#Interval Interval] format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* miRNAs where &#039;&#039;gene_type&#039;&#039; is &#039;&#039;miRNA&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.miRNA.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1317</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1317"/>
		<updated>2011-06-06T15:58:21Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Download of preprocessed annotation sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of preprocessed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in [http://info.gersteinlab.org/VAT#Interval Interval] format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
* miRNAs where &#039;&#039;gene_type&#039;&#039; is &#039;&#039;miRNA&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.miRNA.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1316</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1316"/>
		<updated>2011-06-06T15:51:39Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Download of preprocessed annotation sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of preprocessed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in Interval format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;&#039;&#039;gene_type&#039;&#039;&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;br /&gt;
&lt;br /&gt;
* miRNAs where gene_type is miRNA:&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1315</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1315"/>
		<updated>2011-06-06T15:49:59Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Download of preprocessed annotation sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of preprocessed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in Interval format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 3c (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 4 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode4.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 5 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode5.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 6 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode6.fa Transcript sequences]&lt;br /&gt;
** GENCODE version 7 (hg19): [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode7.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1314</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1314"/>
		<updated>2011-06-06T15:48:20Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Download of preprocessed annotation sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of preprocessed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project. Each each entry has a set of &#039;&#039;&#039;transcript coordinates&#039;&#039;&#039; (in Interval format) and a set of &#039;&#039;&#039;transcript sequences&#039;&#039;&#039; (introns removed; sequence with respect to the &#039;+&#039; strand; in FASTA format)&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1313</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1313"/>
		<updated>2011-06-06T15:45:11Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Download of preprocessed annotation sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of preprocessed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project:&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates (Interval file)], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences (introns removed; sequence with respect to the &#039;+&#039; strand; FASTA format)]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1312</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1312"/>
		<updated>2011-06-06T15:32:22Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Download of preprocessed annotation sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of preprocessed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project:&lt;br /&gt;
&lt;br /&gt;
* Coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval Transcript coordinates (Interval file)], [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa Transcript sequences (introns removed; sequence with respect to the &#039;+&#039; strand; FASTA format)&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1311</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1311"/>
		<updated>2011-06-06T15:29:28Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Download of preprocessed annotation sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of preprocessed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project:&lt;br /&gt;
&lt;br /&gt;
* GENCODE coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;&lt;br /&gt;
** GENCODE version 3b (hg18): [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval] - [http://info.gersteinlab.org/VAT#Interval Interval] file with transcript coordinates, [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa] - FASTA file with transcript sequences (introns are removed; sequence with respect to the &#039;+&#039; strand)&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1310</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1310"/>
		<updated>2011-06-06T15:27:36Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Download of preprocessed annotation sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of preprocessed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from the [http://www.gencodegenes.org/ GENCODE] project:&lt;br /&gt;
&lt;br /&gt;
* GENCODE coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
** [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval GENCODE version 3b (hg18) ] - [http://info.gersteinlab.org/VAT#Interval Interval] file with transcript coordinates&lt;br /&gt;
** [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa GENCODE version 3b (hg18) ] - FASTA file with transcript sequences (introns are removed; sequence with respect to the &#039;+&#039; strand)&lt;br /&gt;
** [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval GENCODE version 3c (hg19) ] - [http://info.gersteinlab.org/VAT#Interval Interval] file with transcript coordinates&lt;br /&gt;
** [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa GENCODE version 3c (hg19) ] - FASTA file with transcript sequences (introns are removed; sequence with respect to the &#039;+&#039; strand)&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1309</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1309"/>
		<updated>2011-06-06T15:23:41Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Download of preprocessed annotation sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of preprocessed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from [http://www.gencodegenes.org/ GENCODE]:&lt;br /&gt;
&lt;br /&gt;
* GENCODE version 3b (hg18) - includes coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;&lt;br /&gt;
** [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval gencode3b.interval] - [http://info.gersteinlab.org/VAT#Interval Interval] file with transcript coordinates&lt;br /&gt;
** [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa gencode3b.fa] - FASTA file with transcript sequences (introns are removed; sequence with respect to the &#039;+&#039; strand)&lt;br /&gt;
* GENCODE version 3c (hg19) - includes coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;&lt;br /&gt;
** [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval gencode3c.interval] - [http://info.gersteinlab.org/VAT#Interval Interval] file with transcript coordinates&lt;br /&gt;
** [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa gencode3c.fa] - FASTA file with transcript sequences (introns are removed; sequence with respect to the &#039;+&#039; strand)&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/dataSets&amp;diff=1297</id>
		<title>VAT/dataSets</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/dataSets&amp;diff=1297"/>
		<updated>2011-06-01T14:00:10Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Data sets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data sets ==&lt;br /&gt;
&lt;br /&gt;
=== 1000 Genomes Project ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1000 Genomes Pilot Project: Low coverage samples ====&lt;br /&gt;
&lt;br /&gt;
 - Data files&lt;br /&gt;
     - Source: pilot_data, release: 2010_07, FTP:  ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/&lt;br /&gt;
     - Indels&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/indels/CEU.low_coverage.2010_07.indel.genotypes.vcf.gz CEU.low_coverage.2010_07.indel.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/indels/JPTCHB.low_coverage.2010_07.indel.genotypes.vcf.gz JPTCHB.low_coverage.2010_07.indel.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/indels/YRI.low_coverage.2010_07.indel.genotypes.vcf.gz YRI.low_coverage.2010_07.indel.genotypes.vcf.gz]&lt;br /&gt;
     - SNPs&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/snps/CEU.low_coverage.2010_07.genotypes.vcf.gz CEU.low_coverage.2010_07.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/snps/CHBJPT.low_coverage.2010_07.genotypes.vcf.gz CHBJPT.low_coverage.2010_07.genotypes.vcf.gz]&lt;br /&gt;
         - [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_07/low_coverage/snps/YRI.low_coverage.2010_07.genotypes.vcf.gz YRI.low_coverage.2010_07.genotypes.vcf.gz]&lt;br /&gt;
 - Annotation file: [ftp://ftp.sanger.ac.uk/pub/gencode/release_3b/gencode.v3b.annotation.NCBI36.gtf.gz GENCODE (version 3b, hg18)] using CDS elements where &#039;&#039;gene_type = protein_coding&#039;&#039; and &#039;&#039;transcript_type = protein_coding&#039;&#039;&lt;br /&gt;
 - Results: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=1000genomes_lowCoverage&amp;amp;annotationSet=gencode3b&amp;amp;type=coding VAT]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1000 Genomes Project, Phase I, chr22, SNP calls ====&lt;br /&gt;
&lt;br /&gt;
 - Data files&lt;br /&gt;
     - Source: release: 20100804, FTP: ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/&lt;br /&gt;
     - SNPs: [ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz ALL.2of4intersection.20100804.genotypes.vcf.gz]&lt;br /&gt;
 - Annotation file: [ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz GENCODE (version 3c, hg19)] using CDS elements where &#039;&#039;gene_type = protein_coding&#039;&#039; and &#039;&#039;transcript_type = protein_coding&#039;&#039;&lt;br /&gt;
 - Results: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c&amp;amp;type=coding VAT]&lt;br /&gt;
 - [http://info.gersteinlab.org/VAT#Example_workflow Detailed workflow]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1295</id>
		<title>VAT/download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT/download&amp;diff=1295"/>
		<updated>2011-05-25T16:56:04Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Installation of the external GSL and GD libraries */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== External Software ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required  ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GSL] - GNU Scientific Library (version-1.14; required for libBIOS, which is a general C library).&lt;br /&gt;
* [http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.34.zip BlatSuite] - BLAT and a collection of utility programs. These tools are utilized by VAT. Note: these executables must be part of the PATH. &lt;br /&gt;
* [http://www.libgd.org/Main_Page GD library] - The GD library is used to create an image for each gene model and its associated variants (version-2.0.35; required by VAT).&lt;br /&gt;
* [http://samtools.sourceforge.net/tabix.shtml Tabix] - Tabix (version-0.2.3) is a generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval ([http://sourceforge.net/projects/samtools/files/tabix/ download]). These tools are utilized by VAT. Note: these executables must be part of the PATH.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
&lt;br /&gt;
* [http://vcftools.sourceforge.net/index.html VCF tools] - VCF tools consists of a suite of useful modules to manipulate VCF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VAT Download ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (VAT) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
VAT is a based on a general C library, called libBIOS.  A TAR ball of libBIOS and VAT can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src libBIOS-1.1.0.tar.gz] &lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5.tar.gz] - Initial upload&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executables ===&lt;br /&gt;
&lt;br /&gt;
Statically built binaries for UNIX can be found here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/VAT/src VAT-0.5-UNIX.tar.gz] - 64bit version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of the external GSL and GD libraries ===&lt;br /&gt;
&lt;br /&gt;
In order to install VAT two external libraries must be installed first. The libBIOS library depends on GSL, whereas VAT makes use of the GD library. Please follow the instructions provided by each package. The GSL library can be installed on most systems using the following commands (for details, please refer to the specific instructions at the [http://www.gnu.org/software/gsl/ GNU Scientific Library] website):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gsl-1.14/&lt;br /&gt;
$ ./configure --prefix=`pwd`&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, the [http://www.libgd.org/Main_Page GD library] can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gd-2.0.35/&lt;br /&gt;
$ ./configure --prefix=`pwd` --with-jpeg=/path/to/jpegLib/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After they are installed, the first step to install VAT is the installation and configuration of libBIOS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of libBIOS ===&lt;br /&gt;
&lt;br /&gt;
Depending on where the three libraries (GSL, libBIOS, and GD) are installed, the following variables need to be set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/path/to/gsl-1.14/include -I/path/to/libbios/include -I/path/to/gd-2.0.35/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/path/to/gsl-1.14/lib -L/path/to/libbios/lib -L/path/to/gd-2.0.35/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libBIOS can be installed on most systems with the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration of VAT ===&lt;br /&gt;
&lt;br /&gt;
A few simple steps are required to install VAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/vat-x.x.x/&lt;br /&gt;
$ ./configure --prefix=`pwd` &lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VAT contains a configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;), which contains a set of variables that are used by a number of different programs.  The name/value pairs are space or tab-delimited. Empty lines are lines starting with &#039;//&#039; are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// REQUIRED&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// Tabix directory (includes both tabix and bgzip)&lt;br /&gt;
TABIX_DIR /path/to/tabix-0.2.3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
// OPTIONAL (required only for CGIs)&lt;br /&gt;
// ===============================================================================&lt;br /&gt;
&lt;br /&gt;
// CGI base URL (where the CGIs are located)&lt;br /&gt;
WEB_URL_CGI http://webserver.org/path&lt;br /&gt;
&lt;br /&gt;
// Path to the web data directory where the preprocessed files are stored&lt;br /&gt;
WEB_DATA_DIR /path/to/public_html/path/to/VAT&lt;br /&gt;
// URL to preprocessed files&lt;br /&gt;
WEB_DATA_URL http://webserver.org/path/to/VAT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file has to be &#039;&#039;&#039;configured properly&#039;&#039;&#039; by filling in the required information. Subsequently, the following environment variable (&#039;&#039;&#039;VAT_CONFIG_FILE&#039;&#039;&#039;) has to be set:&lt;br /&gt;
&lt;br /&gt;
 VAT_CONFIG_FILE=/pathTo/vat/vatConfirgurationTemplate.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup of the web server ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This step is optional, but useful for visualizing the results of processed data sets. The following steps are required:&lt;br /&gt;
&lt;br /&gt;
* The executable &#039;&#039;&#039;vat_cgi&#039;&#039;&#039; has to be located in the cgi-bin directory on the web server&lt;br /&gt;
* The configuration file (&#039;&#039;&#039;vatConfirgurationTemplate.txt&#039;&#039;&#039;) must contain the pertinent information&lt;br /&gt;
* The following .htaccess file should be added to the cgi-bin:&lt;br /&gt;
 SetEnv VAT_CONFIG_FILE /path/to/vatConfirgurationTemplate.txt&lt;br /&gt;
* The web data directory (defined by WEB_DATA_DIR in the configuration file) requires the following information:&lt;br /&gt;
** &#039;&#039;&#039;Preprocessed annotation sets&#039;&#039;&#039; (gencode3b.interval, gencode3b.fa, gencode3c.interval, gencode3c.fa)&lt;br /&gt;
** The &#039;&#039;&#039;tabix&#039;&#039;&#039; and &#039;&#039;&#039;bgzip&#039;&#039;&#039; executables&lt;br /&gt;
** Two images provided by the VAT source code: &#039;&#039;&#039;check.png&#039;&#039;&#039; and &#039;&#039;&#039;processing.gif&#039;&#039;&#039; (referred to by vat_cgi)&lt;br /&gt;
** Directory that has the same name as the data set (in this example: SampleData). This directory contains the images for each gene (created by [http://info.gersteinlab.org/VAT#vcf2images vcf2images]) and a VCF file for each gene (created by [http://info.gersteinlab.org/VAT#vcfSubsetByGene vcfSubsetByGene])&lt;br /&gt;
*** SampleData &lt;br /&gt;
*** SampleData.vcf.gz&lt;br /&gt;
*** SampleData.vcf.gz.tbi&lt;br /&gt;
*** SampleData.sampleSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
*** SampleData.geneSummary.txt (generated by [http://info.gersteinlab.org/VAT#vcfSummary vcfSummary])&lt;br /&gt;
&lt;br /&gt;
For additional information please refer to the [http://info.gersteinlab.org/VAT#Setting_up_the_web_server example workflow].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download of preprocessed annotation sets ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following annotation sets are derived from [http://www.gencodegenes.org/ GENCODE]:&lt;br /&gt;
&lt;br /&gt;
* GENCODE version 3b (hg18) - includes coding sequence (CDS) elements where the both the gene_type and transcript_type are protein_coding&lt;br /&gt;
** [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.interval gencode3b.interval] - [http://info.gersteinlab.org/VAT#Interval Interval] file with transcript coordinates&lt;br /&gt;
** [http://homes.gersteinlab.org/people/lh372/VAT/gencode3b.fa gencode3b.fa] - FASTA file with transcript sequences (introns are removed; sequence with respect to the &#039;+&#039; strand)&lt;br /&gt;
* GENCODE version 3c (hg19) - includes coding sequence (CDS) elements where the both the gene_type and transcript_type are protein_coding&lt;br /&gt;
** [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.interval gencode3c.interval] - [http://info.gersteinlab.org/VAT#Interval Interval] file with transcript coordinates&lt;br /&gt;
** [http://homes.gersteinlab.org/people/lh372/VAT/gencode3c.fa gencode3c.fa] - FASTA file with transcript sequences (introns are removed; sequence with respect to the &#039;+&#039; strand)&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1294</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1294"/>
		<updated>2011-05-25T16:35:14Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* VCF */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All annotated variant use the above format to capture information about the gene.  The format describing the list of affected transcripts depends on the variant class (SNP, Indel, or SV) and the variant type as shown in the table below:&lt;br /&gt;
&lt;br /&gt;
[[File:VariantFormat.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and Indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of Indels in [[#VCF|VCF]] format. The program determines the effect of an Indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated Indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate a number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of Indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of Indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1293</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1293"/>
		<updated>2011-05-25T16:34:39Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* VCF */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All annotated variant use the above format to capture information about the gene.  The format describing the list of affected transcripts depends on the variant class (SNP, Indel, or SV) and the variant type as shown in the table below:&lt;br /&gt;
&lt;br /&gt;
[[File:VariantFormat.png|750px]]&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and Indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of Indels in [[#VCF|VCF]] format. The program determines the effect of an Indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated Indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate a number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of Indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of Indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1292</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1292"/>
		<updated>2011-05-25T16:33:09Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* VCF */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
[[File:VariantFormat.png|200px]]&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and Indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of Indels in [[#VCF|VCF]] format. The program determines the effect of an Indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated Indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate a number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of Indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of Indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1291</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1291"/>
		<updated>2011-05-25T16:31:36Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* VCF */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
[[File:VariantFormat.png]]&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and Indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of Indels in [[#VCF|VCF]] format. The program determines the effect of an Indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated Indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate a number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of Indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of Indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=File:VariantFormat.png&amp;diff=1290</id>
		<title>File:VariantFormat.png</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=File:VariantFormat.png&amp;diff=1290"/>
		<updated>2011-05-25T16:29:06Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1289</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1289"/>
		<updated>2011-05-25T16:24:25Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* vcfSubsetByGene */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and Indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of Indels in [[#VCF|VCF]] format. The program determines the effect of an Indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated Indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate a number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of Indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of Indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1288</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1288"/>
		<updated>2011-05-25T16:23:52Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* vcfSummary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and Indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of Indels in [[#VCF|VCF]] format. The program determines the effect of an Indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated Indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate a number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of Indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1287</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1287"/>
		<updated>2011-05-25T16:23:21Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* indelMapper */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and Indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of Indels in [[#VCF|VCF]] format. The program determines the effect of an Indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated Indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate a number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1286</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1286"/>
		<updated>2011-05-25T16:22:35Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* VCF */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and Indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of indels in [[#VCF|VCF]] format. The program determines the effect of an indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate a number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1285</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1285"/>
		<updated>2011-05-25T15:42:53Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* genericMapper */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of indels in [[#VCF|VCF]] format. The program determines the effect of an indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate a number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1284</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1284"/>
		<updated>2011-05-25T15:39:14Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* genericMapper */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of indels in [[#VCF|VCF]] format. The program determines the effect of an indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate an number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1283</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1283"/>
		<updated>2011-05-25T15:38:54Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* svMapper */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of indels in [[#VCF|VCF]] format. The program determines the effect of an indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 svMapper &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SVs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate an number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1282</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1282"/>
		<updated>2011-05-24T16:33:19Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* List of programs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of indels in [[#VCF|VCF]] format. The program determines the effect of an indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== svMapper ====&lt;br /&gt;
&lt;br /&gt;
 svMapper is a program to annotate a set of SVs in VCF format. The program determines if a SV overlaps with different transcript isoforms of a gene.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate an number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1281</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1281"/>
		<updated>2011-05-24T16:27:53Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Interval */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting.&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of indels in [[#VCF|VCF]] format. The program determines the effect of an indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate an number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1280</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1280"/>
		<updated>2011-05-24T16:25:18Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Interval */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using the [[#gencode2interval|gencode2interval]] program ensures proper formatting:&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of indels in [[#VCF|VCF]] format. The program determines the effect of an indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate an number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1279</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1279"/>
		<updated>2011-05-24T16:23:56Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Interval */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using [[#gencode2interval|gencode2interval]] program ensures proper formatting:&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of indels in [[#VCF|VCF]] format. The program determines the effect of an indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate an number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1278</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1278"/>
		<updated>2011-05-24T16:23:33Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Interval */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using [[#gencode2interval|gencode2interval]] program ensures proper formatting:&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of indels in [[#VCF|VCF]] format. The program determines the effect of an indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate an number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1277</id>
		<title>VAT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=VAT&amp;diff=1277"/>
		<updated>2011-05-24T16:23:14Z</updated>

		<summary type="html">&lt;p&gt;Lukas.habegger: /* Interval */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/VAT &#039;&#039;&#039;VAT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VCF ===&lt;br /&gt;
&lt;br /&gt;
The Variant Call Format (VCF) is a tab-delimited text file format to represent a number of different genetic variants including single nucleotide polymorphisms (SNPs), small insertions and deletions (Indels), and structural variants (SVs). This format was developed as part of the [http://www.1000genomes.org 1000 Genomes Project].  A detailed summary of this file format can be found [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-40 here]. The annotation information is captured as part of the &#039;&#039;&#039;INFO field&#039;&#039;&#039; using the &#039;&#039;&#039;VA (Variant Annotation) tag&#039;&#039;&#039;. The string with the variant information has the following format:&lt;br /&gt;
&lt;br /&gt;
 AlleleNumber:GeneName:GeneId:Strand:Type:FractionOfTranscriptsAffected:{List of transcripts}TranscriptName:TranscriptId:TranscriptLength_RelativePositionOfVariant_RelativePositionOfAminoAcid_Substitution&lt;br /&gt;
&lt;br /&gt;
The allele number refers to the numbering of the alleles. By definition, the reference allele has zero as the allele number, whereas the alternate alleles are numbered starting at one (some variants have more than one alternate alleles).  The type refers to the type of variant. For SNPs, the types can take on the following values (generated by [[#snpMapper|snpMapper]]): synonymous, nonsynonymous, prematureStop, removedStop, and spliceOverlap.  For Indels (generated by [[#indelMapper|indelMapper]]), the types can take on the following values: spliceOverlap, startOverlap, endOverlap, insertionFS, insertionNFS, deletionFS, deletionNFS,  where FS denotes &#039;frameshift&#039; and NFS indicates &#039;non-frameshift&#039;.  The term spliceOverlap (for both SNPs and indels) refers to a genetic variant that overlaps with a splice site (either two nucleotides downstream of an exon or two nucleotides upstream of an exon).    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1&#039;&#039;&#039;: A SNP is introducing a premature stop codon. This variant affects one out of five transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	23112837	.	A	T	.	PASS	AA=A;AC=7;AN=118;DP=168;SF=2;&#039;&#039;&#039;VA=1:EPHB2:ENSG00000133216:+:prematureStop:1/5:EPHB2-001:ENST00000400191:3165_3055_1019_K-&amp;gt;*&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2&#039;&#039;&#039;: A SNP leads to a non-synonymous substitution. This variant affects two out of four transcripts for this gene.&lt;br /&gt;
&lt;br /&gt;
 chr1	1110357	.	G	A	.	PASS	AA=G;AC=3;AN=118;DP=203;SF=2;&#039;&#039;&#039;VA=1:TTLL10:ENSG00000162571:+:nonsynonymous:2/4:TTLL10-001:ENST00000379288:1212_1187_396_R-&amp;gt;H:TTLL10-202:ENST00000400931:1212_1187_396_R-&amp;gt;H&#039;&#039;&#039;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 3&#039;&#039;&#039;: A SNP causing a non-synonymous substitution in one transcript and a splice overlap in another transcript of the same gene.&lt;br /&gt;
&lt;br /&gt;
 chr9	35819390	rs2381409	C	T	.	PASS	AA=N;AC=157;AN=240;DP=49;SF=0,1;&#039;&#039;&#039;VA=1:TMEM8B:ENSG00000137103:+:nonsynonymous:1/7:TMEM8B-202:ENST00000360192:2109_166_56_P-&amp;gt;S,1:TMEM8B:ENSG00000137103:+:spliceOverlap:1/7:TMEM8B-001:ENST00000450762:2106&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4&#039;&#039;&#039;: An Indel with two alternate alleles. Each alternate allele leads to a non-frameshift deletion.&lt;br /&gt;
&lt;br /&gt;
 chr7	140118541	.	TACAACAACA	T,TACA	.	PASS	HP=1;&#039;&#039;&#039;VA=1:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQQ-&amp;gt;L,2:AC006344.1:ENSG00000236914:+:deletionNFS:1/1:AC006344.1-201:ENST00000434223:66_23_8_LQQ-&amp;gt;L&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that multiple annotation entries are comma-separated.  Multiple annotation entries arise when a variant causes different types of effects on different transcripts (Example 3) or if there are multiple alternate alleles (Example 4).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VAT also enables the grouping of samples.  For examples, samples can be assigned to different sub-populations or they can be designated as cases or controls. This is done by modifying the header line using [[#vcfModifyHeader|vcfModifyHeader]]. Specifically, the sample is prefixed by group identifier using the &#039;:&#039; character as a delimiter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interval ===&lt;br /&gt;
&lt;br /&gt;
The Interval format consists of eight tab-delimited columns and is used to represent genomic intervals such as genes. &lt;br /&gt;
This format is closely associated with the [http://homes.gersteinlab.org/people/lh372/SOFT/bios/intervalFind_8c.html intervalFind module], which is part of libBIOS. This module efficiently finds intervals that overlap with a query interval. The underlying algorithm is based on containment sublists: Alekseyenko, A.V., Lee, C.J. &amp;quot;Nested Containment List (NCList): A new algorithm for accelerating interval query of genome alignment and interval databases&amp;quot; &#039;&#039;Bioinformatics&#039;&#039; 2007;23:1386-1393 [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/23/11/1386]. &lt;br /&gt;
&lt;br /&gt;
 1.   Name of the interval&lt;br /&gt;
 2.   Chromosome &lt;br /&gt;
 3.   Strand&lt;br /&gt;
 4.   Interval start (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 5.   Interval end (with respect to the &amp;quot;+&amp;quot;)&lt;br /&gt;
 6.   Number of sub-intervals&lt;br /&gt;
 7.   Sub-interval starts (with respect to the &amp;quot;+&amp;quot;, comma-delimited)&lt;br /&gt;
 8.   Sub-interval end (with respect to the &amp;quot;+&amp;quot;, comma-delimited)   &lt;br /&gt;
&lt;br /&gt;
Note: For the purpose of VAT, the name field in the [[#Interval|Interval]] file must contain four pieces of information delimited by the &#039;|&#039; symbol (geneId|transcriptId|geneName|transcriptName). Using [[#gencode2interval|gencode2interval]] program ensures proper formatting:&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 ENSG00000008513|ENST00000319914|ST3GAL1|ST3GAL1-201	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000395320|ST3GAL1|ST3GAL1-202	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008513|ENST00000399640|ST3GAL1|ST3GAL1-203	chr8	-	134472009	134488267	6	134472009,134474117,134475656,134477020,134478136,134487961	134472180,134474237,134475702,134477200,134478333,134488267&lt;br /&gt;
 ENSG00000008516|ENST00000325800|MMP25|MMP25-201	chr16	+	3097544	3105947	4	3097544,3100009,3100254,3105830	3097548,3100145,3100546,3105947&lt;br /&gt;
 ENSG00000008516|ENST00000336577|MMP25|MMP25-202	chr16	+	3096918	3109096	10	3096918,3097415,3100009,3100254,3107033,3107310,3107531,3108181,3108412,3108827	3097017,3097548,3100145,3100547,3107210,3107395,3107614,3108334,3108670,3109096&lt;br /&gt;
&lt;br /&gt;
In this example, each interval (line) represents a transcript, while the sub-intervals denote exons.  The geneId is utilized to determine if multiple transcripts belong to the same gene model. &lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the Interval format are &#039;&#039;&#039;zero-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is not included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
=== VAT Core Modules ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== snpMapper ====&lt;br /&gt;
&lt;br /&gt;
snpMapper is a program to annotate a set of SNPs in [[#VCF|VCF]] format. The program determines the effect of a SNP on the coding potential (synonymous, nonsynonymous, prematureStop, removedStop, spliceOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 snpMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated SNPs in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== indelMapper ====&lt;br /&gt;
&lt;br /&gt;
indelMapper is a program to annotate a set of indels in [[#VCF|VCF]] format. The program determines the effect of an indel on the coding potential (frameshift insertion, non-frameshift insertion, frameshift deletion, non-frameshift deletion, spliceOverlap, startOverlap, endOverlap) of each transcript of a gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 indelMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;annotation.fa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs annotated indels in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  For details refer to the [[#VCF|VCF]] format specification.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** annotation.fa - File with the transcript sequences in FASTA format for each entry specified in annotation.interval. This file is typically generated by the [[#interval2sequences|interval2sequences]] program using the &#039;exonic&#039; mode.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== genericMapper ====&lt;br /&gt;
&lt;br /&gt;
genericMapper is a program to annotate an number of different variants in [[#VCF|VCF]] format. The program checks whether a variant overlaps with entries in the specified annotation set (it does not determine the effect on the coding potential). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
genericMapper &amp;lt;annotation.interval&amp;gt; &amp;lt;nameFeature&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#VCF|VCF]] input from STDIN &lt;br /&gt;
* Outputs:  Outputs the annotated variants in [[#VCF|VCF]] format.  The annotation information is captured as part of  the INFO field.  &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. This can be a generic [[#Interval|Interval]].&lt;br /&gt;
** nameFeature - Specifies the type of the annotation feature (for example promotor regions). The name of the feature is included as part of the annotation information (in the INFO field) in the resulting VCF file.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSummary ====&lt;br /&gt;
&lt;br /&gt;
vcfSummary is a program to aggregate annotated variants across genes and samples. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSummary &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates two output files. The first file, named &#039;&#039;file.geneSummary.txt&#039;&#039;, contains the number of variants categorized by type for each gene.  A second file, named &#039;&#039;file.sampleSummary.txt&#039;&#039;, summarizes number of variants categorized by type for each sample.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcf2images ====&lt;br /&gt;
&lt;br /&gt;
vcf2images is a program to generate an image for each gene to visualize effect of the annotated variants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcf2images &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates an image in PNG format for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of SNPs, Indels, and SVs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where the images are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfSubsetByGene ====&lt;br /&gt;
&lt;br /&gt;
vcfSubsetByGene is a program to subset a [[#VCF|VCF]] file with annotated variants by gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfSubsetByGene &amp;lt;file.vcf.gz&amp;gt; &amp;lt;annotation.interval&amp;gt; &amp;lt;outputDir&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] file for each gene that has at least one annotated variant.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.vcf.gz - VCF file with annotated variants (this can be a mixture of indels and SNPs).  This file must be compressed using [[#bgzip/tabix|bgzip]] and indexed using the [[#bgzip/tabix|tabix]] program.&lt;br /&gt;
** annotation.interval - Annotation file representing the genomic coordinates of the gene models in [[#Interval|Interval]] format. Each line in this file represents a transcript. This file is typically generated using the [[#gencode2interval|gencode2interval]] program.&lt;br /&gt;
** outputDir - The output directory where [[#VCF|VCF]] files are stored&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vcfModifyHeader ====&lt;br /&gt;
 &lt;br /&gt;
vcfModifyHeader is a program to modify the header line (part of the meta-lines) in a [[#VCF|VCF]] file.  Specifically, it assigns each sample to a group or population (these assignments are used by other programs including [[#vcfSummary|vcfSummary]]). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 vcfModifyHeader &amp;lt;oldHeader.vcf&amp;gt; &amp;lt;groups.txt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs:  Generates a [[#VCF|VCF]] header file.    &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** oldHeader.vcf - The meta lines of a [[#VCF|VCF]] file. It can be obtained by using the following command: &lt;br /&gt;
 grep &#039;#&#039; file.vcf &amp;gt; file.header.vcf&lt;br /&gt;
** groups.txt - This tab-delimited file that assigns each sample present in the [[#VCF|VCF]] to a group/population. Here is a small sample file:&lt;br /&gt;
 HG00629	CHS&lt;br /&gt;
 HG00634	CHS&lt;br /&gt;
 HG00635	CHS&lt;br /&gt;
 HG00637	PUR&lt;br /&gt;
 HG00638	PUR&lt;br /&gt;
 HG00640	PUR&lt;br /&gt;
 NA06984	CEU&lt;br /&gt;
 NA06985	CEU&lt;br /&gt;
 NA06986	CEU&lt;br /&gt;
 NA06989	CEU&lt;br /&gt;
 NA06994	CEU&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Auxiliary programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gencode2interval ====&lt;br /&gt;
&lt;br /&gt;
gencode2interval converts a GENCODE annotation file (in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format) to the [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gencode2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a GENCODE annotation file in [http://genome.ucsc.edu/FAQ/FAQformat.html#format4 GTF] format from STDIN&lt;br /&gt;
* Outputs: Outputs the GENCODE annotation file in [[#Interval|Interval]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Note: To obtain the coding sequences of the elements with gene_type &#039;&#039;protein_coding&#039;&#039; and transcript_type &#039;&#039;protein_coding&#039;&#039; the following command should be used: &lt;br /&gt;
&lt;br /&gt;
 awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
 gencode2interval &amp;lt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; encode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set in [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2sequences &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;exonic|genomic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTA format&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.2bit - genome reference sequence in [http://genome.ucsc.edu/FAQ/FAQformat.html#format7 2bit format] &lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; exonic | genomic &amp;gt; - exonic means that only the exonic regions are extracted, while genomic indicates that the intronic sequences are extracted as well&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== External programs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgzip/tabix ====&lt;br /&gt;
&lt;br /&gt;
Tabix is generic tool that indexes position-sorted files in tab-delimited formats to facilitate fast retrieval.  This tool was developed by Heng Li.  For more information consult the [http://samtools.sourceforge.net/tabix.shtml tabix documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== VCF tools ====&lt;br /&gt;
&lt;br /&gt;
[http://vcftools.sourceforge.net/ VCF tools] consists of a suite of very useful modules to manipulate [[#VCF|VCF]] files. For more information consult the [http://vcftools.sourceforge.net/docs.html documentation page].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example workflow ==&lt;br /&gt;
&lt;br /&gt;
This workflow shows how the [http://info.gersteinlab.org/VAT/dataSets &#039;&#039;1000 Genomes Project, Phase I, chr22, SNP calls&#039;&#039;] data set was processed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Download the GENCODE annotation set (version 3c, hg19):&lt;br /&gt;
 $ wget ftp://ftp.sanger.ac.uk/pub/gencode/release_3c/gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Download the human genome (hg19) in 2bit format.  This is used by [[#interval2sequences|interval2sequences]] to extract the genomic sequences for the entries specified in the annotation set:&lt;br /&gt;
 $ wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit&lt;br /&gt;
&lt;br /&gt;
Download the SNP files in [[#VCF|VCF]] format and a third file that assigns each sample to a population:&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz.tbi&lt;br /&gt;
 $ wget ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20100804/20100804.ALL.panel&lt;br /&gt;
&lt;br /&gt;
Extract variants on chromosome 22:&lt;br /&gt;
 $ tabix -h ALL.2of4intersection.20100804.genotypes.vcf.gz 22 | bgzip -c &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preprocessing of the annotation file ===&lt;br /&gt;
&lt;br /&gt;
Decompress the annotation file:&lt;br /&gt;
 $ gunzip gencode.v3c.annotation.GRCh37.gtf.gz&lt;br /&gt;
&lt;br /&gt;
Extract the coding sequence (CDS) elements where the both the &#039;&#039;gene_type&#039;&#039; and &#039;&#039;transcript_type&#039;&#039; are &#039;&#039;protein_coding&#039;&#039;:&lt;br /&gt;
 $ awk &#039;/\t(HAVANA|ENSEMBL)\tCDS\t/ {print}&#039; gencode.v3c.annotation.GRCh37.gtf | grep &#039;gene_type &amp;quot;protein_coding&amp;quot;&#039; | grep &#039;transcript_type &amp;quot;protein_coding&amp;quot;&#039; &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf&lt;br /&gt;
&lt;br /&gt;
Convert the GENCODE GTF file into [[#Interval|Interval]] format:&lt;br /&gt;
 $ [[#gencode2interval|gencode2interval]] &amp;lt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.gtf &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
&lt;br /&gt;
Retrieve the genomic sequences for the transcripts specified in the annotation file.&lt;br /&gt;
 $ [[#interval2sequences|interval2sequences]] hg19.2bit gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval exonic &amp;gt; gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Annotation of the SNPs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotate the variants using [[#snpMapper|snpMapper]]&lt;br /&gt;
 &lt;br /&gt;
 $ zcat ALL.2of4intersection.20100804.chr22.genotypes.vcf.gz | [[#snpMapper|snpMapper]] gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.fa &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modification the VCF header line ===&lt;br /&gt;
&lt;br /&gt;
Modify the [[#VCF|VCF]] header line to assign individual samples to populations (groups).  This is done by using the following syntax: group:sample (i.e. CEU:NA0705). &lt;br /&gt;
&lt;br /&gt;
First get the old meta-data lines:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Store the annotated variants in a separate file:&lt;br /&gt;
 $ grep &amp;quot;#&amp;quot; -v ALL.2of4intersection.20100804.chr22.genotypes.annotated.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf&lt;br /&gt;
&lt;br /&gt;
Create the new meta-data lines:&lt;br /&gt;
 $ [[#vcfModifyHeader|vcfModifyHeader]] ALL.2of4intersection.20100804.chr22.genotypes.annotated.oldHeader.vcf 20100804.ALL.panel &amp;gt; ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf &lt;br /&gt;
&lt;br /&gt;
Merge the new meta-data lines with the annotated variants and create a new file called &#039;&#039;ALL.2of4intersection.20100804.chr22.vcf&#039;&#039;:&lt;br /&gt;
 $ cat ALL.2of4intersection.20100804.chr22.genotypes.annotated.newHeader.vcf ALL.2of4intersection.20100804.chr22.genotypes.annotated.variants.vcf &amp;gt; ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Compress the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ bgzip ALL.2of4intersection.20100804.chr22.vcf&lt;br /&gt;
&lt;br /&gt;
Index the newly created [[#VCF|VCF]] file with the annotated variants:&lt;br /&gt;
 $ tabix -p vcf ALL.2of4intersection.20100804.chr22.vcf.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of summaries and images ===&lt;br /&gt;
&lt;br /&gt;
Generate gene and sample summaries for the annotated variants&lt;br /&gt;
 $ [[#vcfSummary|vcfSummary]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval&lt;br /&gt;
 &lt;br /&gt;
 Resulting files: &#039;&#039;ALL.2of4intersection.20100804.chr22.geneSummary.txt&#039;&#039; and &#039;&#039;ALL.2of4intersection.20100804.chr22.sampleSummary.txt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make a new directory to store the images and [[#VCF|VCF]] files for each gene.&lt;br /&gt;
 $ mkdir ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Generate an image for each gene with at least one annotated variant.&lt;br /&gt;
 $ [[#vcf2images|vcf2images]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
Subset the [[#VCF|VCF]] file with the annotated variants by gene.&lt;br /&gt;
 $ [[#vcfSubsetByGene|vcfSubsetByGene]] ALL.2of4intersection.20100804.chr22.vcf.gz gencode.v3c.annotation.GRCh37.cds.gtpc.ttpc.interval ./ALL.2of4intersection.20100804.chr22&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting up the web server ===&lt;br /&gt;
&lt;br /&gt;
Make a TAR ball of the relevant files:&lt;br /&gt;
 &lt;br /&gt;
* Directory with the images and the VCF files for each gene (ALL.2of4intersection.20100804.chr22)&lt;br /&gt;
* File with the gene summary (ALL.2of4intersection.20100804.chr22.geneSummary.txt)&lt;br /&gt;
* File with the sample summary (ALL.2of4intersection.20100804.chr22.sampleSummary.txt)&lt;br /&gt;
* Compressed VCF file with the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz)&lt;br /&gt;
* Index file of the annotated variants (ALL.2of4intersection.20100804.chr22.vcf.gz.tbi)&lt;br /&gt;
 &lt;br /&gt;
 $ tar -cvf ALL.2of4intersection.20100804.chr22.tar \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22 \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.geneSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.sampleSummary.txt \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz \&lt;br /&gt;
    ALL.2of4intersection.20100804.chr22.vcf.gz.tbi&lt;br /&gt;
&lt;br /&gt;
Copy the relevant files to the web server ( &#039;&#039;&#039;WEB_DATA_DIR&#039;&#039;&#039; specified in the [http://info.gersteinlab.org/VAT/download#Installation_and_Configuration_of_VAT VAT configuration file]) &lt;br /&gt;
 $ scp ALL.2of4intersection.20100804.chr22.tar user@webserver:/path/to/WEB_DATA_DIR&lt;br /&gt;
&lt;br /&gt;
Unpack the TAR ball on the web server&lt;br /&gt;
 $ tar -xvf ALL.2of4intersection.20100804.chr22.tar &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View the results&#039;&#039;&#039;: [http://dynamic.gersteinlab.org/people/lh372/dev/vat_cgi?mode=process&amp;amp;dataSet=ALL.2of4intersection.20100804.chr22&amp;amp;annotationSet=gencode3c Link to web server]&lt;/div&gt;</summary>
		<author><name>Lukas.habegger</name></author>
	</entry>
</feed>