<?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=Asboner</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=Asboner"/>
	<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/Special:Contributions/Asboner"/>
	<updated>2026-04-17T00:00:49Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.6</generator>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=RSEQtools&amp;diff=2354</id>
		<title>RSEQtools</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=RSEQtools&amp;diff=2354"/>
		<updated>2013-04-22T14:08:49Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* sam2mrf */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/rnaseq/rseqtools &#039;&#039;&#039;RSEQtools 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;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The advent of next-generation sequencing for functional genomics has given rise to quantities of sequence information that are often so large that they are difficult to handle.  Moreover, sequence reads from a specific individual can contain sufficient information to potentially identify that person, raising significant privacy concerns.  In order to address these issues we have developed the Mapped Read Format (MRF), a compact data summary format for both short and long read alignments that enables the anonymization of confi-dential sequence information, while allowing one to still carry out many functional genomics studies.  We have developed a suite of tools that uses this format for the analysis of RNA-Seq experiments.  RSEQtools consists of a set of modules that perform common tasks such as calculating gene expression values, generating signal tracks of mapped reads, and segmenting that signal into actively transcribed regions.  In addition to the anonymization afforded by this format it also facilitates the decoupling of the alignment of reads from downstream analyses.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Citation ==&lt;br /&gt;
&lt;br /&gt;
Lukas Habegger*, Andrea Sboner*, Tara A. Gianoulis, Joel Rozowsky, Ashish Agarwal, Michael Snyder, Mark Gerstein. &#039;&#039;&#039;RSEQtools: A modular framework to analyze RNA-Seq data using compact, anonymized data summaries&#039;&#039;&#039;. [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/btq643?ijkey=GSZOpzLAEOqJtJ4&amp;amp;keytype=ref &amp;lt;i&amp;gt;Bioinformatics&amp;lt;/i&amp;gt;] 2010, &lt;br /&gt;
doi: 10.1093/bioinformatics/btq643&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The following sections provide documenation for the modules that are part of RSEQtools (http://rseqtools.gersteinlab.org/).  This documentation is intended for the end-users and can also be found at http://info.gersteinlab.org/RSEQtools.  &lt;br /&gt;
&#039;&#039;&#039;RSEQtools is implemented in C&#039;&#039;&#039; and uses a general C library called BIOS. &lt;br /&gt;
&lt;br /&gt;
The full &#039;&#039;&#039;documentation for developers&#039;&#039;&#039; can be found here:&lt;br /&gt;
* RSEQtools: http://archive.gersteinlab.org/proj/rnaseq/doc/mrf/&lt;br /&gt;
* BIOS: http://archive.gersteinlab.org/proj/rnaseq/doc/bios/&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
=== Mapped Read Format (MRF) ===&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;u&amp;gt;M&amp;lt;/u&amp;gt;apped &amp;lt;u&amp;gt;R&amp;lt;/u&amp;gt;ead &amp;lt;u&amp;gt;F&amp;lt;/u&amp;gt;ormat (MRF) flat file consists of &#039;&#039;&#039;three&#039;&#039;&#039; components and this format is closely associated with the software components of [http://rseqtools.gersteinlab.org RSEQtools]&lt;br /&gt;
&lt;br /&gt;
 1. Comment lines. Comment lines are optional and start with a &#039;#&#039; character.&lt;br /&gt;
 2. Header line. The header line is required and specifies the type of each column.&lt;br /&gt;
 3. Mapped reads. Each read (single-end or paired-end) is represented by on line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Required&#039;&#039;&#039; column:&lt;br /&gt;
&lt;br /&gt;
 * AlignmentBlocks, each alignment block must contain the following attributes: TargetName:Strand:TargetStart:TargetEnd:QueryStart:QueryEnd&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Optional&#039;&#039; columns:&lt;br /&gt;
&lt;br /&gt;
 * Sequence&lt;br /&gt;
 * QualityScores&lt;br /&gt;
 * QueryId&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Comments&lt;br /&gt;
# Required field: Blocks [TargetName:Strand:TargetStart:TargetEnd:QueryStart:QueryEnd]&lt;br /&gt;
# Optional fields: Sequence,QualityScores,QueryId&lt;br /&gt;
AlignmentBlocks&lt;br /&gt;
chr1:+:2001:2050:1:50&lt;br /&gt;
chr1:+:2001:2025:1:25,chr1:+:3001:3025:26:50&lt;br /&gt;
chr2:-:3001:3051:1:51|chr11:+:4001:4051:1:51&lt;br /&gt;
chr2:-:6021:6050:1:30,chr2:-:7031:7051:31:51|chr11:+:4001:4051:1:51&lt;br /&gt;
contigA:+:5001:5200:1:200,contigB:-:1200:1400:200:400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
 * Paired-end reads are separated by ‘|’&lt;br /&gt;
 * Alignment blocks are separated by ‘,’&lt;br /&gt;
 * Features of a block are separated by ‘:’&lt;br /&gt;
 * Columns are tab-delimited&lt;br /&gt;
 * Columns can be arranged in any order&lt;br /&gt;
 * Coordinates are &#039;&#039;&#039;one-based&#039;&#039;&#039; and &#039;&#039;&#039;closed (inclusive)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use MRF for confidential data&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It is straightforward to use MRF to separate the confidential information, i.e. the sequences, from the alignment data. The MRF file can be split in 2 files: one file can include &#039;&#039;AlignmentBlocks&#039;&#039; and &#039;&#039;QueryID&#039;&#039;, whereas a second file would can contain &#039;&#039;Sequence&#039;&#039; and &#039;&#039;QueryID&#039;&#039;. From a practical viewpoint it is also easy to create these two files.&lt;br /&gt;
&lt;br /&gt;
Assuming we have the columns AlignmentBlocks, Sequence, and QueryID as column 1, 2, and 3, respectively:&lt;br /&gt;
 $ cut -f1,3 file.mrf &amp;gt; alignments.mrf&lt;br /&gt;
 $ cut -f2,3 file.mrf &amp;gt; sequences.mrf&lt;br /&gt;
&lt;br /&gt;
* alignments.mrf would contain the alignment data and the query ID; it can be freely shared since it does not include confidential information;&lt;br /&gt;
* sequences.mrf would contain the sequence data; which, potentially, could be used to identify an individual and thus may be subjected to more stringent rules.&lt;br /&gt;
&amp;lt;br&amp;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 &#039;&#039;&#039;eight&#039;&#039;&#039; 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 [http://homes.gersteinlab.org/people/lh372/SOFT/bios/index.html BIOS]. 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;
Example file:&lt;br /&gt;
&lt;br /&gt;
 uc001aaw.1      chr1    +       357521  358460  1       357521  358460&lt;br /&gt;
 uc001aax.1      chr1    +       410068  411702  3       410068,410854,411258    410159,411121,411702&lt;br /&gt;
 uc001aay.1      chr1    -       552622  554252  3       552622,553203,554161    553066,553466,554252&lt;br /&gt;
 uc001aaz.1      chr1    +       556324  557910  1       556324  557910&lt;br /&gt;
 uc001aba.1      chr1    +       558011  558705  1       558011  558705  &lt;br /&gt;
&lt;br /&gt;
In this example the intervals represent a transcripts, while the sub-intervals denote exons.&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;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== BED ===&lt;br /&gt;
&lt;br /&gt;
The BED format is used to represent contiguous genomic regions. It consists of &#039;&#039;&#039;three&#039;&#039;&#039; required columns (tab-delimited).&lt;br /&gt;
&lt;br /&gt;
 1.   Chromosome&lt;br /&gt;
 2.   Start&lt;br /&gt;
 3.   End &lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 chr1  1000  5000&lt;br /&gt;
 chr3  500   600&lt;br /&gt;
 chrX  4000  4250&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/FAQ/FAQformat.html#format1 UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the BED 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;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== BedGraph ===&lt;br /&gt;
&lt;br /&gt;
The BedGraph format allows display of continuous-valued data in track format. This display type is useful for probability scores and transcriptome data. This track type is similar to the wiggle (WIG) format, but unlike the wiggle format, data exported in the bedGraph format are preserved in their original state.  It consists of &#039;&#039;&#039;four&#039;&#039;&#039; required columns (tab-delimited).&lt;br /&gt;
&lt;br /&gt;
 1.   Chromosome&lt;br /&gt;
 2.   Start&lt;br /&gt;
 3.   End &lt;br /&gt;
 4.   Value&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 chr1  1000   5000   12.3 &lt;br /&gt;
 chr3  500     600      3&lt;br /&gt;
 chrX  4000  4250    54&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [ftp://hgdownload.cse.ucsc.edu/apache/htdocs-rr/goldenPath/help/bedgraph.html UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the BedGraph 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;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== WIG ===&lt;br /&gt;
&lt;br /&gt;
The WIG format is used to represent dense and continuous genomic data. There are two options for formatting wiggle data: &#039;&#039;&#039;variableStep&#039;&#039;&#039; and &#039;&#039;&#039;fixedStep&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In the context of [http://rseqtools.gersteinlab.org/ RSEQtools], the variable step formatting is used and only positions with &#039;&#039;&#039;non-zero values&#039;&#039;&#039; are represented. &lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 track type=wiggle_0 name=&amp;quot;test_chr22&amp;quot;&lt;br /&gt;
 variableStep chrom=chr22 span=1&lt;br /&gt;
 17535712	1.67&lt;br /&gt;
 17535713	1.67&lt;br /&gt;
 17535714	1.67&lt;br /&gt;
 17535715	1.67&lt;br /&gt;
 17535716	1.67&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/goldenPath/help/wiggle.html UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the WIG format are &#039;&#039;&#039;zero-based&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== GFF ===&lt;br /&gt;
&lt;br /&gt;
The GFF format is used to describe genes and other features. It consists of &#039;&#039;&#039;nine&#039;&#039;&#039; tab-delimited columns.&lt;br /&gt;
&lt;br /&gt;
 1. Name &lt;br /&gt;
 2. Source &lt;br /&gt;
 3. Feature&lt;br /&gt;
 4. Start&lt;br /&gt;
 5. End &lt;br /&gt;
 6. Score&lt;br /&gt;
 7. Strand&lt;br /&gt;
 8. Frame&lt;br /&gt;
 9. Group &lt;br /&gt;
&lt;br /&gt;
Example file: &lt;br /&gt;
&lt;br /&gt;
 browser hide all&lt;br /&gt;
 track name=&amp;quot;chr11&amp;quot; visibility=2&lt;br /&gt;
 chr11	MRF	feature	46772115	46772161	.	-	.	TG5&lt;br /&gt;
 chr11	MRF	feature	46772668	46772695	.	-	.	TG5&lt;br /&gt;
 chr11	MRF	feature	118521207	118521252	.	+	.	TG21&lt;br /&gt;
 chr11	MRF	feature	118526315	118526343	.	+	.	TG21&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/FAQ/FAQformat.html#format3 UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the BED format are &#039;&#039;&#039;one-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
=== PSL ===&lt;br /&gt;
&lt;br /&gt;
The PSL format represents alignments from the BLAT alignment program.&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/FAQ/FAQformat.html#format2 UCSC]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
=== SAM ===&lt;br /&gt;
&lt;br /&gt;
SAM (Sequence Alignment/Map) format is a generic format for storing large nucleotide sequence alignments.&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://samtools.sourceforge.net/ SAMtools]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
This is the documentation for the end-users. The full documentation for developers can be found [http://archive.gersteinlab.org/proj/rnaseq/doc/mrf/files.html here].&lt;br /&gt;
&lt;br /&gt;
=== Format conversion utilities ===&lt;br /&gt;
&lt;br /&gt;
The following programs convert the output from various alignment programs into [[#MRF|MRF]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== bowtie2mrf ====  &lt;br /&gt;
&lt;br /&gt;
bowtie2mrf converts read alignments from Bowtie into [[#MRF|MRF]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bowtie2mrf &amp;lt;genomic|junctions|paired&amp;gt; [-sequence] [-qualityScores] [-IDs]&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [http://bowtie-bio.sourceforge.net/manual.shtml#default-bowtie-output Bowtie output] from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** genomic -  convert single-end reads that were aligned against a genomic reference sequence using Bowtie&lt;br /&gt;
** junctions - convert single-end reads that were aligned against a splice junction library (generated by &#039;&#039;&#039;createSpliceJunctionLibrary&#039;&#039;&#039;) using Bowtie&lt;br /&gt;
** paired - convert paired-end reads that were aligned using Bowtie&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** sequence - include the read sequence in the [[#MRF|MRF]] output&lt;br /&gt;
** qualityScores - include the quality scores of the read in the [[#MRF|MRF]] output&lt;br /&gt;
** IDs - include the read IDs in the [[#MRF|MRF]] output&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: bowtie2mrf assumes that bowtie was run using the default option for the -B parameter&lt;br /&gt;
 -B/--offbase &amp;lt;int&amp;gt; leftmost ref offset = &amp;lt;int&amp;gt; in bowtie output (default: 0)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: If a splice junction library is used during the alignment step, it is important that the splice junction library was generated by createSpliceJunctionLibrary.  Otherwise, bowtie2mrf will not be able to convert the splice junction coordinates correctly.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== psl2mrf ====&lt;br /&gt;
&lt;br /&gt;
psl2mrf converts read alignments from BLAT into [[#MRF|MRF]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 psl2mrf&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes BLAT alignments in [[#PSL|PSL]] format from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== singleExport2mrf ====&lt;br /&gt;
&lt;br /&gt;
singleExport2mrf converts single-end read alignments from ELAND (export file) into [[#MRF|MRF]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 singleExport2mrf&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes ELAND single-end alignments in export format from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: If a splice junction library is used during the alignment step, it is important that the splice junction library was generated by createSpliceJunctionLibrary and that its file name included &#039;splice&#039; or &#039;junction&#039;.  Otherwise, singleExport2mrf will not be able to convert the splice junction coordinates correctly.  &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The output includes sequences and quality scores. If one wants the alignment only:&lt;br /&gt;
 singleExport2mrf &amp;lt; file.export.txt | cut -f1 &amp;gt; file.mrf&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mrfSorter ====&lt;br /&gt;
&lt;br /&gt;
mrfSorter sort each MRF line according to its coordinate format, i.e. the left-most coordinate would be reported first, regardless of strand.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSorter&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] format from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] 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;
Example: &amp;lt;pre&amp;gt; mrfSorter &amp;lt;file.mrf &amp;gt; file.sorted.mrf &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== sam2mrf ====&lt;br /&gt;
&lt;br /&gt;
sam2mrf converts [[#SAM|SAM]] format into [[#MRF|MRF]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 sam2mrf&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#SAM|SAM]] format from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] 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;
Please note that for paired-end data, sam2mrf requires the mate pairs to be on subsequent lines. You may want to sort the [[#SAM|SAM]] file first. Please note that you would need to run mrfSorter after sam2mrf to make a valid MRF file.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;samtools sort file.sam file.sorted; sam2mrf &amp;lt; file.sorted.sam | mrfSorter &amp;gt; file.mrf &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Genome annotation tools ===&lt;br /&gt;
&lt;br /&gt;
The following tools are helpful in manipulating annotation files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== createSpliceJunctionLibrary ====&lt;br /&gt;
&lt;br /&gt;
This program is used to create a splice junction library from an annotation set. It creates all pair-wise splice junctions within a transcript.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 createSpliceJunctionLibrary &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;sizeExonOverlap&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the slice junctions 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;
** sizeExonOverlap - defines the number of nucleotides included from each exon&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Example output:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;chr1|12162|12612|65&lt;br /&gt;
 AGGCATAGGGGAAAGATTGGAGGAAAGATGAGTGAGAGCATCAACTTCTCTCACAACCTAGGCCAGTGTGTGGTGATGCCAGGCATGCCCTTCCCCAGCATCAGGTCTCCAGAGCTGCAGAAGACGACGG&lt;br /&gt;
 &amp;gt;chr1|12162|13220|65&lt;br /&gt;
 AGGCATAGGGGAAAGATTGGAGGAAAGATGAGTGAGAGCATCAACTTCTCTCACAACCTAGGCCAGCAGGGCCATCAGGCACCAAAGGGATTCTGCCAGCATAGTGCTCCTGGACCAGTGATACACCCGG&lt;br /&gt;
 &amp;gt;chr1|12656|13220|65&lt;br /&gt;
 CAGAGCTGCAGAAGACGACGGCCGACTTGGATCACACTCTTGTGAGTGTCCCCAGTGTTGCAGAGGCAGGGCCATCAGGCACCAAAGGGATTCTGCCAGCATAGTGCTCCTGGACCAGTGATACACCCGG&lt;br /&gt;
&lt;br /&gt;
The identifier for each splice junction consists of &#039;&#039;&#039;four&#039;&#039;&#039; items:&lt;br /&gt;
&lt;br /&gt;
 1.   Chromosome&lt;br /&gt;
 2.   Start position (with respect to the &amp;quot;+&amp;quot;, zero-based) of the splice junction within the first exon  &lt;br /&gt;
 3.   Start position (with respect to the &amp;quot;+&amp;quot;, zero-based) of the splice junction within the second exon  &lt;br /&gt;
 4.   Size of the exon overlap&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Internally the program uses &#039;&#039;twoBitToFa&#039;&#039; (part of BLAT package). Thus, the executable must be in 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;
==== mergeTranscripts ====&lt;br /&gt;
&lt;br /&gt;
Module to merge a set of transcripts from the same gene.&lt;br /&gt;
&lt;br /&gt;
Obtain unique exons from various transcript isoforms based on:&lt;br /&gt;
# longest isoform&lt;br /&gt;
# composite model (union of the exons from the different transcript isoforms)&lt;br /&gt;
# intersection (intersection of the exons of the different transcript isoforms)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
 mergeTranscripts &amp;lt;knownIsoforms.txt&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;longestIsoform|compositeModel|intersection&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports a new annotation set of merged transcripts in [[#Interval|Interval]] format &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** knownIsoforms.txt - file that determines which transcript isoforms belong together (see format below)&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; longestIsoform | compositeModel | intersection &amp;gt; - determines how transcript isoforms are selected/merged:&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
The file knownIsoforms.txt should have two columns (tab-delimited) and no header:&lt;br /&gt;
&lt;br /&gt;
 1. ID (int). Transcripts with the same id belong to the same gene.&lt;br /&gt;
 2. Name of the transcript.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 1  uc009vip.1&lt;br /&gt;
 1  uc001aaa.2&lt;br /&gt;
 2  uc009vis.1&lt;br /&gt;
 2  uc001aae.2&lt;br /&gt;
 2  uc009viu.1&lt;br /&gt;
 2  uc009vit.1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set.&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;
&lt;br /&gt;
=== Gene expression analysis ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfQuantifier ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate expression values (RPKM). Given a set of mapped reads in MRF and an annotation set (representing exons, transcripts, or gene models) mrfQuantifier calculates an expression value for each annotation entry.  This is done by counting all the nucleotides from the reads that overlap with a given annotation entry.  Subsequently, this value is normalized per million mapped nucleotides and the length of the annotation item per kb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfQuantifier &amp;lt;file.annotation&amp;gt; &amp;lt;singleOverlap|multipleOverlap&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Reports the gene expression values to STDOUT in a two-column format (tab-delimited). The first column refers to the name of the annotated feature. The second column refers to the expression values (RPKM; read coverage normalized per million mapped nucleotides and the length of the annotation model per kb [see note below]). The output is sorted by the first column.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (gene expression measurements: one line per gene model; exon expression measurements: one line per exon). See [[#Interval|Interval]] for more details.&lt;br /&gt;
** &amp;lt; singleOverlap | multipleOverlap &amp;gt; - singleOverlap:  reads that overlap with multiple annotated features are ignored; multipleOverlap: reads that overlap with multiple annotated features are counted multiple times.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: All counts are performed at the nucleotide level. For example, if a read partially overlaps with an exon of a gene model, then only the overlapping nucleotides are counted (please refer to the figure below).  Therefore, the normalization is also done at the nucleotide level.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:mrfQuantifier.png|thumb|1000px|center|Determining overlaps between annotation entries and reads]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgrQuantifier ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate expression values (RPKM) from a signal track in bedGraph (bgr) format. Given a signal track  and an annotation set (representing exons, transcripts, or gene models) bgrQuantifier calculates an expression value for each annotation entry.  This is done by counting all the nucleotides from the reads that overlap with a given annotation entry.  Subsequently, this value is normalized per million mapped nucleotides and the length of the annotation item per kb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bgrQuantifier &amp;lt;file.annotation&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#BedGraph|BedGraph]] file from STDIN.&lt;br /&gt;
* Outputs: Reports the gene expression values to STDOUT in a two-column format (tab-delimited). The first column refers to the name of the annotated feature. The second column refers to the expression values (RPKM; read coverage normalized per million mapped nucleotides and the length of the annotation model per kb [see note below]). The output is sorted by the first column.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (gene expression measurements: one line per gene model; exon expression measurements: one line per exon). See [[#Interval|Interval]] for more details.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: All counts are performed at the nucleotide level. For example, if a read partially overlaps with an exon of a gene model, then only the overlapping nucleotides are counted (please refer to the figure below).  Therefore, the normalization is also done at the nucleotide level.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Visualization tools ===&lt;br /&gt;
&lt;br /&gt;
The following programs are useful for converting [[#MRF|MRF]] into data formats that can be viewed in a genome browser.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrf2wig ==== &lt;br /&gt;
&lt;br /&gt;
Generates signal track ([[#WIG|WIG]]) of mapped reads from a [[#MRF|MRF]] file. By default, the values in the WIG file are normalized by the total number of mapped reads per million. &lt;br /&gt;
Only positions with non-zero values are reported.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrf2wig &amp;lt;prefix&amp;gt; [doNotNormalize]&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Generates a [[#WIG|WIG]] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - specifies the prefix used to generate the output files. The following naming convention is used: prefix_chrXXX.wig&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** doNotNormailze - the counts are NOT normalized&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mrf2gff ==== &lt;br /&gt;
&lt;br /&gt;
Generates a [[#GFF|GFF]] file of mapped splice junction reads from a [[#MRF|MRF]] file. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;&lt;br /&gt;
 mrf2gff &amp;lt;prefix&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Generates a [[#GFF|GFF]] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - specifies the prefix used to generate the output files. The following naming convention is used: prefix_chrXXX.gff&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;
==== mrf2bgr ====&lt;br /&gt;
&lt;br /&gt;
Module to convert [[#MRF|MRF]] to [http://genome.ucsc.edu/goldenPath/help/bedgraph.html BedGraph]. Generates a [http://genome.ucsc.edu/goldenPath/help/bedgraph.html BedGraph], where the counts are normalized by the total number of mapped reads per million.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrf2bgr &amp;lt;prefix&amp;gt; [doNotNormalize]&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Generates a [http://genome.ucsc.edu/goldenPath/help/bedgraph.html BedGraph] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - specifies the prefix used to generate the output files. The following naming convention is used: prefix_chrXXX.bgr&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** doNotNormailze - the counts are NOT normalized.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Segmentation of mapped reads ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== wigSegmenter ====&lt;br /&gt;
&lt;br /&gt;
Module to segment a [[#WIG|WIG]] signal track using the [http://www.ncbi.nlm.nih.gov/pubmed/15979196 maxGap-minRun algorithm]. The output is a set of transcriptionally active regions (TARs) in [[#BED|BED]] format.  This type of analysis is particularly useful in identifying novel transcribed regions such as non-coding RNAs.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 wigSegmenter &amp;lt;wigPrefix&amp;gt; &amp;lt;threshold&amp;gt; &amp;lt;maxGap&amp;gt; &amp;lt;minRun&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Generates a [[#BED|BED]] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** wigPrefix - prefix used to generate the [[#WIG|WIG]] files using [[#mrf2wig|mrf2wig]] &lt;br /&gt;
** threshold - level at which the segmentation is performed&lt;br /&gt;
** maxGap - maximum number of consecutive positions that can have values less than the threshold  &lt;br /&gt;
** minRun - minimal length of a TAR&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;
==== bgrSegmenter ====&lt;br /&gt;
&lt;br /&gt;
Module to segment a [[#BedGraph|BedGraph]] signal track using the [http://www.ncbi.nlm.nih.gov/pubmed/15979196 maxGap-minRun algorithm]. The output is a set of transcriptionally active regions (TARs) in [[#BED|BED]] format.  This type of analysis is particularly useful in identifying novel transcribed regions such as non-coding RNAs.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bgrSegmenter &amp;lt;bgrPrefix&amp;gt; &amp;lt;threshold&amp;gt; &amp;lt;maxGap&amp;gt; &amp;lt;minRun&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Generates a [[#BED|BED]] file for each chromosome occurring in the [[#BedGraph|BedGraph]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** bgrPrefix - prefix used to generate the [[#BedGraph|BedGraph]] files using [[#mrf2bgr|mrf2bgr]] &lt;br /&gt;
** threshold - level at which the segmentation is performed&lt;br /&gt;
** maxGap - maximum number of consecutive positions that can have values less than the threshold  &lt;br /&gt;
** minRun - minimal length of a TAR&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;
=== Annotation statistics tools ===&lt;br /&gt;
&lt;br /&gt;
The following modules are useful for calculating annotation statistics given a set of mapped reads.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfAnnotationCoverage ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate annotation coverage. Sample a set of mapped reads and determine the fraction of transcripts (specified in file.annotation) that have at least &amp;lt;coverageFactor&amp;gt;-times uniform coverage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfAnnotationCoverage &amp;lt;file.annotation&amp;gt; &amp;lt;numTotalReads&amp;gt; &amp;lt;numReadsToSample&amp;gt; &amp;lt;coverageFactor&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Reports the fraction of transcripts that have at least &amp;lt;coverageFactor&amp;gt;-times uniform coverage to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - &lt;br /&gt;
** numTotalReads - total number of reads in the [[#MRF|MRF]] input file&lt;br /&gt;
** numReadsToSample - number of reads to sample from the [[#MRF|MRF]] input file&lt;br /&gt;
** coverageFactor - minimum level of uniform coverage required across a transcript &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;
==== mrfMappingBias ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate mapping bias for a given annotation set. Aggregates mapped reads that overlap with transcripts (specified in file.annotation) and&lt;br /&gt;
outputs the counts over a standardized transcript (divided into 100 equally sized bins) where 0 represents the 5&#039; end of the transcript and&lt;br /&gt;
1 denotes the 3&#039; end of the transcripts. This analysis is done in a strand specific way. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfMappingBias &amp;lt;file.annotation&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs the number of mapped reads for each bin of the standardized transcript to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]]  format (each line represents one transcript) &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;
=== MRF selection utilities ===&lt;br /&gt;
&lt;br /&gt;
The following utilities are helpful to select subsets of an [[#MRF|MRF]] file. It should be noted that these utilities operate on &#039;&#039;existing&#039;&#039; MRF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfSampler ====&lt;br /&gt;
&lt;br /&gt;
Randomly select a subset of [[#MRF|MRF]] entries.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSampler &amp;lt;proportionOfReadsToSample&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** proportionOfReadsToSample - fraction of reads to sample (on average)&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;
==== mrfSelectRegion ====&lt;br /&gt;
&lt;br /&gt;
Select reads that overlap with a specified genomic region.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSelectRegion &amp;lt;targetName:targetStart-targetEnd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** targetName:targetStart-targetEnd - region of interest&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;
==== mrfSelectSpliced ====&lt;br /&gt;
&lt;br /&gt;
Select reads that span a splice junction.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSelectSpliced&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: The purpose of mrfSelectSpliced is to extract mapped reads that align to a splice junction from an &#039;&#039;&#039;existing MRF file&#039;&#039;&#039;. It is important to note that this utility is not used to convert the output of a specific mapping program.   &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfSubsetByTargetName ====&lt;br /&gt;
&lt;br /&gt;
Split up an [[#MRF|MRF]] file by chromosome.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSubsetByTargetName &amp;lt;prefix&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF\MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs a separate [[#MRF|MRF]] file for each chromosome using the following naming convention: &amp;lt;prefix&amp;gt;_chrXXX.mrf.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - prefix used for the output files.&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;
==== mrfSelectAnnotated ==== &lt;br /&gt;
&lt;br /&gt;
Module to select a subset of reads that overlap with a specified annotation set. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSelectAnnotated &amp;lt;file.annotation&amp;gt; &amp;lt;include|exclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (one transcript per line).&lt;br /&gt;
** &amp;lt; include | exclude &amp;gt; - include: report reads that overlap with &#039;&#039;exonic&#039;&#039; regions of the annotation set; exclude: report reads that do not overlap with &#039;&#039;exonic&#039;&#039; regions of the annotation set&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;
==== mrfRegionCount ==== &lt;br /&gt;
&lt;br /&gt;
Module to count the total number of reads in a specified region.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  mrfRegionCount &amp;lt;targetName:targetStart-targetEnd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs  the total number of reads in a specified region to STDOUT.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** targetName:targetStart-targetEnd, specifies the region of interest &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;
=== Auxiliary utilities ===&lt;br /&gt;
&lt;br /&gt;
This section includes various data format conversion utilities.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== bed2interval ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#BED|BED]] format into [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bed2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#BED|BED]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2bed ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#Interval|Interval]] format into [[#BED|BED]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2bed&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#Interval|Interval]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data in [[#BED|BED]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2gff ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#Interval|Interval]] format into [[#GFF|GFF]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2gff &amp;lt;trackName&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#Interval|Interval]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data in [[#GFF|GFF]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** trackName - track name used in the [[#GFF|GFF]] 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;
==== gff2interval ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#GFF|GFF]] format into [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gff2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#GFF|GFF]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== export2fastq ====&lt;br /&gt;
&lt;br /&gt;
Module to generate FASTQ sequences from an ELAND export file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 export2fastq &lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes an ELAND export file from STDIN&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTQ 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrf2sam ==== &lt;br /&gt;
&lt;br /&gt;
Module to convert [[#MRF|MRF]] to [[#SAM|SAM]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrf2sam&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#SAM|SAM]] 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;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=RSEQtools&amp;diff=2353</id>
		<title>RSEQtools</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=RSEQtools&amp;diff=2353"/>
		<updated>2013-04-22T13:55:47Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* sam2mrf */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/rnaseq/rseqtools &#039;&#039;&#039;RSEQtools 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;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The advent of next-generation sequencing for functional genomics has given rise to quantities of sequence information that are often so large that they are difficult to handle.  Moreover, sequence reads from a specific individual can contain sufficient information to potentially identify that person, raising significant privacy concerns.  In order to address these issues we have developed the Mapped Read Format (MRF), a compact data summary format for both short and long read alignments that enables the anonymization of confi-dential sequence information, while allowing one to still carry out many functional genomics studies.  We have developed a suite of tools that uses this format for the analysis of RNA-Seq experiments.  RSEQtools consists of a set of modules that perform common tasks such as calculating gene expression values, generating signal tracks of mapped reads, and segmenting that signal into actively transcribed regions.  In addition to the anonymization afforded by this format it also facilitates the decoupling of the alignment of reads from downstream analyses.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Citation ==&lt;br /&gt;
&lt;br /&gt;
Lukas Habegger*, Andrea Sboner*, Tara A. Gianoulis, Joel Rozowsky, Ashish Agarwal, Michael Snyder, Mark Gerstein. &#039;&#039;&#039;RSEQtools: A modular framework to analyze RNA-Seq data using compact, anonymized data summaries&#039;&#039;&#039;. [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/btq643?ijkey=GSZOpzLAEOqJtJ4&amp;amp;keytype=ref &amp;lt;i&amp;gt;Bioinformatics&amp;lt;/i&amp;gt;] 2010, &lt;br /&gt;
doi: 10.1093/bioinformatics/btq643&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The following sections provide documenation for the modules that are part of RSEQtools (http://rseqtools.gersteinlab.org/).  This documentation is intended for the end-users and can also be found at http://info.gersteinlab.org/RSEQtools.  &lt;br /&gt;
&#039;&#039;&#039;RSEQtools is implemented in C&#039;&#039;&#039; and uses a general C library called BIOS. &lt;br /&gt;
&lt;br /&gt;
The full &#039;&#039;&#039;documentation for developers&#039;&#039;&#039; can be found here:&lt;br /&gt;
* RSEQtools: http://archive.gersteinlab.org/proj/rnaseq/doc/mrf/&lt;br /&gt;
* BIOS: http://archive.gersteinlab.org/proj/rnaseq/doc/bios/&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
=== Mapped Read Format (MRF) ===&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;u&amp;gt;M&amp;lt;/u&amp;gt;apped &amp;lt;u&amp;gt;R&amp;lt;/u&amp;gt;ead &amp;lt;u&amp;gt;F&amp;lt;/u&amp;gt;ormat (MRF) flat file consists of &#039;&#039;&#039;three&#039;&#039;&#039; components and this format is closely associated with the software components of [http://rseqtools.gersteinlab.org RSEQtools]&lt;br /&gt;
&lt;br /&gt;
 1. Comment lines. Comment lines are optional and start with a &#039;#&#039; character.&lt;br /&gt;
 2. Header line. The header line is required and specifies the type of each column.&lt;br /&gt;
 3. Mapped reads. Each read (single-end or paired-end) is represented by on line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Required&#039;&#039;&#039; column:&lt;br /&gt;
&lt;br /&gt;
 * AlignmentBlocks, each alignment block must contain the following attributes: TargetName:Strand:TargetStart:TargetEnd:QueryStart:QueryEnd&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Optional&#039;&#039; columns:&lt;br /&gt;
&lt;br /&gt;
 * Sequence&lt;br /&gt;
 * QualityScores&lt;br /&gt;
 * QueryId&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Comments&lt;br /&gt;
# Required field: Blocks [TargetName:Strand:TargetStart:TargetEnd:QueryStart:QueryEnd]&lt;br /&gt;
# Optional fields: Sequence,QualityScores,QueryId&lt;br /&gt;
AlignmentBlocks&lt;br /&gt;
chr1:+:2001:2050:1:50&lt;br /&gt;
chr1:+:2001:2025:1:25,chr1:+:3001:3025:26:50&lt;br /&gt;
chr2:-:3001:3051:1:51|chr11:+:4001:4051:1:51&lt;br /&gt;
chr2:-:6021:6050:1:30,chr2:-:7031:7051:31:51|chr11:+:4001:4051:1:51&lt;br /&gt;
contigA:+:5001:5200:1:200,contigB:-:1200:1400:200:400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
 * Paired-end reads are separated by ‘|’&lt;br /&gt;
 * Alignment blocks are separated by ‘,’&lt;br /&gt;
 * Features of a block are separated by ‘:’&lt;br /&gt;
 * Columns are tab-delimited&lt;br /&gt;
 * Columns can be arranged in any order&lt;br /&gt;
 * Coordinates are &#039;&#039;&#039;one-based&#039;&#039;&#039; and &#039;&#039;&#039;closed (inclusive)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use MRF for confidential data&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It is straightforward to use MRF to separate the confidential information, i.e. the sequences, from the alignment data. The MRF file can be split in 2 files: one file can include &#039;&#039;AlignmentBlocks&#039;&#039; and &#039;&#039;QueryID&#039;&#039;, whereas a second file would can contain &#039;&#039;Sequence&#039;&#039; and &#039;&#039;QueryID&#039;&#039;. From a practical viewpoint it is also easy to create these two files.&lt;br /&gt;
&lt;br /&gt;
Assuming we have the columns AlignmentBlocks, Sequence, and QueryID as column 1, 2, and 3, respectively:&lt;br /&gt;
 $ cut -f1,3 file.mrf &amp;gt; alignments.mrf&lt;br /&gt;
 $ cut -f2,3 file.mrf &amp;gt; sequences.mrf&lt;br /&gt;
&lt;br /&gt;
* alignments.mrf would contain the alignment data and the query ID; it can be freely shared since it does not include confidential information;&lt;br /&gt;
* sequences.mrf would contain the sequence data; which, potentially, could be used to identify an individual and thus may be subjected to more stringent rules.&lt;br /&gt;
&amp;lt;br&amp;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 &#039;&#039;&#039;eight&#039;&#039;&#039; 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 [http://homes.gersteinlab.org/people/lh372/SOFT/bios/index.html BIOS]. 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;
Example file:&lt;br /&gt;
&lt;br /&gt;
 uc001aaw.1      chr1    +       357521  358460  1       357521  358460&lt;br /&gt;
 uc001aax.1      chr1    +       410068  411702  3       410068,410854,411258    410159,411121,411702&lt;br /&gt;
 uc001aay.1      chr1    -       552622  554252  3       552622,553203,554161    553066,553466,554252&lt;br /&gt;
 uc001aaz.1      chr1    +       556324  557910  1       556324  557910&lt;br /&gt;
 uc001aba.1      chr1    +       558011  558705  1       558011  558705  &lt;br /&gt;
&lt;br /&gt;
In this example the intervals represent a transcripts, while the sub-intervals denote exons.&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;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== BED ===&lt;br /&gt;
&lt;br /&gt;
The BED format is used to represent contiguous genomic regions. It consists of &#039;&#039;&#039;three&#039;&#039;&#039; required columns (tab-delimited).&lt;br /&gt;
&lt;br /&gt;
 1.   Chromosome&lt;br /&gt;
 2.   Start&lt;br /&gt;
 3.   End &lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 chr1  1000  5000&lt;br /&gt;
 chr3  500   600&lt;br /&gt;
 chrX  4000  4250&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/FAQ/FAQformat.html#format1 UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the BED 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;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== BedGraph ===&lt;br /&gt;
&lt;br /&gt;
The BedGraph format allows display of continuous-valued data in track format. This display type is useful for probability scores and transcriptome data. This track type is similar to the wiggle (WIG) format, but unlike the wiggle format, data exported in the bedGraph format are preserved in their original state.  It consists of &#039;&#039;&#039;four&#039;&#039;&#039; required columns (tab-delimited).&lt;br /&gt;
&lt;br /&gt;
 1.   Chromosome&lt;br /&gt;
 2.   Start&lt;br /&gt;
 3.   End &lt;br /&gt;
 4.   Value&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 chr1  1000   5000   12.3 &lt;br /&gt;
 chr3  500     600      3&lt;br /&gt;
 chrX  4000  4250    54&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [ftp://hgdownload.cse.ucsc.edu/apache/htdocs-rr/goldenPath/help/bedgraph.html UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the BedGraph 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;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== WIG ===&lt;br /&gt;
&lt;br /&gt;
The WIG format is used to represent dense and continuous genomic data. There are two options for formatting wiggle data: &#039;&#039;&#039;variableStep&#039;&#039;&#039; and &#039;&#039;&#039;fixedStep&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In the context of [http://rseqtools.gersteinlab.org/ RSEQtools], the variable step formatting is used and only positions with &#039;&#039;&#039;non-zero values&#039;&#039;&#039; are represented. &lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 track type=wiggle_0 name=&amp;quot;test_chr22&amp;quot;&lt;br /&gt;
 variableStep chrom=chr22 span=1&lt;br /&gt;
 17535712	1.67&lt;br /&gt;
 17535713	1.67&lt;br /&gt;
 17535714	1.67&lt;br /&gt;
 17535715	1.67&lt;br /&gt;
 17535716	1.67&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/goldenPath/help/wiggle.html UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the WIG format are &#039;&#039;&#039;zero-based&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== GFF ===&lt;br /&gt;
&lt;br /&gt;
The GFF format is used to describe genes and other features. It consists of &#039;&#039;&#039;nine&#039;&#039;&#039; tab-delimited columns.&lt;br /&gt;
&lt;br /&gt;
 1. Name &lt;br /&gt;
 2. Source &lt;br /&gt;
 3. Feature&lt;br /&gt;
 4. Start&lt;br /&gt;
 5. End &lt;br /&gt;
 6. Score&lt;br /&gt;
 7. Strand&lt;br /&gt;
 8. Frame&lt;br /&gt;
 9. Group &lt;br /&gt;
&lt;br /&gt;
Example file: &lt;br /&gt;
&lt;br /&gt;
 browser hide all&lt;br /&gt;
 track name=&amp;quot;chr11&amp;quot; visibility=2&lt;br /&gt;
 chr11	MRF	feature	46772115	46772161	.	-	.	TG5&lt;br /&gt;
 chr11	MRF	feature	46772668	46772695	.	-	.	TG5&lt;br /&gt;
 chr11	MRF	feature	118521207	118521252	.	+	.	TG21&lt;br /&gt;
 chr11	MRF	feature	118526315	118526343	.	+	.	TG21&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/FAQ/FAQformat.html#format3 UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the BED format are &#039;&#039;&#039;one-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
=== PSL ===&lt;br /&gt;
&lt;br /&gt;
The PSL format represents alignments from the BLAT alignment program.&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/FAQ/FAQformat.html#format2 UCSC]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
=== SAM ===&lt;br /&gt;
&lt;br /&gt;
SAM (Sequence Alignment/Map) format is a generic format for storing large nucleotide sequence alignments.&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://samtools.sourceforge.net/ SAMtools]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
This is the documentation for the end-users. The full documentation for developers can be found [http://archive.gersteinlab.org/proj/rnaseq/doc/mrf/files.html here].&lt;br /&gt;
&lt;br /&gt;
=== Format conversion utilities ===&lt;br /&gt;
&lt;br /&gt;
The following programs convert the output from various alignment programs into [[#MRF|MRF]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== bowtie2mrf ====  &lt;br /&gt;
&lt;br /&gt;
bowtie2mrf converts read alignments from Bowtie into [[#MRF|MRF]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bowtie2mrf &amp;lt;genomic|junctions|paired&amp;gt; [-sequence] [-qualityScores] [-IDs]&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [http://bowtie-bio.sourceforge.net/manual.shtml#default-bowtie-output Bowtie output] from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** genomic -  convert single-end reads that were aligned against a genomic reference sequence using Bowtie&lt;br /&gt;
** junctions - convert single-end reads that were aligned against a splice junction library (generated by &#039;&#039;&#039;createSpliceJunctionLibrary&#039;&#039;&#039;) using Bowtie&lt;br /&gt;
** paired - convert paired-end reads that were aligned using Bowtie&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** sequence - include the read sequence in the [[#MRF|MRF]] output&lt;br /&gt;
** qualityScores - include the quality scores of the read in the [[#MRF|MRF]] output&lt;br /&gt;
** IDs - include the read IDs in the [[#MRF|MRF]] output&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: bowtie2mrf assumes that bowtie was run using the default option for the -B parameter&lt;br /&gt;
 -B/--offbase &amp;lt;int&amp;gt; leftmost ref offset = &amp;lt;int&amp;gt; in bowtie output (default: 0)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: If a splice junction library is used during the alignment step, it is important that the splice junction library was generated by createSpliceJunctionLibrary.  Otherwise, bowtie2mrf will not be able to convert the splice junction coordinates correctly.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== psl2mrf ====&lt;br /&gt;
&lt;br /&gt;
psl2mrf converts read alignments from BLAT into [[#MRF|MRF]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 psl2mrf&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes BLAT alignments in [[#PSL|PSL]] format from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== singleExport2mrf ====&lt;br /&gt;
&lt;br /&gt;
singleExport2mrf converts single-end read alignments from ELAND (export file) into [[#MRF|MRF]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 singleExport2mrf&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes ELAND single-end alignments in export format from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: If a splice junction library is used during the alignment step, it is important that the splice junction library was generated by createSpliceJunctionLibrary and that its file name included &#039;splice&#039; or &#039;junction&#039;.  Otherwise, singleExport2mrf will not be able to convert the splice junction coordinates correctly.  &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The output includes sequences and quality scores. If one wants the alignment only:&lt;br /&gt;
 singleExport2mrf &amp;lt; file.export.txt | cut -f1 &amp;gt; file.mrf&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== sam2mrf ====&lt;br /&gt;
&lt;br /&gt;
sam2mrf converts [[#SAM|SAM]] format into [[#MRF|MRF]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 sam2mrf&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#SAM|SAM]] format from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] 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;
Please note that for paired-end data, sam2mrf requires the mate pairs to be on subsequent lines. You may want to sort the [[#SAM|SAM]] file first. Please note that you would need to run mrfSorter after sam2mrf to make a valid MRF file.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;samtools sort file.sam file.sorted; sam2mrf &amp;lt; file.sorted.sam | mrfSorter &amp;gt; file.mrf &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Genome annotation tools ===&lt;br /&gt;
&lt;br /&gt;
The following tools are helpful in manipulating annotation files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== createSpliceJunctionLibrary ====&lt;br /&gt;
&lt;br /&gt;
This program is used to create a splice junction library from an annotation set. It creates all pair-wise splice junctions within a transcript.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 createSpliceJunctionLibrary &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;sizeExonOverlap&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the slice junctions 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;
** sizeExonOverlap - defines the number of nucleotides included from each exon&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Example output:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;chr1|12162|12612|65&lt;br /&gt;
 AGGCATAGGGGAAAGATTGGAGGAAAGATGAGTGAGAGCATCAACTTCTCTCACAACCTAGGCCAGTGTGTGGTGATGCCAGGCATGCCCTTCCCCAGCATCAGGTCTCCAGAGCTGCAGAAGACGACGG&lt;br /&gt;
 &amp;gt;chr1|12162|13220|65&lt;br /&gt;
 AGGCATAGGGGAAAGATTGGAGGAAAGATGAGTGAGAGCATCAACTTCTCTCACAACCTAGGCCAGCAGGGCCATCAGGCACCAAAGGGATTCTGCCAGCATAGTGCTCCTGGACCAGTGATACACCCGG&lt;br /&gt;
 &amp;gt;chr1|12656|13220|65&lt;br /&gt;
 CAGAGCTGCAGAAGACGACGGCCGACTTGGATCACACTCTTGTGAGTGTCCCCAGTGTTGCAGAGGCAGGGCCATCAGGCACCAAAGGGATTCTGCCAGCATAGTGCTCCTGGACCAGTGATACACCCGG&lt;br /&gt;
&lt;br /&gt;
The identifier for each splice junction consists of &#039;&#039;&#039;four&#039;&#039;&#039; items:&lt;br /&gt;
&lt;br /&gt;
 1.   Chromosome&lt;br /&gt;
 2.   Start position (with respect to the &amp;quot;+&amp;quot;, zero-based) of the splice junction within the first exon  &lt;br /&gt;
 3.   Start position (with respect to the &amp;quot;+&amp;quot;, zero-based) of the splice junction within the second exon  &lt;br /&gt;
 4.   Size of the exon overlap&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Internally the program uses &#039;&#039;twoBitToFa&#039;&#039; (part of BLAT package). Thus, the executable must be in 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;
==== mergeTranscripts ====&lt;br /&gt;
&lt;br /&gt;
Module to merge a set of transcripts from the same gene.&lt;br /&gt;
&lt;br /&gt;
Obtain unique exons from various transcript isoforms based on:&lt;br /&gt;
# longest isoform&lt;br /&gt;
# composite model (union of the exons from the different transcript isoforms)&lt;br /&gt;
# intersection (intersection of the exons of the different transcript isoforms)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
 mergeTranscripts &amp;lt;knownIsoforms.txt&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;longestIsoform|compositeModel|intersection&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports a new annotation set of merged transcripts in [[#Interval|Interval]] format &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** knownIsoforms.txt - file that determines which transcript isoforms belong together (see format below)&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; longestIsoform | compositeModel | intersection &amp;gt; - determines how transcript isoforms are selected/merged:&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
The file knownIsoforms.txt should have two columns (tab-delimited) and no header:&lt;br /&gt;
&lt;br /&gt;
 1. ID (int). Transcripts with the same id belong to the same gene.&lt;br /&gt;
 2. Name of the transcript.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 1  uc009vip.1&lt;br /&gt;
 1  uc001aaa.2&lt;br /&gt;
 2  uc009vis.1&lt;br /&gt;
 2  uc001aae.2&lt;br /&gt;
 2  uc009viu.1&lt;br /&gt;
 2  uc009vit.1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set.&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;
&lt;br /&gt;
=== Gene expression analysis ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfQuantifier ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate expression values (RPKM). Given a set of mapped reads in MRF and an annotation set (representing exons, transcripts, or gene models) mrfQuantifier calculates an expression value for each annotation entry.  This is done by counting all the nucleotides from the reads that overlap with a given annotation entry.  Subsequently, this value is normalized per million mapped nucleotides and the length of the annotation item per kb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfQuantifier &amp;lt;file.annotation&amp;gt; &amp;lt;singleOverlap|multipleOverlap&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Reports the gene expression values to STDOUT in a two-column format (tab-delimited). The first column refers to the name of the annotated feature. The second column refers to the expression values (RPKM; read coverage normalized per million mapped nucleotides and the length of the annotation model per kb [see note below]). The output is sorted by the first column.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (gene expression measurements: one line per gene model; exon expression measurements: one line per exon). See [[#Interval|Interval]] for more details.&lt;br /&gt;
** &amp;lt; singleOverlap | multipleOverlap &amp;gt; - singleOverlap:  reads that overlap with multiple annotated features are ignored; multipleOverlap: reads that overlap with multiple annotated features are counted multiple times.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: All counts are performed at the nucleotide level. For example, if a read partially overlaps with an exon of a gene model, then only the overlapping nucleotides are counted (please refer to the figure below).  Therefore, the normalization is also done at the nucleotide level.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:mrfQuantifier.png|thumb|1000px|center|Determining overlaps between annotation entries and reads]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgrQuantifier ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate expression values (RPKM) from a signal track in bedGraph (bgr) format. Given a signal track  and an annotation set (representing exons, transcripts, or gene models) bgrQuantifier calculates an expression value for each annotation entry.  This is done by counting all the nucleotides from the reads that overlap with a given annotation entry.  Subsequently, this value is normalized per million mapped nucleotides and the length of the annotation item per kb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bgrQuantifier &amp;lt;file.annotation&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#BedGraph|BedGraph]] file from STDIN.&lt;br /&gt;
* Outputs: Reports the gene expression values to STDOUT in a two-column format (tab-delimited). The first column refers to the name of the annotated feature. The second column refers to the expression values (RPKM; read coverage normalized per million mapped nucleotides and the length of the annotation model per kb [see note below]). The output is sorted by the first column.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (gene expression measurements: one line per gene model; exon expression measurements: one line per exon). See [[#Interval|Interval]] for more details.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: All counts are performed at the nucleotide level. For example, if a read partially overlaps with an exon of a gene model, then only the overlapping nucleotides are counted (please refer to the figure below).  Therefore, the normalization is also done at the nucleotide level.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Visualization tools ===&lt;br /&gt;
&lt;br /&gt;
The following programs are useful for converting [[#MRF|MRF]] into data formats that can be viewed in a genome browser.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrf2wig ==== &lt;br /&gt;
&lt;br /&gt;
Generates signal track ([[#WIG|WIG]]) of mapped reads from a [[#MRF|MRF]] file. By default, the values in the WIG file are normalized by the total number of mapped reads per million. &lt;br /&gt;
Only positions with non-zero values are reported.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrf2wig &amp;lt;prefix&amp;gt; [doNotNormalize]&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Generates a [[#WIG|WIG]] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - specifies the prefix used to generate the output files. The following naming convention is used: prefix_chrXXX.wig&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** doNotNormailze - the counts are NOT normalized&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mrf2gff ==== &lt;br /&gt;
&lt;br /&gt;
Generates a [[#GFF|GFF]] file of mapped splice junction reads from a [[#MRF|MRF]] file. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;&lt;br /&gt;
 mrf2gff &amp;lt;prefix&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Generates a [[#GFF|GFF]] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - specifies the prefix used to generate the output files. The following naming convention is used: prefix_chrXXX.gff&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;
==== mrf2bgr ====&lt;br /&gt;
&lt;br /&gt;
Module to convert [[#MRF|MRF]] to [http://genome.ucsc.edu/goldenPath/help/bedgraph.html BedGraph]. Generates a [http://genome.ucsc.edu/goldenPath/help/bedgraph.html BedGraph], where the counts are normalized by the total number of mapped reads per million.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrf2bgr &amp;lt;prefix&amp;gt; [doNotNormalize]&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Generates a [http://genome.ucsc.edu/goldenPath/help/bedgraph.html BedGraph] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - specifies the prefix used to generate the output files. The following naming convention is used: prefix_chrXXX.bgr&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** doNotNormailze - the counts are NOT normalized.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Segmentation of mapped reads ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== wigSegmenter ====&lt;br /&gt;
&lt;br /&gt;
Module to segment a [[#WIG|WIG]] signal track using the [http://www.ncbi.nlm.nih.gov/pubmed/15979196 maxGap-minRun algorithm]. The output is a set of transcriptionally active regions (TARs) in [[#BED|BED]] format.  This type of analysis is particularly useful in identifying novel transcribed regions such as non-coding RNAs.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 wigSegmenter &amp;lt;wigPrefix&amp;gt; &amp;lt;threshold&amp;gt; &amp;lt;maxGap&amp;gt; &amp;lt;minRun&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Generates a [[#BED|BED]] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** wigPrefix - prefix used to generate the [[#WIG|WIG]] files using [[#mrf2wig|mrf2wig]] &lt;br /&gt;
** threshold - level at which the segmentation is performed&lt;br /&gt;
** maxGap - maximum number of consecutive positions that can have values less than the threshold  &lt;br /&gt;
** minRun - minimal length of a TAR&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;
==== bgrSegmenter ====&lt;br /&gt;
&lt;br /&gt;
Module to segment a [[#BedGraph|BedGraph]] signal track using the [http://www.ncbi.nlm.nih.gov/pubmed/15979196 maxGap-minRun algorithm]. The output is a set of transcriptionally active regions (TARs) in [[#BED|BED]] format.  This type of analysis is particularly useful in identifying novel transcribed regions such as non-coding RNAs.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bgrSegmenter &amp;lt;bgrPrefix&amp;gt; &amp;lt;threshold&amp;gt; &amp;lt;maxGap&amp;gt; &amp;lt;minRun&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Generates a [[#BED|BED]] file for each chromosome occurring in the [[#BedGraph|BedGraph]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** bgrPrefix - prefix used to generate the [[#BedGraph|BedGraph]] files using [[#mrf2bgr|mrf2bgr]] &lt;br /&gt;
** threshold - level at which the segmentation is performed&lt;br /&gt;
** maxGap - maximum number of consecutive positions that can have values less than the threshold  &lt;br /&gt;
** minRun - minimal length of a TAR&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;
=== Annotation statistics tools ===&lt;br /&gt;
&lt;br /&gt;
The following modules are useful for calculating annotation statistics given a set of mapped reads.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfAnnotationCoverage ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate annotation coverage. Sample a set of mapped reads and determine the fraction of transcripts (specified in file.annotation) that have at least &amp;lt;coverageFactor&amp;gt;-times uniform coverage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfAnnotationCoverage &amp;lt;file.annotation&amp;gt; &amp;lt;numTotalReads&amp;gt; &amp;lt;numReadsToSample&amp;gt; &amp;lt;coverageFactor&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Reports the fraction of transcripts that have at least &amp;lt;coverageFactor&amp;gt;-times uniform coverage to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - &lt;br /&gt;
** numTotalReads - total number of reads in the [[#MRF|MRF]] input file&lt;br /&gt;
** numReadsToSample - number of reads to sample from the [[#MRF|MRF]] input file&lt;br /&gt;
** coverageFactor - minimum level of uniform coverage required across a transcript &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;
==== mrfMappingBias ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate mapping bias for a given annotation set. Aggregates mapped reads that overlap with transcripts (specified in file.annotation) and&lt;br /&gt;
outputs the counts over a standardized transcript (divided into 100 equally sized bins) where 0 represents the 5&#039; end of the transcript and&lt;br /&gt;
1 denotes the 3&#039; end of the transcripts. This analysis is done in a strand specific way. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfMappingBias &amp;lt;file.annotation&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs the number of mapped reads for each bin of the standardized transcript to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]]  format (each line represents one transcript) &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;
=== MRF selection utilities ===&lt;br /&gt;
&lt;br /&gt;
The following utilities are helpful to select subsets of an [[#MRF|MRF]] file. It should be noted that these utilities operate on &#039;&#039;existing&#039;&#039; MRF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfSampler ====&lt;br /&gt;
&lt;br /&gt;
Randomly select a subset of [[#MRF|MRF]] entries.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSampler &amp;lt;proportionOfReadsToSample&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** proportionOfReadsToSample - fraction of reads to sample (on average)&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;
==== mrfSelectRegion ====&lt;br /&gt;
&lt;br /&gt;
Select reads that overlap with a specified genomic region.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSelectRegion &amp;lt;targetName:targetStart-targetEnd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** targetName:targetStart-targetEnd - region of interest&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;
==== mrfSelectSpliced ====&lt;br /&gt;
&lt;br /&gt;
Select reads that span a splice junction.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSelectSpliced&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: The purpose of mrfSelectSpliced is to extract mapped reads that align to a splice junction from an &#039;&#039;&#039;existing MRF file&#039;&#039;&#039;. It is important to note that this utility is not used to convert the output of a specific mapping program.   &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfSubsetByTargetName ====&lt;br /&gt;
&lt;br /&gt;
Split up an [[#MRF|MRF]] file by chromosome.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSubsetByTargetName &amp;lt;prefix&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF\MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs a separate [[#MRF|MRF]] file for each chromosome using the following naming convention: &amp;lt;prefix&amp;gt;_chrXXX.mrf.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - prefix used for the output files.&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;
==== mrfSelectAnnotated ==== &lt;br /&gt;
&lt;br /&gt;
Module to select a subset of reads that overlap with a specified annotation set. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSelectAnnotated &amp;lt;file.annotation&amp;gt; &amp;lt;include|exclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (one transcript per line).&lt;br /&gt;
** &amp;lt; include | exclude &amp;gt; - include: report reads that overlap with &#039;&#039;exonic&#039;&#039; regions of the annotation set; exclude: report reads that do not overlap with &#039;&#039;exonic&#039;&#039; regions of the annotation set&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;
==== mrfRegionCount ==== &lt;br /&gt;
&lt;br /&gt;
Module to count the total number of reads in a specified region.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  mrfRegionCount &amp;lt;targetName:targetStart-targetEnd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs  the total number of reads in a specified region to STDOUT.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** targetName:targetStart-targetEnd, specifies the region of interest &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;
=== Auxiliary utilities ===&lt;br /&gt;
&lt;br /&gt;
This section includes various data format conversion utilities.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== bed2interval ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#BED|BED]] format into [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bed2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#BED|BED]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2bed ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#Interval|Interval]] format into [[#BED|BED]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2bed&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#Interval|Interval]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data in [[#BED|BED]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2gff ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#Interval|Interval]] format into [[#GFF|GFF]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2gff &amp;lt;trackName&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#Interval|Interval]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data in [[#GFF|GFF]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** trackName - track name used in the [[#GFF|GFF]] 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;
==== gff2interval ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#GFF|GFF]] format into [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gff2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#GFF|GFF]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== export2fastq ====&lt;br /&gt;
&lt;br /&gt;
Module to generate FASTQ sequences from an ELAND export file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 export2fastq &lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes an ELAND export file from STDIN&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTQ 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrf2sam ==== &lt;br /&gt;
&lt;br /&gt;
Module to convert [[#MRF|MRF]] to [[#SAM|SAM]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrf2sam&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#SAM|SAM]] 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;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Papers&amp;diff=1869</id>
		<title>FusionSeq Papers</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Papers&amp;diff=1869"/>
		<updated>2012-03-08T19:46:39Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* 2011 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
&lt;br /&gt;
Here is a list of papers citing:&lt;br /&gt;
* Sboner A, Habegger L, Pflueger D, Terry S, Chen DZ, Rozowsky JS, Tewari AK, Kitabayashi N, Moss BJ, Chee MS, Demichelis F, Rubin MA, Gerstein MB. &#039;&#039;&#039;FusionSeq: a modular framework for finding gene fusions by analyzing Paired-End RNA-Sequencing data.&#039;&#039;&#039; &#039;&#039;Genome Biol&#039;&#039; 21 Oct. 2010; &#039;&#039;&#039;11&#039;&#039;&#039;:R104  doi:[http://dx.doi.org/10.1186/gb-2010-11-10-r104 10.1186/gb-2010-11-10-r104]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=News=&lt;br /&gt;
* Nov 2010: [http://www.genomeweb.com/sequencing/transcriptome-sequencing-25-prostate-cancer-tumors-ids-novel-gene-fusions GenomeWeb -- InSequence]&lt;br /&gt;
* July/Aug 2010: [http://www.genomeweb.com/arrays/moving-away-microarrays?page=show GenomeWeb -- GenomeTechnology]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Scientific Papers=&lt;br /&gt;
==2012==&lt;br /&gt;
* Pierron, Gaëlle, Franck Tirode, Carlo Lucchesi, Stéphanie Reynaud, Stelly Ballet, Sarah Cohen-Gogo, Virginie Perrin, Jean-Michel Coindre, and Olivier Delattre. &#039;&#039;&#039;A New Subtype of Bone Sarcoma Defined by BCOR-CCNB3 Gene Fusion.&#039;&#039;&#039;  [http://www.nature.com/ng/journal/vaop/ncurrent/full/ng.1107.html Nature Genetics]  (March 4, 2012).&lt;br /&gt;
&lt;br /&gt;
* Barbieri, Christopher E, Francesca Demichelis, and Mark A Rubin. &#039;&#039;&#039;Molecular Genetics of Prostate Cancer: Emerging Appreciation of Genetic Complexity.&#039;&#039;&#039; Histopathology 60, no. 1 (January 1, 2012): 187–198.&lt;br /&gt;
&lt;br /&gt;
* Chng, Kern Rei, Shin Chet Chuah, and Edwin Cheung eds. &#039;&#039;&#039;Stem Cells and Human Diseases.&#039;&#039;&#039; 175–196  [http://www.springerlink.com/content/g101v26672v450uk/abstract/ Springer Netherlands 2012].&lt;br /&gt;
&lt;br /&gt;
==2011==&lt;br /&gt;
* Stein, Lincoln D. &#039;&#039;&#039;An Introduction to the Informatics of ‘Next‐Generation’ Sequencing&#039;&#039;&#039; In . John Wiley &amp;amp; Sons, Inc. [http://onlinelibrary.wiley.com/doi/10.1002/0471250953.bi1101s36/abstract Current Protocols in Bioinformatics]&lt;br /&gt;
&lt;br /&gt;
* Abate, F., A. Acquaviva, E. Ficarra, G. Paciello, E. Macii, A. Ferrarini, M. Delledonne, S. Soverini, and G. Martinelli. &#039;&#039;&#039;A Novel Framework for Chimeric Transcript Detection Based on Accurate Gene Fusion Model.&#039;&#039;&#039; 34–41.  [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6112352&amp;amp;tag=1 IEEE, 2011]&lt;br /&gt;
&lt;br /&gt;
* Salzman, Julia, Robert J. Marinelli, Peter L. Wang, Ann E. Green, Julie S. Nielsen, Brad H. Nelson, Charles W. Drescher, and Patrick O. Brown. &#039;&#039;&#039;ESRRA-C11orf20 Is a Recurrent Gene Fusion in Serous Ovarian Carcinoma.&#039;&#039;&#039; PLoS Biol 9, no. 9 (2011): e1001156.&lt;br /&gt;
&lt;br /&gt;
* Asmann, Yan W, Asif Hossain, Brian M Necela, Sumit Middha, Krishna R Kalari, Zhifu Sun, High-Seng Chai, et al. “A Novel Bioinformatics Pipeline for Identification and Characterization of Fusion Transcripts in Breast Cancer and Normal Cell Lines.” Nucleic Acids Research 39, no. 15 (August 1, 2011): e100–e100.&lt;br /&gt;
&lt;br /&gt;
* Chen, William L., Burton A. Leland, Joseph L. Durant, David L. Grier, Bradley D. Christie, James G. Nourse, and Keith T. Taylor. &#039;&#039;&#039;Self-Contained Sequence Representation: Bridging the Gap Between Bioinformatics and Cheminformatics.&#039;&#039;&#039; J. Chem. Inf. Model. 51, no. 9 (2011): 2186–2208.&lt;br /&gt;
&lt;br /&gt;
* Kim, Daehwan, and Steven L Salzberg. &#039;&#039;&#039;TopHat-Fusion: An Algorithm for Discovery of Novel Fusion Transcripts.&#039;&#039;&#039; Genome Biology 12 (2011): R72.&lt;br /&gt;
&lt;br /&gt;
* McPherson, Andrew, Fereydoun Hormozdiari, Abdalnasser Zayed, Ryan Giuliany, Gavin Ha, Mark G. F. Sun, Malachi Griffith, et al. &#039;&#039;&#039;deFuse: An Algorithm for Gene Fusion Discovery in Tumor RNA-Seq Data.&#039;&#039;&#039; PLoS Comput Biol 7, no. 5 (May 19, 2011): e1001138.&lt;br /&gt;
&lt;br /&gt;
* Ge, Huanying, Kejun Liu, Todd Juan, Fang Fang, Matthew Newman, and Wolfgang Hoeck. “FusionMap: Detecting Fusion Genes from Next-generation Sequencing Data at Base-pair Resolution.” [http://bioinformatics.oxfordjournals.org/content/early/2011/05/18/bioinformatics.btr310.abstract Bioinformatics] (May 18, 2011). &lt;br /&gt;
&lt;br /&gt;
* Li, Yang, Jeremy Chien, David I. Smith, and Jian Ma. &#039;&#039;&#039;FusionHunter: Identifying Fusion Transcripts in Cancer Using Paired-end RNA-seq.&#039;&#039;&#039; [http://bioinformatics.oxfordjournals.org/content/early/2011/05/05/bioinformatics.btr265.abstract Bioinformatics] (May 5, 2011). &lt;br /&gt;
&lt;br /&gt;
* McPherson, Andrew, Chunxiao Wu, Iman Hajirasouliha, Fereydoun Hormozdiari, Faraz Hach, Anna Lapuk, Stanislav Volik, Sohrab Shah, Colin Collins, and S. Cenk Sahinalp. &#039;&#039;&#039;Comrad: a novel algorithmic framework for the integrated analysis of RNA-Seq and WGSS data.&#039;&#039;&#039; [http://bioinformatics.oxfordjournals.org/content/early/2011/04/09/bioinformatics.btr184.abstract. Bioinformatics] (April 9, 2011). &lt;br /&gt;
&lt;br /&gt;
* Nacu, Serban, Wenlin Yuan, Zhengyan Kan, Deepali Bhatt, Celina Rivers, Jeremy Stinson, Brock Peters, et al. &#039;&#039;&#039;Deep RNA sequencing analysis of readthrough gene fusions in human prostate adenocarcinoma and reference samples.&#039;&#039;&#039; [http://www.biomedcentral.com/1755-8794/4/11 BMC Medical Genomics]  4, no. 1 (2011): 11.&lt;br /&gt;
&lt;br /&gt;
* Pflueger D, Terry S, Sboner A, Habegger L, Esgueva R, Lin P, Svensson MA, Kitabayashi N, Moss BJ, MacDonald TY, Cao X, Barrette T, Tewari AK, Chee MS, Chinnaiyan AM, Rickman DS, Demichelis F, Gerstein MB, Rubin MA. &#039;&#039;&#039;Discovery of non-ETS gene fusions in human prostate cancer using next-generation RNA sequencing&#039;&#039;&#039; [http://www.genome.org/cgi/doi/10.1101/gr.110684.110 Genome Res]  2011; Vol. 21:56-67; Published in Advance October 29, 2010.  doi:[http://www.genome.org/cgi/doi/10.1101/gr.110684.110 10.1101/gr.110684.110]&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Papers&amp;diff=1868</id>
		<title>FusionSeq Papers</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Papers&amp;diff=1868"/>
		<updated>2012-03-08T19:41:48Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Scientific Papers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
&lt;br /&gt;
Here is a list of papers citing:&lt;br /&gt;
* Sboner A, Habegger L, Pflueger D, Terry S, Chen DZ, Rozowsky JS, Tewari AK, Kitabayashi N, Moss BJ, Chee MS, Demichelis F, Rubin MA, Gerstein MB. &#039;&#039;&#039;FusionSeq: a modular framework for finding gene fusions by analyzing Paired-End RNA-Sequencing data.&#039;&#039;&#039; &#039;&#039;Genome Biol&#039;&#039; 21 Oct. 2010; &#039;&#039;&#039;11&#039;&#039;&#039;:R104  doi:[http://dx.doi.org/10.1186/gb-2010-11-10-r104 10.1186/gb-2010-11-10-r104]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=News=&lt;br /&gt;
* Nov 2010: [http://www.genomeweb.com/sequencing/transcriptome-sequencing-25-prostate-cancer-tumors-ids-novel-gene-fusions GenomeWeb -- InSequence]&lt;br /&gt;
* July/Aug 2010: [http://www.genomeweb.com/arrays/moving-away-microarrays?page=show GenomeWeb -- GenomeTechnology]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Scientific Papers=&lt;br /&gt;
==2012==&lt;br /&gt;
* Pierron, Gaëlle, Franck Tirode, Carlo Lucchesi, Stéphanie Reynaud, Stelly Ballet, Sarah Cohen-Gogo, Virginie Perrin, Jean-Michel Coindre, and Olivier Delattre. &#039;&#039;&#039;A New Subtype of Bone Sarcoma Defined by BCOR-CCNB3 Gene Fusion.&#039;&#039;&#039;  [http://www.nature.com/ng/journal/vaop/ncurrent/full/ng.1107.html Nature Genetics]  (March 4, 2012).&lt;br /&gt;
&lt;br /&gt;
* Barbieri, Christopher E, Francesca Demichelis, and Mark A Rubin. &#039;&#039;&#039;Molecular Genetics of Prostate Cancer: Emerging Appreciation of Genetic Complexity.&#039;&#039;&#039; Histopathology 60, no. 1 (January 1, 2012): 187–198.&lt;br /&gt;
&lt;br /&gt;
* Chng, Kern Rei, Shin Chet Chuah, and Edwin Cheung eds. &#039;&#039;&#039;Stem Cells and Human Diseases.&#039;&#039;&#039; 175–196  [http://www.springerlink.com/content/g101v26672v450uk/abstract/ Springer Netherlands 2012].&lt;br /&gt;
&lt;br /&gt;
==2011==&lt;br /&gt;
* Stein, Lincoln D. &#039;&#039;&#039;An Introduction to the Informatics of ‘Next‐Generation’ Sequencing&#039;&#039;&#039; In . John Wiley &amp;amp; Sons, Inc. [http://onlinelibrary.wiley.com/doi/10.1002/0471250953.bi1101s36/abstract Current Protocols in Bioinformatics]&lt;br /&gt;
&lt;br /&gt;
* Abate, F., A. Acquaviva, E. Ficarra, G. Paciello, E. Macii, A. Ferrarini, M. Delledonne, S. Soverini, and G. Martinelli. &#039;&#039;&#039;A Novel Framework for Chimeric Transcript Detection Based on Accurate Gene Fusion Model.&#039;&#039;&#039; 34–41.  [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6112352&amp;amp;tag=1 IEEE, 2011]&lt;br /&gt;
&lt;br /&gt;
* Asmann, Yan W, Asif Hossain, Brian M Necela, Sumit Middha, Krishna R Kalari, Zhifu Sun, High-Seng Chai, et al. “A Novel Bioinformatics Pipeline for Identification and Characterization of Fusion Transcripts in Breast Cancer and Normal Cell Lines.” Nucleic Acids Research 39, no. 15 (August 1, 2011): e100–e100.&lt;br /&gt;
&lt;br /&gt;
* Kim, Daehwan, and Steven L Salzberg. &#039;&#039;&#039;TopHat-Fusion: An Algorithm for Discovery of Novel Fusion Transcripts.&#039;&#039;&#039; Genome Biology 12 (2011): R72.&lt;br /&gt;
&lt;br /&gt;
* McPherson, Andrew, Fereydoun Hormozdiari, Abdalnasser Zayed, Ryan Giuliany, Gavin Ha, Mark G. F. Sun, Malachi Griffith, et al. &#039;&#039;&#039;deFuse: An Algorithm for Gene Fusion Discovery in Tumor RNA-Seq Data.&#039;&#039;&#039; PLoS Comput Biol 7, no. 5 (May 19, 2011): e1001138.&lt;br /&gt;
&lt;br /&gt;
* Ge, Huanying, Kejun Liu, Todd Juan, Fang Fang, Matthew Newman, and Wolfgang Hoeck. “FusionMap: Detecting Fusion Genes from Next-generation Sequencing Data at Base-pair Resolution.” [http://bioinformatics.oxfordjournals.org/content/early/2011/05/18/bioinformatics.btr310.abstract Bioinformatics] (May 18, 2011). &lt;br /&gt;
&lt;br /&gt;
* Li, Yang, Jeremy Chien, David I. Smith, and Jian Ma. &#039;&#039;&#039;FusionHunter: Identifying Fusion Transcripts in Cancer Using Paired-end RNA-seq.&#039;&#039;&#039; [http://bioinformatics.oxfordjournals.org/content/early/2011/05/05/bioinformatics.btr265.abstract Bioinformatics] (May 5, 2011). &lt;br /&gt;
&lt;br /&gt;
* McPherson, Andrew, Chunxiao Wu, Iman Hajirasouliha, Fereydoun Hormozdiari, Faraz Hach, Anna Lapuk, Stanislav Volik, Sohrab Shah, Colin Collins, and S. Cenk Sahinalp. &#039;&#039;&#039;Comrad: a novel algorithmic framework for the integrated analysis of RNA-Seq and WGSS data.&#039;&#039;&#039; [http://bioinformatics.oxfordjournals.org/content/early/2011/04/09/bioinformatics.btr184.abstract. Bioinformatics] (April 9, 2011). &lt;br /&gt;
&lt;br /&gt;
* Nacu, Serban, Wenlin Yuan, Zhengyan Kan, Deepali Bhatt, Celina Rivers, Jeremy Stinson, Brock Peters, et al. &#039;&#039;&#039;Deep RNA sequencing analysis of readthrough gene fusions in human prostate adenocarcinoma and reference samples.&#039;&#039;&#039; [http://www.biomedcentral.com/1755-8794/4/11 BMC Medical Genomics]  4, no. 1 (2011): 11.&lt;br /&gt;
&lt;br /&gt;
* Pflueger D, Terry S, Sboner A, Habegger L, Esgueva R, Lin P, Svensson MA, Kitabayashi N, Moss BJ, MacDonald TY, Cao X, Barrette T, Tewari AK, Chee MS, Chinnaiyan AM, Rickman DS, Demichelis F, Gerstein MB, Rubin MA. &#039;&#039;&#039;Discovery of non-ETS gene fusions in human prostate cancer using next-generation RNA sequencing&#039;&#039;&#039; [http://www.genome.org/cgi/doi/10.1101/gr.110684.110 Genome Res]  2011; Vol. 21:56-67; Published in Advance October 29, 2010.  doi:[http://www.genome.org/cgi/doi/10.1101/gr.110684.110 10.1101/gr.110684.110]&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1857</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1857"/>
		<updated>2012-02-09T18:01:49Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* (versions 0.7.0 and later) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later) =====&lt;br /&gt;
Starting from version 0.7.0 (alpha), libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: if headers and libraries of required packages (libmrf, libbios, GD, GSL, etc.) are not installed in a standard location, one would need to set the paths using CPPFLAGS and LDFLAGS. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/path/to/header/files -I/path/2/header/files ...&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/path/to/lib/files  -L/path/to/lib/files ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If one doesn&#039;t want to list all relevant directories, a convenient approach is the creation of local &#039;&#039;include&#039;&#039; and &#039;&#039;lib&#039;&#039; directories and use symbolic links to the relevant files. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include&lt;br /&gt;
$ mkdir ~/fusionseq/lib&lt;br /&gt;
$ cd ~/fusionseq/include &lt;br /&gt;
$ ln -s /path/to/libbios/include/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/include/* .&lt;br /&gt;
$ ln -s /path/to/gsl/include/* .&lt;br /&gt;
$ ln -s /path/to/gd/include/* .&lt;br /&gt;
$ cd ~/fusionseq/lib&lt;br /&gt;
$ ln -s /path/to/libbios/lib/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/lib/* .&lt;br /&gt;
$ ln -s /path/to/gsl/lib/* .&lt;br /&gt;
$ ln -s /path/to/gd/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hence, one could simply define:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/home/user/fusionseq/include&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/home/user/fusionseq/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. &#039;&#039;&#039;NOTE&#039;&#039;&#039;: for Ubuntu users, the detailed instructions to install [http://root.cern.ch/drupal/ ROOT] can be found [http://cometpeak.com/2011/05/building-and-installing-root-on-ubuntu-11-04-x86_64/ here].&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later)===== &lt;br /&gt;
If ROOT is installed in the default folder, it will generate a subfolder &#039;root&#039; both for the include and lib files. In the case of a non-standard location for [http://root.cern.ch/drupal/ ROOT], however, this doesn&#039;t occur. Hence, a similar approach as above can be adopted to properly link [http://root.cern.ch/drupal/ ROOT] files for FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include/root&lt;br /&gt;
$ cd ~/fusionseq/include/root&lt;br /&gt;
$ ln -s /path/to/root/include/* .&lt;br /&gt;
$ mkdir ~/fusionseq/lib/root&lt;br /&gt;
$ cd ~/fusionseq/lib/root&lt;br /&gt;
$ ln -s /path/to/root/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, for some versions of ROOT, one may get the following error:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[...]/root/include/Rtypes.h:35:67: error: snprintf.h: No such file or directory&lt;br /&gt;
[...]/root/include/Rtypes.h:36:68: error: strlcpy.h: No such file or directory&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is because ROOT provides its own copy of the header files. One workaround is thus to create symbolic links&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd ~/fusionseq/include&lt;br /&gt;
$ ln -s root/snprintf.h .&lt;br /&gt;
$ ln -s root/strlcpy.h .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This should solve it.&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later)=====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_CONFPATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
# Used for gfrRibosomalFilter&lt;br /&gt;
MAX_FRACTION_HOMOLOGOUS=0.05&lt;br /&gt;
MAX_OVERLAP_ALLOWED=0.75&lt;br /&gt;
&lt;br /&gt;
# Used for gfr2bpJunctions&lt;br /&gt;
MAX_NUMBER_OF_JUNCTION_PER_FILE=2000000&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = /path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1842</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1842"/>
		<updated>2012-01-11T11:42:12Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* (versions 0.7.0 and later) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later) =====&lt;br /&gt;
Starting from version 0.7.0 (alpha), libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: if headers and libraries of required packages (libmrf, libbios, GD, GSL, etc.) are not installed in a standard location, one would need to set the paths using CPPFLAGS and LDFLAGS. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/path/to/header/files -I/path/2/header/files ...&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/path/to/lib/files  -L/path/to/lib/files ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If one doesn&#039;t want to list all relevant directories, a convenient approach is the creation of local &#039;&#039;include&#039;&#039; and &#039;&#039;lib&#039;&#039; directories and use symbolic links to the relevant files. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include&lt;br /&gt;
$ mkdir ~/fusionseq/lib&lt;br /&gt;
$ cd ~/fusionseq/include &lt;br /&gt;
$ ln -s /path/to/libbios/include/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/include/* .&lt;br /&gt;
$ ln -s /path/to/gsl/include/* .&lt;br /&gt;
$ ln -s /path/to/gd/include/* .&lt;br /&gt;
$ cd ~/fusionseq/lib&lt;br /&gt;
$ ln -s /path/to/libbios/lib/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/lib/* .&lt;br /&gt;
$ ln -s /path/to/gsl/lib/* .&lt;br /&gt;
$ ln -s /path/to/gd/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hence, one could simply define:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/home/user/fusionseq/include&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/home/user/fusionseq/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. &#039;&#039;&#039;NOTE&#039;&#039;&#039;: for Ubuntu users, the detailed instructions to install [http://root.cern.ch/drupal/ ROOT] can be found [http://cometpeak.com/2011/05/building-and-installing-root-on-ubuntu-11-04-x86_64/ here].&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later)===== &lt;br /&gt;
If ROOT is installed in the default folder, it will generate a subfolder &#039;root&#039; both for the include and lib files. In the case of a non-standard location for [http://root.cern.ch/drupal/ ROOT], however, this doesn&#039;t occur. Hence, a similar approach as above can be adopted to properly link [http://root.cern.ch/drupal/ ROOT] files for FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include/root&lt;br /&gt;
$ cd ~/fusionseq/include/root&lt;br /&gt;
$ ln -s /path/to/root/include/* .&lt;br /&gt;
$ mkdir ~/fusionseq/lib/root&lt;br /&gt;
$ cd ~/fusionseq/lib/root&lt;br /&gt;
$ ln -s /path/to/root/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, for some versions of ROOT, one may get the following error:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[...]/root/include/Rtypes.h:35:67: error: snprintf.h: No such file or directory&lt;br /&gt;
[...]/root/include/Rtypes.h:36:68: error: strlcpy.h: No such file or directory&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is because ROOT provides its own copy of the header files. One workaround is thus to create symbolic links&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd ~/fusionseq/include&lt;br /&gt;
$ ln -s root/snprintf.h .&lt;br /&gt;
$ ln -s root/strlcpy.h .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This should solve it.&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later)=====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
# Used for gfrRibosomalFilter&lt;br /&gt;
MAX_FRACTION_HOMOLOGOUS=0.05&lt;br /&gt;
MAX_OVERLAP_ALLOWED=0.75&lt;br /&gt;
&lt;br /&gt;
# Used for gfr2bpJunctions&lt;br /&gt;
MAX_NUMBER_OF_JUNCTION_PER_FILE=2000000&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = /path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=RSEQtools&amp;diff=1769</id>
		<title>RSEQtools</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=RSEQtools&amp;diff=1769"/>
		<updated>2011-11-03T12:55:30Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* singleExport2mrf */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/rnaseq/rseqtools &#039;&#039;&#039;RSEQtools 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;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The advent of next-generation sequencing for functional genomics has given rise to quantities of sequence information that are often so large that they are difficult to handle.  Moreover, sequence reads from a specific individual can contain sufficient information to potentially identify that person, raising significant privacy concerns.  In order to address these issues we have developed the Mapped Read Format (MRF), a compact data summary format for both short and long read alignments that enables the anonymization of confi-dential sequence information, while allowing one to still carry out many functional genomics studies.  We have developed a suite of tools that uses this format for the analysis of RNA-Seq experiments.  RSEQtools consists of a set of modules that perform common tasks such as calculating gene expression values, generating signal tracks of mapped reads, and segmenting that signal into actively transcribed regions.  In addition to the anonymization afforded by this format it also facilitates the decoupling of the alignment of reads from downstream analyses.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Citation ==&lt;br /&gt;
&lt;br /&gt;
Lukas Habegger*, Andrea Sboner*, Tara A. Gianoulis, Joel Rozowsky, Ashish Agarwal, Michael Snyder, Mark Gerstein. &#039;&#039;&#039;RSEQtools: A modular framework to analyze RNA-Seq data using compact, anonymized data summaries&#039;&#039;&#039;. [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/btq643?ijkey=GSZOpzLAEOqJtJ4&amp;amp;keytype=ref &amp;lt;i&amp;gt;Bioinformatics&amp;lt;/i&amp;gt;] 2010, &lt;br /&gt;
doi: 10.1093/bioinformatics/btq643&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The following sections provide documenation for the modules that are part of RSEQtools (http://rseqtools.gersteinlab.org/).  This documentation is intended for the end-users and can also be found at http://info.gersteinlab.org/RSEQtools.  &lt;br /&gt;
&#039;&#039;&#039;RSEQtools is implemented in C&#039;&#039;&#039; and uses a general C library called BIOS. &lt;br /&gt;
&lt;br /&gt;
The full &#039;&#039;&#039;documentation for developers&#039;&#039;&#039; can be found here:&lt;br /&gt;
* RSEQtools: http://archive.gersteinlab.org/proj/rnaseq/doc/mrf/&lt;br /&gt;
* BIOS: http://archive.gersteinlab.org/proj/rnaseq/doc/bios/&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
=== Mapped Read Format (MRF) ===&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;u&amp;gt;M&amp;lt;/u&amp;gt;apped &amp;lt;u&amp;gt;R&amp;lt;/u&amp;gt;ead &amp;lt;u&amp;gt;F&amp;lt;/u&amp;gt;ormat (MRF) flat file consists of &#039;&#039;&#039;three&#039;&#039;&#039; components and this format is closely associated with the software components of [http://rseqtools.gersteinlab.org RSEQtools]&lt;br /&gt;
&lt;br /&gt;
 1. Comment lines. Comment lines are optional and start with a &#039;#&#039; character.&lt;br /&gt;
 2. Header line. The header line is required and specifies the type of each column.&lt;br /&gt;
 3. Mapped reads. Each read (single-end or paired-end) is represented by on line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Required&#039;&#039;&#039; column:&lt;br /&gt;
&lt;br /&gt;
 * AlignmentBlocks, each alignment block must contain the following attributes: TargetName:Strand:TargetStart:TargetEnd:QueryStart:QueryEnd&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Optional&#039;&#039; columns:&lt;br /&gt;
&lt;br /&gt;
 * Sequence&lt;br /&gt;
 * QualityScores&lt;br /&gt;
 * QueryId&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Comments&lt;br /&gt;
# Required field: Blocks [TargetName:Strand:TargetStart:TargetEnd:QueryStart:QueryEnd]&lt;br /&gt;
# Optional fields: Sequence,QualityScores,QueryId&lt;br /&gt;
AlignmentBlocks&lt;br /&gt;
chr1:+:2001:2050:1:50&lt;br /&gt;
chr1:+:2001:2025:1:25,chr1:+:3001:3025:26:50&lt;br /&gt;
chr2:-:3001:3051:1:51|chr11:+:4001:4051:1:51&lt;br /&gt;
chr2:-:6021:6050:1:30,chr2:-:7031:7051:31:51|chr11:+:4001:4051:1:51&lt;br /&gt;
contigA:+:5001:5200:1:200,contigB:-:1200:1400:200:400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
 * Paired-end reads are separated by ‘|’&lt;br /&gt;
 * Alignment blocks are separated by ‘,’&lt;br /&gt;
 * Features of a block are separated by ‘:’&lt;br /&gt;
 * Columns are tab-delimited&lt;br /&gt;
 * Columns can be arranged in any order&lt;br /&gt;
 * Coordinates are &#039;&#039;&#039;one-based&#039;&#039;&#039; and &#039;&#039;&#039;closed (inclusive)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use MRF for confidential data&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It is straightforward to use MRF to separate the confidential information, i.e. the sequences, from the alignment data. The MRF file can be split in 2 files: one file can include &#039;&#039;AlignmentBlocks&#039;&#039; and &#039;&#039;QueryID&#039;&#039;, whereas a second file would can contain &#039;&#039;Sequence&#039;&#039; and &#039;&#039;QueryID&#039;&#039;. From a practical viewpoint it is also easy to create these two files.&lt;br /&gt;
&lt;br /&gt;
Assuming we have the columns AlignmentBlocks, Sequence, and QueryID as column 1, 2, and 3, respectively:&lt;br /&gt;
 $ cut -f1,3 file.mrf &amp;gt; alignments.mrf&lt;br /&gt;
 $ cut -f2,3 file.mrf &amp;gt; sequences.mrf&lt;br /&gt;
&lt;br /&gt;
* alignments.mrf would contain the alignment data and the query ID; it can be freely shared since it does not include confidential information;&lt;br /&gt;
* sequences.mrf would contain the sequence data; which, potentially, could be used to identify an individual and thus may be subjected to more stringent rules.&lt;br /&gt;
&amp;lt;br&amp;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 &#039;&#039;&#039;eight&#039;&#039;&#039; 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 [http://homes.gersteinlab.org/people/lh372/SOFT/bios/index.html BIOS]. 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;
Example file:&lt;br /&gt;
&lt;br /&gt;
 uc001aaw.1      chr1    +       357521  358460  1       357521  358460&lt;br /&gt;
 uc001aax.1      chr1    +       410068  411702  3       410068,410854,411258    410159,411121,411702&lt;br /&gt;
 uc001aay.1      chr1    -       552622  554252  3       552622,553203,554161    553066,553466,554252&lt;br /&gt;
 uc001aaz.1      chr1    +       556324  557910  1       556324  557910&lt;br /&gt;
 uc001aba.1      chr1    +       558011  558705  1       558011  558705  &lt;br /&gt;
&lt;br /&gt;
In this example the intervals represent a transcripts, while the sub-intervals denote exons.&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;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== BED ===&lt;br /&gt;
&lt;br /&gt;
The BED format is used to represent contiguous genomic regions. It consists of &#039;&#039;&#039;three&#039;&#039;&#039; required columns (tab-delimited).&lt;br /&gt;
&lt;br /&gt;
 1.   Chromosome&lt;br /&gt;
 2.   Start&lt;br /&gt;
 3.   End &lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 chr1  1000  5000&lt;br /&gt;
 chr3  500   600&lt;br /&gt;
 chrX  4000  4250&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/FAQ/FAQformat.html#format1 UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the BED 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;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== BedGraph ===&lt;br /&gt;
&lt;br /&gt;
The BedGraph format allows display of continuous-valued data in track format. This display type is useful for probability scores and transcriptome data. This track type is similar to the wiggle (WIG) format, but unlike the wiggle format, data exported in the bedGraph format are preserved in their original state.  It consists of &#039;&#039;&#039;four&#039;&#039;&#039; required columns (tab-delimited).&lt;br /&gt;
&lt;br /&gt;
 1.   Chromosome&lt;br /&gt;
 2.   Start&lt;br /&gt;
 3.   End &lt;br /&gt;
 4.   Value&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 chr1  1000   5000   12.3 &lt;br /&gt;
 chr3  500     600      3&lt;br /&gt;
 chrX  4000  4250    54&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [ftp://hgdownload.cse.ucsc.edu/apache/htdocs-rr/goldenPath/help/bedgraph.html UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the BedGraph 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;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== WIG ===&lt;br /&gt;
&lt;br /&gt;
The WIG format is used to represent dense and continuous genomic data. There are two options for formatting wiggle data: &#039;&#039;&#039;variableStep&#039;&#039;&#039; and &#039;&#039;&#039;fixedStep&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In the context of [http://rseqtools.gersteinlab.org/ RSEQtools], the variable step formatting is used and only positions with &#039;&#039;&#039;non-zero values&#039;&#039;&#039; are represented. &lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 track type=wiggle_0 name=&amp;quot;test_chr22&amp;quot;&lt;br /&gt;
 variableStep chrom=chr22 span=1&lt;br /&gt;
 17535712	1.67&lt;br /&gt;
 17535713	1.67&lt;br /&gt;
 17535714	1.67&lt;br /&gt;
 17535715	1.67&lt;br /&gt;
 17535716	1.67&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/goldenPath/help/wiggle.html UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the WIG format are &#039;&#039;&#039;zero-based&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== GFF ===&lt;br /&gt;
&lt;br /&gt;
The GFF format is used to describe genes and other features. It consists of &#039;&#039;&#039;nine&#039;&#039;&#039; tab-delimited columns.&lt;br /&gt;
&lt;br /&gt;
 1. Name &lt;br /&gt;
 2. Source &lt;br /&gt;
 3. Feature&lt;br /&gt;
 4. Start&lt;br /&gt;
 5. End &lt;br /&gt;
 6. Score&lt;br /&gt;
 7. Strand&lt;br /&gt;
 8. Frame&lt;br /&gt;
 9. Group &lt;br /&gt;
&lt;br /&gt;
Example file: &lt;br /&gt;
&lt;br /&gt;
 browser hide all&lt;br /&gt;
 track name=&amp;quot;chr11&amp;quot; visibility=2&lt;br /&gt;
 chr11	MRF	feature	46772115	46772161	.	-	.	TG5&lt;br /&gt;
 chr11	MRF	feature	46772668	46772695	.	-	.	TG5&lt;br /&gt;
 chr11	MRF	feature	118521207	118521252	.	+	.	TG21&lt;br /&gt;
 chr11	MRF	feature	118526315	118526343	.	+	.	TG21&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/FAQ/FAQformat.html#format3 UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the BED format are &#039;&#039;&#039;one-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
=== PSL ===&lt;br /&gt;
&lt;br /&gt;
The PSL format represents alignments from the BLAT alignment program.&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/FAQ/FAQformat.html#format2 UCSC]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
=== SAM ===&lt;br /&gt;
&lt;br /&gt;
SAM (Sequence Alignment/Map) format is a generic format for storing large nucleotide sequence alignments.&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://samtools.sourceforge.net/ SAMtools]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
This is the documentation for the end-users. The full documentation for developers can be found [http://archive.gersteinlab.org/proj/rnaseq/doc/mrf/files.html here].&lt;br /&gt;
&lt;br /&gt;
=== Format conversion utilities ===&lt;br /&gt;
&lt;br /&gt;
The following programs convert the output from various alignment programs into [[#MRF|MRF]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== bowtie2mrf ====  &lt;br /&gt;
&lt;br /&gt;
bowtie2mrf converts read alignments from Bowtie into [[#MRF|MRF]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bowtie2mrf &amp;lt;genomic|junctions|paired&amp;gt; [-sequence] [-qualityScores] [-IDs]&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [http://bowtie-bio.sourceforge.net/manual.shtml#default-bowtie-output Bowtie output] from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** genomic -  convert single-end reads that were aligned against a genomic reference sequence using Bowtie&lt;br /&gt;
** junctions - convert single-end reads that were aligned against a splice junction library (generated by &#039;&#039;&#039;createSpliceJunctionLibrary&#039;&#039;&#039;) using Bowtie&lt;br /&gt;
** paired - convert paired-end reads that were aligned using Bowtie&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** sequence - include the read sequence in the [[#MRF|MRF]] output&lt;br /&gt;
** qualityScores - include the quality scores of the read in the [[#MRF|MRF]] output&lt;br /&gt;
** IDs - include the read IDs in the [[#MRF|MRF]] output&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: bowtie2mrf assumes that bowtie was run using the default option for the -B parameter&lt;br /&gt;
 -B/--offbase &amp;lt;int&amp;gt; leftmost ref offset = &amp;lt;int&amp;gt; in bowtie output (default: 0)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: If a splice junction library is used during the alignment step, it is important that the splice junction library was generated by createSpliceJunctionLibrary.  Otherwise, bowtie2mrf will not be able to convert the splice junction coordinates correctly.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== psl2mrf ====&lt;br /&gt;
&lt;br /&gt;
psl2mrf converts read alignments from BLAT into [[#MRF|MRF]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 psl2mrf&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes BLAT alignments in [[#PSL|PSL]] format from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== singleExport2mrf ====&lt;br /&gt;
&lt;br /&gt;
singleExport2mrf converts single-end read alignments from ELAND (export file) into [[#MRF|MRF]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 singleExport2mrf&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes ELAND single-end alignments in export format from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: If a splice junction library is used during the alignment step, it is important that the splice junction library was generated by createSpliceJunctionLibrary and that its file name included &#039;splice&#039; or &#039;junction&#039;.  Otherwise, singleExport2mrf will not be able to convert the splice junction coordinates correctly.  &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The output includes sequences and quality scores. If one wants the alignment only:&lt;br /&gt;
 singleExport2mrf &amp;lt; file.export.txt | cut -f1 &amp;gt; file.mrf&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== sam2mrf ====&lt;br /&gt;
&lt;br /&gt;
sam2mrf converts [[#SAM|SAM]] format into [[#MRF|MRF]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 sam2mrf&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#SAM|SAM]] format from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] 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;
Please note that for paired-end data, sam2mrf requires the mate pairs to be on subsequent lines. You may want to sort the [[#SAM|SAM]] file first.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;sort -r file.sam | sam2mrf &amp;gt; file.mrf &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Genome annotation tools ===&lt;br /&gt;
&lt;br /&gt;
The following tools are helpful in manipulating annotation files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== createSpliceJunctionLibrary ====&lt;br /&gt;
&lt;br /&gt;
This program is used to create a splice junction library from an annotation set. It creates all pair-wise splice junctions within a transcript.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 createSpliceJunctionLibrary &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;sizeExonOverlap&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the slice junctions 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;
** sizeExonOverlap - defines the number of nucleotides included from each exon&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Example output:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;chr1|12162|12612|65&lt;br /&gt;
 AGGCATAGGGGAAAGATTGGAGGAAAGATGAGTGAGAGCATCAACTTCTCTCACAACCTAGGCCAGTGTGTGGTGATGCCAGGCATGCCCTTCCCCAGCATCAGGTCTCCAGAGCTGCAGAAGACGACGG&lt;br /&gt;
 &amp;gt;chr1|12162|13220|65&lt;br /&gt;
 AGGCATAGGGGAAAGATTGGAGGAAAGATGAGTGAGAGCATCAACTTCTCTCACAACCTAGGCCAGCAGGGCCATCAGGCACCAAAGGGATTCTGCCAGCATAGTGCTCCTGGACCAGTGATACACCCGG&lt;br /&gt;
 &amp;gt;chr1|12656|13220|65&lt;br /&gt;
 CAGAGCTGCAGAAGACGACGGCCGACTTGGATCACACTCTTGTGAGTGTCCCCAGTGTTGCAGAGGCAGGGCCATCAGGCACCAAAGGGATTCTGCCAGCATAGTGCTCCTGGACCAGTGATACACCCGG&lt;br /&gt;
&lt;br /&gt;
The identifier for each splice junction consists of &#039;&#039;&#039;four&#039;&#039;&#039; items:&lt;br /&gt;
&lt;br /&gt;
 1.   Chromosome&lt;br /&gt;
 2.   Start position (with respect to the &amp;quot;+&amp;quot;, zero-based) of the splice junction within the first exon  &lt;br /&gt;
 3.   Start position (with respect to the &amp;quot;+&amp;quot;, zero-based) of the splice junction within the second exon  &lt;br /&gt;
 4.   Size of the exon overlap&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Internally the program uses &#039;&#039;twoBitToFa&#039;&#039; (part of BLAT package). Thus, the executable must be in 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;
==== mergeTranscripts ====&lt;br /&gt;
&lt;br /&gt;
Module to merge a set of transcripts from the same gene.&lt;br /&gt;
&lt;br /&gt;
Obtain unique exons from various transcript isoforms based on:&lt;br /&gt;
# longest isoform&lt;br /&gt;
# composite model (union of the exons from the different transcript isoforms)&lt;br /&gt;
# intersection (intersection of the exons of the different transcript isoforms)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
 mergeTranscripts &amp;lt;knownIsoforms.txt&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;longestIsoform|compositeModel|intersection&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports a new annotation set of merged transcripts in [[#Interval|Interval]] format &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** knownIsoforms.txt - file that determines which transcript isoforms belong together (see format below)&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; longestIsoform | compositeModel | intersection &amp;gt; - determines how transcript isoforms are selected/merged:&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
The file knownIsoforms.txt should have two columns (tab-delimited) and no header:&lt;br /&gt;
&lt;br /&gt;
 1. ID (int). Transcripts with the same id belong to the same gene.&lt;br /&gt;
 2. Name of the transcript.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 1  uc009vip.1&lt;br /&gt;
 1  uc001aaa.2&lt;br /&gt;
 2  uc009vis.1&lt;br /&gt;
 2  uc001aae.2&lt;br /&gt;
 2  uc009viu.1&lt;br /&gt;
 2  uc009vit.1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set.&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;
&lt;br /&gt;
=== Gene expression analysis ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfQuantifier ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate expression values (RPKM). Given a set of mapped reads in MRF and an annotation set (representing exons, transcripts, or gene models) mrfQuantifier calculates an expression value for each annotation entry.  This is done by counting all the nucleotides from the reads that overlap with a given annotation entry.  Subsequently, this value is normalized per million mapped nucleotides and the length of the annotation item per kb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfQuantifier &amp;lt;file.annotation&amp;gt; &amp;lt;singleOverlap|multipleOverlap&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Reports the gene expression values to STDOUT in a two-column format (tab-delimited). The first column refers to the name of the annotated feature. The second column refers to the expression values (RPKM; read coverage normalized per million mapped nucleotides and the length of the annotation model per kb [see note below]). The output is sorted by the first column.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (gene expression measurements: one line per gene model; exon expression measurements: one line per exon). See [[#Interval|Interval]] for more details.&lt;br /&gt;
** &amp;lt; singleOverlap | multipleOverlap &amp;gt; - singleOverlap:  reads that overlap with multiple annotated features are ignored; multipleOverlap: reads that overlap with multiple annotated features are counted multiple times.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: All counts are performed at the nucleotide level. For example, if a read partially overlaps with an exon of a gene model, then only the overlapping nucleotides are counted (please refer to the figure below).  Therefore, the normalization is also done at the nucleotide level.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:mrfQuantifier.png|thumb|1000px|center|Determining overlaps between annotation entries and reads]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgrQuantifier ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate expression values (RPKM) from a signal track in bedGraph (bgr) format. Given a signal track  and an annotation set (representing exons, transcripts, or gene models) bgrQuantifier calculates an expression value for each annotation entry.  This is done by counting all the nucleotides from the reads that overlap with a given annotation entry.  Subsequently, this value is normalized per million mapped nucleotides and the length of the annotation item per kb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bgrQuantifier &amp;lt;file.annotation&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#BedGraph|BedGraph]] file from STDIN.&lt;br /&gt;
* Outputs: Reports the gene expression values to STDOUT in a two-column format (tab-delimited). The first column refers to the name of the annotated feature. The second column refers to the expression values (RPKM; read coverage normalized per million mapped nucleotides and the length of the annotation model per kb [see note below]). The output is sorted by the first column.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (gene expression measurements: one line per gene model; exon expression measurements: one line per exon). See [[#Interval|Interval]] for more details.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: All counts are performed at the nucleotide level. For example, if a read partially overlaps with an exon of a gene model, then only the overlapping nucleotides are counted (please refer to the figure below).  Therefore, the normalization is also done at the nucleotide level.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Visualization tools ===&lt;br /&gt;
&lt;br /&gt;
The following programs are useful for converting [[#MRF|MRF]] into data formats that can be viewed in a genome browser.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrf2wig ==== &lt;br /&gt;
&lt;br /&gt;
Generates signal track ([[#WIG|WIG]]) of mapped reads from a [[#MRF|MRF]] file. By default, the values in the WIG file are normalized by the total number of mapped reads per million. &lt;br /&gt;
Only positions with non-zero values are reported.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrf2wig &amp;lt;prefix&amp;gt; [doNotNormalize]&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Generates a [[#WIG|WIG]] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - specifies the prefix used to generate the output files. The following naming convention is used: prefix_chrXXX.wig&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** doNotNormailze - the counts are NOT normalized&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mrf2gff ==== &lt;br /&gt;
&lt;br /&gt;
Generates a [[#GFF|GFF]] file of mapped splice junction reads from a [[#MRF|MRF]] file. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;&lt;br /&gt;
 mrf2gff &amp;lt;prefix&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Generates a [[#GFF|GFF]] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - specifies the prefix used to generate the output files. The following naming convention is used: prefix_chrXXX.gff&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;
==== mrf2bgr ====&lt;br /&gt;
&lt;br /&gt;
Module to convert [[#MRF|MRF]] to [http://genome.ucsc.edu/goldenPath/help/bedgraph.html BedGraph]. Generates a [http://genome.ucsc.edu/goldenPath/help/bedgraph.html BedGraph], where the counts are normalized by the total number of mapped reads per million.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrf2bgr &amp;lt;prefix&amp;gt; [doNotNormalize]&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Generates a [http://genome.ucsc.edu/goldenPath/help/bedgraph.html BedGraph] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - specifies the prefix used to generate the output files. The following naming convention is used: prefix_chrXXX.bgr&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** doNotNormailze - the counts are NOT normalized.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Segmentation of mapped reads ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== wigSegmenter ====&lt;br /&gt;
&lt;br /&gt;
Module to segment a [[#WIG|WIG]] signal track using the [http://www.ncbi.nlm.nih.gov/pubmed/15979196 maxGap-minRun algorithm]. The output is a set of transcriptionally active regions (TARs) in [[#BED|BED]] format.  This type of analysis is particularly useful in identifying novel transcribed regions such as non-coding RNAs.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 wigSegmenter &amp;lt;wigPrefix&amp;gt; &amp;lt;threshold&amp;gt; &amp;lt;maxGap&amp;gt; &amp;lt;minRun&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Generates a [[#BED|BED]] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** wigPrefix - prefix used to generate the [[#WIG|WIG]] files using [[#mrf2wig|mrf2wig]] &lt;br /&gt;
** threshold - level at which the segmentation is performed&lt;br /&gt;
** maxGap - maximum number of consecutive positions that can have values less than the threshold  &lt;br /&gt;
** minRun - minimal length of a TAR&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;
==== bgrSegmenter ====&lt;br /&gt;
&lt;br /&gt;
Module to segment a [[#BedGraph|BedGraph]] signal track using the [http://www.ncbi.nlm.nih.gov/pubmed/15979196 maxGap-minRun algorithm]. The output is a set of transcriptionally active regions (TARs) in [[#BED|BED]] format.  This type of analysis is particularly useful in identifying novel transcribed regions such as non-coding RNAs.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bgrSegmenter &amp;lt;bgrPrefix&amp;gt; &amp;lt;threshold&amp;gt; &amp;lt;maxGap&amp;gt; &amp;lt;minRun&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Generates a [[#BED|BED]] file for each chromosome occurring in the [[#BedGraph|BedGraph]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** bgrPrefix - prefix used to generate the [[#BedGraph|BedGraph]] files using [[#mrf2bgr|mrf2bgr]] &lt;br /&gt;
** threshold - level at which the segmentation is performed&lt;br /&gt;
** maxGap - maximum number of consecutive positions that can have values less than the threshold  &lt;br /&gt;
** minRun - minimal length of a TAR&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;
=== Annotation statistics tools ===&lt;br /&gt;
&lt;br /&gt;
The following modules are useful for calculating annotation statistics given a set of mapped reads.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfAnnotationCoverage ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate annotation coverage. Sample a set of mapped reads and determine the fraction of transcripts (specified in file.annotation) that have at least &amp;lt;coverageFactor&amp;gt;-times uniform coverage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfAnnotationCoverage &amp;lt;file.annotation&amp;gt; &amp;lt;numTotalReads&amp;gt; &amp;lt;numReadsToSample&amp;gt; &amp;lt;coverageFactor&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Reports the fraction of transcripts that have at least &amp;lt;coverageFactor&amp;gt;-times uniform coverage to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - &lt;br /&gt;
** numTotalReads - total number of reads in the [[#MRF|MRF]] input file&lt;br /&gt;
** numReadsToSample - number of reads to sample from the [[#MRF|MRF]] input file&lt;br /&gt;
** coverageFactor - minimum level of uniform coverage required across a transcript &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;
==== mrfMappingBias ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate mapping bias for a given annotation set. Aggregates mapped reads that overlap with transcripts (specified in file.annotation) and&lt;br /&gt;
outputs the counts over a standardized transcript (divided into 100 equally sized bins) where 0 represents the 5&#039; end of the transcript and&lt;br /&gt;
1 denotes the 3&#039; end of the transcripts. This analysis is done in a strand specific way. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfMappingBias &amp;lt;file.annotation&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs the number of mapped reads for each bin of the standardized transcript to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]]  format (each line represents one transcript) &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;
=== MRF selection utilities ===&lt;br /&gt;
&lt;br /&gt;
The following utilities are helpful to select subsets of an [[#MRF|MRF]] file. It should be noted that these utilities operate on &#039;&#039;existing&#039;&#039; MRF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfSampler ====&lt;br /&gt;
&lt;br /&gt;
Randomly select a subset of [[#MRF|MRF]] entries.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSampler &amp;lt;proportionOfReadsToSample&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** proportionOfReadsToSample - fraction of reads to sample (on average)&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;
==== mrfSelectRegion ====&lt;br /&gt;
&lt;br /&gt;
Select reads that overlap with a specified genomic region.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSelectRegion &amp;lt;targetName:targetStart-targetEnd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** targetName:targetStart-targetEnd - region of interest&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;
==== mrfSelectSpliced ====&lt;br /&gt;
&lt;br /&gt;
Select reads that span a splice junction.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSelectSpliced&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: The purpose of mrfSelectSpliced is to extract mapped reads that align to a splice junction from an &#039;&#039;&#039;existing MRF file&#039;&#039;&#039;. It is important to note that this utility is not used to convert the output of a specific mapping program.   &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfSubsetByTargetName ====&lt;br /&gt;
&lt;br /&gt;
Split up an [[#MRF|MRF]] file by chromosome.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSubsetByTargetName &amp;lt;prefix&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF\MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs a separate [[#MRF|MRF]] file for each chromosome using the following naming convention: &amp;lt;prefix&amp;gt;_chrXXX.mrf.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - prefix used for the output files.&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;
==== mrfSelectAnnotated ==== &lt;br /&gt;
&lt;br /&gt;
Module to select a subset of reads that overlap with a specified annotation set. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSelectAnnotated &amp;lt;file.annotation&amp;gt; &amp;lt;include|exclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (one transcript per line).&lt;br /&gt;
** &amp;lt; include | exclude &amp;gt; - include: report reads that overlap with &#039;&#039;exonic&#039;&#039; regions of the annotation set; exclude: report reads that do not overlap with &#039;&#039;exonic&#039;&#039; regions of the annotation set&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;
==== mrfRegionCount ==== &lt;br /&gt;
&lt;br /&gt;
Module to count the total number of reads in a specified region.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  mrfRegionCount &amp;lt;targetName:targetStart-targetEnd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs  the total number of reads in a specified region to STDOUT.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** targetName:targetStart-targetEnd, specifies the region of interest &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;
=== Auxiliary utilities ===&lt;br /&gt;
&lt;br /&gt;
This section includes various data format conversion utilities.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== bed2interval ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#BED|BED]] format into [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bed2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#BED|BED]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2bed ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#Interval|Interval]] format into [[#BED|BED]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2bed&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#Interval|Interval]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data in [[#BED|BED]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2gff ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#Interval|Interval]] format into [[#GFF|GFF]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2gff &amp;lt;trackName&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#Interval|Interval]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data in [[#GFF|GFF]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** trackName - track name used in the [[#GFF|GFF]] 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;
==== gff2interval ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#GFF|GFF]] format into [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gff2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#GFF|GFF]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== export2fastq ====&lt;br /&gt;
&lt;br /&gt;
Module to generate FASTQ sequences from an ELAND export file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 export2fastq &lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes an ELAND export file from STDIN&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTQ 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrf2sam ==== &lt;br /&gt;
&lt;br /&gt;
Module to convert [[#MRF|MRF]] to [[#SAM|SAM]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrf2sam&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#SAM|SAM]] 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;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=RSEQtools&amp;diff=1768</id>
		<title>RSEQtools</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=RSEQtools&amp;diff=1768"/>
		<updated>2011-11-03T11:06:06Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* singleExport2mrf */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/rnaseq/rseqtools &#039;&#039;&#039;RSEQtools 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;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The advent of next-generation sequencing for functional genomics has given rise to quantities of sequence information that are often so large that they are difficult to handle.  Moreover, sequence reads from a specific individual can contain sufficient information to potentially identify that person, raising significant privacy concerns.  In order to address these issues we have developed the Mapped Read Format (MRF), a compact data summary format for both short and long read alignments that enables the anonymization of confi-dential sequence information, while allowing one to still carry out many functional genomics studies.  We have developed a suite of tools that uses this format for the analysis of RNA-Seq experiments.  RSEQtools consists of a set of modules that perform common tasks such as calculating gene expression values, generating signal tracks of mapped reads, and segmenting that signal into actively transcribed regions.  In addition to the anonymization afforded by this format it also facilitates the decoupling of the alignment of reads from downstream analyses.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Citation ==&lt;br /&gt;
&lt;br /&gt;
Lukas Habegger*, Andrea Sboner*, Tara A. Gianoulis, Joel Rozowsky, Ashish Agarwal, Michael Snyder, Mark Gerstein. &#039;&#039;&#039;RSEQtools: A modular framework to analyze RNA-Seq data using compact, anonymized data summaries&#039;&#039;&#039;. [http://bioinformatics.oxfordjournals.org/cgi/content/abstract/btq643?ijkey=GSZOpzLAEOqJtJ4&amp;amp;keytype=ref &amp;lt;i&amp;gt;Bioinformatics&amp;lt;/i&amp;gt;] 2010, &lt;br /&gt;
doi: 10.1093/bioinformatics/btq643&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The following sections provide documenation for the modules that are part of RSEQtools (http://rseqtools.gersteinlab.org/).  This documentation is intended for the end-users and can also be found at http://info.gersteinlab.org/RSEQtools.  &lt;br /&gt;
&#039;&#039;&#039;RSEQtools is implemented in C&#039;&#039;&#039; and uses a general C library called BIOS. &lt;br /&gt;
&lt;br /&gt;
The full &#039;&#039;&#039;documentation for developers&#039;&#039;&#039; can be found here:&lt;br /&gt;
* RSEQtools: http://archive.gersteinlab.org/proj/rnaseq/doc/mrf/&lt;br /&gt;
* BIOS: http://archive.gersteinlab.org/proj/rnaseq/doc/bios/&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Data formats ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
=== Mapped Read Format (MRF) ===&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;u&amp;gt;M&amp;lt;/u&amp;gt;apped &amp;lt;u&amp;gt;R&amp;lt;/u&amp;gt;ead &amp;lt;u&amp;gt;F&amp;lt;/u&amp;gt;ormat (MRF) flat file consists of &#039;&#039;&#039;three&#039;&#039;&#039; components and this format is closely associated with the software components of [http://rseqtools.gersteinlab.org RSEQtools]&lt;br /&gt;
&lt;br /&gt;
 1. Comment lines. Comment lines are optional and start with a &#039;#&#039; character.&lt;br /&gt;
 2. Header line. The header line is required and specifies the type of each column.&lt;br /&gt;
 3. Mapped reads. Each read (single-end or paired-end) is represented by on line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Required&#039;&#039;&#039; column:&lt;br /&gt;
&lt;br /&gt;
 * AlignmentBlocks, each alignment block must contain the following attributes: TargetName:Strand:TargetStart:TargetEnd:QueryStart:QueryEnd&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Optional&#039;&#039; columns:&lt;br /&gt;
&lt;br /&gt;
 * Sequence&lt;br /&gt;
 * QualityScores&lt;br /&gt;
 * QueryId&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Comments&lt;br /&gt;
# Required field: Blocks [TargetName:Strand:TargetStart:TargetEnd:QueryStart:QueryEnd]&lt;br /&gt;
# Optional fields: Sequence,QualityScores,QueryId&lt;br /&gt;
AlignmentBlocks&lt;br /&gt;
chr1:+:2001:2050:1:50&lt;br /&gt;
chr1:+:2001:2025:1:25,chr1:+:3001:3025:26:50&lt;br /&gt;
chr2:-:3001:3051:1:51|chr11:+:4001:4051:1:51&lt;br /&gt;
chr2:-:6021:6050:1:30,chr2:-:7031:7051:31:51|chr11:+:4001:4051:1:51&lt;br /&gt;
contigA:+:5001:5200:1:200,contigB:-:1200:1400:200:400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
 * Paired-end reads are separated by ‘|’&lt;br /&gt;
 * Alignment blocks are separated by ‘,’&lt;br /&gt;
 * Features of a block are separated by ‘:’&lt;br /&gt;
 * Columns are tab-delimited&lt;br /&gt;
 * Columns can be arranged in any order&lt;br /&gt;
 * Coordinates are &#039;&#039;&#039;one-based&#039;&#039;&#039; and &#039;&#039;&#039;closed (inclusive)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use MRF for confidential data&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It is straightforward to use MRF to separate the confidential information, i.e. the sequences, from the alignment data. The MRF file can be split in 2 files: one file can include &#039;&#039;AlignmentBlocks&#039;&#039; and &#039;&#039;QueryID&#039;&#039;, whereas a second file would can contain &#039;&#039;Sequence&#039;&#039; and &#039;&#039;QueryID&#039;&#039;. From a practical viewpoint it is also easy to create these two files.&lt;br /&gt;
&lt;br /&gt;
Assuming we have the columns AlignmentBlocks, Sequence, and QueryID as column 1, 2, and 3, respectively:&lt;br /&gt;
 $ cut -f1,3 file.mrf &amp;gt; alignments.mrf&lt;br /&gt;
 $ cut -f2,3 file.mrf &amp;gt; sequences.mrf&lt;br /&gt;
&lt;br /&gt;
* alignments.mrf would contain the alignment data and the query ID; it can be freely shared since it does not include confidential information;&lt;br /&gt;
* sequences.mrf would contain the sequence data; which, potentially, could be used to identify an individual and thus may be subjected to more stringent rules.&lt;br /&gt;
&amp;lt;br&amp;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 &#039;&#039;&#039;eight&#039;&#039;&#039; 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 [http://homes.gersteinlab.org/people/lh372/SOFT/bios/index.html BIOS]. 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;
Example file:&lt;br /&gt;
&lt;br /&gt;
 uc001aaw.1      chr1    +       357521  358460  1       357521  358460&lt;br /&gt;
 uc001aax.1      chr1    +       410068  411702  3       410068,410854,411258    410159,411121,411702&lt;br /&gt;
 uc001aay.1      chr1    -       552622  554252  3       552622,553203,554161    553066,553466,554252&lt;br /&gt;
 uc001aaz.1      chr1    +       556324  557910  1       556324  557910&lt;br /&gt;
 uc001aba.1      chr1    +       558011  558705  1       558011  558705  &lt;br /&gt;
&lt;br /&gt;
In this example the intervals represent a transcripts, while the sub-intervals denote exons.&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;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== BED ===&lt;br /&gt;
&lt;br /&gt;
The BED format is used to represent contiguous genomic regions. It consists of &#039;&#039;&#039;three&#039;&#039;&#039; required columns (tab-delimited).&lt;br /&gt;
&lt;br /&gt;
 1.   Chromosome&lt;br /&gt;
 2.   Start&lt;br /&gt;
 3.   End &lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 chr1  1000  5000&lt;br /&gt;
 chr3  500   600&lt;br /&gt;
 chrX  4000  4250&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/FAQ/FAQformat.html#format1 UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the BED 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;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== BedGraph ===&lt;br /&gt;
&lt;br /&gt;
The BedGraph format allows display of continuous-valued data in track format. This display type is useful for probability scores and transcriptome data. This track type is similar to the wiggle (WIG) format, but unlike the wiggle format, data exported in the bedGraph format are preserved in their original state.  It consists of &#039;&#039;&#039;four&#039;&#039;&#039; required columns (tab-delimited).&lt;br /&gt;
&lt;br /&gt;
 1.   Chromosome&lt;br /&gt;
 2.   Start&lt;br /&gt;
 3.   End &lt;br /&gt;
 4.   Value&lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 chr1  1000   5000   12.3 &lt;br /&gt;
 chr3  500     600      3&lt;br /&gt;
 chrX  4000  4250    54&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [ftp://hgdownload.cse.ucsc.edu/apache/htdocs-rr/goldenPath/help/bedgraph.html UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the BedGraph 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;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== WIG ===&lt;br /&gt;
&lt;br /&gt;
The WIG format is used to represent dense and continuous genomic data. There are two options for formatting wiggle data: &#039;&#039;&#039;variableStep&#039;&#039;&#039; and &#039;&#039;&#039;fixedStep&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In the context of [http://rseqtools.gersteinlab.org/ RSEQtools], the variable step formatting is used and only positions with &#039;&#039;&#039;non-zero values&#039;&#039;&#039; are represented. &lt;br /&gt;
&lt;br /&gt;
Example file:&lt;br /&gt;
&lt;br /&gt;
 track type=wiggle_0 name=&amp;quot;test_chr22&amp;quot;&lt;br /&gt;
 variableStep chrom=chr22 span=1&lt;br /&gt;
 17535712	1.67&lt;br /&gt;
 17535713	1.67&lt;br /&gt;
 17535714	1.67&lt;br /&gt;
 17535715	1.67&lt;br /&gt;
 17535716	1.67&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/goldenPath/help/wiggle.html UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the WIG format are &#039;&#039;&#039;zero-based&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== GFF ===&lt;br /&gt;
&lt;br /&gt;
The GFF format is used to describe genes and other features. It consists of &#039;&#039;&#039;nine&#039;&#039;&#039; tab-delimited columns.&lt;br /&gt;
&lt;br /&gt;
 1. Name &lt;br /&gt;
 2. Source &lt;br /&gt;
 3. Feature&lt;br /&gt;
 4. Start&lt;br /&gt;
 5. End &lt;br /&gt;
 6. Score&lt;br /&gt;
 7. Strand&lt;br /&gt;
 8. Frame&lt;br /&gt;
 9. Group &lt;br /&gt;
&lt;br /&gt;
Example file: &lt;br /&gt;
&lt;br /&gt;
 browser hide all&lt;br /&gt;
 track name=&amp;quot;chr11&amp;quot; visibility=2&lt;br /&gt;
 chr11	MRF	feature	46772115	46772161	.	-	.	TG5&lt;br /&gt;
 chr11	MRF	feature	46772668	46772695	.	-	.	TG5&lt;br /&gt;
 chr11	MRF	feature	118521207	118521252	.	+	.	TG21&lt;br /&gt;
 chr11	MRF	feature	118526315	118526343	.	+	.	TG21&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/FAQ/FAQformat.html#format3 UCSC]&lt;br /&gt;
&lt;br /&gt;
Note: the coordinates in the BED format are &#039;&#039;&#039;one-based&#039;&#039;&#039; and the &#039;&#039;&#039;end coordinate is included&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
=== PSL ===&lt;br /&gt;
&lt;br /&gt;
The PSL format represents alignments from the BLAT alignment program.&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://genome.ucsc.edu/FAQ/FAQformat.html#format2 UCSC]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
=== SAM ===&lt;br /&gt;
&lt;br /&gt;
SAM (Sequence Alignment/Map) format is a generic format for storing large nucleotide sequence alignments.&lt;br /&gt;
&lt;br /&gt;
Full documentation can be found at [http://samtools.sourceforge.net/ SAMtools]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of programs ==&lt;br /&gt;
&lt;br /&gt;
This is the documentation for the end-users. The full documentation for developers can be found [http://archive.gersteinlab.org/proj/rnaseq/doc/mrf/files.html here].&lt;br /&gt;
&lt;br /&gt;
=== Format conversion utilities ===&lt;br /&gt;
&lt;br /&gt;
The following programs convert the output from various alignment programs into [[#MRF|MRF]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== bowtie2mrf ====  &lt;br /&gt;
&lt;br /&gt;
bowtie2mrf converts read alignments from Bowtie into [[#MRF|MRF]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bowtie2mrf &amp;lt;genomic|junctions|paired&amp;gt; [-sequence] [-qualityScores] [-IDs]&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [http://bowtie-bio.sourceforge.net/manual.shtml#default-bowtie-output Bowtie output] from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** genomic -  convert single-end reads that were aligned against a genomic reference sequence using Bowtie&lt;br /&gt;
** junctions - convert single-end reads that were aligned against a splice junction library (generated by &#039;&#039;&#039;createSpliceJunctionLibrary&#039;&#039;&#039;) using Bowtie&lt;br /&gt;
** paired - convert paired-end reads that were aligned using Bowtie&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** sequence - include the read sequence in the [[#MRF|MRF]] output&lt;br /&gt;
** qualityScores - include the quality scores of the read in the [[#MRF|MRF]] output&lt;br /&gt;
** IDs - include the read IDs in the [[#MRF|MRF]] output&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: bowtie2mrf assumes that bowtie was run using the default option for the -B parameter&lt;br /&gt;
 -B/--offbase &amp;lt;int&amp;gt; leftmost ref offset = &amp;lt;int&amp;gt; in bowtie output (default: 0)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: If a splice junction library is used during the alignment step, it is important that the splice junction library was generated by createSpliceJunctionLibrary.  Otherwise, bowtie2mrf will not be able to convert the splice junction coordinates correctly.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== psl2mrf ====&lt;br /&gt;
&lt;br /&gt;
psl2mrf converts read alignments from BLAT into [[#MRF|MRF]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 psl2mrf&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes BLAT alignments in [[#PSL|PSL]] format from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== singleExport2mrf ====&lt;br /&gt;
&lt;br /&gt;
singleExport2mrf converts single-end read alignments from ELAND (export file) into [[#MRF|MRF]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 singleExport2mrf&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes ELAND single-end alignments in export format from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: If a splice junction library is used during the alignment step, it is important that the splice junction library was generated by createSpliceJunctionLibrary and that its file name included &#039;splice&#039; or &#039;junction&#039;.  Otherwise, singleExport2mrf will not be able to convert the splice junction coordinates correctly.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== sam2mrf ====&lt;br /&gt;
&lt;br /&gt;
sam2mrf converts [[#SAM|SAM]] format into [[#MRF|MRF]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 sam2mrf&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#SAM|SAM]] format from STDIN&lt;br /&gt;
* Outputs: Reports [[#MRF|MRF]] 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;
Please note that for paired-end data, sam2mrf requires the mate pairs to be on subsequent lines. You may want to sort the [[#SAM|SAM]] file first.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;sort -r file.sam | sam2mrf &amp;gt; file.mrf &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Genome annotation tools ===&lt;br /&gt;
&lt;br /&gt;
The following tools are helpful in manipulating annotation files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== createSpliceJunctionLibrary ====&lt;br /&gt;
&lt;br /&gt;
This program is used to create a splice junction library from an annotation set. It creates all pair-wise splice junctions within a transcript.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 createSpliceJunctionLibrary &amp;lt;file.2bit&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;sizeExonOverlap&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports the slice junctions 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;
** sizeExonOverlap - defines the number of nucleotides included from each exon&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
Example output:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;chr1|12162|12612|65&lt;br /&gt;
 AGGCATAGGGGAAAGATTGGAGGAAAGATGAGTGAGAGCATCAACTTCTCTCACAACCTAGGCCAGTGTGTGGTGATGCCAGGCATGCCCTTCCCCAGCATCAGGTCTCCAGAGCTGCAGAAGACGACGG&lt;br /&gt;
 &amp;gt;chr1|12162|13220|65&lt;br /&gt;
 AGGCATAGGGGAAAGATTGGAGGAAAGATGAGTGAGAGCATCAACTTCTCTCACAACCTAGGCCAGCAGGGCCATCAGGCACCAAAGGGATTCTGCCAGCATAGTGCTCCTGGACCAGTGATACACCCGG&lt;br /&gt;
 &amp;gt;chr1|12656|13220|65&lt;br /&gt;
 CAGAGCTGCAGAAGACGACGGCCGACTTGGATCACACTCTTGTGAGTGTCCCCAGTGTTGCAGAGGCAGGGCCATCAGGCACCAAAGGGATTCTGCCAGCATAGTGCTCCTGGACCAGTGATACACCCGG&lt;br /&gt;
&lt;br /&gt;
The identifier for each splice junction consists of &#039;&#039;&#039;four&#039;&#039;&#039; items:&lt;br /&gt;
&lt;br /&gt;
 1.   Chromosome&lt;br /&gt;
 2.   Start position (with respect to the &amp;quot;+&amp;quot;, zero-based) of the splice junction within the first exon  &lt;br /&gt;
 3.   Start position (with respect to the &amp;quot;+&amp;quot;, zero-based) of the splice junction within the second exon  &lt;br /&gt;
 4.   Size of the exon overlap&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Internally the program uses &#039;&#039;twoBitToFa&#039;&#039; (part of BLAT package). Thus, the executable must be in 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;
==== mergeTranscripts ====&lt;br /&gt;
&lt;br /&gt;
Module to merge a set of transcripts from the same gene.&lt;br /&gt;
&lt;br /&gt;
Obtain unique exons from various transcript isoforms based on:&lt;br /&gt;
# longest isoform&lt;br /&gt;
# composite model (union of the exons from the different transcript isoforms)&lt;br /&gt;
# intersection (intersection of the exons of the different transcript isoforms)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
 mergeTranscripts &amp;lt;knownIsoforms.txt&amp;gt; &amp;lt;file.annotation&amp;gt; &amp;lt;longestIsoform|compositeModel|intersection&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Reports a new annotation set of merged transcripts in [[#Interval|Interval]] format &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** knownIsoforms.txt - file that determines which transcript isoforms belong together (see format below)&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (each line represents one transcript)&lt;br /&gt;
** &amp;lt; longestIsoform | compositeModel | intersection &amp;gt; - determines how transcript isoforms are selected/merged:&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&lt;br /&gt;
The file knownIsoforms.txt should have two columns (tab-delimited) and no header:&lt;br /&gt;
&lt;br /&gt;
 1. ID (int). Transcripts with the same id belong to the same gene.&lt;br /&gt;
 2. Name of the transcript.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 1  uc009vip.1&lt;br /&gt;
 1  uc001aaa.2&lt;br /&gt;
 2  uc009vis.1&lt;br /&gt;
 2  uc001aae.2&lt;br /&gt;
 2  uc009viu.1&lt;br /&gt;
 2  uc009vit.1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== interval2sequences ====&lt;br /&gt;
&lt;br /&gt;
Module to retrieve genomic/exonic sequences for an annotation set.&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;
&lt;br /&gt;
=== Gene expression analysis ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfQuantifier ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate expression values (RPKM). Given a set of mapped reads in MRF and an annotation set (representing exons, transcripts, or gene models) mrfQuantifier calculates an expression value for each annotation entry.  This is done by counting all the nucleotides from the reads that overlap with a given annotation entry.  Subsequently, this value is normalized per million mapped nucleotides and the length of the annotation item per kb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfQuantifier &amp;lt;file.annotation&amp;gt; &amp;lt;singleOverlap|multipleOverlap&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Reports the gene expression values to STDOUT in a two-column format (tab-delimited). The first column refers to the name of the annotated feature. The second column refers to the expression values (RPKM; read coverage normalized per million mapped nucleotides and the length of the annotation model per kb [see note below]). The output is sorted by the first column.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (gene expression measurements: one line per gene model; exon expression measurements: one line per exon). See [[#Interval|Interval]] for more details.&lt;br /&gt;
** &amp;lt; singleOverlap | multipleOverlap &amp;gt; - singleOverlap:  reads that overlap with multiple annotated features are ignored; multipleOverlap: reads that overlap with multiple annotated features are counted multiple times.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: All counts are performed at the nucleotide level. For example, if a read partially overlaps with an exon of a gene model, then only the overlapping nucleotides are counted (please refer to the figure below).  Therefore, the normalization is also done at the nucleotide level.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:mrfQuantifier.png|thumb|1000px|center|Determining overlaps between annotation entries and reads]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bgrQuantifier ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate expression values (RPKM) from a signal track in bedGraph (bgr) format. Given a signal track  and an annotation set (representing exons, transcripts, or gene models) bgrQuantifier calculates an expression value for each annotation entry.  This is done by counting all the nucleotides from the reads that overlap with a given annotation entry.  Subsequently, this value is normalized per million mapped nucleotides and the length of the annotation item per kb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bgrQuantifier &amp;lt;file.annotation&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#BedGraph|BedGraph]] file from STDIN.&lt;br /&gt;
* Outputs: Reports the gene expression values to STDOUT in a two-column format (tab-delimited). The first column refers to the name of the annotated feature. The second column refers to the expression values (RPKM; read coverage normalized per million mapped nucleotides and the length of the annotation model per kb [see note below]). The output is sorted by the first column.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (gene expression measurements: one line per gene model; exon expression measurements: one line per exon). See [[#Interval|Interval]] for more details.&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** None&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: All counts are performed at the nucleotide level. For example, if a read partially overlaps with an exon of a gene model, then only the overlapping nucleotides are counted (please refer to the figure below).  Therefore, the normalization is also done at the nucleotide level.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Visualization tools ===&lt;br /&gt;
&lt;br /&gt;
The following programs are useful for converting [[#MRF|MRF]] into data formats that can be viewed in a genome browser.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrf2wig ==== &lt;br /&gt;
&lt;br /&gt;
Generates signal track ([[#WIG|WIG]]) of mapped reads from a [[#MRF|MRF]] file. By default, the values in the WIG file are normalized by the total number of mapped reads per million. &lt;br /&gt;
Only positions with non-zero values are reported.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrf2wig &amp;lt;prefix&amp;gt; [doNotNormalize]&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Generates a [[#WIG|WIG]] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - specifies the prefix used to generate the output files. The following naming convention is used: prefix_chrXXX.wig&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** doNotNormailze - the counts are NOT normalized&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mrf2gff ==== &lt;br /&gt;
&lt;br /&gt;
Generates a [[#GFF|GFF]] file of mapped splice junction reads from a [[#MRF|MRF]] file. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;&lt;br /&gt;
 mrf2gff &amp;lt;prefix&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Generates a [[#GFF|GFF]] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - specifies the prefix used to generate the output files. The following naming convention is used: prefix_chrXXX.gff&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;
==== mrf2bgr ====&lt;br /&gt;
&lt;br /&gt;
Module to convert [[#MRF|MRF]] to [http://genome.ucsc.edu/goldenPath/help/bedgraph.html BedGraph]. Generates a [http://genome.ucsc.edu/goldenPath/help/bedgraph.html BedGraph], where the counts are normalized by the total number of mapped reads per million.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrf2bgr &amp;lt;prefix&amp;gt; [doNotNormalize]&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN.&lt;br /&gt;
* Outputs: Generates a [http://genome.ucsc.edu/goldenPath/help/bedgraph.html BedGraph] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - specifies the prefix used to generate the output files. The following naming convention is used: prefix_chrXXX.bgr&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** doNotNormailze - the counts are NOT normalized.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Segmentation of mapped reads ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== wigSegmenter ====&lt;br /&gt;
&lt;br /&gt;
Module to segment a [[#WIG|WIG]] signal track using the [http://www.ncbi.nlm.nih.gov/pubmed/15979196 maxGap-minRun algorithm]. The output is a set of transcriptionally active regions (TARs) in [[#BED|BED]] format.  This type of analysis is particularly useful in identifying novel transcribed regions such as non-coding RNAs.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 wigSegmenter &amp;lt;wigPrefix&amp;gt; &amp;lt;threshold&amp;gt; &amp;lt;maxGap&amp;gt; &amp;lt;minRun&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Generates a [[#BED|BED]] file for each chromosome occurring in the [[#MRF|MRF]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** wigPrefix - prefix used to generate the [[#WIG|WIG]] files using [[#mrf2wig|mrf2wig]] &lt;br /&gt;
** threshold - level at which the segmentation is performed&lt;br /&gt;
** maxGap - maximum number of consecutive positions that can have values less than the threshold  &lt;br /&gt;
** minRun - minimal length of a TAR&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;
==== bgrSegmenter ====&lt;br /&gt;
&lt;br /&gt;
Module to segment a [[#BedGraph|BedGraph]] signal track using the [http://www.ncbi.nlm.nih.gov/pubmed/15979196 maxGap-minRun algorithm]. The output is a set of transcriptionally active regions (TARs) in [[#BED|BED]] format.  This type of analysis is particularly useful in identifying novel transcribed regions such as non-coding RNAs.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bgrSegmenter &amp;lt;bgrPrefix&amp;gt; &amp;lt;threshold&amp;gt; &amp;lt;maxGap&amp;gt; &amp;lt;minRun&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: None&lt;br /&gt;
* Outputs: Generates a [[#BED|BED]] file for each chromosome occurring in the [[#BedGraph|BedGraph]] input file. &lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** bgrPrefix - prefix used to generate the [[#BedGraph|BedGraph]] files using [[#mrf2bgr|mrf2bgr]] &lt;br /&gt;
** threshold - level at which the segmentation is performed&lt;br /&gt;
** maxGap - maximum number of consecutive positions that can have values less than the threshold  &lt;br /&gt;
** minRun - minimal length of a TAR&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;
=== Annotation statistics tools ===&lt;br /&gt;
&lt;br /&gt;
The following modules are useful for calculating annotation statistics given a set of mapped reads.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfAnnotationCoverage ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate annotation coverage. Sample a set of mapped reads and determine the fraction of transcripts (specified in file.annotation) that have at least &amp;lt;coverageFactor&amp;gt;-times uniform coverage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfAnnotationCoverage &amp;lt;file.annotation&amp;gt; &amp;lt;numTotalReads&amp;gt; &amp;lt;numReadsToSample&amp;gt; &amp;lt;coverageFactor&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Reports the fraction of transcripts that have at least &amp;lt;coverageFactor&amp;gt;-times uniform coverage to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - &lt;br /&gt;
** numTotalReads - total number of reads in the [[#MRF|MRF]] input file&lt;br /&gt;
** numReadsToSample - number of reads to sample from the [[#MRF|MRF]] input file&lt;br /&gt;
** coverageFactor - minimum level of uniform coverage required across a transcript &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;
==== mrfMappingBias ====&lt;br /&gt;
&lt;br /&gt;
Module to calculate mapping bias for a given annotation set. Aggregates mapped reads that overlap with transcripts (specified in file.annotation) and&lt;br /&gt;
outputs the counts over a standardized transcript (divided into 100 equally sized bins) where 0 represents the 5&#039; end of the transcript and&lt;br /&gt;
1 denotes the 3&#039; end of the transcripts. This analysis is done in a strand specific way. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfMappingBias &amp;lt;file.annotation&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs the number of mapped reads for each bin of the standardized transcript to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]]  format (each line represents one transcript) &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;
=== MRF selection utilities ===&lt;br /&gt;
&lt;br /&gt;
The following utilities are helpful to select subsets of an [[#MRF|MRF]] file. It should be noted that these utilities operate on &#039;&#039;existing&#039;&#039; MRF files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfSampler ====&lt;br /&gt;
&lt;br /&gt;
Randomly select a subset of [[#MRF|MRF]] entries.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSampler &amp;lt;proportionOfReadsToSample&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** proportionOfReadsToSample - fraction of reads to sample (on average)&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;
==== mrfSelectRegion ====&lt;br /&gt;
&lt;br /&gt;
Select reads that overlap with a specified genomic region.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSelectRegion &amp;lt;targetName:targetStart-targetEnd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** targetName:targetStart-targetEnd - region of interest&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;
==== mrfSelectSpliced ====&lt;br /&gt;
&lt;br /&gt;
Select reads that span a splice junction.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSelectSpliced&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: The purpose of mrfSelectSpliced is to extract mapped reads that align to a splice junction from an &#039;&#039;&#039;existing MRF file&#039;&#039;&#039;. It is important to note that this utility is not used to convert the output of a specific mapping program.   &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrfSubsetByTargetName ====&lt;br /&gt;
&lt;br /&gt;
Split up an [[#MRF|MRF]] file by chromosome.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSubsetByTargetName &amp;lt;prefix&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF\MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs a separate [[#MRF|MRF]] file for each chromosome using the following naming convention: &amp;lt;prefix&amp;gt;_chrXXX.mrf.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix - prefix used for the output files.&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;
==== mrfSelectAnnotated ==== &lt;br /&gt;
&lt;br /&gt;
Module to select a subset of reads that overlap with a specified annotation set. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrfSelectAnnotated &amp;lt;file.annotation&amp;gt; &amp;lt;include|exclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#MRF|MRF]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** file.annotation - annotation set in [[#Interval|Interval]] format (one transcript per line).&lt;br /&gt;
** &amp;lt; include | exclude &amp;gt; - include: report reads that overlap with &#039;&#039;exonic&#039;&#039; regions of the annotation set; exclude: report reads that do not overlap with &#039;&#039;exonic&#039;&#039; regions of the annotation set&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;
==== mrfRegionCount ==== &lt;br /&gt;
&lt;br /&gt;
Module to count the total number of reads in a specified region.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  mrfRegionCount &amp;lt;targetName:targetStart-targetEnd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs  the total number of reads in a specified region to STDOUT.&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** targetName:targetStart-targetEnd, specifies the region of interest &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;
=== Auxiliary utilities ===&lt;br /&gt;
&lt;br /&gt;
This section includes various data format conversion utilities.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== bed2interval ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#BED|BED]] format into [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bed2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#BED|BED]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2bed ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#Interval|Interval]] format into [[#BED|BED]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2bed&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#Interval|Interval]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data in [[#BED|BED]] 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== interval2gff ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#Interval|Interval]] format into [[#GFF|GFF]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 interval2gff &amp;lt;trackName&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#Interval|Interval]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data in [[#GFF|GFF]] format to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** trackName - track name used in the [[#GFF|GFF]] 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;
==== gff2interval ====&lt;br /&gt;
&lt;br /&gt;
Utility to convert [[#GFF|GFF]] format into [[#Interval|Interval]] format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gff2interval&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes data in [[#GFF|GFF]] format from STDIN&lt;br /&gt;
* Outputs: Outputs data 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== export2fastq ====&lt;br /&gt;
&lt;br /&gt;
Module to generate FASTQ sequences from an ELAND export file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 export2fastq &lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes an ELAND export file from STDIN&lt;br /&gt;
* Outputs: Reports the extracted sequences in FASTQ 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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
==== mrf2sam ==== &lt;br /&gt;
&lt;br /&gt;
Module to convert [[#MRF|MRF]] to [[#SAM|SAM]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 mrf2sam&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes [[#MRF|MRF]] from STDIN&lt;br /&gt;
* Outputs: Outputs [[#SAM|SAM]] 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;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Test_Datasets&amp;diff=1495</id>
		<title>FusionSeq Test Datasets</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Test_Datasets&amp;diff=1495"/>
		<updated>2011-08-07T09:38:40Z</updated>

		<summary type="html">&lt;p&gt;Asboner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
Two datasets are available to test FusionSeq: NCIH660 and GM12878 cell-line data. These datasets are part of FusionSeq dataset, published in [http://genomebiology.com/2010/11/10/R104/abstract Genome Biology, 2010;11:R104]. Please note that the full set, including cancer tissue samples, is available at [http://www.ncbi.nlm.nih.gov/gap?term=phs000311.v1.p1 dbGaP (accession phs000311.v1.p1)], where confidentiality issues are taken care of properly. We here provide the cell-line data in different formats:&lt;br /&gt;
&lt;br /&gt;
==[[RSEQtools#Mapped_Read_Format (MRF)|Mapped Read Format (MRF)]]==&lt;br /&gt;
This is the format required by FusionSeq. [http://rseqtools.gersteinlab.org/ RSEQtools] provide several conversion tools to generate MRF files from the most popular alignment tools.&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/fusionseq/datasets/GM12878.mrf.gz GM12878.mrf.gz] &lt;br /&gt;
* [http://rnaseq.gersteinlab.org/fusionseq/datasets/NCIH660.mrf.gz NCIH660.mrf.gz] &lt;br /&gt;
Please read &#039;[[How to execute FusionSeq]]&#039; section for more detail on how to use these files.&lt;br /&gt;
&lt;br /&gt;
==Auxillliary data==&lt;br /&gt;
In order to properly score the fusion candidate, gfrConfidenceValues requires an external &#039;&#039;&#039;meta&#039;&#039;&#039; file.&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/fusionseq/datasets/GM12878.meta GM12878.meta]&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/fusionseq/datasets/NCIH660.meta NCIH660.meta]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that the *meta files are tab delimited. &lt;br /&gt;
&lt;br /&gt;
The junction sequence identifier module requires to align all reads against the junction library. All the reads, including those that did not map, should be used to find as much support for the breakpoint junction.&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/fusionseq/datasets/GM12878_allReads.txt.gz GM12878_allReads.txt.gz]&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/fusionseq/datasets/NCIH660_allReads.txt.gz NCIH660_allReads.txt.gz]&lt;br /&gt;
Please read &#039;[[How to execute FusionSeq]]&#039; section for more detail on how to use these files.&lt;br /&gt;
&lt;br /&gt;
[[FusionSeq_List of programs#gfrBlacklistFilter|gfrBlackListFilter]] allows you to specify a list of candidates to be excluded. The tab-delimited file includes only the gene symbols of the two genes, such as:&lt;br /&gt;
 LOC388160       LOC388161&lt;br /&gt;
 LOC388161       LOC388161&lt;br /&gt;
&lt;br /&gt;
An example of a blacklist file can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/datasets/blackList.txt here].&lt;br /&gt;
&lt;br /&gt;
==FASTQ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/FASTQ_format FASTQ] is a text-based format for storing both a biological sequence and its corresponding quality scores. Each tarball includes two FASTQ files, one for each end.&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/fusionseq/datasets/GM12878.fastq.tar.gz GM12878.fastq.tar.gz] &lt;br /&gt;
* [http://rnaseq.gersteinlab.org/fusionseq/datasets/NCIH660.fastq.tar.gz NCIH660.fastq.tar.gz] &lt;br /&gt;
&lt;br /&gt;
==BAM==&lt;br /&gt;
[http://samtools.sourceforge.net/ BAM] format is the binary compressed format of [http://samtools.sourceforge.net/ SAM (Sequence Alignment/Map)]. We provide both BAM files and their corresponding index files (*.bai) so that they can be viewed with the [http://www.broadinstitute.org/igv/ Integrative Genome Viewer (IGV)] a high-performance visualization tool for interactive exploration of large, integrated datasets from the Broad Institute.&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/fusionseq/datasets/GM12878.bam http://rnaseq.gersteinlab.org/fusionseq/datasets/GM12878.bam]&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/fusionseq/datasets/GM12878.bam.bai http://rnaseq.gersteinlab.org/fusionseq/datasets/GM12878.bam.bai]&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/fusionseq/datasets/NCIH660.bam http://rnaseq.gersteinlab.org/fusionseq/datasets/NCIH660.bam]&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/fusionseq/datasets/NCIH660.bam.bai http://rnaseq.gersteinlab.org/fusionseq/datasets/NCIH660.bam.bai]&lt;br /&gt;
You can download the files locally or load them into IGV directly. See instructions at http://www.broadinstitute.org/igv/.&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_FAQ&amp;diff=1430</id>
		<title>FusionSeq FAQ</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_FAQ&amp;diff=1430"/>
		<updated>2011-07-14T19:22:42Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* gfrConfidenceValues: Cannot find the .meta file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
=General Questions=&lt;br /&gt;
==Does FusionSeq work with &#039;&#039;my favorite&#039;&#039; alignment tool?==&lt;br /&gt;
The format of the paired-end reads that is &amp;quot;understood&amp;quot; by FusionSeq is [[RSEQtools#Mapped_Read_Format|Mapped Read Format (MRF)]]. We provide several conversion tools from most common alignment programs and formats, including SAM/BAM, to represent mapped reads using MRF. Please take a look at [http://rseqtools.gersteinlab.org/ RSEQtools] for more information, and specifically to: [[RSEQtools#Format_conversion_utilities|Format conversion utilities]].&lt;br /&gt;
&lt;br /&gt;
==Does FusionSeq work with colorspace paired-end reads?==&lt;br /&gt;
FusionSeq has been developed to be as much independent as possible from the sequencing technology and the alignment tool. However, extensive testing was conducted on Illumina Genome Analyzer II platform only.&lt;br /&gt;
&lt;br /&gt;
==Where can I obtain the annotation data for hg19?==&lt;br /&gt;
Annotation data for hg19 can be found [[FusionSeq_Requirements#Human_genome_GRCh37.2Fhg19|here]].&lt;br /&gt;
&lt;br /&gt;
==Can I use FusionSeq with &#039;&#039;my favorite species&#039;&#039;?==&lt;br /&gt;
In principle, you can run FusionSeq using any paired-end RNA-Seq data. However, you would need to provide the corresponding data that is currently used for human, i.e.:&lt;br /&gt;
# a genome sequence, in 2bit format&lt;br /&gt;
# a gene annotation set in interval format; including &#039;&#039;composite&#039;&#039; models of genes&lt;br /&gt;
# the sequences of the composite models in the gene annotation set&lt;br /&gt;
# a mapping between your gene annotation and TreeFam (optional, used by gfrLargeScaleHomologyFilter)&lt;br /&gt;
# a list of the repetitive regions, in interval format (optional, used by gfrRepeatMaskerFilter)&lt;br /&gt;
# a ribosomal sequence library in 2bit format (optional, used by gfrRibosomalFilter)&lt;br /&gt;
# the mapping between your gene annotation and other descriptive information, e.g. gene symbols, descriptions, etc. (optional, used by gfrAddInfo)&lt;br /&gt;
&lt;br /&gt;
==Where can I find some data sets to test FusionSeq?==&lt;br /&gt;
Please find some test data sets [[FusionSeq_Test_Datasets|here]].&lt;br /&gt;
&lt;br /&gt;
==Is there a demo version of FusionSeq?==&lt;br /&gt;
A demo version of the web-interface of FusionSeq is available [http://dynamic.gersteinlab.org/people/asboner/FusionSeq/geneFusions_cgi here]. You can access the results described in the paper, by typing the sample ID (e.g. 106_T, 1700_D, etc.).&lt;br /&gt;
&lt;br /&gt;
==Where can I find more information?==&lt;br /&gt;
The most up-to-date user documentation for FusionSeq is available [[FusionSeq|here]]. If you look for the developer&#039;s documentation, you can find it [http://archive.gersteinlab.org/proj/rnaseq/fusionseq/documentation/index.html here].&lt;br /&gt;
&lt;br /&gt;
==The BOWTIE_INDEXES directory is used for reference indexes as well as for temporary index files. However, I have a centralized repository of indexed genomes and cannot create the temporary files in that directory==&lt;br /&gt;
A workaround of this issue would be to create a local directory where one has write permission. This would solve the problem of generating temporary index files when running the junction-sequence identifier module. To also have the indexed genome and transcriptome in the same folder, one could link them symbolically, for example:&lt;br /&gt;
 $ cd /path/to/local/folder/&lt;br /&gt;
 $ ln -s /path/to/centralized/repository/hg18_nh/ .&lt;br /&gt;
 $ ln -s /path/to/centralized/repository/hg18_knownGeneAnnotationTranscriptCompositeModel/ .&lt;br /&gt;
&lt;br /&gt;
Now, BOWTIE_INDEXES in geneFusionConfig.h should point to /path/to/local/folder/ where the user can generate temporary files:&lt;br /&gt;
 #define BOWTIE_INDEXES /path/to/local/folder&lt;br /&gt;
&lt;br /&gt;
==How can I cite FusionSeq?==&lt;br /&gt;
Please cite this publication:&lt;br /&gt;
* Sboner A, Habegger L, Pflueger D, Terry S, Chen DZ, Rozowsky JS, Tewari AK, Kitabayashi N, Moss BJ, Chee MS, Demichelis F, Rubin MA, Gerstein MB. &#039;&#039;&#039;FusionSeq: a modular framework for finding gene fusions by analyzing Paired-End RNA-Sequencing data&#039;&#039;&#039;. &#039;&#039;Genome Biol&#039;&#039; 21 Oct. 2010; &#039;&#039;&#039;11&#039;&#039;&#039;:R104  [http://dx.doi.org/10.1186/gb-2010-11-10-r104|doi:10.1186/gb-2010-11-10-r104]&lt;br /&gt;
&lt;br /&gt;
=Compilation troubleshooting=&lt;br /&gt;
&lt;br /&gt;
==Where can I find the BIOS library, required for FusionSeq?==&lt;br /&gt;
As described in [[Requirements]], the [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] library can be downloaded as part of [http://rseqtools.gersteinlab.org RSEQtools], a computational framework to analyze RNA-Seq data, or it can be downloaded as a separate component from [http://rnaseq.gersteinlab.org/fusionseq/tarballs/bios_0.9.0.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
==TROOT.h: No such file or directory==&lt;br /&gt;
This error occurs because the compiler does not find TROOT.h file. This file is part of [http://root.cern.ch/drupal/ ROOT], a framework for mathematical and statistical analysis. If you have installed [http://root.cern.ch/drupal/ ROOT], please make sure that you have defined ROOTSYS as the path to the ROOT folder and added it to your PATH:&lt;br /&gt;
 $ export ROOTSYS=/path/to/ROOT/ &lt;br /&gt;
 $ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
Please also see [[Installation_and_Configuration_of_FusionSeq#Installing_and_configuring_ROOT|Installing and configuring ROOT]] for more details.&lt;br /&gt;
&lt;br /&gt;
=Running issues=&lt;br /&gt;
==FusionSeq does not find the annotation datasets. However, geneFusionConfig.h specifies their correct location and the files are present.==&lt;br /&gt;
This error:&lt;br /&gt;
 ls_createFromFile    &#039;$HOME/path/to/data/annotation_data.txt&#039;&lt;br /&gt;
occurs because environmental variable, such as $HOME, are not interpreted. Please use full path names in geneFusionConfig.h to specify directory locations.&lt;br /&gt;
&lt;br /&gt;
==I followed the instructions, but I still get many WARNINGs. Is this expected?==&lt;br /&gt;
Yes, every program in FusionSeq provides some logging information. We recommend to capture the log data by redirecting STDERR (e.g. &#039;2&amp;gt; fusionseq.log&#039;).&lt;br /&gt;
&lt;br /&gt;
==geneFusions: Segmentation Fault==&lt;br /&gt;
There a number of reasons why one gets this error. One possibility is the lack of the sequences in the MRF file. Although MRF does not require the inclusion of sequences to be valid, sequences are indeed required by geneFusions. Please ensure that sequences are present in the MRF file.&lt;br /&gt;
&lt;br /&gt;
==gfrConfidenceValues: Cannot find the .meta file==&lt;br /&gt;
The .meta file is required to run [[FusionSeq_List_of_programs#gfrConfidenceValues|gfrConfidenceValues]]. This is a tab-delimited file including the number of mapped reads. A simple way to generate this file is to run:&lt;br /&gt;
 $ MAPPED=$(grep -v &amp;quot;AlignmentBlock&amp;quot; file.mrf | grep -v &amp;quot;#&amp;quot; | wc -l); printf &amp;quot;Mapped_reads\t%d\n&amp;quot; $MAPPED &amp;gt; file.meta&lt;br /&gt;
&lt;br /&gt;
The final files should look like:&lt;br /&gt;
 Mapped_reads       123456789&lt;br /&gt;
&lt;br /&gt;
==Paired-end reads and bowtie: I aligned each end separately. How do I convert the alignment file to MRF?==&lt;br /&gt;
To convert bowtie alignment into MRF when ends are aligned separately, we require the two ends to be on subsequent lines. This could be partially achieved by concatenating and sorting the two alignment files, e.g. cat end_1.bowtie end_2.bowtie | sort  &amp;gt; alignment.bowtie. However, in some cases, only one end is mapped, thus creating &amp;quot;singletons&amp;quot; in the alignment file, where only one end is reported. Since there have been many requests regarding this issue, we decided to share an &amp;quot;internal&amp;quot; utility: bowtiePairedFix. Here you can download the binary file:&lt;br /&gt;
&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/rnaseq/fusionseq/tarballs/bowtiePairedFix.linux64 bowtiePairedFix (GNU/Linux x86_64)]&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/rnaseq/fusionseq/tarballs/bowtiePairedFix.MacOs.10.6.7 bowtiePairedFix (MacOs 10.6.7)]&lt;br /&gt;
The conversion command is:&lt;br /&gt;
 cat end_1.bowtie end_2.bowtie | sort | bowtiePairedFix | bowtie2mrf paired -sequence &amp;gt; data.mrf 2&amp;gt; data.mrf.log&lt;br /&gt;
&lt;br /&gt;
Please note that this program is also provided &amp;quot;as is&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_List_of_programs&amp;diff=1429</id>
		<title>FusionSeq List of programs</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_List_of_programs&amp;diff=1429"/>
		<updated>2011-07-14T19:20:41Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* gfrConfidenceValues */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
== Data formats ==&lt;br /&gt;
FusionSeq use a few data formats to perform its operations.&lt;br /&gt;
&lt;br /&gt;
=== Mapped Read Format (MRF) === &lt;br /&gt;
This format is defined in the context of [http://rseqtools.gersteinlab.org/ RSEQtools]. More details can be found [http://info.gersteinlab.org/RSEQtools#Data_formats here]. &lt;br /&gt;
&lt;br /&gt;
===Gene Fusion Report (GFR)===&lt;br /&gt;
This file format defines the relevant information for each fusion transcript candidate. The rationale is that different filters can be applied to exclude “false positives” artificial fusions starting from an initial set. We also provide a parser that interprets this format allowing the user to propagate easily any changes to this format. For a given fusion candidate, involving gene A and gene B, the basic GFR format requires the following fields:&lt;br /&gt;
#	the ID of the fusion candidate (&#039;&#039;id&#039;&#039;): typically it contains the sample name and a unique number separated by an underscore. The number is padded with zeros for consistency;&lt;br /&gt;
#	&#039;&#039;SPER&#039;&#039;, &#039;&#039;DASPER&#039;&#039; and &#039;&#039;RESPER&#039;&#039;: scoring of the fusion candidate;&lt;br /&gt;
#	Number of inter-transcript reads (&#039;&#039;numInter&#039;&#039;), i.e. the number of pairs having the ends mapped to the two genes;&lt;br /&gt;
#	P-value of the insert size distribution analysis for the fusion transcript. Since we do not know the actual composition of the fusion transcript, we compute the p-value for both directions: AB (where gene A is upstream of gene B - &#039;&#039;pValueAB&#039;&#039;) and BA (where gene B is upstream of gene A -- &#039;&#039;pValueBA&#039;&#039;);&lt;br /&gt;
#       Mean insert-size value of the minimal fusion transcript fragment. As before for the p-values, we compute both AB and BA versions (&#039;&#039;interMeanAB&#039;&#039;, &#039;&#039;interMeanBA&#039;&#039;);&lt;br /&gt;
#	Number of intra-transcript reads for gene A (&#039;&#039;numIntra1&#039;&#039;) and gene B (&#039;&#039;numIntra2&#039;&#039;), respectively, i.e the number of pairs where both ends map to the same gene;&lt;br /&gt;
#	The type of the fusion (&#039;&#039;fusionType&#039;&#039;): cis, when both genes are on the same chromosome, or trans, otherwise;&lt;br /&gt;
#	Name(s) of the transcripts (&#039;&#039;nameTranscript&#039;&#039;): all the UCSC gene IDs of the isoforms of each gene in the annotation separated by the pipe symbol &#039;|&#039;;&lt;br /&gt;
#	Chromosome of the genes (&#039;&#039;chromosomeTranscript&#039;&#039;);&lt;br /&gt;
#       Strand information (&#039;&#039;strandTranscript&#039;&#039;);&lt;br /&gt;
#	Start and end coordinates of the longest transcript for both genes (&#039;&#039;startTranscript&#039;&#039;, &#039;&#039;endTranscript&#039;&#039;);&lt;br /&gt;
#	Number of exons in the composite model for both genes (&#039;&#039;numExonTranscript&#039;&#039;);&lt;br /&gt;
#	Coordinates of the exons in the composite model (&#039;&#039;exonCoordinatesTranscript&#039;&#039;): each exon is separated by the pipe symbol &#039;|&#039; and start and end coordinates are comma-separated;&lt;br /&gt;
#	Exon-pair count: it describes which elements are connected and corresponding number of inter-transcript reads;&lt;br /&gt;
#	interReads: the pair-read type, as well as the exons and the coordinates of the reads joining the two genes. Pair-type, exon number, start and end coordinates are reported as a comma-separated list, with the pipe symbol &#039;|&#039; separating the different pairs. The pair-reads type encodes the different possibilities two reads can be classified to in terms of the gene annotation set:&lt;br /&gt;
#* 1 : exon-exon&lt;br /&gt;
#* 2 : exon-intron&lt;br /&gt;
#* 3 : intron-exon&lt;br /&gt;
#* 4 : intron-intron&lt;br /&gt;
#* 5 : intron-boundary&lt;br /&gt;
#* 6 : exon-boundary&lt;br /&gt;
#* 7 : boundary-exon&lt;br /&gt;
#* 8 : boundary-intron&lt;br /&gt;
#* 9 : boundary-boundary&lt;br /&gt;
#	Reads of the transcripts: the actual sequence of all the inter-reads.&lt;br /&gt;
#       Pair-count: a summary of the number of reads for each category and joined exons (see interReads for the category definition). The field reports the pair-reads type, the number of reads, the two exons that are joined by the pair as a comma-separated list. The different pair types are separated by the pipe &amp;quot;|&amp;quot; symbol.&lt;br /&gt;
The GFR format can include additional optional information computed in the subsequent processing. For example, it is possible to add gene symbols (&#039;&#039;geneSymbolTranscript&#039;&#039;) and descriptions (&#039;&#039;descriptionTranscript&#039;&#039;) from the UCSC knownGene annotation set.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Breakpoint data format (BP) ===&lt;br /&gt;
Similarly to [[#Gene_Fusion_Format_(GFR)|GFR]], the junction-sequence identifier uses a standard format to capture the results of this analysis. For each tile that has at least 1 read aligned to, it reports, comma-separated:&lt;br /&gt;
#	chromosome, start and end coordinates of the first tile, using UCSC notation: “chr:start-end”, although the intervals are 1-based and closed;&lt;br /&gt;
#	chromosome, start and end coordinates of the second tile&lt;br /&gt;
#	All the sequences of the reads mapped to that tile with the offset information, separated by the pipe symbol.&lt;br /&gt;
For example, one line may read as:&lt;br /&gt;
 chr21:38764851-38764892,chr21:41758661-41758702,31:GTAGAATCATTCATTTCATTCTTGCAAACCAGCCTGCTTGGCCAGGAGGCA|30:TGTAGAATCATTCATTTCATTCTTGCAAACCAGCCTGCTTGGCCAGGAGGC&lt;br /&gt;
where two reads support this specific junction.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Core programs=&lt;br /&gt;
==Fusion detection module==&lt;br /&gt;
==== geneFusions ====  &lt;br /&gt;
&lt;br /&gt;
geneFusions identifies potential fusion transcript candidates from an alignment file. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 geneFusions prefix minNumberOfReads &amp;lt; sample.mrf &amp;gt; fusions.gfr&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes an [[#Mapped_Read_Format_(MRF)|MRF]] file from STDIN&lt;br /&gt;
* Outputs: Reports [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix -  the main ID of each candidate, i.e. prefix_0001, prefix_0002, etc.&lt;br /&gt;
** minNumberOfReads - the minimum number of reads required to include a candiate&lt;br /&gt;
* &#039;&#039;Optional arguments&#039;&#039;&lt;br /&gt;
** none&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: sample.mrf must include the sequences of the reads. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gfrClassify ====  &lt;br /&gt;
&lt;br /&gt;
gfrClassify assign each fusion candidate to a specify category: inter-, intra-chromosomal, read-through, or cis. Please see the  [http://dx.doi.org/10.1186/gb-2010-11-10-r104 publication] for a description of these classes. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrClassify &amp;lt; fileIN.gfr &amp;gt; fileOUT.gfr&lt;br /&gt;
&lt;br /&gt;
* Inputs: Takes a [[#Gene_Fusion_Report_(GFR)|GFR]] file from STDIN&lt;br /&gt;
* Outputs: Reports a [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Filtration cascade module==&lt;br /&gt;
===Mis-alignment filters===&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== gfrLargeScaleHomologyFilter ====  &lt;br /&gt;
It removes potential fusion transcript candidates if the two genes are paralogs. It uses [http://www.treefam.org/ TreeFam] to establish is two genes have similar sequences.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrLargeScaleHomologyFilter &amp;lt; fileIN.gfr &amp;gt; fileOUT.gfr&lt;br /&gt;
&lt;br /&gt;
* Inputs: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Outputs: Reports [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gfrSmallScaleHomologyFilter ====  &lt;br /&gt;
&lt;br /&gt;
It removes candidates that have high-similarity between small regions within the two genes, where the reads actually map. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrSmallScaleHomologyFilter &amp;lt; fileIN.gfr &amp;gt; fileOUT.gfr &lt;br /&gt;
&lt;br /&gt;
* Inputs: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Outputs: Reports [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gfrRepeatMaskerFilter ====  &lt;br /&gt;
&lt;br /&gt;
Some reads may be aligned to repetitive regions in the genome, due to the low sequence complexity of those regions and may result in artificial fusion candidates. This filter removes reads mapped to those regions. If the number of reads left if less than a threshold, the candidate is removed.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrRepeatMaskerFilter repeatMasker.interval minNumberOfReads &amp;lt; fileIN.gfr &amp;gt; fileOUT.gfr&lt;br /&gt;
&lt;br /&gt;
* Inputs: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Outputs: Reports [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** repeatMasker.interval - the interval file with the coordinates of the repetitive regions&lt;br /&gt;
** minNumberOfRead - minimum number of reads overlapping the repetitive regions in order to remove the candidate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Random pairing of transcript fragments===&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== gfrAbnormalInsertSizeFilter ====  &lt;br /&gt;
&lt;br /&gt;
gfrAbnormalInsertSizeFilter removes candidates with an insert-size bigger than the normal insert-size. The fusion candidate insert-size is computed on the &#039;&#039;minimal fusion transcript fragment&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrAbnormalInsertSizeFilter pvalueCutOff &amp;lt; fileIN.gfr &amp;gt; fileOUT.gfr&lt;br /&gt;
&lt;br /&gt;
* Inputs: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Outputs: Reports [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** pvalueCutOff -  the p-value threshold above which we keep the fusion transcript candidates&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination of mis-alignment and random pairing===&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== gfrRibosomalFilter ====  &lt;br /&gt;
&lt;br /&gt;
gfrRibosomalFilter removes candidates that have similarity with ribosomal genes. The rationale is that reads coming from highly expressed genes, such as ribosomal genes, are more likely to be mis-aligned and assigned to a different genes.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrRibosomalFilter &amp;lt; fileIN.gfr &amp;gt; fileOUT.gfr&lt;br /&gt;
&lt;br /&gt;
* Inputs: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Outputs: Reports [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gfrExpressionConsistencyFilter ====  &lt;br /&gt;
&lt;br /&gt;
It removes candidates that have a higher number of chimeric PE reads than PE reads aligned to the corresponding individual genes. This filter would only consider cases where the chimeric reads are mapped to introns of the two genes.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrExpressionConsistencyFilter &amp;lt; fileIN.gfr &amp;gt; fileOUT.gfr&lt;br /&gt;
&lt;br /&gt;
* Inputs: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Outputs: Reports [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Other filters===&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== gfrPCRFilter ====  &lt;br /&gt;
&lt;br /&gt;
gfrPCRFilter removes candidates with the same read over-represented, yielding to a “spike-in-like” signal, i.e. a narrow signal with a high peak.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrPCRFilter offsetCutoff minNumUniqueRead&lt;br /&gt;
* Inputs:  [[#Gene_Fusion_Report_(GFR)|GFR]]  from STDIN&lt;br /&gt;
* Outputs: Reports [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** offsetCutoff -  the minimum number of different starting positions&lt;br /&gt;
** minNumUniqueRead - the minimum number of unique reads required to include a candidate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gfrAnnotationConsistencyFilter ====  &lt;br /&gt;
&lt;br /&gt;
It removes candidates involving genes with specific description, such as ribosomal, pseudogenes, etc.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrAnnotationConsistencyFilter string &amp;lt; fileIN.gfr &amp;gt; fileOUT.gfr&lt;br /&gt;
&lt;br /&gt;
* Inputs: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Outputs: Reports [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** string -  a string identifying the element to remove, ex. pseudogene&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gfrProximityFilter ====  &lt;br /&gt;
&lt;br /&gt;
It removes candidates that are likely due to mis-annotation of the 5&#039; or 3&#039; ends of the genes.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrProximityFilter offset &amp;lt; fileIN.gfr &amp;gt; fileOUT.gfr&lt;br /&gt;
&lt;br /&gt;
* Inputs: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Outputs: Reports [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** offset -  the minimum distance (in nucleotides) between the two genes to keep the candidate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gfrBlackListFilter ====  &lt;br /&gt;
&lt;br /&gt;
It removes candidates specified by the user in a file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrBlackListFilter blackList.txt &amp;lt; fileIN.gfr &amp;gt; fileOUT.gfr&lt;br /&gt;
&lt;br /&gt;
* Inputs: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Outputs: Reports [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** blackList.txt -  the file with the candidates to remove. The format of this files is a simple two-column tab-delimited file with describing the two gene symbols. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LOC388160	LOC388161&lt;br /&gt;
LOC388161	LOC388161&lt;br /&gt;
LOC440498	LOC440498&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gfrSpliceJunctionFilter ====  &lt;br /&gt;
&lt;br /&gt;
It removes candidates if the reads can be aligned to a splice junction library. &#039;&#039;&#039;NB&#039;&#039;&#039;: this filter should be used only if the alignment was not performed against a splice junction library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrSpliceJunctionFilter splice_junction_library &amp;lt; fileIN.gfr &amp;gt; fileOUT.gfr&lt;br /&gt;
&lt;br /&gt;
* Inputs: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Outputs: Reports [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** splice_junction_library -  the splice_junction_library in 2bit format&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== gfrMitochondrialFilter ====  &lt;br /&gt;
&lt;br /&gt;
It removes candidates including a mitochondrial gene. &#039;&#039;&#039;NB&#039;&#039;&#039;: this filter should be used only if the alignment was performed against a gene annotation set with mitochondrial genes.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrMitochondrialFilter &amp;lt; fileIN.gfr &amp;gt; fileOUT.gfr&lt;br /&gt;
&lt;br /&gt;
* Input: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Output: Reports the filtered [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Scoring the candidates===&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== gfrConfidenceValues ====  &lt;br /&gt;
&lt;br /&gt;
gfrConfidenceValues computes the scores SPER, DASPER, and RESPER for each candidate. SPER is the number of &#039;&#039;&#039;S&#039;&#039;&#039;upportive &#039;&#039;&#039;PE R&#039;&#039;&#039;eads per candidates, i.e. the normalized number of inter-transcript reads. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;SPER=\frac {m}{N_{mapped}}*10^6&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is the number of inter-transcript reads, i.e. PE-reads connecting two different genes.&lt;br /&gt;
&lt;br /&gt;
DASPER (&#039;&#039;&#039;D&#039;&#039;&#039;ifference between the observed and the &#039;&#039;&#039;A&#039;&#039;&#039;nalytically computed &#039;&#039;&#039;SPER&#039;&#039;&#039;) and RESPER (&#039;&#039;&#039;R&#039;&#039;&#039;atio between the observed SPER and the &#039;&#039;&#039;E&#039;&#039;&#039;mpirically computed &#039;&#039;&#039;SPER&#039;&#039;&#039;) compare the observed SPER with two slightly different ways to compute the expectation. &lt;br /&gt;
Please find at [http://genomebiology.com/2010/11/10/R104/abstract Genome Biology, 2010;11:R104] more information about those scores.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrConfidenceValues prefix &lt;br /&gt;
* Input:  [[#Gene_Fusion_Report_(GFR)|GFR]]  from STDIN&lt;br /&gt;
* Output: Reports [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix -  the prefix of the .meta file&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: gfrConfidenceValues expects that the file prefix.meta is available. This tab-delimited file includes some meta information about the MRF dataset. The minimum required set of information is the number of mapped reads with the following syntax as an example:&lt;br /&gt;
 Mapped_reads     236549456&lt;br /&gt;
This represent the number of PE reads that were mapped. It is possible to determine this number by counting the number of lines in the [[#Mapped Read Format (MRF)|MRF]] file. For example:&lt;br /&gt;
 grep -v AlignmentBlocks file.mrf | grep -v &amp;quot;#&amp;quot; | wc -l&lt;br /&gt;
&lt;br /&gt;
A one-line command to generate this is:&lt;br /&gt;
 $ MAPPED=$(grep -v &amp;quot;AlignmentBlock&amp;quot; file.mrf | grep -v &amp;quot;#&amp;quot; | wc -l); printf &amp;quot;Mapped_reads\t%d\n&amp;quot; $MAPPED &amp;gt; file.meta&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gfrConfidenceValueTranscript [deprecated]====  &lt;br /&gt;
&lt;br /&gt;
gfrConfidenceValueTranscript computes LSPER (&#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;SPER&#039;&#039;&#039;) as the number of inter-transcript PE reads supporting the fusion divided by the average gene expression value.  However, since in many cases, only one allele contributes to the fusion transcript, the expression of the fusion transcript may not correlate with the expression of the genes generating it. Please find at [http://genomebiology.com/2010/11/10/R104/abstract Genome Biology 2010;11:R104] more details about why this score may impair the correct ranking of the candidates (see Additional file 1, text and Figure S6).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrConfidenceValueTranscript prefix &lt;br /&gt;
* Input:  [[#Gene_Fusion_Report_(GFR)|GFR]]  from STDIN&lt;br /&gt;
* Output: Reports [[#Gene_Fusion_Report_(GFR)|GFR]] to STDOUT&lt;br /&gt;
* &#039;&#039;Required arguments&#039;&#039;&lt;br /&gt;
** prefix -  the prefix of the .composite.expression file&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: gfrConfidenceValueTranscript expects that the file prefix.composite.expression is available. This file includes the expression values for the genes that are part of the transcript. The best way to compute is by using [http://rseqtools.gersteinlab.org/ RSEQtools], using [[RSEQtools#mrfQuantifier|mrfQuantifier]], e.g.:&lt;br /&gt;
 mrfQuantifier knownGeneTranscriptCompositeModel.txt multipleOverlap &amp;lt; prefix.mrf &amp;gt; prefix.composite.expression&lt;br /&gt;
where knowGeneTranscriptCompositeModel.txt is the interval file representing the UCSC knownGenes library.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Junction-sequence identification module==&lt;br /&gt;
&lt;br /&gt;
==== gfr2bpJunctions ====  &lt;br /&gt;
&lt;br /&gt;
It generates the splice junction library and two files to be run with a cluster to perform the indexing and the mapping in parallel. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfr2bpJunctions &amp;lt;file.gfr&amp;gt; &amp;lt;tileSize&amp;gt; &amp;lt;sizeFlankingRegion&amp;gt; &amp;lt;minDASPER&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Input:  file.gfr - [[#Gene_Fusion_Report_(GFR)|GFR]] file (not from STDIN)&lt;br /&gt;
* Outputs: Two files with all the jobs to be run on a cluster:&lt;br /&gt;
** file_joblist1.txt: the instructions to index the library and align the reads to the junction library.&lt;br /&gt;
** file_joblist2.txt: the instructions to aggregate the results of the alignment.&lt;br /&gt;
* Required parameters:&lt;br /&gt;
** tileSize: the number of nucleotides in each tile. For example, a 50nt read may be aligned to a 80nt junction, thus tileSize would be 40. &lt;br /&gt;
** sizeFlankingRegions: the size, in nucleotides, of the flanking region around the exons.&lt;br /&gt;
** minDASPER: the minimum DASPER values for which the breakpoint analysis is performed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== validateBpJunctions ====  &lt;br /&gt;
&lt;br /&gt;
It validates the junctions, i.e. excludes those junctions with sequence similarity to the other regions of the genome.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 validateBpJunctions &amp;lt; fileIN.bp &amp;gt; fileOUT.bp&lt;br /&gt;
&lt;br /&gt;
* Input: a [[#Breakpoint data format (BP)|BP]] file from STDIN &lt;br /&gt;
* Output: a [[#Breakpoint data format (BP)|BP]] to STDOUT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bpFilter ====  &lt;br /&gt;
&lt;br /&gt;
It filters some of the junctions because of number of reasons (see parameters).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bpFilter &amp;lt;minNumReads&amp;gt; &amp;lt;minNumUniqueOffsets&amp;gt; &amp;lt;minNumReadsForKS&amp;gt; &amp;lt;pValueCutoffForKS&amp;gt; &amp;lt;numPossibleOffsets&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Input: [[#Breakpoint Data Format (BP)|BP]] file from STDIN&lt;br /&gt;
* Output: [[#Breakpoint Data Format (BP)|BP]] file to STDOUT&lt;br /&gt;
* Required parameters&lt;br /&gt;
** minNumReads: minimum number of reads aligned to the junction to be kept&lt;br /&gt;
** minNumUniqueOffsets: minimum number of unique reads aligned to the junction to avoid PCR artifacts&lt;br /&gt;
** minNumReadsForKS: minimum number of reads to perform a Kolmogorov-Smirnov (KS) test. This would compare the reads distribution with a uniform one. However, only if there are sufficient reads this test can be performed.&lt;br /&gt;
** pValueCutoffForKS: the pvalue cut-off if a KS test is used&lt;br /&gt;
** numPossibleOffsets: number of possible offsets, i.e. starting positions of the reads&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bp2wig ====  &lt;br /&gt;
&lt;br /&gt;
It generates a signal track from the reads aligned to the junction.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bp2wig file.bp&lt;br /&gt;
&lt;br /&gt;
* Input: [[#Breakpoint Data Format (BP)|BP]] file (not from STIDIN) &lt;br /&gt;
* Output: WIGGLE files showing the support of the junction &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bp2alignment ====  &lt;br /&gt;
&lt;br /&gt;
It generates a text representation of the reads aligned to the junction.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bp2alignment &lt;br /&gt;
&lt;br /&gt;
* Input: [[#Breakpoint Data Format (BP)|BP]] file from STDIN &lt;br /&gt;
* Output: an text file to STDOUT reporting the aligned read to the junction. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Tile 1: chr21:38717312-38717353&lt;br /&gt;
Tile 2: chr21:41801877-41801918&lt;br /&gt;
Number of reads spanning breakpoint: 5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                               AGGAGGGTTC  CTGCCGCGCTCCAGGCGGCGCTCCCCGCCCCTCGCCCTCCG&lt;br /&gt;
                        ATTCATCAGGAGAGTTC  CTACCGCGCTCCAGGCGGCGCTCCCCGCCCCTCG&lt;br /&gt;
               CCACACTGCATTCATCAGGAGAGTTC  CTGCCGCGCTCCAGGCGGCGCTCCC&lt;br /&gt;
 CTTCCCGCCTTCGGCCACACTGCATTCATCAGGAGAGTTC  CTGCCGCGCTC&lt;br /&gt;
 CTTCCCGCCTTCGGCCACACTGCATTCATCAGGAGAGTTC  CTGCCGCGCTC&lt;br /&gt;
TCTTCCCGCCTTTGGCCACACTGCATTCATCAGGAGAGTTC  CTGCCGCGCTCCAGGCGGCGCTCCCCGCCCCTCGCCCTCCG&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== bowtie2bp ====  &lt;br /&gt;
&lt;br /&gt;
Utility for debugging. It converts the alignment to the fusion junction library from bowtie output to [[#Breakpoint Data Format(BP)|BP]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 bowtie2bp&lt;br /&gt;
&lt;br /&gt;
* Input: bowtie alignment file from STDIN &lt;br /&gt;
* Output: [[#Breakpoint Data Format(BP)|BP]] file to STDOUT.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Auxiliary modules=&lt;br /&gt;
==== gfr2images ====  &lt;br /&gt;
&lt;br /&gt;
It generates a schematic illustration depicting which regions of the two genes are connected by PE reads.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfr2images &amp;lt; fileIN.gfr&lt;br /&gt;
&lt;br /&gt;
* Pre-requisite: the pairCount column should be present in the [[#Gene_Fusion_Report_(GFR)|GFR]] file. [[#gfrCountPairTypes|gfrCountPairTypes]] should be executed first.&lt;br /&gt;
* Inputs: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Outputs: JPEG images labeled SampleID_0000#.jpg, where &#039;&#039;&#039;SampleID&#039;&#039;&#039; is the unique identification of the fusion candidate present in the [[#Gene_Fusion_Report_(GFR)|GFR]] file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gfr2fasta ====  &lt;br /&gt;
&lt;br /&gt;
It generates two fasta files, one for each gene, with the PE-reads connecting them&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfr2fasta &amp;lt; fileIN.gfr &lt;br /&gt;
&lt;br /&gt;
* Inputs: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Outputs: * Outputs: FASTA files labeled SampleID_0000#_[1|2].fasta, where &#039;&#039;&#039;SampleID&#039;&#039;&#039; is the unique identification of the fusion candidate present in the [[#Gene_Fusion_Report_(GFR)|GFR]] file and [1|2] indicates which gene they correspond to.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gfr2bed ====  &lt;br /&gt;
&lt;br /&gt;
It generates two BED files of the fusion transcript reads; one per gene. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfr2bed &amp;lt; fileIN.gfr&lt;br /&gt;
&lt;br /&gt;
* Inputs: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Outputs: BED files labeled SampleID_0000#_[1|2].bed, where &#039;&#039;&#039;SampleID&#039;&#039;&#039; is the unique identification of the fusion candidate present in the [[#Gene_Fusion_Report_(GFR)|GFR]] file and [1|2] indicates which gene they correspond to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gfr2gff ====  &lt;br /&gt;
&lt;br /&gt;
It generates a GFF file for all candidates on the same chromosome reporting all PE-reads for visualization in genome browsers such as UCSC.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfr2gff &amp;lt; fileIN.gfr&lt;br /&gt;
&lt;br /&gt;
* Inputs: [[#Gene_Fusion_Report_(GFR)|GFR]] from STDIN&lt;br /&gt;
* Outputs: GFF files labeled SampleID_0000#.gff, where &#039;&#039;&#039;SampleID&#039;&#039;&#039; is the unique identification of the fusion candidate present in the [[#Gene_Fusion_Report_(GFR)|GFR]] file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== export2mrf ====  &lt;br /&gt;
&lt;br /&gt;
It generates an MRF file from the export files of a Genome Analyzer II run.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 export2mrf prefix file_1_export.txt file_2_export.txt &amp;gt; file.mrf&lt;br /&gt;
&lt;br /&gt;
* Inputs: &lt;br /&gt;
** prefix: the sample ID&lt;br /&gt;
** file_1_export.txt: the export file for the first end&lt;br /&gt;
** file_2_export.txt: the export file for the second end&lt;br /&gt;
* Outputs: &lt;br /&gt;
** An [[RSEQtools#Mapped_Read_Format_.28MRF.29|MRF]] file with all the mapped reads to STDOUT&lt;br /&gt;
** prefix_allReads.txt: the list of all the reads for the breakpoint analysis. Each line reports only a read&lt;br /&gt;
** prefix.meta: a summary file (tab-delimited) including the total number of reads and the number of mapped reads. This file is a prerequisite for [[#gfrConfidenceValues|gfrConfidenceValues]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== gfrAddInfo ====  &lt;br /&gt;
&lt;br /&gt;
It includes additional information about the fusion transcript candidates such as gene symbols and gene description. This is a pre-requisite for [[#gfrBlackListFilter|gfrBlackListFilter]] and [[#gfrAnnotationConsistencyFilter|gfrAnnotationConsistencyFilter]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrAddInfo &amp;lt; fileIN.gfr &amp;gt; fileOUT.gfr&lt;br /&gt;
&lt;br /&gt;
* Pre-requisite:&lt;br /&gt;
** An external file that includes all descriptive information about the annotation set. The format of this file should follow kgXref.txt (from UCSC). Indeed, we use kgXref.txt for human, however, this could be modified in [[#geneFusionConfig|geneFusionConfig]].&lt;br /&gt;
* Input: &lt;br /&gt;
** A [[#Gene Fusion Report (GFR)|GFR]] file from STDIN.&lt;br /&gt;
* Output: &lt;br /&gt;
** A [[#Gene Fusion Report (GFR)|GFR]] file to STDOUT with 4 additional columns: &lt;br /&gt;
**# geneSymbolTranscript1&lt;br /&gt;
**# geneSymbolTranscript2&lt;br /&gt;
**# descriptionTranscript1&lt;br /&gt;
**# descriptionTranscript2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====gfrCountPairTypes====  &lt;br /&gt;
&lt;br /&gt;
It counts how many PE reads are assigned to each category, i.e. exon-exon, exon-intron, etc. This is used by the the CGI programs to summarize the statistics of the fusion candidate.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Usage&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 gfrCountPairTypes &amp;lt; fileIN.gfr &amp;gt; fileOUT.gfr&lt;br /&gt;
&lt;br /&gt;
* Input: &lt;br /&gt;
** A [[#Gene Fusion Report (GFR)|GFR]] file from STDIN.&lt;br /&gt;
* Output: &lt;br /&gt;
** A [[#Gene Fusion Report (GFR)|GFR]] file to STDOUT with 1 additional column (pairCount). See [[#Gene Fusion Report (GFR)|GFR]] for a description of this field.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_FAQ&amp;diff=1428</id>
		<title>FusionSeq FAQ</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_FAQ&amp;diff=1428"/>
		<updated>2011-07-14T19:19:03Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* geneFusions: Segmentation Fault */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
=General Questions=&lt;br /&gt;
==Does FusionSeq work with &#039;&#039;my favorite&#039;&#039; alignment tool?==&lt;br /&gt;
The format of the paired-end reads that is &amp;quot;understood&amp;quot; by FusionSeq is [[RSEQtools#Mapped_Read_Format|Mapped Read Format (MRF)]]. We provide several conversion tools from most common alignment programs and formats, including SAM/BAM, to represent mapped reads using MRF. Please take a look at [http://rseqtools.gersteinlab.org/ RSEQtools] for more information, and specifically to: [[RSEQtools#Format_conversion_utilities|Format conversion utilities]].&lt;br /&gt;
&lt;br /&gt;
==Does FusionSeq work with colorspace paired-end reads?==&lt;br /&gt;
FusionSeq has been developed to be as much independent as possible from the sequencing technology and the alignment tool. However, extensive testing was conducted on Illumina Genome Analyzer II platform only.&lt;br /&gt;
&lt;br /&gt;
==Where can I obtain the annotation data for hg19?==&lt;br /&gt;
Annotation data for hg19 can be found [[FusionSeq_Requirements#Human_genome_GRCh37.2Fhg19|here]].&lt;br /&gt;
&lt;br /&gt;
==Can I use FusionSeq with &#039;&#039;my favorite species&#039;&#039;?==&lt;br /&gt;
In principle, you can run FusionSeq using any paired-end RNA-Seq data. However, you would need to provide the corresponding data that is currently used for human, i.e.:&lt;br /&gt;
# a genome sequence, in 2bit format&lt;br /&gt;
# a gene annotation set in interval format; including &#039;&#039;composite&#039;&#039; models of genes&lt;br /&gt;
# the sequences of the composite models in the gene annotation set&lt;br /&gt;
# a mapping between your gene annotation and TreeFam (optional, used by gfrLargeScaleHomologyFilter)&lt;br /&gt;
# a list of the repetitive regions, in interval format (optional, used by gfrRepeatMaskerFilter)&lt;br /&gt;
# a ribosomal sequence library in 2bit format (optional, used by gfrRibosomalFilter)&lt;br /&gt;
# the mapping between your gene annotation and other descriptive information, e.g. gene symbols, descriptions, etc. (optional, used by gfrAddInfo)&lt;br /&gt;
&lt;br /&gt;
==Where can I find some data sets to test FusionSeq?==&lt;br /&gt;
Please find some test data sets [[FusionSeq_Test_Datasets|here]].&lt;br /&gt;
&lt;br /&gt;
==Is there a demo version of FusionSeq?==&lt;br /&gt;
A demo version of the web-interface of FusionSeq is available [http://dynamic.gersteinlab.org/people/asboner/FusionSeq/geneFusions_cgi here]. You can access the results described in the paper, by typing the sample ID (e.g. 106_T, 1700_D, etc.).&lt;br /&gt;
&lt;br /&gt;
==Where can I find more information?==&lt;br /&gt;
The most up-to-date user documentation for FusionSeq is available [[FusionSeq|here]]. If you look for the developer&#039;s documentation, you can find it [http://archive.gersteinlab.org/proj/rnaseq/fusionseq/documentation/index.html here].&lt;br /&gt;
&lt;br /&gt;
==The BOWTIE_INDEXES directory is used for reference indexes as well as for temporary index files. However, I have a centralized repository of indexed genomes and cannot create the temporary files in that directory==&lt;br /&gt;
A workaround of this issue would be to create a local directory where one has write permission. This would solve the problem of generating temporary index files when running the junction-sequence identifier module. To also have the indexed genome and transcriptome in the same folder, one could link them symbolically, for example:&lt;br /&gt;
 $ cd /path/to/local/folder/&lt;br /&gt;
 $ ln -s /path/to/centralized/repository/hg18_nh/ .&lt;br /&gt;
 $ ln -s /path/to/centralized/repository/hg18_knownGeneAnnotationTranscriptCompositeModel/ .&lt;br /&gt;
&lt;br /&gt;
Now, BOWTIE_INDEXES in geneFusionConfig.h should point to /path/to/local/folder/ where the user can generate temporary files:&lt;br /&gt;
 #define BOWTIE_INDEXES /path/to/local/folder&lt;br /&gt;
&lt;br /&gt;
==How can I cite FusionSeq?==&lt;br /&gt;
Please cite this publication:&lt;br /&gt;
* Sboner A, Habegger L, Pflueger D, Terry S, Chen DZ, Rozowsky JS, Tewari AK, Kitabayashi N, Moss BJ, Chee MS, Demichelis F, Rubin MA, Gerstein MB. &#039;&#039;&#039;FusionSeq: a modular framework for finding gene fusions by analyzing Paired-End RNA-Sequencing data&#039;&#039;&#039;. &#039;&#039;Genome Biol&#039;&#039; 21 Oct. 2010; &#039;&#039;&#039;11&#039;&#039;&#039;:R104  [http://dx.doi.org/10.1186/gb-2010-11-10-r104|doi:10.1186/gb-2010-11-10-r104]&lt;br /&gt;
&lt;br /&gt;
=Compilation troubleshooting=&lt;br /&gt;
&lt;br /&gt;
==Where can I find the BIOS library, required for FusionSeq?==&lt;br /&gt;
As described in [[Requirements]], the [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] library can be downloaded as part of [http://rseqtools.gersteinlab.org RSEQtools], a computational framework to analyze RNA-Seq data, or it can be downloaded as a separate component from [http://rnaseq.gersteinlab.org/fusionseq/tarballs/bios_0.9.0.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
==TROOT.h: No such file or directory==&lt;br /&gt;
This error occurs because the compiler does not find TROOT.h file. This file is part of [http://root.cern.ch/drupal/ ROOT], a framework for mathematical and statistical analysis. If you have installed [http://root.cern.ch/drupal/ ROOT], please make sure that you have defined ROOTSYS as the path to the ROOT folder and added it to your PATH:&lt;br /&gt;
 $ export ROOTSYS=/path/to/ROOT/ &lt;br /&gt;
 $ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
Please also see [[Installation_and_Configuration_of_FusionSeq#Installing_and_configuring_ROOT|Installing and configuring ROOT]] for more details.&lt;br /&gt;
&lt;br /&gt;
=Running issues=&lt;br /&gt;
==FusionSeq does not find the annotation datasets. However, geneFusionConfig.h specifies their correct location and the files are present.==&lt;br /&gt;
This error:&lt;br /&gt;
 ls_createFromFile    &#039;$HOME/path/to/data/annotation_data.txt&#039;&lt;br /&gt;
occurs because environmental variable, such as $HOME, are not interpreted. Please use full path names in geneFusionConfig.h to specify directory locations.&lt;br /&gt;
&lt;br /&gt;
==I followed the instructions, but I still get many WARNINGs. Is this expected?==&lt;br /&gt;
Yes, every program in FusionSeq provides some logging information. We recommend to capture the log data by redirecting STDERR (e.g. &#039;2&amp;gt; fusionseq.log&#039;).&lt;br /&gt;
&lt;br /&gt;
==geneFusions: Segmentation Fault==&lt;br /&gt;
There a number of reasons why one gets this error. One possibility is the lack of the sequences in the MRF file. Although MRF does not require the inclusion of sequences to be valid, sequences are indeed required by geneFusions. Please ensure that sequences are present in the MRF file.&lt;br /&gt;
&lt;br /&gt;
==gfrConfidenceValues: Cannot find the .meta file==&lt;br /&gt;
The .meta file is required to run gfrConfidenceValues. This is a tab-delimited file including the number of mapped reads. A simple way to generate this file is to run:&lt;br /&gt;
 $ MAPPED=$(grep -v &amp;quot;AlignmentBlock&amp;quot; file.mrf | grep -v &amp;quot;#&amp;quot; | wc -l); printf &amp;quot;Mapped_reads\t%d\n&amp;quot; $MAPPED &amp;gt; file.meta&lt;br /&gt;
&lt;br /&gt;
The final files should look like:&lt;br /&gt;
 Mapped_reads       123456789&lt;br /&gt;
&lt;br /&gt;
==Paired-end reads and bowtie: I aligned each end separately. How do I convert the alignment file to MRF?==&lt;br /&gt;
To convert bowtie alignment into MRF when ends are aligned separately, we require the two ends to be on subsequent lines. This could be partially achieved by concatenating and sorting the two alignment files, e.g. cat end_1.bowtie end_2.bowtie | sort  &amp;gt; alignment.bowtie. However, in some cases, only one end is mapped, thus creating &amp;quot;singletons&amp;quot; in the alignment file, where only one end is reported. Since there have been many requests regarding this issue, we decided to share an &amp;quot;internal&amp;quot; utility: bowtiePairedFix. Here you can download the binary file:&lt;br /&gt;
&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/rnaseq/fusionseq/tarballs/bowtiePairedFix.linux64 bowtiePairedFix (GNU/Linux x86_64)]&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/rnaseq/fusionseq/tarballs/bowtiePairedFix.MacOs.10.6.7 bowtiePairedFix (MacOs 10.6.7)]&lt;br /&gt;
The conversion command is:&lt;br /&gt;
 cat end_1.bowtie end_2.bowtie | sort | bowtiePairedFix | bowtie2mrf paired -sequence &amp;gt; data.mrf 2&amp;gt; data.mrf.log&lt;br /&gt;
&lt;br /&gt;
Please note that this program is also provided &amp;quot;as is&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Tools&amp;diff=1370</id>
		<title>Tools</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Tools&amp;diff=1370"/>
		<updated>2011-06-28T12:27:58Z</updated>

		<summary type="html">&lt;p&gt;Asboner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://molmovdb.org/molmovdb/morph Morph Server] generates a plausible pathway between two conformations of a protein or nucleic acid structure. A large number of statistics and several high-quality movies are output.&lt;br /&gt;
&lt;br /&gt;
[http://bioinfo.mbb.yale.edu/ExpressYourself ExpressYourself] is an interactive platform for background correction, normalization, scoring, and quality assessment of raw microarray data.&lt;br /&gt;
&lt;br /&gt;
[http://spine.nesg.org SPINE] is our laboratory-information management system (LIMS) for the [http://www.nesg.org NorthEast Structural Genomics Consortium]. The online version is restricted to consortium users, but most of the code is freely available for download.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://pseudogene.org Pseudogene.org] is a collection of resources related to our efforts to survey eukaryotic genomes for pseudogene sequences, &amp;quot;pseudo-fold&amp;quot; usage, amino-acid composition, and single-nucleotide polymorphisms (SNPs) to help elucidate the relationships between pseudogene families across several&lt;br /&gt;
organisms.&lt;br /&gt;
&lt;br /&gt;
[http://tiling.gersteinlab.org Tiling] is under construction.&lt;br /&gt;
&lt;br /&gt;
[http://networks.gersteinlab.org/genome/interactions/networks/ TopNet] is an automated web tool designed to calculate topological parameters and compare different sub-networks for any given network.&lt;br /&gt;
&lt;br /&gt;
A number of programs for calculating properties of protein and nucleic &lt;br /&gt;
acid structures have been collected into a [http://geometry.molmovdb.org single distribution].  Included are a library of utility functions for dealing &lt;br /&gt;
with structures, and a convenient interactive command-line interpreter.&lt;br /&gt;
&lt;br /&gt;
A new algorithm for [http://bioinfo.mbb.yale.edu/expression/cluster local clustering of expression data] to find timeshifted and/or inverted&lt;br /&gt;
relationships is available as C source code.&lt;br /&gt;
&lt;br /&gt;
[http://yeasthub.gersteinlab.org Yeasthub] is a semantic web-based application which demonstrates how a life sciences data warehouse can be built using a native Resource Description Framework (RDF) data store. This data warehouse allows integration of different types of yeast genome data provided by different resources in different formats including the tabular and RDF formats.&lt;br /&gt;
&lt;br /&gt;
[http://pubnet.gersteinlab.org/ PubNet] is a web-based tool that extracts several types of relationships returned by PubMed queries and maps them into networks, allowing for graphical visualization, textual navigation, and topological analysis. &lt;br /&gt;
&lt;br /&gt;
[http://tyna.gersteinlab.org/tyna/ tYNA] (TopNet-like Yale Network Analyzer) is a Web system for managing, comparing and mining multiple networks, both directed and undirected. tYNA efficiently implements methods that have proven useful in network analysis, including identifying defective cliques, finding small network motifs (such as feed-forward loops), calculating global statistics (such as the clustering coefficient and eccentricity), and identifying hubs and bottlenecks etc.&lt;br /&gt;
&lt;br /&gt;
[http://helix.gersteinlab.org/ HIT] (Helix Interaction Tool) is a web-based comprehensive package of tools for analyzing helix-helix interactions in proteins.&lt;br /&gt;
&lt;br /&gt;
[http://www.gersteinlab.org/proj/BoCaTFBS/ BoCaTFBS] is a boosted cascade learner to refine the binding sites suggested by ChIP-chip experiments. This tool is based on a data mining approach combining noisy data from ChIP-chip experiments with known binding site patterns. BoCaTFBS uses boosted cascades of classifiers for optimum efficiency, in which components are alternating decision trees; it exploits interpositional correlations; and it explicitly integrates massive negative information from ChIP-chip experiments.&lt;br /&gt;
&lt;br /&gt;
[http://purelight.biology.yale.edu:8080/servlets-examples/procat.html ProCAT] is a data analysis approach for protein microarrays. ProCAT corrects for background bias and spatial artifacts, identifies significant signals, filters nonspecific spots, and normalizes the resulting signal to protein abundance. ProCAT provides a powerful and flexible new approach for analyzing many types of protein microarrays.&lt;br /&gt;
&lt;br /&gt;
[http://tilescope.gersteinlab.org/ Tilescope] is an online analysis pipeline for high-density tiling microarray data. Tilescope normalizes signals between channels and across arrays, combines replicate experiments, score each array element, and identifies genomic features. The program is designed with a modular, three-tiered architecture, facilitating parallelism, and a graphic user-friendly interface, presenting results in an organized web page, downloadable for further analysis.&lt;br /&gt;
&lt;br /&gt;
[http://proteomics.gersteinlab.org PARE] (Protein Abundance and mRNA Expression is a tool for comparing protein abundance and mRNA expression data.  In addition to globally comparing the quantities of protein and mRNA, PARE allows users to select subsets of proteins for focused study (based on functional categories and complexes). Furthermore, it highlights correlation outliers, which are potentially worth further examination.&lt;br /&gt;
&lt;br /&gt;
[http://hub.gersteinlab.org/ir-supp/ HUB] is a tool for leveraging the structure of the semantic web to enhance information retrieval for proteomics. This tool helps Proteomics researchers to be able to quickly retrieve relevant information from the web and the biomedical literature.  &lt;br /&gt;
&lt;br /&gt;
[http://coevolution.gersteinlab.org/coevolution/ Coevolution analysis of protein residues]: this is an integrated online system that enables comparative analyses of residue coevolution with a comprehensive set of commonly used scoring functions, including Statistical Coupling Analysis (SCA), Explicit Likelihood of Subset Variation (ELSC), mutual information and correlation-based methods.&lt;br /&gt;
&lt;br /&gt;
[http://archive.gersteinlab.org/proj/rnaseq/rseqtools/ RSEQtools] is a suite of tools that use Mapped Read Format (MRF) for the analysis of RNA-Seq experiments. MRF is a compact data summary format for both short and long read alignments that enables the anonymization of confidential sequence information, while allowing one to still carry out many functional genomics studies. These tools consist of a set of modules that perform common tasks such as calculating gene expression values, generating signal tracks of mapped reads and segmenting that signal into actively transcribed regions. Moreover, the tools can readily be used to build customizable RNA-Seq workflows.&lt;br /&gt;
&lt;br /&gt;
[http://rnaseq.gersteinlab.org/fusionseq/ FusionSeq] is a computational framework for detecting chimeric transcripts from paired-end RNA-seq experiments. It provides a ranked list of fusion transcripts candidates that can be further evaluated via experimental methods.&lt;br /&gt;
&lt;br /&gt;
[http://act.gersteinlab.org/ ACT] (aggregation and correlation toolbox) is an aggregation and correlation toolbox for analyses of genome tracks. ACT is an efficient, multifaceted toolbox for analyzing continuous signal and discrete region tracks from high-throughput genomic experiments, such as RNA-seq or ChIP-chip signal profiles from the ENCODE and modENCODE projects, or lists of single nucleotide polymorphisms from the 1000 genomes project. It is able to generate aggregate profiles of a given track around a set of specified anchor points, such as transcription start sites. It is also able to correlate related tracks and analyze them for saturation.&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=GersteinInfo:Privacy_policy&amp;diff=1354</id>
		<title>GersteinInfo:Privacy policy</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=GersteinInfo:Privacy_policy&amp;diff=1354"/>
		<updated>2011-06-16T19:09:17Z</updated>

		<summary type="html">&lt;p&gt;Asboner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Handling of personal data communicated by visitors to this website will be carried out under the following terms:=&lt;br /&gt;
No private or personal information is collected. However, if you are eligible to edit the wiki, i.e. you are a member of the Gerstein Lab, you will be required to log-in first. A username, chosen by the user, is thus collected only for the purpose of identifying the editor of this pages. An email address is also collected, if the user decides to voluntarily provide this information. The email address is used only for the purpose of retrieve the password by the user, not by the administrator of the site.&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=GersteinInfo:Privacy_policy&amp;diff=1334</id>
		<title>GersteinInfo:Privacy policy</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=GersteinInfo:Privacy_policy&amp;diff=1334"/>
		<updated>2011-06-13T11:20:59Z</updated>

		<summary type="html">&lt;p&gt;Asboner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By visiting this website, no private or personal information is collected.&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Main_Page&amp;diff=1333</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Main_Page&amp;diff=1333"/>
		<updated>2011-06-13T11:18:22Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Important Public Items */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki hosts general, public information about the&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;[http://gersteinlab.org Gerstein Lab]&#039;&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
Lab members should consult the [http://wiki.gersteinlab.org/labinfo/ private lab wiki] for lab-specific information (login as user &amp;quot;public&amp;quot;). There&#039;s also a wiki for [http://wiki.gersteinlab.org/meetings lab meetings] (login as user &amp;quot;private&amp;quot;). To edit this wiki, contact the [[User:Infoadmin | Infoadmin]]&lt;br /&gt;
&lt;br /&gt;
== Important Public Items ==&lt;br /&gt;
*Public [[Documents]] about the lab&lt;br /&gt;
*[[FAQ]] (new) on programs&lt;br /&gt;
*Lab [[Calendar]]&lt;br /&gt;
*[http://www.gersteinlab.org/index.html.1jun11 Old version] of lab homepage&lt;br /&gt;
*[[Permissions]]&lt;br /&gt;
*Prominent [[public wiki pages linked from elsewhere]]&lt;br /&gt;
&lt;br /&gt;
== Info for New People ==&lt;br /&gt;
*[[General Information for New Undergraduates]] thinking about working in the lab&lt;br /&gt;
* Information for &amp;lt;B&amp;gt;new people&amp;lt;/B&amp;gt; starting in the lab from the private wiki ([http://wiki.gersteinlab.org/labinfo/Group_Meeting_and_JC_Procedure], [http://wiki.gersteinlab.org/labinfo/Bad_Times_and_Contact_Info], [http://wiki.gersteinlab.org/labinfo/New_People_Entering_Lab], [http://wiki.gersteinlab.org/labinfo/Staff])&lt;br /&gt;
&lt;br /&gt;
== Info for Lab Members and Collaborators ==&lt;br /&gt;
*[http://wiki.gersteinlab.org/labinfo/Lab_Computing_Resources Lab Computing Resources] page. &lt;br /&gt;
*[http://wiki.gersteinlab.org/labinfo/Making_conference_calls_or_lab_related_calls Making phone calls] (SKYPE information included) page.&lt;br /&gt;
*[http://wiki.gersteinlab.org/labinfo/Using_copier Using copier] page.&lt;br /&gt;
*[http://www.facebook.com/group.php?gid=54856837624 Gerstein Lab Facebook Page]&lt;br /&gt;
*[http://bioinfo.mbb.yale.edu/pipermail/web/ Public WEB Mailing List] (no longer in use)&lt;br /&gt;
* [[Streamlining Draft Flow]] (Ideas for streamlining the process of drafting and submitting papers)&lt;br /&gt;
** Way to list Mark&#039;s [[Affiliation]] on papers &lt;br /&gt;
** See [[xxmg at gersteinlab.org | xxmg@gersteinlab.org]] for correct address to use for paper correspondence.&lt;br /&gt;
** Note that &#039;&#039;&#039;xxmg at bioinfo.mbb.yale.edu&#039;&#039;&#039; for paper correspondence is deprecated. &lt;br /&gt;
* [[Pointers on Powerpoints]] and [[Pointers on Grant Sections]]&lt;br /&gt;
* [[Recommendation Letters]]&lt;br /&gt;
* Lab [[Resources Document]] (NIH form)&lt;br /&gt;
* Google Groups: [http://group.gersteinlab.org homepage], for [http://docs.google.com/a/gersteinlab.org DOCS]&lt;br /&gt;
* Some Useful University Policies&lt;br /&gt;
** Snippets from [[MB&amp;amp;B Policy for Graduate Students on Vacation and Travel]] and [[Policy on Postdoc Appointments]]&lt;br /&gt;
** Policies on visitors: [http://provost.yale.edu/minors-in-labs Policy on Minors in Labs] ([http://archive.gersteinlab.org/docs/2010/06.02/Policy-on-Minors-in-Labs.pdf  old]), [http://provost.yale.edu/policy-access-university-labs-and-research-facilities Policy on Access to the Lab]&lt;br /&gt;
** Travel per diem information: [http://www.yale.edu/ppdev/Guides/bluepages.pdf Yale Blue Pages]&lt;br /&gt;
* Useful links: [http://www.yale.edu/its/accounts/netid.html Yale NetID System], [http://www.yale.edu/its/network/vpn_faq.html Yale VPN FAQ], [http://www.yale.edu/its/network/wireless/faq.html Yale Wireless FAQ], [http://www.yale.edu/its/telecom/dialing.html Yale Dialing Instructions], [https://config.mail.yale.edu Configuring Yale email], [http://www.yale.edu/ris/main.html Poster Printing]&lt;br /&gt;
* [http://maguro.cs.yale.edu:8000/Center_for_High_Performance_Computation_in_Biology_and_Biomedicine Yale High Performance Computing Center]&lt;br /&gt;
* Information on [[what grant to charge something to]]&lt;br /&gt;
* Information on [[Meeting Invites]]&lt;br /&gt;
* [http://araman.mbgnet/nagios/ System Status] MBGNet LAN access only.&lt;br /&gt;
* [http://info.gersteinlab.org/Tools Tools] page&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=GersteinInfo:Privacy_policy&amp;diff=1332</id>
		<title>GersteinInfo:Privacy policy</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=GersteinInfo:Privacy_policy&amp;diff=1332"/>
		<updated>2011-06-13T11:18:06Z</updated>

		<summary type="html">&lt;p&gt;Asboner: Created page with &amp;#039;By visiting this website, no collection of private information is carried out.&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By visiting this website, no collection of private information is carried out.&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Main_Page&amp;diff=1331</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Main_Page&amp;diff=1331"/>
		<updated>2011-06-13T11:16:40Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Important Public Items */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki hosts general, public information about the&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;[http://gersteinlab.org Gerstein Lab]&#039;&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
Lab members should consult the [http://wiki.gersteinlab.org/labinfo/ private lab wiki] for lab-specific information (login as user &amp;quot;public&amp;quot;). There&#039;s also a wiki for [http://wiki.gersteinlab.org/meetings lab meetings] (login as user &amp;quot;private&amp;quot;). To edit this wiki, contact the [[User:Infoadmin | Infoadmin]]&lt;br /&gt;
&lt;br /&gt;
== Important Public Items ==&lt;br /&gt;
*Public [[Documents]] about the lab&lt;br /&gt;
*[[FAQ]] (new) on programs&lt;br /&gt;
*Lab [[Calendar]]&lt;br /&gt;
*[http://www.gersteinlab.org/index.html.1jun11 Old version] of lab homepage&lt;br /&gt;
*[[Permissions]]&lt;br /&gt;
*[[Privacy]]&lt;br /&gt;
*Prominent [[public wiki pages linked from elsewhere]]&lt;br /&gt;
&lt;br /&gt;
== Info for New People ==&lt;br /&gt;
*[[General Information for New Undergraduates]] thinking about working in the lab&lt;br /&gt;
* Information for &amp;lt;B&amp;gt;new people&amp;lt;/B&amp;gt; starting in the lab from the private wiki ([http://wiki.gersteinlab.org/labinfo/Group_Meeting_and_JC_Procedure], [http://wiki.gersteinlab.org/labinfo/Bad_Times_and_Contact_Info], [http://wiki.gersteinlab.org/labinfo/New_People_Entering_Lab], [http://wiki.gersteinlab.org/labinfo/Staff])&lt;br /&gt;
&lt;br /&gt;
== Info for Lab Members and Collaborators ==&lt;br /&gt;
*[http://wiki.gersteinlab.org/labinfo/Lab_Computing_Resources Lab Computing Resources] page. &lt;br /&gt;
*[http://wiki.gersteinlab.org/labinfo/Making_conference_calls_or_lab_related_calls Making phone calls] (SKYPE information included) page.&lt;br /&gt;
*[http://wiki.gersteinlab.org/labinfo/Using_copier Using copier] page.&lt;br /&gt;
*[http://www.facebook.com/group.php?gid=54856837624 Gerstein Lab Facebook Page]&lt;br /&gt;
*[http://bioinfo.mbb.yale.edu/pipermail/web/ Public WEB Mailing List] (no longer in use)&lt;br /&gt;
* [[Streamlining Draft Flow]] (Ideas for streamlining the process of drafting and submitting papers)&lt;br /&gt;
** Way to list Mark&#039;s [[Affiliation]] on papers &lt;br /&gt;
** See [[xxmg at gersteinlab.org | xxmg@gersteinlab.org]] for correct address to use for paper correspondence.&lt;br /&gt;
** Note that &#039;&#039;&#039;xxmg at bioinfo.mbb.yale.edu&#039;&#039;&#039; for paper correspondence is deprecated. &lt;br /&gt;
* [[Pointers on Powerpoints]] and [[Pointers on Grant Sections]]&lt;br /&gt;
* [[Recommendation Letters]]&lt;br /&gt;
* Lab [[Resources Document]] (NIH form)&lt;br /&gt;
* Google Groups: [http://group.gersteinlab.org homepage], for [http://docs.google.com/a/gersteinlab.org DOCS]&lt;br /&gt;
* Some Useful University Policies&lt;br /&gt;
** Snippets from [[MB&amp;amp;B Policy for Graduate Students on Vacation and Travel]] and [[Policy on Postdoc Appointments]]&lt;br /&gt;
** Policies on visitors: [http://provost.yale.edu/minors-in-labs Policy on Minors in Labs] ([http://archive.gersteinlab.org/docs/2010/06.02/Policy-on-Minors-in-Labs.pdf  old]), [http://provost.yale.edu/policy-access-university-labs-and-research-facilities Policy on Access to the Lab]&lt;br /&gt;
** Travel per diem information: [http://www.yale.edu/ppdev/Guides/bluepages.pdf Yale Blue Pages]&lt;br /&gt;
* Useful links: [http://www.yale.edu/its/accounts/netid.html Yale NetID System], [http://www.yale.edu/its/network/vpn_faq.html Yale VPN FAQ], [http://www.yale.edu/its/network/wireless/faq.html Yale Wireless FAQ], [http://www.yale.edu/its/telecom/dialing.html Yale Dialing Instructions], [https://config.mail.yale.edu Configuring Yale email], [http://www.yale.edu/ris/main.html Poster Printing]&lt;br /&gt;
* [http://maguro.cs.yale.edu:8000/Center_for_High_Performance_Computation_in_Biology_and_Biomedicine Yale High Performance Computing Center]&lt;br /&gt;
* Information on [[what grant to charge something to]]&lt;br /&gt;
* Information on [[Meeting Invites]]&lt;br /&gt;
* [http://araman.mbgnet/nagios/ System Status] MBGNet LAN access only.&lt;br /&gt;
* [http://info.gersteinlab.org/Tools Tools] page&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1325</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1325"/>
		<updated>2011-06-07T17:01:35Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* (versions 0.7.0 and later) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later) =====&lt;br /&gt;
Starting from version 0.7.0 (alpha), libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: if headers and libraries of required packages (libmrf, libbios, GD, GSL, etc.) are not installed in a standard location, one would need to set the paths using CPPFLAGS and LDFLAGS. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/path/to/header/files -I/path/2/header/files ...&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/path/to/lib/files  -L/path/to/lib/files ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If one doesn&#039;t want to list all relevant directories, a convenient approach is the creation of local &#039;&#039;include&#039;&#039; and &#039;&#039;lib&#039;&#039; directories and use symbolic links to the relevant files. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include&lt;br /&gt;
$ mkdir ~/fusionseq/lib&lt;br /&gt;
$ cd ~/fusionseq/include &lt;br /&gt;
$ ln -s /path/to/libbios/include/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/include/* .&lt;br /&gt;
$ ln -s /path/to/gsl/include/* .&lt;br /&gt;
$ ln -s /path/to/gd/include/* .&lt;br /&gt;
$ cd ~/fusionseq/lib&lt;br /&gt;
$ ln -s /path/to/libbios/lib/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/lib/* .&lt;br /&gt;
$ ln -s /path/to/gsl/lib/* .&lt;br /&gt;
$ ln -s /path/to/gd/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hence, one could simply define:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/home/user/fusionseq/include&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/home/user/fusionseq/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. &#039;&#039;&#039;NOTE&#039;&#039;&#039;: for Ubuntu users, the detailed instructions to install [http://root.cern.ch/drupal/ ROOT] can be found [http://cometpeak.com/2011/05/building-and-installing-root-on-ubuntu-11-04-x86_64/ here].&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later)===== &lt;br /&gt;
If ROOT is installed in the default folder, it will generate a subfolder &#039;root&#039; both for the include and lib files. In the case of a non-standard location for [http://root.cern.ch/drupal/ ROOT], however, this doesn&#039;t occur. Hence, a similar approach as above can be adopted to properly link [http://root.cern.ch/drupal/ ROOT] files for FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include/root&lt;br /&gt;
$ cd ~/fusionseq/include/root&lt;br /&gt;
$ ln -s /path/to/root/include/* .&lt;br /&gt;
$ mkdir ~/fusionseq/lib/root&lt;br /&gt;
$ cd ~/fusionseq/lib/root&lt;br /&gt;
$ ln -s /path/to/root/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, for some versions of ROOT, one may get the following error:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[...]/root/include/Rtypes.h:35:67: error: snprintf.h: No such file or directory&lt;br /&gt;
[...]/root/include/Rtypes.h:36:68: error: strlcpy.h: No such file or directory&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is because ROOT provides its own copy of the header files. One workaround is thus to create symbolic links&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd ~/fusionseq/include&lt;br /&gt;
$ ln -s root/snprintf.h .&lt;br /&gt;
$ ln -s root/strlcpy.h .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This should solve it.&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later)=====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = /path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_FAQ&amp;diff=1273</id>
		<title>FusionSeq FAQ</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_FAQ&amp;diff=1273"/>
		<updated>2011-05-19T18:08:59Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Paired-end reads and bowtie: I aligned each end separately. How do I convert the alignment file to MRF? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
=General Questions=&lt;br /&gt;
==Does FusionSeq work with &#039;&#039;my favorite&#039;&#039; alignment tool?==&lt;br /&gt;
The format of the paired-end reads that is &amp;quot;understood&amp;quot; by FusionSeq is [[RSEQtools#Mapped_Read_Format|Mapped Read Format (MRF)]]. We provide several conversion tools from most common alignment programs and formats, including SAM/BAM, to represent mapped reads using MRF. Please take a look at [http://rseqtools.gersteinlab.org/ RSEQtools] for more information, and specifically to: [[RSEQtools#Format_conversion_utilities|Format conversion utilities]].&lt;br /&gt;
&lt;br /&gt;
==Does FusionSeq work with colorspace paired-end reads?==&lt;br /&gt;
FusionSeq has been developed to be as much independent as possible from the sequencing technology and the alignment tool. However, extensive testing was conducted on Illumina Genome Analyzer II platform only.&lt;br /&gt;
&lt;br /&gt;
==Where can I obtain the annotation data for hg19?==&lt;br /&gt;
Annotation data for hg19 can be found [[FusionSeq_Requirements#Human_genome_GRCh37.2Fhg19|here]].&lt;br /&gt;
&lt;br /&gt;
==Can I use FusionSeq with &#039;&#039;my favorite species&#039;&#039;?==&lt;br /&gt;
In principle, you can run FusionSeq using any paired-end RNA-Seq data. However, you would need to provide the corresponding data that is currently used for human, i.e.:&lt;br /&gt;
# a genome sequence, in 2bit format&lt;br /&gt;
# a gene annotation set in interval format; including &#039;&#039;composite&#039;&#039; models of genes&lt;br /&gt;
# the sequences of the composite models in the gene annotation set&lt;br /&gt;
# a mapping between your gene annotation and TreeFam (optional, used by gfrLargeScaleHomologyFilter)&lt;br /&gt;
# a list of the repetitive regions, in interval format (optional, used by gfrRepeatMaskerFilter)&lt;br /&gt;
# a ribosomal sequence library in 2bit format (optional, used by gfrRibosomalFilter)&lt;br /&gt;
# the mapping between your gene annotation and other descriptive information, e.g. gene symbols, descriptions, etc. (optional, used by gfrAddInfo)&lt;br /&gt;
&lt;br /&gt;
==Where can I find some data sets to test FusionSeq?==&lt;br /&gt;
Please find some test data sets [[FusionSeq_Test_Datasets|here]].&lt;br /&gt;
&lt;br /&gt;
==Is there a demo version of FusionSeq?==&lt;br /&gt;
A demo version of the web-interface of FusionSeq is available [http://dynamic.gersteinlab.org/people/asboner/FusionSeq/geneFusions_cgi here]. You can access the results described in the paper, by typing the sample ID (e.g. 106_T, 1700_D, etc.).&lt;br /&gt;
&lt;br /&gt;
==Where can I find more information?==&lt;br /&gt;
The most up-to-date user documentation for FusionSeq is available [[FusionSeq|here]]. If you look for the developer&#039;s documentation, you can find it [http://archive.gersteinlab.org/proj/rnaseq/fusionseq/documentation/index.html here].&lt;br /&gt;
&lt;br /&gt;
==The BOWTIE_INDEXES directory is used for reference indexes as well as for temporary index files. However, I have a centralized repository of indexed genomes and cannot create the temporary files in that directory==&lt;br /&gt;
A workaround of this issue would be to create a local directory where one has write permission. This would solve the problem of generating temporary index files when running the junction-sequence identifier module. To also have the indexed genome and transcriptome in the same folder, one could link them symbolically, for example:&lt;br /&gt;
 $ cd /path/to/local/folder/&lt;br /&gt;
 $ ln -s /path/to/centralized/repository/hg18_nh/ .&lt;br /&gt;
 $ ln -s /path/to/centralized/repository/hg18_knownGeneAnnotationTranscriptCompositeModel/ .&lt;br /&gt;
&lt;br /&gt;
Now, BOWTIE_INDEXES in geneFusionConfig.h should point to /path/to/local/folder/ where the user can generate temporary files:&lt;br /&gt;
 #define BOWTIE_INDEXES /path/to/local/folder&lt;br /&gt;
&lt;br /&gt;
==How can I cite FusionSeq?==&lt;br /&gt;
Please cite this publication:&lt;br /&gt;
* Sboner A, Habegger L, Pflueger D, Terry S, Chen DZ, Rozowsky JS, Tewari AK, Kitabayashi N, Moss BJ, Chee MS, Demichelis F, Rubin MA, Gerstein MB. &#039;&#039;&#039;FusionSeq: a modular framework for finding gene fusions by analyzing Paired-End RNA-Sequencing data&#039;&#039;&#039;. &#039;&#039;Genome Biol&#039;&#039; 21 Oct. 2010; &#039;&#039;&#039;11&#039;&#039;&#039;:R104  [http://dx.doi.org/10.1186/gb-2010-11-10-r104|doi:10.1186/gb-2010-11-10-r104]&lt;br /&gt;
&lt;br /&gt;
=Compilation troubleshooting=&lt;br /&gt;
&lt;br /&gt;
==Where can I find the BIOS library, required for FusionSeq?==&lt;br /&gt;
As described in [[Requirements]], the [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] library can be downloaded as part of [http://rseqtools.gersteinlab.org RSEQtools], a computational framework to analyze RNA-Seq data, or it can be downloaded as a separate component from [http://rnaseq.gersteinlab.org/fusionseq/tarballs/bios_0.9.0.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
==TROOT.h: No such file or directory==&lt;br /&gt;
This error occurs because the compiler does not find TROOT.h file. This file is part of [http://root.cern.ch/drupal/ ROOT], a framework for mathematical and statistical analysis. If you have installed [http://root.cern.ch/drupal/ ROOT], please make sure that you have defined ROOTSYS as the path to the ROOT folder and added it to your PATH:&lt;br /&gt;
 $ export ROOTSYS=/path/to/ROOT/ &lt;br /&gt;
 $ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
Please also see [[Installation_and_Configuration_of_FusionSeq#Installing_and_configuring_ROOT|Installing and configuring ROOT]] for more details.&lt;br /&gt;
&lt;br /&gt;
=Running issues=&lt;br /&gt;
==FusionSeq does not find the annotation datasets. However, geneFusionConfig.h specifies their correct location and the files are present.==&lt;br /&gt;
This error:&lt;br /&gt;
 ls_createFromFile    &#039;$HOME/path/to/data/annotation_data.txt&#039;&lt;br /&gt;
occurs because environmental variable, such as $HOME, are not interpreted. Please use full path names in geneFusionConfig.h to specify directory locations.&lt;br /&gt;
&lt;br /&gt;
==I followed the instructions, but I still get many WARNINGs. Is this expected?==&lt;br /&gt;
Yes, every program in FusionSeq provides some logging information. We recommend to capture the log data by redirecting STDERR (e.g. &#039;2&amp;gt; fusionseq.log&#039;).&lt;br /&gt;
&lt;br /&gt;
==geneFusions: Segmentation Fault==&lt;br /&gt;
There a number of reasons why one gets this error. One possibility is the lack of the sequences in the MRF file. Although MRF does not require the inclusion of sequences to be valid, sequences are indeed required by geneFusions. Please ensure that sequences are present in the MRF file.&lt;br /&gt;
&lt;br /&gt;
==Paired-end reads and bowtie: I aligned each end separately. How do I convert the alignment file to MRF?==&lt;br /&gt;
To convert bowtie alignment into MRF when ends are aligned separately, we require the two ends to be on subsequent lines. This could be partially achieved by concatenating and sorting the two alignment files, e.g. cat end_1.bowtie end_2.bowtie | sort  &amp;gt; alignment.bowtie. However, in some cases, only one end is mapped, thus creating &amp;quot;singletons&amp;quot; in the alignment file, where only one end is reported. Since there have been many requests regarding this issue, we decided to share an &amp;quot;internal&amp;quot; utility: bowtiePairedFix. Here you can download the binary file:&lt;br /&gt;
&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/rnaseq/fusionseq/tarballs/bowtiePairedFix.linux64 bowtiePairedFix (GNU/Linux x86_64)]&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/rnaseq/fusionseq/tarballs/bowtiePairedFix.MacOs.10.6.7 bowtiePairedFix (MacOs 10.6.7)]&lt;br /&gt;
The conversion command is:&lt;br /&gt;
 cat end_1.bowtie end_2.bowtie | sort | bowtiePairedFix | bowtie2mrf paired -sequence &amp;gt; data.mrf 2&amp;gt; data.mrf.log&lt;br /&gt;
&lt;br /&gt;
Please note that this program is also provided &amp;quot;as is&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1272</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1272"/>
		<updated>2011-05-17T18:48:25Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* (versions 0.7.0 and later) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later) =====&lt;br /&gt;
Starting from version 0.7.0 (alpha), libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: if headers and libraries of required packages (libmrf, libbios, GD, GSL, etc.) are not installed in a standard location, one would need to set the paths using CPPFLAGS and LDFLAGS. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/path/to/header/files -I/path/2/header/files ...&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/path/to/lib/files  -L/path/to/lib/files ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If one doesn&#039;t want to list all relevant directories, a convenient approach is the creation of local &#039;&#039;include&#039;&#039; and &#039;&#039;lib&#039;&#039; directories and use symbolic links to the relevant files. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include&lt;br /&gt;
$ mkdir ~/fusionseq/lib&lt;br /&gt;
$ cd ~/fusionseq/include &lt;br /&gt;
$ ln -s /path/to/libbios/include/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/include/* .&lt;br /&gt;
$ ln -s /path/to/gsl/include/* .&lt;br /&gt;
$ ln -s /path/to/gd/include/* .&lt;br /&gt;
$ cd ~/fusionseq/lib&lt;br /&gt;
$ ln -s /path/to/libbios/lib/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/lib/* .&lt;br /&gt;
$ ln -s /path/to/gsl/lib/* .&lt;br /&gt;
$ ln -s /path/to/gd/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hence, one could simply define:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/home/user/fusionseq/include&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/home/user/fusionseq/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. &#039;&#039;&#039;NOTE&#039;&#039;&#039;: for Ubuntu users, the detailed instructions to install [http://root.cern.ch/drupal/ ROOT] can be found [http://cometpeak.com/2011/05/building-and-installing-root-on-ubuntu-11-04-x86_64/ here].&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later)===== &lt;br /&gt;
If ROOT is installed in the default folder, it will generate a subfolder &#039;root&#039; both for the include and lib files. In the case of a non-standard location for [http://root.cern.ch/drupal/ ROOT], however, this doesn&#039;t occur. Hence, a similar approach as above can be adopted to properly link [http://root.cern.ch/drupal/ ROOT] files for FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include/root&lt;br /&gt;
$ cd ~/fusionseq/include/root&lt;br /&gt;
$ ln -s /path/to/root/include/* .&lt;br /&gt;
$ mkdir ~/fusionseq/lib/root&lt;br /&gt;
$ cd ~/fusionseq/lib/root&lt;br /&gt;
$ ln -s /path/to/root/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later)=====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = /path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1271</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1271"/>
		<updated>2011-05-17T18:48:02Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Installing and configuring ROOT */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) ====&lt;br /&gt;
Starting from version 0.7.0 (alpha), libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: if headers and libraries of required packages (libmrf, libbios, GD, GSL, etc.) are not installed in a standard location, one would need to set the paths using CPPFLAGS and LDFLAGS. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/path/to/header/files -I/path/2/header/files ...&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/path/to/lib/files  -L/path/to/lib/files ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If one doesn&#039;t want to list all relevant directories, a convenient approach is the creation of local &#039;&#039;include&#039;&#039; and &#039;&#039;lib&#039;&#039; directories and use symbolic links to the relevant files. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include&lt;br /&gt;
$ mkdir ~/fusionseq/lib&lt;br /&gt;
$ cd ~/fusionseq/include &lt;br /&gt;
$ ln -s /path/to/libbios/include/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/include/* .&lt;br /&gt;
$ ln -s /path/to/gsl/include/* .&lt;br /&gt;
$ ln -s /path/to/gd/include/* .&lt;br /&gt;
$ cd ~/fusionseq/lib&lt;br /&gt;
$ ln -s /path/to/libbios/lib/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/lib/* .&lt;br /&gt;
$ ln -s /path/to/gsl/lib/* .&lt;br /&gt;
$ ln -s /path/to/gd/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hence, one could simply define:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/home/user/fusionseq/include&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/home/user/fusionseq/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. &#039;&#039;&#039;NOTE&#039;&#039;&#039;: for Ubuntu users, the detailed instructions to install [http://root.cern.ch/drupal/ ROOT] can be found [http://cometpeak.com/2011/05/building-and-installing-root-on-ubuntu-11-04-x86_64/ here].&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later)===== &lt;br /&gt;
If ROOT is installed in the default folder, it will generate a subfolder &#039;root&#039; both for the include and lib files. In the case of a non-standard location for [http://root.cern.ch/drupal/ ROOT], however, this doesn&#039;t occur. Hence, a similar approach as above can be adopted to properly link [http://root.cern.ch/drupal/ ROOT] files for FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include/root&lt;br /&gt;
$ cd ~/fusionseq/include/root&lt;br /&gt;
$ ln -s /path/to/root/include/* .&lt;br /&gt;
$ mkdir ~/fusionseq/lib/root&lt;br /&gt;
$ cd ~/fusionseq/lib/root&lt;br /&gt;
$ ln -s /path/to/root/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later)=====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = /path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1270</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1270"/>
		<updated>2011-05-17T18:47:39Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* (versions up to 0.6.1) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) ====&lt;br /&gt;
Starting from version 0.7.0 (alpha), libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: if headers and libraries of required packages (libmrf, libbios, GD, GSL, etc.) are not installed in a standard location, one would need to set the paths using CPPFLAGS and LDFLAGS. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/path/to/header/files -I/path/2/header/files ...&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/path/to/lib/files  -L/path/to/lib/files ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If one doesn&#039;t want to list all relevant directories, a convenient approach is the creation of local &#039;&#039;include&#039;&#039; and &#039;&#039;lib&#039;&#039; directories and use symbolic links to the relevant files. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include&lt;br /&gt;
$ mkdir ~/fusionseq/lib&lt;br /&gt;
$ cd ~/fusionseq/include &lt;br /&gt;
$ ln -s /path/to/libbios/include/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/include/* .&lt;br /&gt;
$ ln -s /path/to/gsl/include/* .&lt;br /&gt;
$ ln -s /path/to/gd/include/* .&lt;br /&gt;
$ cd ~/fusionseq/lib&lt;br /&gt;
$ ln -s /path/to/libbios/lib/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/lib/* .&lt;br /&gt;
$ ln -s /path/to/gsl/lib/* .&lt;br /&gt;
$ ln -s /path/to/gd/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hence, one could simply define:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/home/user/fusionseq/include&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/home/user/fusionseq/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. &#039;&#039;&#039;NOTE&#039;&#039;&#039;: for Ubuntu users, the detailed instructions to install [http://root.cern.ch/drupal/ ROOT] can be found [http://cometpeak.com/2011/05/building-and-installing-root-on-ubuntu-11-04-x86_64/ here].&lt;br /&gt;
&lt;br /&gt;
=====(version 0.7.0 and later)===== &lt;br /&gt;
If ROOT is installed in the default folder, it will generate a subfolder &#039;root&#039; both for the include and lib files. In the case of a non-standard location for [http://root.cern.ch/drupal/ ROOT], however, this doesn&#039;t occur. Hence, a similar approach as above can be adopted to properly link [http://root.cern.ch/drupal/ ROOT] files for FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include/root&lt;br /&gt;
$ cd ~/fusionseq/include/root&lt;br /&gt;
$ ln -s /path/to/root/include/* .&lt;br /&gt;
$ mkdir ~/fusionseq/lib/root&lt;br /&gt;
$ cd ~/fusionseq/lib/root&lt;br /&gt;
$ ln -s /path/to/root/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====(version up to 0.6.1)=====&lt;br /&gt;
Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later)=====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = /path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1269</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1269"/>
		<updated>2011-05-17T18:47:26Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* (versions 0.7.0 and later) -- coming soon */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) ====&lt;br /&gt;
Starting from version 0.7.0 (alpha), libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: if headers and libraries of required packages (libmrf, libbios, GD, GSL, etc.) are not installed in a standard location, one would need to set the paths using CPPFLAGS and LDFLAGS. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/path/to/header/files -I/path/2/header/files ...&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/path/to/lib/files  -L/path/to/lib/files ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If one doesn&#039;t want to list all relevant directories, a convenient approach is the creation of local &#039;&#039;include&#039;&#039; and &#039;&#039;lib&#039;&#039; directories and use symbolic links to the relevant files. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include&lt;br /&gt;
$ mkdir ~/fusionseq/lib&lt;br /&gt;
$ cd ~/fusionseq/include &lt;br /&gt;
$ ln -s /path/to/libbios/include/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/include/* .&lt;br /&gt;
$ ln -s /path/to/gsl/include/* .&lt;br /&gt;
$ ln -s /path/to/gd/include/* .&lt;br /&gt;
$ cd ~/fusionseq/lib&lt;br /&gt;
$ ln -s /path/to/libbios/lib/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/lib/* .&lt;br /&gt;
$ ln -s /path/to/gsl/lib/* .&lt;br /&gt;
$ ln -s /path/to/gd/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hence, one could simply define:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/home/user/fusionseq/include&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/home/user/fusionseq/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1)====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. &#039;&#039;&#039;NOTE&#039;&#039;&#039;: for Ubuntu users, the detailed instructions to install [http://root.cern.ch/drupal/ ROOT] can be found [http://cometpeak.com/2011/05/building-and-installing-root-on-ubuntu-11-04-x86_64/ here].&lt;br /&gt;
&lt;br /&gt;
=====(version 0.7.0 and later)===== &lt;br /&gt;
If ROOT is installed in the default folder, it will generate a subfolder &#039;root&#039; both for the include and lib files. In the case of a non-standard location for [http://root.cern.ch/drupal/ ROOT], however, this doesn&#039;t occur. Hence, a similar approach as above can be adopted to properly link [http://root.cern.ch/drupal/ ROOT] files for FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include/root&lt;br /&gt;
$ cd ~/fusionseq/include/root&lt;br /&gt;
$ ln -s /path/to/root/include/* .&lt;br /&gt;
$ mkdir ~/fusionseq/lib/root&lt;br /&gt;
$ cd ~/fusionseq/lib/root&lt;br /&gt;
$ ln -s /path/to/root/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====(version up to 0.6.1)=====&lt;br /&gt;
Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
=====(versions 0.7.0 and later)=====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = /path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1268</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1268"/>
		<updated>2011-05-17T18:46:57Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Installing and configuring ROOT */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) ====&lt;br /&gt;
Starting from version 0.7.0 (alpha), libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: if headers and libraries of required packages (libmrf, libbios, GD, GSL, etc.) are not installed in a standard location, one would need to set the paths using CPPFLAGS and LDFLAGS. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/path/to/header/files -I/path/2/header/files ...&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/path/to/lib/files  -L/path/to/lib/files ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If one doesn&#039;t want to list all relevant directories, a convenient approach is the creation of local &#039;&#039;include&#039;&#039; and &#039;&#039;lib&#039;&#039; directories and use symbolic links to the relevant files. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include&lt;br /&gt;
$ mkdir ~/fusionseq/lib&lt;br /&gt;
$ cd ~/fusionseq/include &lt;br /&gt;
$ ln -s /path/to/libbios/include/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/include/* .&lt;br /&gt;
$ ln -s /path/to/gsl/include/* .&lt;br /&gt;
$ ln -s /path/to/gd/include/* .&lt;br /&gt;
$ cd ~/fusionseq/lib&lt;br /&gt;
$ ln -s /path/to/libbios/lib/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/lib/* .&lt;br /&gt;
$ ln -s /path/to/gsl/lib/* .&lt;br /&gt;
$ ln -s /path/to/gd/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hence, one could simply define:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/home/user/fusionseq/include&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/home/user/fusionseq/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1)====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. &#039;&#039;&#039;NOTE&#039;&#039;&#039;: for Ubuntu users, the detailed instructions to install [http://root.cern.ch/drupal/ ROOT] can be found [http://cometpeak.com/2011/05/building-and-installing-root-on-ubuntu-11-04-x86_64/ here].&lt;br /&gt;
&lt;br /&gt;
=====(version 0.7.0 and later)===== &lt;br /&gt;
If ROOT is installed in the default folder, it will generate a subfolder &#039;root&#039; both for the include and lib files. In the case of a non-standard location for [http://root.cern.ch/drupal/ ROOT], however, this doesn&#039;t occur. Hence, a similar approach as above can be adopted to properly link [http://root.cern.ch/drupal/ ROOT] files for FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include/root&lt;br /&gt;
$ cd ~/fusionseq/include/root&lt;br /&gt;
$ ln -s /path/to/root/include/* .&lt;br /&gt;
$ mkdir ~/fusionseq/lib/root&lt;br /&gt;
$ cd ~/fusionseq/lib/root&lt;br /&gt;
$ ln -s /path/to/root/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====(version up to 0.6.1)=====&lt;br /&gt;
Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = /path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1267</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1267"/>
		<updated>2011-05-17T18:44:35Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* (versions 0.7.0 and later) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) ====&lt;br /&gt;
Starting from version 0.7.0 (alpha), libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: if headers and libraries of required packages (libmrf, libbios, GD, GSL, etc.) are not installed in a standard location, one would need to set the paths using CPPFLAGS and LDFLAGS. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/path/to/header/files -I/path/2/header/files ...&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/path/to/lib/files  -L/path/to/lib/files ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If one doesn&#039;t want to list all relevant directories, a convenient approach is the creation of local &#039;&#039;include&#039;&#039; and &#039;&#039;lib&#039;&#039; directories and use symbolic links to the relevant files. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include&lt;br /&gt;
$ mkdir ~/fusionseq/lib&lt;br /&gt;
$ cd ~/fusionseq/include &lt;br /&gt;
$ ln -s /path/to/libbios/include/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/include/* .&lt;br /&gt;
$ ln -s /path/to/gsl/include/* .&lt;br /&gt;
$ ln -s /path/to/gd/include/* .&lt;br /&gt;
$ cd ~/fusionseq/lib&lt;br /&gt;
$ ln -s /path/to/libbios/lib/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/lib/* .&lt;br /&gt;
$ ln -s /path/to/gsl/lib/* .&lt;br /&gt;
$ ln -s /path/to/gd/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hence, one could simply define:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/home/user/fusionseq/include&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/home/user/fusionseq/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1)====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. &#039;&#039;&#039;NOTE&#039;&#039;&#039;: for Ubuntu users, the detailed instructions to install ROOT can be found [http://cometpeak.com/2011/05/building-and-installing-root-on-ubuntu-11-04-x86_64/ here].&lt;br /&gt;
&lt;br /&gt;
=====version up to 0.6.1=====&lt;br /&gt;
Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = /path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1266</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1266"/>
		<updated>2011-05-17T18:43:58Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Installing and configuring ROOT */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) ====&lt;br /&gt;
Starting from version 0.7.0 (alpha), libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: if headers and libraries of required packages (libmrf, libbios, GD, GSL, etc.) are not installed in a standard location, one would need to set the paths using CPPFLAGS and LDFLAGS. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/path/to/header/files -I/path/2/header/files ...&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/path/to/lib/files  -L/path/to/lib/files ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If one doesn&#039;t want to list all relevant directories, a convenient approach is the creation of local &#039;&#039;include&#039;&#039; and &#039;&#039;lib&#039;&#039; directories and use symbolic links to the relevant files. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include&lt;br /&gt;
$ mkdir ~/fusionseq/lib&lt;br /&gt;
$ cd ~/fusionseq/include &lt;br /&gt;
$ ln -s /path/to/libbios/include/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/include/* .&lt;br /&gt;
$ ln -s /path/to/gsl/include/* .&lt;br /&gt;
$ ln -s /path/to/gd/include/* .&lt;br /&gt;
$ cd ~/fusionseq/lib&lt;br /&gt;
$ ln -s /path/to/libbios/lib/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/lib/* .&lt;br /&gt;
$ ln -s /path/to/gsl/lib/* .&lt;br /&gt;
$ ln -s /path/to/gd/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hence, one could simply define:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/home/user/fusionseq/include&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/home/user/fusionseq/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: If ROOT is installed in the default folder, it will generate a subfolder &#039;root&#039; both for the include and lib files. In the case of a non-standard location for ROOT, however, this doesn&#039;t occur. Hence, a similar approach as above can be adopted to properly link root files. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include/root&lt;br /&gt;
$ cd ~/fusionseq/include/root&lt;br /&gt;
$ ln -s /path/to/root/include/* .&lt;br /&gt;
$ mkdir ~/fusionseq/lib/root&lt;br /&gt;
$ cd ~/fusionseq/lib/root&lt;br /&gt;
$ ln -s /path/to/root/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1)====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. &#039;&#039;&#039;NOTE&#039;&#039;&#039;: for Ubuntu users, the detailed instructions to install ROOT can be found [http://cometpeak.com/2011/05/building-and-installing-root-on-ubuntu-11-04-x86_64/ here].&lt;br /&gt;
&lt;br /&gt;
=====version up to 0.6.1=====&lt;br /&gt;
Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = /path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1265</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1265"/>
		<updated>2011-05-17T14:09:46Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* (versions 0.7.0 and later) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) ====&lt;br /&gt;
Starting from version 0.7.0 (alpha), libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: if headers and libraries of required packages (libmrf, libbios, GD, GSL, etc.) are not installed in a standard location, one would need to set the paths using CPPFLAGS and LDFLAGS. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/path/to/header/files -I/path/2/header/files ...&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/path/to/lib/files  -L/path/to/lib/files ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If one doesn&#039;t want to list all relevant directories, a convenient approach is the creation of local &#039;&#039;include&#039;&#039; and &#039;&#039;lib&#039;&#039; directories and use symbolic links to the relevant files. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include&lt;br /&gt;
$ mkdir ~/fusionseq/lib&lt;br /&gt;
$ cd ~/fusionseq/include &lt;br /&gt;
$ ln -s /path/to/libbios/include/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/include/* .&lt;br /&gt;
$ ln -s /path/to/gsl/include/* .&lt;br /&gt;
$ ln -s /path/to/gd/include/* .&lt;br /&gt;
$ cd ~/fusionseq/lib&lt;br /&gt;
$ ln -s /path/to/libbios/lib/* .&lt;br /&gt;
$ ln -s /path/to/libmrf/lib/* .&lt;br /&gt;
$ ln -s /path/to/gsl/lib/* .&lt;br /&gt;
$ ln -s /path/to/gd/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hence, one could simply define:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/home/user/fusionseq/include&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/home/user/fusionseq/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: If ROOT is installed in the default folder, it will generate a subfolder &#039;root&#039; both for the include and lib files. In the case of a non-standard location for ROOT, however, this doesn&#039;t occur. Hence, a similar approach as above can be adopted to properly link root files. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include/root&lt;br /&gt;
$ cd ~/fusionseq/include/root&lt;br /&gt;
$ ln -s /path/to/root/include/* .&lt;br /&gt;
$ mkdir ~/fusionseq/lib/root&lt;br /&gt;
$ cd ~/fusionseq/lib/root&lt;br /&gt;
$ ln -s /path/to/root/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1)====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = /path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1263</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1263"/>
		<updated>2011-05-12T11:57:20Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* (versions 0.7.0 and later) -- coming soon */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) ====&lt;br /&gt;
Starting from version 0.7.0 (alpha), libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: if headers and libraries of required packages (GD, GSL, etc) are not installed in a standard location, one would need to set the paths using CPPFLAGS and LDFLAGS. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/path/to/header/files -I/path/2/header/files ...&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/path/to/lib/files  -L/path/to/lib/files ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
One convenient approach could be the creation of local include and lib directories and use symbolic links to the relevant files. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include&lt;br /&gt;
$ mkdir ~/fusionseq/lib&lt;br /&gt;
$ cd ~/fusionseq/include &lt;br /&gt;
$ ln -s /path/to/gsl/include/* .&lt;br /&gt;
$ ln -s /path/to/gd/include/* .&lt;br /&gt;
$ cd ~/fusionseq/lib&lt;br /&gt;
$ ln -s /path/to/gsl/lib/* .&lt;br /&gt;
$ ln -s /path/to/gd/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hence, one could simply define:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/home/user/fusionseq/include&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/home/user/fusionseq/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: If ROOT is installed in the default folder, it will generate a subfolder &#039;root&#039; both for the include and lib files. In the case of non-standard location for ROOT, however, this doesn&#039;t occur. Hence, the same approach as above can be adopted to properly link root files. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include/root&lt;br /&gt;
$ cd ~/fusionseq/include/root&lt;br /&gt;
$ ln -s /path/to/root/include/* .&lt;br /&gt;
$ mkdir ~/fusionseq/lib/root&lt;br /&gt;
$ cd ~/fusionseq/lib/root&lt;br /&gt;
$ ln -s /path/to/root/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1)====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = /path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1262</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1262"/>
		<updated>2011-05-12T11:37:20Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* (versions 0.7.0 and later) -- coming soon */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Starting from version 0.7.0, libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: if headers and libraries of required packages (GD, GSL, etc) are not installed in a standard location, one would need to set the paths using CPPFLAGS and LDFLAGS. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export CPPFLAGS=&amp;quot;-I/path/to/header/files -I/path/2/header/files ...&amp;quot;&lt;br /&gt;
$ export LDFLAGS=&amp;quot;-L/path/to/lib/files  -L/path/to/lib/files ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
One convenient approach could be the creation of local include and lib directories and use symbolic links to the relevant files. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mkdir ~/fusionseq/include&lt;br /&gt;
$ mkdir ~/fusionseq/lib&lt;br /&gt;
$ cd ~/fusionseq/include &lt;br /&gt;
$ ln -s /path/to/gsl/include/* .&lt;br /&gt;
$ ln -s /path/to/gd/include/* .&lt;br /&gt;
$ cd ~/fusionseq/lib&lt;br /&gt;
$ ln -s /path/to/gsl/lib/* .&lt;br /&gt;
$ ln -s /path/to/gd/lib/* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1)====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = /path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1261</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1261"/>
		<updated>2011-05-11T18:08:21Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Auxiliary modules */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Starting from version 0.7.0, libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1)====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = /path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Download&amp;diff=1260</id>
		<title>FusionSeq Download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Download&amp;diff=1260"/>
		<updated>2011-05-11T17:49:35Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Early acces version */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
&lt;br /&gt;
Before downloading FusionSeq, please read the [[FusionSeq_Requirements|requirements]] first.&lt;br /&gt;
===Download ===&lt;br /&gt;
The latest stable version (2010.10.30) is: [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_0.6.1.tar.gz FusionSeq ver. 0.6.1].&lt;br /&gt;
&lt;br /&gt;
Previous versions can be found [http://rnaseq.gersteinlab.org/fusionseq/tarballs/oldversions/ here]. See the [[FusionSeq_ChangeLog|changelog]] for more details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Early access version===&lt;br /&gt;
Here you can download the early access version of FusionSeq. This is considered a pre-release version, thus we would much appreciate any feedback. Please also note that starting from version 0.7.0, we adopted a different approach to install and run FusionSeq. Specifically:&lt;br /&gt;
# Installation from source code is simplified and uses the standard autoconf/automake, etc. tools. See [[Installation and Configuration of FusionSeq]].&lt;br /&gt;
# The configuration file is now an external text file. This enables the use of binary files for the system supported, without the need to install it from scratch.&lt;br /&gt;
&lt;br /&gt;
=====Source code=====&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/fusionseq/tarballs/fusionseq-0.7.0.tar.gz version 0.7.0 (alpha)]&lt;br /&gt;
&lt;br /&gt;
=====Binaries=====&lt;br /&gt;
* coming soon&lt;br /&gt;
&lt;br /&gt;
===Important note for both the stable release and the early access one===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
THIS PACKAGE (FusionSeq) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, &lt;br /&gt;
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Also, consult the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage. We have chosen a [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommercial)].&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1259</id>
		<title>FusionSeq Requirements</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1259"/>
		<updated>2011-05-07T11:53:39Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Human genome GRCh37/hg19 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Software Requirements==&lt;br /&gt;
FusionSeq requires several additional packages to be installed in order to carry out the analysis and visualize the results. Moreover, since its modularity, different programs would need specific libraries. Moreover, some data sets are also required for the analysis (see [[#Data Requirements|Data Requirements]]). Here we describe the complete set of tools that one would need to run the analysis as we do in our lab. The modules should be installed in the listed order. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the following instructions apply if one wants to compile FusionSeq from the source code (all versions). Alternatively, one can download the [[FusionSeq_Download#Binaries|binaries]] (version 7.0 and later). &lt;br /&gt;
&lt;br /&gt;
===Alignment tools===&lt;br /&gt;
* [http://bowtie-bio.sourceforge.net/index.shtml bowtie] (64bit)&lt;br /&gt;
* [http://users.soe.ucsc.edu/~kent/src/ Blat (source)] [http://genome-test.cse.ucsc.edu/~kent/exe/ (binaries)]&lt;br /&gt;
Please make sure that blat and bowtie executables are part of the PATH, i.e. they can be accessed and executed from any location on your file system. Moreover, make sure that twoBitToFa is also downloaded from the blat package and part of the PATH.&lt;br /&gt;
&lt;br /&gt;
===Scientific and bioinformatics libraries===&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GNU Scientific Library (GSL)]: this library is a required for the compilation of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. As a reference, we tested FusionSeq with gsl-1.14.&lt;br /&gt;
=====(versions 0.7.0 and later)=====&lt;br /&gt;
* Starting with version 0.7.0, two new libraries are required:&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/bios/ libbios], which replaces the old BIOS, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libbios-1.1.0.tar.gz here].&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/mrf/ libmrf] can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libmrf-1.0.0.tar.gz here]&lt;br /&gt;
Please note that this libraries are for the &amp;quot;early access&amp;quot; version of FusionSeq.&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] library: this library can be downloaded as part of [http://rseqtools.gersteinlab.org RSEQtools], a computational framework to analyze RNA-Seq data, or it can be downloaded as a separate component from [http://rnaseq.gersteinlab.org/fusionseq/tarballs/bios_0.9.0.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instructions to install [http://www.gnu.org/software/gsl/ GSL] and [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] (or libbios and libmrf -- depending on the version) can be found in &#039;&#039;&#039;[[Installation and Configuration of FusionSeq]]&#039;&#039;&#039;. However, please ensure that you read all the requirements (including [[#Data_requirements|Data requirements]]) and downloaded all the libraries and packages needed.&lt;br /&gt;
&lt;br /&gt;
===Drawing tools===&lt;br /&gt;
* [http://www.boutell.com/gd/ GD library]: The gd library is used to create schematic images of the PE reads connecting the two genes. It is required by [[FusionSeq_List_of_programs#gfr2images|gfr2images]], which is an optional component of FusionSeq. As a reference, we tested FusionSeq with gd-2.0.35.&lt;br /&gt;
&lt;br /&gt;
===Data analysis===&lt;br /&gt;
* [http://root.cern.ch/drupal/ ROOT]: this is a very powerful mathematical and computational framework. In the context of FusionSeq, it is used to perform a Kolomogorov-Smirnov analysis for filtering the breakpoint junctions and plotting the insert-size distribution. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data Requirements==&lt;br /&gt;
Here is the list of required data for a comprehensive use of FusionSeq tools. &lt;br /&gt;
&lt;br /&gt;
===External===&lt;br /&gt;
*[http://hgdownload.cse.ucsc.edu/goldenPath/hg18/bigZips/ Homo Sapiens Reference genome (hg18)]: the user should download both chromFa.zip and hg18.2bit.&lt;br /&gt;
The human genome needs to be properly indexed to be used by bowtie. Please see the instruction of bowtie for performing this operation. Indicatevely, you would need to run something like: &lt;br /&gt;
 $ bowtie-build -f hg18_nh.fa /path/to/bowtie/Index/hg18_nh/hg18_nh&lt;br /&gt;
where &#039;&#039;&#039;hg18_nh.fa&#039;&#039;&#039; corresponds to the concatenation of all human chromosomes from chromFa.zip &#039;&#039;without&#039;&#039; the different haplotypes and the &amp;quot;random&amp;quot; sequences.&lt;br /&gt;
&lt;br /&gt;
===Provided===&lt;br /&gt;
The following data sets (for hg18), bundled in a tarball, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg18_1.1.tar.gz here (hg18)]. For hg19 see [[#Human genome GRCh37/hg19|below]].&lt;br /&gt;
&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.txt - the interval file with the coordinates of the composite models&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.fa - the sequences of all the composite transcripts&lt;br /&gt;
* kgXref.txt - the mapping between the UCSC knownGene annotation set and other information (RefSeq, gene symbols and description etc.)&lt;br /&gt;
* knownToTreefam.txt - the mapping between UCSC knownGene annotation and TreeFam&lt;br /&gt;
* hg18_repeatMasker.interval - the interval file, i.e. the file with the coordinates, of the repetitive regions&lt;br /&gt;
* ribosomal.2bit - the ribosomal sequences in 2bit format&lt;br /&gt;
&lt;br /&gt;
The composite model needs to be indexed by bowtie:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ bowtie-build -f knownGeneAnnotationTranscriptCompositeModel.fa &lt;br /&gt;
  /path/to/bowtie/Index/hg18_knownGeneAnnotationTranscriptCompositeModel/hg18_knownGeneAnnotationTranscriptCompositeModel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
knownGeneAnnotationTranscriptCompositeModel.txt (the interval file) and knownGeneAnnotationTranscriptCompositeModel.fa (the sequences) should be located in the same directory.&lt;br /&gt;
&lt;br /&gt;
Although we extensively used the UCSC knownGene annotation set, it is worth mentioning that it is possible to use other gene annotation sets. However, in this case, the same information, and in the same format, should be provided to the corresponding programs.&lt;br /&gt;
&lt;br /&gt;
=====Human genome GRCh37/hg19=====&lt;br /&gt;
The corresponding version of these files for hg19 can be found [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg19_1.0.tar.gz here (hg19)]. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1258</id>
		<title>FusionSeq Requirements</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1258"/>
		<updated>2011-05-07T11:53:23Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Provided */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Software Requirements==&lt;br /&gt;
FusionSeq requires several additional packages to be installed in order to carry out the analysis and visualize the results. Moreover, since its modularity, different programs would need specific libraries. Moreover, some data sets are also required for the analysis (see [[#Data Requirements|Data Requirements]]). Here we describe the complete set of tools that one would need to run the analysis as we do in our lab. The modules should be installed in the listed order. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the following instructions apply if one wants to compile FusionSeq from the source code (all versions). Alternatively, one can download the [[FusionSeq_Download#Binaries|binaries]] (version 7.0 and later). &lt;br /&gt;
&lt;br /&gt;
===Alignment tools===&lt;br /&gt;
* [http://bowtie-bio.sourceforge.net/index.shtml bowtie] (64bit)&lt;br /&gt;
* [http://users.soe.ucsc.edu/~kent/src/ Blat (source)] [http://genome-test.cse.ucsc.edu/~kent/exe/ (binaries)]&lt;br /&gt;
Please make sure that blat and bowtie executables are part of the PATH, i.e. they can be accessed and executed from any location on your file system. Moreover, make sure that twoBitToFa is also downloaded from the blat package and part of the PATH.&lt;br /&gt;
&lt;br /&gt;
===Scientific and bioinformatics libraries===&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GNU Scientific Library (GSL)]: this library is a required for the compilation of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. As a reference, we tested FusionSeq with gsl-1.14.&lt;br /&gt;
=====(versions 0.7.0 and later)=====&lt;br /&gt;
* Starting with version 0.7.0, two new libraries are required:&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/bios/ libbios], which replaces the old BIOS, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libbios-1.1.0.tar.gz here].&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/mrf/ libmrf] can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libmrf-1.0.0.tar.gz here]&lt;br /&gt;
Please note that this libraries are for the &amp;quot;early access&amp;quot; version of FusionSeq.&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] library: this library can be downloaded as part of [http://rseqtools.gersteinlab.org RSEQtools], a computational framework to analyze RNA-Seq data, or it can be downloaded as a separate component from [http://rnaseq.gersteinlab.org/fusionseq/tarballs/bios_0.9.0.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instructions to install [http://www.gnu.org/software/gsl/ GSL] and [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] (or libbios and libmrf -- depending on the version) can be found in &#039;&#039;&#039;[[Installation and Configuration of FusionSeq]]&#039;&#039;&#039;. However, please ensure that you read all the requirements (including [[#Data_requirements|Data requirements]]) and downloaded all the libraries and packages needed.&lt;br /&gt;
&lt;br /&gt;
===Drawing tools===&lt;br /&gt;
* [http://www.boutell.com/gd/ GD library]: The gd library is used to create schematic images of the PE reads connecting the two genes. It is required by [[FusionSeq_List_of_programs#gfr2images|gfr2images]], which is an optional component of FusionSeq. As a reference, we tested FusionSeq with gd-2.0.35.&lt;br /&gt;
&lt;br /&gt;
===Data analysis===&lt;br /&gt;
* [http://root.cern.ch/drupal/ ROOT]: this is a very powerful mathematical and computational framework. In the context of FusionSeq, it is used to perform a Kolomogorov-Smirnov analysis for filtering the breakpoint junctions and plotting the insert-size distribution. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data Requirements==&lt;br /&gt;
Here is the list of required data for a comprehensive use of FusionSeq tools. &lt;br /&gt;
&lt;br /&gt;
===External===&lt;br /&gt;
*[http://hgdownload.cse.ucsc.edu/goldenPath/hg18/bigZips/ Homo Sapiens Reference genome (hg18)]: the user should download both chromFa.zip and hg18.2bit.&lt;br /&gt;
The human genome needs to be properly indexed to be used by bowtie. Please see the instruction of bowtie for performing this operation. Indicatevely, you would need to run something like: &lt;br /&gt;
 $ bowtie-build -f hg18_nh.fa /path/to/bowtie/Index/hg18_nh/hg18_nh&lt;br /&gt;
where &#039;&#039;&#039;hg18_nh.fa&#039;&#039;&#039; corresponds to the concatenation of all human chromosomes from chromFa.zip &#039;&#039;without&#039;&#039; the different haplotypes and the &amp;quot;random&amp;quot; sequences.&lt;br /&gt;
&lt;br /&gt;
===Provided===&lt;br /&gt;
The following data sets (for hg18), bundled in a tarball, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg18_1.1.tar.gz here (hg18)]. For hg19 see [[#Human genome GRCh37/hg19|below]].&lt;br /&gt;
&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.txt - the interval file with the coordinates of the composite models&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.fa - the sequences of all the composite transcripts&lt;br /&gt;
* kgXref.txt - the mapping between the UCSC knownGene annotation set and other information (RefSeq, gene symbols and description etc.)&lt;br /&gt;
* knownToTreefam.txt - the mapping between UCSC knownGene annotation and TreeFam&lt;br /&gt;
* hg18_repeatMasker.interval - the interval file, i.e. the file with the coordinates, of the repetitive regions&lt;br /&gt;
* ribosomal.2bit - the ribosomal sequences in 2bit format&lt;br /&gt;
&lt;br /&gt;
The composite model needs to be indexed by bowtie:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ bowtie-build -f knownGeneAnnotationTranscriptCompositeModel.fa &lt;br /&gt;
  /path/to/bowtie/Index/hg18_knownGeneAnnotationTranscriptCompositeModel/hg18_knownGeneAnnotationTranscriptCompositeModel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
knownGeneAnnotationTranscriptCompositeModel.txt (the interval file) and knownGeneAnnotationTranscriptCompositeModel.fa (the sequences) should be located in the same directory.&lt;br /&gt;
&lt;br /&gt;
Although we extensively used the UCSC knownGene annotation set, it is worth mentioning that it is possible to use other gene annotation sets. However, in this case, the same information, and in the same format, should be provided to the corresponding programs.&lt;br /&gt;
&lt;br /&gt;
=====Human genome GRCh37/hg19=====&lt;br /&gt;
The corresponding version of these files for hg19 can be found [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg19_1.0.tar.gz here (hg19)]. Please note that this data set has not been thoroughly  tested yet. This means that it should work anyway.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1257</id>
		<title>FusionSeq Requirements</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1257"/>
		<updated>2011-05-07T11:53:00Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* External */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Software Requirements==&lt;br /&gt;
FusionSeq requires several additional packages to be installed in order to carry out the analysis and visualize the results. Moreover, since its modularity, different programs would need specific libraries. Moreover, some data sets are also required for the analysis (see [[#Data Requirements|Data Requirements]]). Here we describe the complete set of tools that one would need to run the analysis as we do in our lab. The modules should be installed in the listed order. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the following instructions apply if one wants to compile FusionSeq from the source code (all versions). Alternatively, one can download the [[FusionSeq_Download#Binaries|binaries]] (version 7.0 and later). &lt;br /&gt;
&lt;br /&gt;
===Alignment tools===&lt;br /&gt;
* [http://bowtie-bio.sourceforge.net/index.shtml bowtie] (64bit)&lt;br /&gt;
* [http://users.soe.ucsc.edu/~kent/src/ Blat (source)] [http://genome-test.cse.ucsc.edu/~kent/exe/ (binaries)]&lt;br /&gt;
Please make sure that blat and bowtie executables are part of the PATH, i.e. they can be accessed and executed from any location on your file system. Moreover, make sure that twoBitToFa is also downloaded from the blat package and part of the PATH.&lt;br /&gt;
&lt;br /&gt;
===Scientific and bioinformatics libraries===&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GNU Scientific Library (GSL)]: this library is a required for the compilation of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. As a reference, we tested FusionSeq with gsl-1.14.&lt;br /&gt;
=====(versions 0.7.0 and later)=====&lt;br /&gt;
* Starting with version 0.7.0, two new libraries are required:&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/bios/ libbios], which replaces the old BIOS, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libbios-1.1.0.tar.gz here].&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/mrf/ libmrf] can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libmrf-1.0.0.tar.gz here]&lt;br /&gt;
Please note that this libraries are for the &amp;quot;early access&amp;quot; version of FusionSeq.&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] library: this library can be downloaded as part of [http://rseqtools.gersteinlab.org RSEQtools], a computational framework to analyze RNA-Seq data, or it can be downloaded as a separate component from [http://rnaseq.gersteinlab.org/fusionseq/tarballs/bios_0.9.0.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instructions to install [http://www.gnu.org/software/gsl/ GSL] and [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] (or libbios and libmrf -- depending on the version) can be found in &#039;&#039;&#039;[[Installation and Configuration of FusionSeq]]&#039;&#039;&#039;. However, please ensure that you read all the requirements (including [[#Data_requirements|Data requirements]]) and downloaded all the libraries and packages needed.&lt;br /&gt;
&lt;br /&gt;
===Drawing tools===&lt;br /&gt;
* [http://www.boutell.com/gd/ GD library]: The gd library is used to create schematic images of the PE reads connecting the two genes. It is required by [[FusionSeq_List_of_programs#gfr2images|gfr2images]], which is an optional component of FusionSeq. As a reference, we tested FusionSeq with gd-2.0.35.&lt;br /&gt;
&lt;br /&gt;
===Data analysis===&lt;br /&gt;
* [http://root.cern.ch/drupal/ ROOT]: this is a very powerful mathematical and computational framework. In the context of FusionSeq, it is used to perform a Kolomogorov-Smirnov analysis for filtering the breakpoint junctions and plotting the insert-size distribution. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data Requirements==&lt;br /&gt;
Here is the list of required data for a comprehensive use of FusionSeq tools. &lt;br /&gt;
&lt;br /&gt;
===External===&lt;br /&gt;
*[http://hgdownload.cse.ucsc.edu/goldenPath/hg18/bigZips/ Homo Sapiens Reference genome (hg18)]: the user should download both chromFa.zip and hg18.2bit.&lt;br /&gt;
The human genome needs to be properly indexed to be used by bowtie. Please see the instruction of bowtie for performing this operation. Indicatevely, you would need to run something like: &lt;br /&gt;
 $ bowtie-build -f hg18_nh.fa /path/to/bowtie/Index/hg18_nh/hg18_nh&lt;br /&gt;
where &#039;&#039;&#039;hg18_nh.fa&#039;&#039;&#039; corresponds to the concatenation of all human chromosomes from chromFa.zip &#039;&#039;without&#039;&#039; the different haplotypes and the &amp;quot;random&amp;quot; sequences.&lt;br /&gt;
&lt;br /&gt;
===Provided===&lt;br /&gt;
The following data sets (for hg18), bundled in a tarball, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg18_1.1.tar.gz here (hg18)]. For hg19 see [[#Human genome GRCh37/hg19|below]].&lt;br /&gt;
&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.txt - the interval file with the coordinates of the composite models&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.fa - the sequences of all the composite transcripts&lt;br /&gt;
* kgXref.txt - the mapping between the UCSC knownGene annotation set and other information (RefSeq, gene symbols and description etc.)&lt;br /&gt;
* knownToTreefam.txt - the mapping between UCSC knownGene annotation and TreeFam&lt;br /&gt;
* hg18_repeatMasker.interval - the interval file, i.e. the file with the coordinates, of the repetitive regions&lt;br /&gt;
* ribosomal.2bit - the ribosomal sequences in 2bit format&lt;br /&gt;
&lt;br /&gt;
The composite model needs to be indexed by bowtie:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ bowtie-build -f knownGeneAnnotationTranscriptCompositeModel.fa &lt;br /&gt;
  /path2bowtieIndex/hg18_knownGeneAnnotationTranscriptCompositeModel/hg18_knownGeneAnnotationTranscriptCompositeModel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
knownGeneAnnotationTranscriptCompositeModel.txt (the interval file) and knownGeneAnnotationTranscriptCompositeModel.fa (the sequences) should be located in the same directory.&lt;br /&gt;
&lt;br /&gt;
Although we extensively used the UCSC knownGene annotation set, it is worth mentioning that it is possible to use other gene annotation sets. However, in this case, the same information, and in the same format, should be provided to the corresponding programs.&lt;br /&gt;
&lt;br /&gt;
=====Human genome GRCh37/hg19=====&lt;br /&gt;
The corresponding version of these files for hg19 can be found [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg19_1.0.tar.gz here (hg19)]. Please note that this data set has not been thoroughly  tested yet. This means that it should work anyway.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1256</id>
		<title>FusionSeq Requirements</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1256"/>
		<updated>2011-05-07T11:52:09Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Drawing tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Software Requirements==&lt;br /&gt;
FusionSeq requires several additional packages to be installed in order to carry out the analysis and visualize the results. Moreover, since its modularity, different programs would need specific libraries. Moreover, some data sets are also required for the analysis (see [[#Data Requirements|Data Requirements]]). Here we describe the complete set of tools that one would need to run the analysis as we do in our lab. The modules should be installed in the listed order. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the following instructions apply if one wants to compile FusionSeq from the source code (all versions). Alternatively, one can download the [[FusionSeq_Download#Binaries|binaries]] (version 7.0 and later). &lt;br /&gt;
&lt;br /&gt;
===Alignment tools===&lt;br /&gt;
* [http://bowtie-bio.sourceforge.net/index.shtml bowtie] (64bit)&lt;br /&gt;
* [http://users.soe.ucsc.edu/~kent/src/ Blat (source)] [http://genome-test.cse.ucsc.edu/~kent/exe/ (binaries)]&lt;br /&gt;
Please make sure that blat and bowtie executables are part of the PATH, i.e. they can be accessed and executed from any location on your file system. Moreover, make sure that twoBitToFa is also downloaded from the blat package and part of the PATH.&lt;br /&gt;
&lt;br /&gt;
===Scientific and bioinformatics libraries===&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GNU Scientific Library (GSL)]: this library is a required for the compilation of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. As a reference, we tested FusionSeq with gsl-1.14.&lt;br /&gt;
=====(versions 0.7.0 and later)=====&lt;br /&gt;
* Starting with version 0.7.0, two new libraries are required:&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/bios/ libbios], which replaces the old BIOS, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libbios-1.1.0.tar.gz here].&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/mrf/ libmrf] can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libmrf-1.0.0.tar.gz here]&lt;br /&gt;
Please note that this libraries are for the &amp;quot;early access&amp;quot; version of FusionSeq.&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] library: this library can be downloaded as part of [http://rseqtools.gersteinlab.org RSEQtools], a computational framework to analyze RNA-Seq data, or it can be downloaded as a separate component from [http://rnaseq.gersteinlab.org/fusionseq/tarballs/bios_0.9.0.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instructions to install [http://www.gnu.org/software/gsl/ GSL] and [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] (or libbios and libmrf -- depending on the version) can be found in &#039;&#039;&#039;[[Installation and Configuration of FusionSeq]]&#039;&#039;&#039;. However, please ensure that you read all the requirements (including [[#Data_requirements|Data requirements]]) and downloaded all the libraries and packages needed.&lt;br /&gt;
&lt;br /&gt;
===Drawing tools===&lt;br /&gt;
* [http://www.boutell.com/gd/ GD library]: The gd library is used to create schematic images of the PE reads connecting the two genes. It is required by [[FusionSeq_List_of_programs#gfr2images|gfr2images]], which is an optional component of FusionSeq. As a reference, we tested FusionSeq with gd-2.0.35.&lt;br /&gt;
&lt;br /&gt;
===Data analysis===&lt;br /&gt;
* [http://root.cern.ch/drupal/ ROOT]: this is a very powerful mathematical and computational framework. In the context of FusionSeq, it is used to perform a Kolomogorov-Smirnov analysis for filtering the breakpoint junctions and plotting the insert-size distribution. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data Requirements==&lt;br /&gt;
Here is the list of required data for a comprehensive use of FusionSeq tools. &lt;br /&gt;
&lt;br /&gt;
===External===&lt;br /&gt;
*[http://hgdownload.cse.ucsc.edu/goldenPath/hg18/bigZips/ Homo Sapiens Reference genome (hg18)]: the user should download both chromFa.zip and hg18.2bit.&lt;br /&gt;
The human genome needs to be properly indexed to be used by bowtie. Please see the instruction of bowtie for performing this operation. Indicatevely, you would need to run something like: &lt;br /&gt;
 $ bowtie-build -f hg18_nh.fa /path2bowtieIndex/hg18_nh/hg18_nh&lt;br /&gt;
where &#039;&#039;&#039;hg18_nh.fa&#039;&#039;&#039; corresponds to the concatenation of all human chromosomes from chromFa.zip &#039;&#039;without&#039;&#039; the different haplotypes and the &amp;quot;random&amp;quot; sequences.&lt;br /&gt;
&lt;br /&gt;
===Provided===&lt;br /&gt;
The following data sets (for hg18), bundled in a tarball, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg18_1.1.tar.gz here (hg18)]. For hg19 see [[#Human genome GRCh37/hg19|below]].&lt;br /&gt;
&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.txt - the interval file with the coordinates of the composite models&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.fa - the sequences of all the composite transcripts&lt;br /&gt;
* kgXref.txt - the mapping between the UCSC knownGene annotation set and other information (RefSeq, gene symbols and description etc.)&lt;br /&gt;
* knownToTreefam.txt - the mapping between UCSC knownGene annotation and TreeFam&lt;br /&gt;
* hg18_repeatMasker.interval - the interval file, i.e. the file with the coordinates, of the repetitive regions&lt;br /&gt;
* ribosomal.2bit - the ribosomal sequences in 2bit format&lt;br /&gt;
&lt;br /&gt;
The composite model needs to be indexed by bowtie:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ bowtie-build -f knownGeneAnnotationTranscriptCompositeModel.fa &lt;br /&gt;
  /path2bowtieIndex/hg18_knownGeneAnnotationTranscriptCompositeModel/hg18_knownGeneAnnotationTranscriptCompositeModel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
knownGeneAnnotationTranscriptCompositeModel.txt (the interval file) and knownGeneAnnotationTranscriptCompositeModel.fa (the sequences) should be located in the same directory.&lt;br /&gt;
&lt;br /&gt;
Although we extensively used the UCSC knownGene annotation set, it is worth mentioning that it is possible to use other gene annotation sets. However, in this case, the same information, and in the same format, should be provided to the corresponding programs.&lt;br /&gt;
&lt;br /&gt;
=====Human genome GRCh37/hg19=====&lt;br /&gt;
The corresponding version of these files for hg19 can be found [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg19_1.0.tar.gz here (hg19)]. Please note that this data set has not been thoroughly  tested yet. This means that it should work anyway.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1255</id>
		<title>FusionSeq Requirements</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1255"/>
		<updated>2011-05-07T11:51:38Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Scientific and bioinformatics libraries */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Software Requirements==&lt;br /&gt;
FusionSeq requires several additional packages to be installed in order to carry out the analysis and visualize the results. Moreover, since its modularity, different programs would need specific libraries. Moreover, some data sets are also required for the analysis (see [[#Data Requirements|Data Requirements]]). Here we describe the complete set of tools that one would need to run the analysis as we do in our lab. The modules should be installed in the listed order. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the following instructions apply if one wants to compile FusionSeq from the source code (all versions). Alternatively, one can download the [[FusionSeq_Download#Binaries|binaries]] (version 7.0 and later). &lt;br /&gt;
&lt;br /&gt;
===Alignment tools===&lt;br /&gt;
* [http://bowtie-bio.sourceforge.net/index.shtml bowtie] (64bit)&lt;br /&gt;
* [http://users.soe.ucsc.edu/~kent/src/ Blat (source)] [http://genome-test.cse.ucsc.edu/~kent/exe/ (binaries)]&lt;br /&gt;
Please make sure that blat and bowtie executables are part of the PATH, i.e. they can be accessed and executed from any location on your file system. Moreover, make sure that twoBitToFa is also downloaded from the blat package and part of the PATH.&lt;br /&gt;
&lt;br /&gt;
===Scientific and bioinformatics libraries===&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GNU Scientific Library (GSL)]: this library is a required for the compilation of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. As a reference, we tested FusionSeq with gsl-1.14.&lt;br /&gt;
=====(versions 0.7.0 and later)=====&lt;br /&gt;
* Starting with version 0.7.0, two new libraries are required:&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/bios/ libbios], which replaces the old BIOS, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libbios-1.1.0.tar.gz here].&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/mrf/ libmrf] can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libmrf-1.0.0.tar.gz here]&lt;br /&gt;
Please note that this libraries are for the &amp;quot;early access&amp;quot; version of FusionSeq.&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] library: this library can be downloaded as part of [http://rseqtools.gersteinlab.org RSEQtools], a computational framework to analyze RNA-Seq data, or it can be downloaded as a separate component from [http://rnaseq.gersteinlab.org/fusionseq/tarballs/bios_0.9.0.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instructions to install [http://www.gnu.org/software/gsl/ GSL] and [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] (or libbios and libmrf -- depending on the version) can be found in &#039;&#039;&#039;[[Installation and Configuration of FusionSeq]]&#039;&#039;&#039;. However, please ensure that you read all the requirements (including [[#Data_requirements|Data requirements]]) and downloaded all the libraries and packages needed.&lt;br /&gt;
&lt;br /&gt;
===Drawing tools===&lt;br /&gt;
* [http://www.boutell.com/gd/ GD library]: The gd library is used to create schematic images of the PE reads connecting the two genes. It is required by [[FusionSeq_List_of_programs#gfr2images|gfr2images]], which is an optional component of FusionSeq.&lt;br /&gt;
&lt;br /&gt;
===Data analysis===&lt;br /&gt;
* [http://root.cern.ch/drupal/ ROOT]: this is a very powerful mathematical and computational framework. In the context of FusionSeq, it is used to perform a Kolomogorov-Smirnov analysis for filtering the breakpoint junctions and plotting the insert-size distribution. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data Requirements==&lt;br /&gt;
Here is the list of required data for a comprehensive use of FusionSeq tools. &lt;br /&gt;
&lt;br /&gt;
===External===&lt;br /&gt;
*[http://hgdownload.cse.ucsc.edu/goldenPath/hg18/bigZips/ Homo Sapiens Reference genome (hg18)]: the user should download both chromFa.zip and hg18.2bit.&lt;br /&gt;
The human genome needs to be properly indexed to be used by bowtie. Please see the instruction of bowtie for performing this operation. Indicatevely, you would need to run something like: &lt;br /&gt;
 $ bowtie-build -f hg18_nh.fa /path2bowtieIndex/hg18_nh/hg18_nh&lt;br /&gt;
where &#039;&#039;&#039;hg18_nh.fa&#039;&#039;&#039; corresponds to the concatenation of all human chromosomes from chromFa.zip &#039;&#039;without&#039;&#039; the different haplotypes and the &amp;quot;random&amp;quot; sequences.&lt;br /&gt;
&lt;br /&gt;
===Provided===&lt;br /&gt;
The following data sets (for hg18), bundled in a tarball, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg18_1.1.tar.gz here (hg18)]. For hg19 see [[#Human genome GRCh37/hg19|below]].&lt;br /&gt;
&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.txt - the interval file with the coordinates of the composite models&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.fa - the sequences of all the composite transcripts&lt;br /&gt;
* kgXref.txt - the mapping between the UCSC knownGene annotation set and other information (RefSeq, gene symbols and description etc.)&lt;br /&gt;
* knownToTreefam.txt - the mapping between UCSC knownGene annotation and TreeFam&lt;br /&gt;
* hg18_repeatMasker.interval - the interval file, i.e. the file with the coordinates, of the repetitive regions&lt;br /&gt;
* ribosomal.2bit - the ribosomal sequences in 2bit format&lt;br /&gt;
&lt;br /&gt;
The composite model needs to be indexed by bowtie:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ bowtie-build -f knownGeneAnnotationTranscriptCompositeModel.fa &lt;br /&gt;
  /path2bowtieIndex/hg18_knownGeneAnnotationTranscriptCompositeModel/hg18_knownGeneAnnotationTranscriptCompositeModel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
knownGeneAnnotationTranscriptCompositeModel.txt (the interval file) and knownGeneAnnotationTranscriptCompositeModel.fa (the sequences) should be located in the same directory.&lt;br /&gt;
&lt;br /&gt;
Although we extensively used the UCSC knownGene annotation set, it is worth mentioning that it is possible to use other gene annotation sets. However, in this case, the same information, and in the same format, should be provided to the corresponding programs.&lt;br /&gt;
&lt;br /&gt;
=====Human genome GRCh37/hg19=====&lt;br /&gt;
The corresponding version of these files for hg19 can be found [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg19_1.0.tar.gz here (hg19)]. Please note that this data set has not been thoroughly  tested yet. This means that it should work anyway.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1254</id>
		<title>FusionSeq Requirements</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1254"/>
		<updated>2011-05-07T11:50:15Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Software Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Software Requirements==&lt;br /&gt;
FusionSeq requires several additional packages to be installed in order to carry out the analysis and visualize the results. Moreover, since its modularity, different programs would need specific libraries. Moreover, some data sets are also required for the analysis (see [[#Data Requirements|Data Requirements]]). Here we describe the complete set of tools that one would need to run the analysis as we do in our lab. The modules should be installed in the listed order. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the following instructions apply if one wants to compile FusionSeq from the source code (all versions). Alternatively, one can download the [[FusionSeq_Download#Binaries|binaries]] (version 7.0 and later). &lt;br /&gt;
&lt;br /&gt;
===Alignment tools===&lt;br /&gt;
* [http://bowtie-bio.sourceforge.net/index.shtml bowtie] (64bit)&lt;br /&gt;
* [http://users.soe.ucsc.edu/~kent/src/ Blat (source)] [http://genome-test.cse.ucsc.edu/~kent/exe/ (binaries)]&lt;br /&gt;
Please make sure that blat and bowtie executables are part of the PATH, i.e. they can be accessed and executed from any location on your file system. Moreover, make sure that twoBitToFa is also downloaded from the blat package and part of the PATH.&lt;br /&gt;
&lt;br /&gt;
===Scientific and bioinformatics libraries===&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GNU Scientific Library (GSL)]: this library is a required for the compilation of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS].&lt;br /&gt;
=====(versions 0.7.0 and later)=====&lt;br /&gt;
* Starting with version 0.7.0, two new libraries are required:&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/bios/ libbios], which replaces the old BIOS, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libbios-1.1.0.tar.gz here].&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/mrf/ libmrf] can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libmrf-1.0.0.tar.gz here]&lt;br /&gt;
Please note that this libraries are for the &amp;quot;early access&amp;quot; version of FusionSeq.&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] library: this library can be downloaded as part of [http://rseqtools.gersteinlab.org RSEQtools], a computational framework to analyze RNA-Seq data, or it can be downloaded as a separate component from [http://rnaseq.gersteinlab.org/fusionseq/tarballs/bios_0.9.0.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instructions to install [http://www.gnu.org/software/gsl/ GSL] and [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] (or libbios and libmrf -- depending on the version) can be found in &#039;&#039;&#039;[[Installation and Configuration of FusionSeq]]&#039;&#039;&#039;. However, please ensure that you read all the requirements (including [[#Data_requirements|Data requirements]]) and downloaded all the libraries and packages needed.&lt;br /&gt;
&lt;br /&gt;
===Drawing tools===&lt;br /&gt;
* [http://www.boutell.com/gd/ GD library]: The gd library is used to create schematic images of the PE reads connecting the two genes. It is required by [[FusionSeq_List_of_programs#gfr2images|gfr2images]], which is an optional component of FusionSeq.&lt;br /&gt;
&lt;br /&gt;
===Data analysis===&lt;br /&gt;
* [http://root.cern.ch/drupal/ ROOT]: this is a very powerful mathematical and computational framework. In the context of FusionSeq, it is used to perform a Kolomogorov-Smirnov analysis for filtering the breakpoint junctions and plotting the insert-size distribution. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data Requirements==&lt;br /&gt;
Here is the list of required data for a comprehensive use of FusionSeq tools. &lt;br /&gt;
&lt;br /&gt;
===External===&lt;br /&gt;
*[http://hgdownload.cse.ucsc.edu/goldenPath/hg18/bigZips/ Homo Sapiens Reference genome (hg18)]: the user should download both chromFa.zip and hg18.2bit.&lt;br /&gt;
The human genome needs to be properly indexed to be used by bowtie. Please see the instruction of bowtie for performing this operation. Indicatevely, you would need to run something like: &lt;br /&gt;
 $ bowtie-build -f hg18_nh.fa /path2bowtieIndex/hg18_nh/hg18_nh&lt;br /&gt;
where &#039;&#039;&#039;hg18_nh.fa&#039;&#039;&#039; corresponds to the concatenation of all human chromosomes from chromFa.zip &#039;&#039;without&#039;&#039; the different haplotypes and the &amp;quot;random&amp;quot; sequences.&lt;br /&gt;
&lt;br /&gt;
===Provided===&lt;br /&gt;
The following data sets (for hg18), bundled in a tarball, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg18_1.1.tar.gz here (hg18)]. For hg19 see [[#Human genome GRCh37/hg19|below]].&lt;br /&gt;
&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.txt - the interval file with the coordinates of the composite models&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.fa - the sequences of all the composite transcripts&lt;br /&gt;
* kgXref.txt - the mapping between the UCSC knownGene annotation set and other information (RefSeq, gene symbols and description etc.)&lt;br /&gt;
* knownToTreefam.txt - the mapping between UCSC knownGene annotation and TreeFam&lt;br /&gt;
* hg18_repeatMasker.interval - the interval file, i.e. the file with the coordinates, of the repetitive regions&lt;br /&gt;
* ribosomal.2bit - the ribosomal sequences in 2bit format&lt;br /&gt;
&lt;br /&gt;
The composite model needs to be indexed by bowtie:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ bowtie-build -f knownGeneAnnotationTranscriptCompositeModel.fa &lt;br /&gt;
  /path2bowtieIndex/hg18_knownGeneAnnotationTranscriptCompositeModel/hg18_knownGeneAnnotationTranscriptCompositeModel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
knownGeneAnnotationTranscriptCompositeModel.txt (the interval file) and knownGeneAnnotationTranscriptCompositeModel.fa (the sequences) should be located in the same directory.&lt;br /&gt;
&lt;br /&gt;
Although we extensively used the UCSC knownGene annotation set, it is worth mentioning that it is possible to use other gene annotation sets. However, in this case, the same information, and in the same format, should be provided to the corresponding programs.&lt;br /&gt;
&lt;br /&gt;
=====Human genome GRCh37/hg19=====&lt;br /&gt;
The corresponding version of these files for hg19 can be found [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg19_1.0.tar.gz here (hg19)]. Please note that this data set has not been thoroughly  tested yet. This means that it should work anyway.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1253</id>
		<title>FusionSeq Requirements</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1253"/>
		<updated>2011-05-07T11:46:52Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* (versions 0.7.0 and later -- coming soon) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Software Requirements==&lt;br /&gt;
FusionSeq requires several additional packages to be installed in order to carry out the analysis and visualize the results. Moreover, since its modularity, different programs would need specific libraries. Moreover, some data sets are also required for the analysis (see [[#Data Requirements|Data Requirements]]). Here we describe the complete set of tools that one would need to run the analysis as we do in our lab. The modules should be installed in the listed order. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the following instructions apply if one wants to compile FusionSeq from the source code (all versions). Alternatively, one can download the binaries (version 7.0 and later). &lt;br /&gt;
&lt;br /&gt;
===Alignment tools===&lt;br /&gt;
* [http://bowtie-bio.sourceforge.net/index.shtml bowtie] (64bit)&lt;br /&gt;
* [http://users.soe.ucsc.edu/~kent/src/ Blat (source)] [http://genome-test.cse.ucsc.edu/~kent/exe/ (binaries)]&lt;br /&gt;
Please make sure that blat and bowtie executables are part of the PATH, i.e. they can be accessed and executed from any location on your file system. Moreover, make sure that twoBitToFa is also downloaded from the blat package and part of the PATH.&lt;br /&gt;
&lt;br /&gt;
===Scientific and bioinformatics libraries===&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GNU Scientific Library (GSL)]: this library is a required for the compilation of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS].&lt;br /&gt;
=====(versions 0.7.0 and later)=====&lt;br /&gt;
* Starting with version 0.7.0, two new libraries are required:&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/bios/ libbios], which replaces the old BIOS, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libbios-1.1.0.tar.gz here].&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/mrf/ libmrf] can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libmrf-1.0.0.tar.gz here]&lt;br /&gt;
Please note that this libraries are for the &amp;quot;early access&amp;quot; version of FusionSeq.&lt;br /&gt;
&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] library: this library can be downloaded as part of [http://rseqtools.gersteinlab.org RSEQtools], a computational framework to analyze RNA-Seq data, or it can be downloaded as a separate component from [http://rnaseq.gersteinlab.org/fusionseq/tarballs/bios_0.9.0.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instructions to install [http://www.gnu.org/software/gsl/ GSL] and [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] (or libbios and libmrf -- depending on the version) can be found in &#039;&#039;&#039;[[Installation and Configuration of FusionSeq]]&#039;&#039;&#039;. However, please ensure that you read all the requirements (including [[#Data_requirements|Data requirements]]) and downloaded all the libraries and packages needed.&lt;br /&gt;
&lt;br /&gt;
===Drawing tools===&lt;br /&gt;
* [http://www.boutell.com/gd/ GD library]: The gd library is used to create schematic images of the PE reads connecting the two genes. It is required by [[FusionSeq_List_of_programs#gfr2images|gfr2images]], which is an optional component of FusionSeq.&lt;br /&gt;
&lt;br /&gt;
===Data analysis===&lt;br /&gt;
* [http://root.cern.ch/drupal/ ROOT]: this is a very powerful mathematical and computational framework. In the context of FusionSeq, it is used to perform a Kolomogorov-Smirnov analysis for filtering the breakpoint junctions and plotting the insert-size distribution. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data Requirements==&lt;br /&gt;
Here is the list of required data for a comprehensive use of FusionSeq tools. &lt;br /&gt;
&lt;br /&gt;
===External===&lt;br /&gt;
*[http://hgdownload.cse.ucsc.edu/goldenPath/hg18/bigZips/ Homo Sapiens Reference genome (hg18)]: the user should download both chromFa.zip and hg18.2bit.&lt;br /&gt;
The human genome needs to be properly indexed to be used by bowtie. Please see the instruction of bowtie for performing this operation. Indicatevely, you would need to run something like: &lt;br /&gt;
 $ bowtie-build -f hg18_nh.fa /path2bowtieIndex/hg18_nh/hg18_nh&lt;br /&gt;
where &#039;&#039;&#039;hg18_nh.fa&#039;&#039;&#039; corresponds to the concatenation of all human chromosomes from chromFa.zip &#039;&#039;without&#039;&#039; the different haplotypes and the &amp;quot;random&amp;quot; sequences.&lt;br /&gt;
&lt;br /&gt;
===Provided===&lt;br /&gt;
The following data sets (for hg18), bundled in a tarball, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg18_1.1.tar.gz here (hg18)]. For hg19 see [[#Human genome GRCh37/hg19|below]].&lt;br /&gt;
&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.txt - the interval file with the coordinates of the composite models&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.fa - the sequences of all the composite transcripts&lt;br /&gt;
* kgXref.txt - the mapping between the UCSC knownGene annotation set and other information (RefSeq, gene symbols and description etc.)&lt;br /&gt;
* knownToTreefam.txt - the mapping between UCSC knownGene annotation and TreeFam&lt;br /&gt;
* hg18_repeatMasker.interval - the interval file, i.e. the file with the coordinates, of the repetitive regions&lt;br /&gt;
* ribosomal.2bit - the ribosomal sequences in 2bit format&lt;br /&gt;
&lt;br /&gt;
The composite model needs to be indexed by bowtie:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ bowtie-build -f knownGeneAnnotationTranscriptCompositeModel.fa &lt;br /&gt;
  /path2bowtieIndex/hg18_knownGeneAnnotationTranscriptCompositeModel/hg18_knownGeneAnnotationTranscriptCompositeModel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
knownGeneAnnotationTranscriptCompositeModel.txt (the interval file) and knownGeneAnnotationTranscriptCompositeModel.fa (the sequences) should be located in the same directory.&lt;br /&gt;
&lt;br /&gt;
Although we extensively used the UCSC knownGene annotation set, it is worth mentioning that it is possible to use other gene annotation sets. However, in this case, the same information, and in the same format, should be provided to the corresponding programs.&lt;br /&gt;
&lt;br /&gt;
=====Human genome GRCh37/hg19=====&lt;br /&gt;
The corresponding version of these files for hg19 can be found [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg19_1.0.tar.gz here (hg19)]. Please note that this data set has not been thoroughly  tested yet. This means that it should work anyway.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1252</id>
		<title>FusionSeq Requirements</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1252"/>
		<updated>2011-05-07T11:45:21Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* (versions up to 0.6.1) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Software Requirements==&lt;br /&gt;
FusionSeq requires several additional packages to be installed in order to carry out the analysis and visualize the results. Moreover, since its modularity, different programs would need specific libraries. Moreover, some data sets are also required for the analysis (see [[#Data Requirements|Data Requirements]]). Here we describe the complete set of tools that one would need to run the analysis as we do in our lab. The modules should be installed in the listed order. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the following instructions apply if one wants to compile FusionSeq from the source code (all versions). Alternatively, one can download the binaries (version 7.0 and later). &lt;br /&gt;
&lt;br /&gt;
===Alignment tools===&lt;br /&gt;
* [http://bowtie-bio.sourceforge.net/index.shtml bowtie] (64bit)&lt;br /&gt;
* [http://users.soe.ucsc.edu/~kent/src/ Blat (source)] [http://genome-test.cse.ucsc.edu/~kent/exe/ (binaries)]&lt;br /&gt;
Please make sure that blat and bowtie executables are part of the PATH, i.e. they can be accessed and executed from any location on your file system. Moreover, make sure that twoBitToFa is also downloaded from the blat package and part of the PATH.&lt;br /&gt;
&lt;br /&gt;
===Scientific and bioinformatics libraries===&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GNU Scientific Library (GSL)]: this library is a required for the compilation of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS].&lt;br /&gt;
=====(versions 0.7.0 and later -- coming soon)=====&lt;br /&gt;
* Starting with version 0.7.0, two new libraries are required:&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/bios/ libbios], which replaces the old BIOS, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libbios-1.1.0.tar.gz here].&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/mrf/ libmrf] can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libmrf-1.0.0.tar.gz here]&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] library: this library can be downloaded as part of [http://rseqtools.gersteinlab.org RSEQtools], a computational framework to analyze RNA-Seq data, or it can be downloaded as a separate component from [http://rnaseq.gersteinlab.org/fusionseq/tarballs/bios_0.9.0.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instructions to install [http://www.gnu.org/software/gsl/ GSL] and [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] (or libbios and libmrf -- depending on the version) can be found in &#039;&#039;&#039;[[Installation and Configuration of FusionSeq]]&#039;&#039;&#039;. However, please ensure that you read all the requirements (including [[#Data_requirements|Data requirements]]) and downloaded all the libraries and packages needed.&lt;br /&gt;
&lt;br /&gt;
===Drawing tools===&lt;br /&gt;
* [http://www.boutell.com/gd/ GD library]: The gd library is used to create schematic images of the PE reads connecting the two genes. It is required by [[FusionSeq_List_of_programs#gfr2images|gfr2images]], which is an optional component of FusionSeq.&lt;br /&gt;
&lt;br /&gt;
===Data analysis===&lt;br /&gt;
* [http://root.cern.ch/drupal/ ROOT]: this is a very powerful mathematical and computational framework. In the context of FusionSeq, it is used to perform a Kolomogorov-Smirnov analysis for filtering the breakpoint junctions and plotting the insert-size distribution. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data Requirements==&lt;br /&gt;
Here is the list of required data for a comprehensive use of FusionSeq tools. &lt;br /&gt;
&lt;br /&gt;
===External===&lt;br /&gt;
*[http://hgdownload.cse.ucsc.edu/goldenPath/hg18/bigZips/ Homo Sapiens Reference genome (hg18)]: the user should download both chromFa.zip and hg18.2bit.&lt;br /&gt;
The human genome needs to be properly indexed to be used by bowtie. Please see the instruction of bowtie for performing this operation. Indicatevely, you would need to run something like: &lt;br /&gt;
 $ bowtie-build -f hg18_nh.fa /path2bowtieIndex/hg18_nh/hg18_nh&lt;br /&gt;
where &#039;&#039;&#039;hg18_nh.fa&#039;&#039;&#039; corresponds to the concatenation of all human chromosomes from chromFa.zip &#039;&#039;without&#039;&#039; the different haplotypes and the &amp;quot;random&amp;quot; sequences.&lt;br /&gt;
&lt;br /&gt;
===Provided===&lt;br /&gt;
The following data sets (for hg18), bundled in a tarball, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg18_1.1.tar.gz here (hg18)]. For hg19 see [[#Human genome GRCh37/hg19|below]].&lt;br /&gt;
&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.txt - the interval file with the coordinates of the composite models&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.fa - the sequences of all the composite transcripts&lt;br /&gt;
* kgXref.txt - the mapping between the UCSC knownGene annotation set and other information (RefSeq, gene symbols and description etc.)&lt;br /&gt;
* knownToTreefam.txt - the mapping between UCSC knownGene annotation and TreeFam&lt;br /&gt;
* hg18_repeatMasker.interval - the interval file, i.e. the file with the coordinates, of the repetitive regions&lt;br /&gt;
* ribosomal.2bit - the ribosomal sequences in 2bit format&lt;br /&gt;
&lt;br /&gt;
The composite model needs to be indexed by bowtie:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ bowtie-build -f knownGeneAnnotationTranscriptCompositeModel.fa &lt;br /&gt;
  /path2bowtieIndex/hg18_knownGeneAnnotationTranscriptCompositeModel/hg18_knownGeneAnnotationTranscriptCompositeModel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
knownGeneAnnotationTranscriptCompositeModel.txt (the interval file) and knownGeneAnnotationTranscriptCompositeModel.fa (the sequences) should be located in the same directory.&lt;br /&gt;
&lt;br /&gt;
Although we extensively used the UCSC knownGene annotation set, it is worth mentioning that it is possible to use other gene annotation sets. However, in this case, the same information, and in the same format, should be provided to the corresponding programs.&lt;br /&gt;
&lt;br /&gt;
=====Human genome GRCh37/hg19=====&lt;br /&gt;
The corresponding version of these files for hg19 can be found [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg19_1.0.tar.gz here (hg19)]. Please note that this data set has not been thoroughly  tested yet. This means that it should work anyway.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq&amp;diff=1251</id>
		<title>FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq&amp;diff=1251"/>
		<updated>2011-05-07T11:43:57Z</updated>

		<summary type="html">&lt;p&gt;Asboner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://rnaseq.gersteinlab.org/fusionseq/ FusionSeq main web page]&amp;lt;/center&amp;gt;&lt;br /&gt;
This document provides the information for downloading, installing, compile and run FusionSeq. Please note that these tools were tested on a multi-node cluster of computing nodes with Linux Red Hat as operating system and PBS as scheduler system. FusionSeq programs are written in C and should likely compile to most Unix/Linux platforms. We used the gcc complier (version 3.4.6 20060404) to compile the source code. &lt;br /&gt;
However, this is not a plug-and-play program, but it requires the user to compile, install and run a set of programs. Please read the [[Requirements|requirements]] &#039;&#039;&#039;before&#039;&#039;&#039; [[#Download|downloading]] FusionSeq.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: Starting from version 0.7.0, we adopted a different approach to include the configuration file that allows the users to simply download the binary files for their platform. However, we still provide the source code, which now uses the more standard autoconf/automake tools, thus simplifying the installation of FusionSeq. Please note that at the time of writing (May 7th, 2011), version 0.7.0 is still in alpha. Any feedback will be very much appreciated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have any questions, please check the [[FusionSeq_FAQ|FAQ]] or send an email to [mailto:fusionseq-faq@gersteinlab.org fusionseq-faq@gersteinlab.org]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==[[FusionSeq Requirements]]==&lt;br /&gt;
List of required programs and data. Please read this section &#039;&#039;&#039;before&#039;&#039;&#039; downloading FusionSeq.&lt;br /&gt;
&lt;br /&gt;
==[[FusionSeq Download|Download]]==&lt;br /&gt;
Links to FusionSeq source code and data sets.&lt;br /&gt;
&lt;br /&gt;
==[[Installation and Configuration of FusionSeq]]==&lt;br /&gt;
Instructions to install and configure FusionSeq.&lt;br /&gt;
&lt;br /&gt;
==[[How to execute FusionSeq]]==&lt;br /&gt;
An example workflow of FusionSeq.&lt;br /&gt;
&lt;br /&gt;
==[[FusionSeq_List of programs|List of programs]]==&lt;br /&gt;
Description of all the FusionSeq programs.&lt;br /&gt;
&lt;br /&gt;
==[[FusionSeq_Test Datasets|Test Datasets]]==&lt;br /&gt;
A few datasets to test FusionSeq installation.&lt;br /&gt;
&lt;br /&gt;
==[http://dynamic.gersteinlab.org/people/asboner/FusionSeq/geneFusions_cgi Demo]==&lt;br /&gt;
You can see some of the results of FusionSeq as described in the paper. Use the sample IDs reported in Table 1, e.g. 106_T, 1700_D.&lt;br /&gt;
&lt;br /&gt;
==[[FusionSeq_FAQ|Frequently Asked Questions (FAQ)]]==&lt;br /&gt;
Solutions to common problems. If your issue is not described in the [[FusionSeq_FAQ|FAQ]], please send an email to [mailto:fusionseq-faq@gersteinlab.org fusionseq-faq@gersteinlab.org]&lt;br /&gt;
&lt;br /&gt;
==[[FusionSeq Gallery|Gallery]]==&lt;br /&gt;
Some figures about FusionSeq.&lt;br /&gt;
&lt;br /&gt;
==[[FusionSeq_Papers|In the news et al.]]==&lt;br /&gt;
News or scientific papers referring to FusionSeq&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Download&amp;diff=1250</id>
		<title>FusionSeq Download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Download&amp;diff=1250"/>
		<updated>2011-05-07T11:36:02Z</updated>

		<summary type="html">&lt;p&gt;Asboner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
&lt;br /&gt;
Before downloading FusionSeq, please read the [[FusionSeq_Requirements|requirements]] first.&lt;br /&gt;
===Download ===&lt;br /&gt;
The latest stable version (2010.10.30) is: [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_0.6.1.tar.gz FusionSeq ver. 0.6.1].&lt;br /&gt;
&lt;br /&gt;
Previous versions can be found [http://rnaseq.gersteinlab.org/fusionseq/tarballs/oldversions/ here]. See the [[FusionSeq_ChangeLog|changelog]] for more details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Early acces version===&lt;br /&gt;
Here you can download the early access version of FusionSeq. This is considered a pre-release version, thus we would much appreciate any feedback. Please also note that starting from version 0.7.0, we adopted a different approach to install and run FusionSeq. Specifically:&lt;br /&gt;
# Installation from source code is simplified and uses the standard autoconf/automake, etc. tools. See [[Installation and Configuration of FusionSeq]].&lt;br /&gt;
# The configuration file is now an external text file. This enables the use of binary files for the system supported, without the need to install it from scratch.&lt;br /&gt;
&lt;br /&gt;
=====Source code=====&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/fusionseq/tarballs/fusionseq-0.7.0.tar.gz version 0.7.0 (alpha)]&lt;br /&gt;
&lt;br /&gt;
=====Binaries=====&lt;br /&gt;
* coming soon&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Important note for both the stable release and the early access one===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
THIS PACKAGE (FusionSeq) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, &lt;br /&gt;
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Also, consult the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage. We have chosen a [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommercial)].&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Download&amp;diff=1249</id>
		<title>FusionSeq Download</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Download&amp;diff=1249"/>
		<updated>2011-05-07T00:55:24Z</updated>

		<summary type="html">&lt;p&gt;Asboner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
&lt;br /&gt;
The latest stable version (2010.10.30) is: [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_0.6.1.tar.gz FusionSeq ver. 0.6.1].&lt;br /&gt;
&lt;br /&gt;
Previous versions can be found [http://rnaseq.gersteinlab.org/fusionseq/tarballs/oldversions/ here]. See the [[FusionSeq_ChangeLog|changelog]] for more details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important Note&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
THIS PACKAGE (FusionSeq) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, &lt;br /&gt;
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Also, consult the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage. We have chosen a [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommercial)].&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1248</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1248"/>
		<updated>2011-05-07T00:53:54Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Installing and configuring libbios, libmrf, or BIOS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
Please refer to [[#versions 0.6.1|version 0.6.1]] for instructions of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Starting from version 0.7.0, libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1)====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = -L/path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1247</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1247"/>
		<updated>2011-05-07T00:52:27Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Installing and configuring FusionSeq */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Starting from version 0.7.0, libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1)====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
Please refer to [[#(versions up to 0.6.1)|version 0.6.1]] for instruction of the stable version.&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = -L/path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1246</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1246"/>
		<updated>2011-05-07T00:49:05Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Installing and configuring FusionSeq */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Starting from version 0.7.0, libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1)====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Once the required packages are properly installed, to install FusionSeq is sufficient to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tar xzvf fusionseq-0.7.0.tar.gz&lt;br /&gt;
$ cd fusionseq-0.7.0/&lt;br /&gt;
$ ./configure --prefix=/path/to/fusionseq/&lt;br /&gt;
$ make&lt;br /&gt;
$ make optional&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure installs all core and optional programs into bin/ and the libraries in lib/. Moreover, a configuration file .fusionseqrc is copied in your home directory. This is a text file including the configuration information as KEY=VALUE. The user needs to edit this file in a similar way as the previous versions. &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: the location of this file must be assigned to FUSIONSEQ_CONFPATH, e.g.:&lt;br /&gt;
 $ export FUSIONSEQ_PATH=/path/2/home/.fusionseqrc&lt;br /&gt;
&lt;br /&gt;
Here after an example of the configuration file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.fusionseqrc:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
BOWTIE_INDEXES=&amp;quot;/path/to/bowtie/Indexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
BOWTIE_GENOME=&amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
BOWTIE_COMPOSITE=&amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
BLAT_TWO_BIT_TO_FA=&amp;quot;/path/to/blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
BLAT_DATA_DIR=&amp;quot;/path/to/blat/Data/Dir&amp;quot;&lt;br /&gt;
BLAT_TWO_BIT_DATA_FILENAME=&amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_DIR=&amp;quot;/path/to/transcript/Composite/Model&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
TRANSCRIPT_COMPOSITE_MODEL_FILENAME=&amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
ANNOTATION_DIR=&amp;quot;/path/to/annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
KNOWN_GENE_XREF_FILENAME=&amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
KNOWN_GENE_TREE_FAM_FILENAME=&amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
RIBOSOMAL_DIR=&amp;quot;/path/to/ribosomal/Dir&amp;quot;&lt;br /&gt;
RIBOSOMAL_FILENAME=&amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
WEB_URL_CGI=&amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
WEB_DATA_DIR=&amp;quot;/path/to/data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
WEB_DATA_LINK=&amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
UCSC_GENOME_BROWSER_FLANKING_REGION=500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
WEB_PUB_DIR=&amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
WEB_SDATA_DIR=&amp;quot;/path/to/structural/Data/Circos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
WEB_CIRCOS_DIR=&amp;quot;/path/to/circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in .fusionseqrc, i.e. avoid using environmental variables such as $HOME, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1) ====&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = -L/path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1245</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1245"/>
		<updated>2011-05-06T23:55:49Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Installing GSL and GD libraries */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: we used gsl-1.14 and gd-2.0.35.&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Starting from version 0.7.0, libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1)====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = -L/path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1244</id>
		<title>Installation and Configuration of FusionSeq</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=Installation_and_Configuration_of_FusionSeq&amp;diff=1244"/>
		<updated>2011-05-06T23:51:22Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Installing and configuring BIOS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Installing GSL and GD libraries==&lt;br /&gt;
In order to install FusionSeq these external packages need to be installed first (see [[Requirements]]). Please, follow the instruction provided by the single packages. After they are installed, the first step for FusionSeq is the installation and configuration of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]. BIOS is a C library of useful general definitions for manipulating strings, arrays, and parser and more related to bioinformatic analysis. It requires the GSL library, which, in most systems, can be installed with 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/gslSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a 64bit system is used, add CFLAGS=-m64 in the ./configure command. Similarly, the [http://www.boutell.com/gd/ GD library] can be installed in most systems with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/gdSource/&lt;br /&gt;
$ ./configure --prefix=/path/to/installation/ --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;
Although, the GD library is NOT required for the core analysis, if you want to use it, please make sure that png, jpeg, zlib, freetype 2.x, and xpm are properly installed and linked. These are required by [[FusionSeq_List of programs#gfr2images|gfr2images]] in order to create a schematic illustration depicting the connected regions of the two genes. See [[#Installing_and_configuring_FusionSeq|Installing and configuring FusionSeq]] for setting the appropriate environmental variables.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring libbios, libmrf, or BIOS==&lt;br /&gt;
====(versions 0.7.0 and later) -- coming soon====&lt;br /&gt;
Starting from version 0.7.0, libbios and libmrf need to be installed, in this order. Typically, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libbios/&lt;br /&gt;
$ ./configure --prefix=/path/to/libbios&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, for libmrf, one would run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/libmrf/&lt;br /&gt;
$ ./configure --prefix=/path/to/libmrf&lt;br /&gt;
$ make&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====(versions up to 0.6.1)====&lt;br /&gt;
To install [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] a few variables need to be set before compiling the library. Here is an example of the procedure on a bash shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export BIOINFOCONFDIR=/pathToBios/conf/&lt;br /&gt;
$ export BIOINFOGSLDIR=/pathToGsl/&lt;br /&gt;
$ cd /pathToBios/&lt;br /&gt;
$ make&lt;br /&gt;
$ make prod&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please refer to [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] documentation for additional information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring ROOT==&lt;br /&gt;
To install [http://root.cern.ch/drupal/ ROOT], please follow the instructions on the website. You may also include GSL library when compiling, but it is not a requirement. Once ROOT is installed, a few variables need to be defined in order to properly use this library with FusionSeq.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export ROOTSYS=/path/to/ROOT/&lt;br /&gt;
$ export PATH=$ROOTSYS/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing and configuring FusionSeq==&lt;br /&gt;
FusionSeq is composed of several programs divided into a set of core modules (to identify the candidate fusion transcripts), and a set of additional modules (to create images, BED, GFF and other auxiliary files for visualization and analysis) and CGIs for visualization of the results. To run the analysis, only the core modules are required. For the auxiliary modules, one needs to specify the location of the Drawing tool libraries by editing the specific section in the Makefile. For installing the visualization tools, please read [[#Installing CGIs|Installing CGIs]].&lt;br /&gt;
&lt;br /&gt;
Before starting with the installation of FusionSeq, &#039;&#039;&#039;please read&#039;&#039;&#039; the [[#FusionSeq_Requirements|Requirements]] section to make sure all data sets and external tools are available.&lt;br /&gt;
&lt;br /&gt;
To install FusionSeq, the file geneFusionsConfig.h needs to be edited to specify to locations of the annotation files and other required tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geneFusionConfig.h:&lt;br /&gt;
&lt;br /&gt;
// --------------------------------- This section is required ---------------------------------&lt;br /&gt;
// Location of the bowtie indexes of the human genome and the composite model&lt;br /&gt;
#define BOWTIE_INDEXES &amp;quot;/path2bowtieIndexes&amp;quot; &lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the human genome is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_GENOME &amp;quot;hg18_nh&amp;quot;&lt;br /&gt;
// the subdirectory of BOWTIE_INDEXES where the composite model is indexed by bowtie-build&lt;br /&gt;
#define BOWTIE_COMPOSITE &amp;quot;hg18_knownGeneAnnotationTranscriptCompositeModel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Pointer to the program twoBitToFa part of the blat suite&lt;br /&gt;
#define BLAT_TWO_BIT_TO_FA &amp;quot;/path2blat/twoBitToFa&amp;quot; &lt;br /&gt;
// Location and filename of  the reference genome in 2bit format (to be used by blat)&lt;br /&gt;
#define BLAT_DATA_DIR &amp;quot;/path2blatDataDir&amp;quot;&lt;br /&gt;
#define BLAT_TWO_BIT_DATA_FILENAME &amp;quot;hg18.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Location and name of the transcript composite model sequence and interval files&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_DIR &amp;quot;/path2transcriptCompositeModel&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FA_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.fa&amp;quot;&lt;br /&gt;
#define TRANSCRIPT_COMPOSITE_MODEL_FILENAME &amp;quot;knownGeneAnnotationTranscriptCompositeModel.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// location of the annotation files&lt;br /&gt;
#define ANNOTATION_DIR &amp;quot;/path2annotationFiles&amp;quot; &lt;br /&gt;
// conversion of knownGenes to gene symbols, description, etc. &lt;br /&gt;
#define KNOWN_GENE_XREF_FILENAME &amp;quot;kgXref.txt&amp;quot; &lt;br /&gt;
// conversion of knownGenes to TreeFam&lt;br /&gt;
#define KNOWN_GENE_TREE_FAM_FILENAME &amp;quot;knownToTreefam.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
// Location and filename of the ribosomal library&lt;br /&gt;
#define RIBOSOMAL_DIR &amp;quot;/path2ribosomalDir&amp;quot;&lt;br /&gt;
#define RIBOSOMAL_FILENAME &amp;quot;ribosomal.2bit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// ----------------------- This section is optional: visualization tools -------------------------&lt;br /&gt;
// URL of the cgi directory on the web server&lt;br /&gt;
#define WEB_URL_CGI &amp;quot;http://cgiURL&amp;quot; &lt;br /&gt;
// location of the data directory on the web server, as seen from the web server&lt;br /&gt;
#define WEB_DATA_DIR &amp;quot;/path2data&amp;quot; &lt;br /&gt;
// URL of the data directory on the web server&lt;br /&gt;
#define WEB_DATA_LINK &amp;quot;http://dataURL&amp;quot; &lt;br /&gt;
// Number of nucleotides flanking the region (for UCSC Genome Browser)&lt;br /&gt;
#define UCSC_GENOME_BROWSER_FLANKING_REGION 500 &lt;br /&gt;
// URL of the public website (non cgi)&lt;br /&gt;
#define WEB_PUB_DIR &amp;quot;http://publicURL&amp;quot; &lt;br /&gt;
// Location of the structural data for Circos&lt;br /&gt;
#define WEB_SDATA_DIR &amp;quot;/path2structuralDataCircos&amp;quot; &lt;br /&gt;
// Location of Circos installation&lt;br /&gt;
#define WEB_CIRCOS_DIR &amp;quot;/path2circos&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; use &#039;&#039;&#039;absolute&#039;&#039;&#039; paths in geneFusionsConfig.h, i.e. avoid using environmental variables such as $HOME, $FUSIONSEQWEBDIR, etc.&lt;br /&gt;
&lt;br /&gt;
Once the configuration file is ready, the core modules can be compiled and installed. However, for compiling the auxiliary modules, the Makefile needs to be properly edited (see [[#Auxiliary modules|Auxiliary modules]]). Moreover, for the visualization tools, i.e. the CGIs, some additional variables need to be defined (see [[#Installing CGIs|Installing CGIs]]). Once the configuration file is set up, the compilation just requires:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make // for the core analysis elements&lt;br /&gt;
$ make all // for the core analysis elements as well as the auxiliary programs &lt;br /&gt;
$ make cgi // for compiling the visualization/summary tools (see Installing CGIs)&lt;br /&gt;
$ make deploy// for installing the visualization/summary tools to the web server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auxiliary modules==&lt;br /&gt;
These modules generate a set of useful data files for interpreting and visualizing the results. For example, [[FusionSeq_List of programs#gfr2gff|gfr2gff]] generates the GFF files that can be displayed with the UCSC Genome Browser to show the location and the connection between the paired reads; [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]] generates two fasta files containing the sequences of the reads, one for each end. Most of these modules do not require additional configuration, with the exception of [[FusionSeq_List of programs#gfr2images|gfr2images]]. This tool creates a schematic for each candidate showing what are the exons connected by paired-end reads. It uses graphic libraries whose locations need to be specified in the Makefile (section &amp;quot;optional parameters&amp;quot;). Here is an example on how to edit the Makefile. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GDDIR = -L/path/to/gd/gd-2.0.35/&lt;br /&gt;
GDINC = -I$(GDDIR)/include&lt;br /&gt;
GDLIB = -L$(GDDIR)/lib&lt;br /&gt;
PNGLIB = -L/usr/lib64&lt;br /&gt;
JPEGLIB = -L/usr/X11/lib&lt;br /&gt;
ZLIB = -L/usr/lib&lt;br /&gt;
FREETYPELIB = -L/usr/lib64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that GDINC and GDLIB are automatically defined once GDDIR is set. Once the Makefile is properly defined, the installation goes on as usual. However, to fully exploit the auxiliary modules, the CGIs should also be installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing CGIs==&lt;br /&gt;
The visualization tools are rather useful to display the results of the analysis, although they are completely independent from the analysis itself. These tools require a web server able to interpret CGI programs. We tested our tools on an Apache Web server. First, a set of variables need to be specfied, describing the locations of the different tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ export FUSIONSEQWEBSERVER=web_server_name&lt;br /&gt;
$ export FUSIONSEQWEBUSER=webuserID&lt;br /&gt;
$ export FUSIONSEQCGIDIR=/path/to/cgiDir&lt;br /&gt;
$ export FUSIONSEQCGITARGET=&amp;quot;-b target_architecture&amp;quot; // optional: to be specified only if using the CGIs on a machine with &lt;br /&gt;
a different architecture than the core programs. On the webserver with the CGIs, execute gcc -dumpmachine to get the target_architecture. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The CGI programs assumes a certain directory structure in your data directory (WEB_DATA_DIR):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ALIGNMENTS&lt;br /&gt;
./BED&lt;br /&gt;
./FASTA&lt;br /&gt;
./GFF&lt;br /&gt;
./IMAGES&lt;br /&gt;
./WIGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
BED, FASTA, GFF, and IMAGES contain the data generated by [[FusionSeq_List of programs#gfr2bed|gfr2bed]], [[FusionSeq_List of programs#gfr2fasta|gfr2fasta]], [[FusionSeq_List of programs#gfr2gff|gfr2gff]] and [[FusionSeq_List of programs#gfr2images|gfr2images]], respectively. ALIGNMENTS and WIGS contain the results of the junction-sequence identification analysis, namely [[FusionSeq_List of programs#bp2alignment|bp2alignment]] and [[FusionSeq_List of programs#bp2wig|bp2wig]]. The user is required to ensure that these directories contain the expected files.&lt;br /&gt;
&lt;br /&gt;
One of the CGI applications is SeqViz, which is used to visualize Paired-End RNA-Seq reads. SeqViz requires the software package Circos in order to perform visualization. Please visit the [http://mkweb.bcgsc.ca/circos/ Circos] website to download the latest version of Circos and for detailed information on installing Circos and the required Perl modules.&lt;br /&gt;
&lt;br /&gt;
There is a set of CSS style sheets, JavaScript scripts, and annotation files required for the CGIs. They may be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_WebFiles_1.0.tar.gz here]. In the Web Files tarball, the following files are included:&lt;br /&gt;
* The /web folder contains the CSS style sheets, images, and a distribution of the JQuery and JQuery UI Javascript libraries that are used by the CGI applications. Copy the contents of this folder to a non-CGI directory such as public_html. Set WEB_PUB_DIR to this directory.&lt;br /&gt;
* The /IMAGES folder contains images required by showDetails_cgi. Copy this folder to the directory specified by WEB_DATA_LINK.&lt;br /&gt;
* The /structdata folder contains genomic structure and annotation data files for Circos. Copy the contents of this folder to a directory for which Circos has sufficient permissions. Set WEB_SDATA_DIR to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Here are some common issues when installing FusionSeq and the associated libraries:&lt;br /&gt;
&lt;br /&gt;
* libraries compiled for different architectures:&lt;br /&gt;
:: Make sure you installed and configured all libraries for the same architecture. For example, if you have a 64bit machine, use the flag CFLAGS=-m64 in the configure command.&lt;br /&gt;
* /usr/bin/ld: cannot find -lpng (or -ljpeg)&lt;br /&gt;
:: This usually occurs when compiling the optional program gfr2images which creates the schematic images of the connected exons between the two genes. You need to define the location of the libraries in the Makefile (see [[#Auxilliary modules|Auxilliary modules]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1243</id>
		<title>FusionSeq Requirements</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1243"/>
		<updated>2011-05-06T22:14:50Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Scientific and bioinformatics libraries */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Software Requirements==&lt;br /&gt;
FusionSeq requires several additional packages to be installed in order to carry out the analysis and visualize the results. Moreover, since its modularity, different programs would need specific libraries. Moreover, some data sets are also required for the analysis (see [[#Data Requirements|Data Requirements]]). Here we describe the complete set of tools that one would need to run the analysis as we do in our lab. The modules should be installed in the listed order. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the following instructions apply if one wants to compile FusionSeq from the source code (all versions). Alternatively, one can download the binaries (version 7.0 and later). &lt;br /&gt;
&lt;br /&gt;
===Alignment tools===&lt;br /&gt;
* [http://bowtie-bio.sourceforge.net/index.shtml bowtie] (64bit)&lt;br /&gt;
* [http://users.soe.ucsc.edu/~kent/src/ Blat (source)] [http://genome-test.cse.ucsc.edu/~kent/exe/ (binaries)]&lt;br /&gt;
Please make sure that blat and bowtie executables are part of the PATH, i.e. they can be accessed and executed from any location on your file system. Moreover, make sure that twoBitToFa is also downloaded from the blat package and part of the PATH.&lt;br /&gt;
&lt;br /&gt;
===Scientific and bioinformatics libraries===&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GNU Scientific Library (GSL)]: this library is a required for the compilation of [http://rnaseq.gersteinlab.org/doc/bios/ BIOS].&lt;br /&gt;
=====(versions 0.7.0 and later -- coming soon)=====&lt;br /&gt;
* Starting with version 0.7.0, two new libraries are required:&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/bios/ libbios], which replaces the old BIOS, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libbios-1.1.0.tar.gz here].&lt;br /&gt;
** [http://rnaseq.gersteinlab.org/doc/mrf/ libmrf] can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/libmrf-1.0.0.tar.gz here]&lt;br /&gt;
=====(versions up to 0.6.1)=====&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] library: this library can be downloaded as part of [http://rseqtools.gersteinlab.org RSEQtools], a computational framework to analyze RNA-Seq data, or it can be downloaded as a separate component from [http://rnaseq.gersteinlab.org/fusionseq/tarballs/bios_0.9.0.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instructions to install [http://www.gnu.org/software/gsl/ GSL] and [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] can be found in &#039;&#039;&#039;[[Installation and Configuration of FusionSeq]]&#039;&#039;&#039;. However, please ensure that you read all the requirements (including [[#Data_requirements|Data requirements]]) and downloaded all the libraries and packages needed.&lt;br /&gt;
&lt;br /&gt;
===Drawing tools===&lt;br /&gt;
* [http://www.boutell.com/gd/ GD library]: The gd library is used to create schematic images of the PE reads connecting the two genes. It is required by [[FusionSeq_List_of_programs#gfr2images|gfr2images]], which is an optional component of FusionSeq.&lt;br /&gt;
&lt;br /&gt;
===Data analysis===&lt;br /&gt;
* [http://root.cern.ch/drupal/ ROOT]: this is a very powerful mathematical and computational framework. In the context of FusionSeq, it is used to perform a Kolomogorov-Smirnov analysis for filtering the breakpoint junctions and plotting the insert-size distribution. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data Requirements==&lt;br /&gt;
Here is the list of required data for a comprehensive use of FusionSeq tools. &lt;br /&gt;
&lt;br /&gt;
===External===&lt;br /&gt;
*[http://hgdownload.cse.ucsc.edu/goldenPath/hg18/bigZips/ Homo Sapiens Reference genome (hg18)]: the user should download both chromFa.zip and hg18.2bit.&lt;br /&gt;
The human genome needs to be properly indexed to be used by bowtie. Please see the instruction of bowtie for performing this operation. Indicatevely, you would need to run something like: &lt;br /&gt;
 $ bowtie-build -f hg18_nh.fa /path2bowtieIndex/hg18_nh/hg18_nh&lt;br /&gt;
where &#039;&#039;&#039;hg18_nh.fa&#039;&#039;&#039; corresponds to the concatenation of all human chromosomes from chromFa.zip &#039;&#039;without&#039;&#039; the different haplotypes and the &amp;quot;random&amp;quot; sequences.&lt;br /&gt;
&lt;br /&gt;
===Provided===&lt;br /&gt;
The following data sets (for hg18), bundled in a tarball, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg18_1.1.tar.gz here (hg18)]. For hg19 see [[#Human genome GRCh37/hg19|below]].&lt;br /&gt;
&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.txt - the interval file with the coordinates of the composite models&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.fa - the sequences of all the composite transcripts&lt;br /&gt;
* kgXref.txt - the mapping between the UCSC knownGene annotation set and other information (RefSeq, gene symbols and description etc.)&lt;br /&gt;
* knownToTreefam.txt - the mapping between UCSC knownGene annotation and TreeFam&lt;br /&gt;
* hg18_repeatMasker.interval - the interval file, i.e. the file with the coordinates, of the repetitive regions&lt;br /&gt;
* ribosomal.2bit - the ribosomal sequences in 2bit format&lt;br /&gt;
&lt;br /&gt;
The composite model needs to be indexed by bowtie:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ bowtie-build -f knownGeneAnnotationTranscriptCompositeModel.fa &lt;br /&gt;
  /path2bowtieIndex/hg18_knownGeneAnnotationTranscriptCompositeModel/hg18_knownGeneAnnotationTranscriptCompositeModel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
knownGeneAnnotationTranscriptCompositeModel.txt (the interval file) and knownGeneAnnotationTranscriptCompositeModel.fa (the sequences) should be located in the same directory.&lt;br /&gt;
&lt;br /&gt;
Although we extensively used the UCSC knownGene annotation set, it is worth mentioning that it is possible to use other gene annotation sets. However, in this case, the same information, and in the same format, should be provided to the corresponding programs.&lt;br /&gt;
&lt;br /&gt;
=====Human genome GRCh37/hg19=====&lt;br /&gt;
The corresponding version of these files for hg19 can be found [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg19_1.0.tar.gz here (hg19)]. Please note that this data set has not been thoroughly  tested yet. This means that it should work anyway.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1242</id>
		<title>FusionSeq Requirements</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=FusionSeq_Requirements&amp;diff=1242"/>
		<updated>2011-05-06T22:01:36Z</updated>

		<summary type="html">&lt;p&gt;Asboner: /* Software Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FusionSeqHeader}}&lt;br /&gt;
==Software Requirements==&lt;br /&gt;
FusionSeq requires several additional packages to be installed in order to carry out the analysis and visualize the results. Moreover, since its modularity, different programs would need specific libraries. Moreover, some data sets are also required for the analysis (see [[#Data Requirements|Data Requirements]]). Here we describe the complete set of tools that one would need to run the analysis as we do in our lab. The modules should be installed in the listed order. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: the following instructions apply if one wants to compile FusionSeq from the source code (all versions). Alternatively, one can download the binaries (version 7.0 and later). &lt;br /&gt;
&lt;br /&gt;
===Alignment tools===&lt;br /&gt;
* [http://bowtie-bio.sourceforge.net/index.shtml bowtie] (64bit)&lt;br /&gt;
* [http://users.soe.ucsc.edu/~kent/src/ Blat (source)] [http://genome-test.cse.ucsc.edu/~kent/exe/ (binaries)]&lt;br /&gt;
Please make sure that blat and bowtie executables are part of the PATH, i.e. they can be accessed and executed from any location on your file system. Moreover, make sure that twoBitToFa is also downloaded from the blat package and part of the PATH.&lt;br /&gt;
&lt;br /&gt;
===Scientific and bioinformatics libraries===&lt;br /&gt;
* [http://www.gnu.org/software/gsl/ GNU Scientific Library (GSL)]: this library is a required for the compilation of the [http://rnaseq.gersteinlab.org/doc/bios/ BIOS].&lt;br /&gt;
* [http://rnaseq.gersteinlab.org/doc/bios/ BIOS]: this library can be downloaded as part of [http://rseqtools.gersteinlab.org RSEQtools], a computational framework to analyze RNA-Seq data, or it can be downloaded as a separate component from [http://rnaseq.gersteinlab.org/fusionseq/tarballs/bios_0.9.0.tar.gz here].&lt;br /&gt;
&lt;br /&gt;
Instructions to install [http://www.gnu.org/software/gsl/ GSL] and [http://rnaseq.gersteinlab.org/doc/bios/ BIOS] can be found in &#039;&#039;&#039;[[Installation and Configuration of FusionSeq]]&#039;&#039;&#039;. However, please ensure that you read all the requirements (including [[#Data_requirements|Data requirements]]) and downloaded all the libraries and packages needed.&lt;br /&gt;
&lt;br /&gt;
===Drawing tools===&lt;br /&gt;
* [http://www.boutell.com/gd/ GD library]: The gd library is used to create schematic images of the PE reads connecting the two genes. It is required by [[FusionSeq_List_of_programs#gfr2images|gfr2images]], which is an optional component of FusionSeq.&lt;br /&gt;
&lt;br /&gt;
===Data analysis===&lt;br /&gt;
* [http://root.cern.ch/drupal/ ROOT]: this is a very powerful mathematical and computational framework. In the context of FusionSeq, it is used to perform a Kolomogorov-Smirnov analysis for filtering the breakpoint junctions and plotting the insert-size distribution. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data Requirements==&lt;br /&gt;
Here is the list of required data for a comprehensive use of FusionSeq tools. &lt;br /&gt;
&lt;br /&gt;
===External===&lt;br /&gt;
*[http://hgdownload.cse.ucsc.edu/goldenPath/hg18/bigZips/ Homo Sapiens Reference genome (hg18)]: the user should download both chromFa.zip and hg18.2bit.&lt;br /&gt;
The human genome needs to be properly indexed to be used by bowtie. Please see the instruction of bowtie for performing this operation. Indicatevely, you would need to run something like: &lt;br /&gt;
 $ bowtie-build -f hg18_nh.fa /path2bowtieIndex/hg18_nh/hg18_nh&lt;br /&gt;
where &#039;&#039;&#039;hg18_nh.fa&#039;&#039;&#039; corresponds to the concatenation of all human chromosomes from chromFa.zip &#039;&#039;without&#039;&#039; the different haplotypes and the &amp;quot;random&amp;quot; sequences.&lt;br /&gt;
&lt;br /&gt;
===Provided===&lt;br /&gt;
The following data sets (for hg18), bundled in a tarball, can be downloaded [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg18_1.1.tar.gz here (hg18)]. For hg19 see [[#Human genome GRCh37/hg19|below]].&lt;br /&gt;
&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.txt - the interval file with the coordinates of the composite models&lt;br /&gt;
* knownGeneAnnotationTranscriptCompositeModel.fa - the sequences of all the composite transcripts&lt;br /&gt;
* kgXref.txt - the mapping between the UCSC knownGene annotation set and other information (RefSeq, gene symbols and description etc.)&lt;br /&gt;
* knownToTreefam.txt - the mapping between UCSC knownGene annotation and TreeFam&lt;br /&gt;
* hg18_repeatMasker.interval - the interval file, i.e. the file with the coordinates, of the repetitive regions&lt;br /&gt;
* ribosomal.2bit - the ribosomal sequences in 2bit format&lt;br /&gt;
&lt;br /&gt;
The composite model needs to be indexed by bowtie:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ bowtie-build -f knownGeneAnnotationTranscriptCompositeModel.fa &lt;br /&gt;
  /path2bowtieIndex/hg18_knownGeneAnnotationTranscriptCompositeModel/hg18_knownGeneAnnotationTranscriptCompositeModel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
knownGeneAnnotationTranscriptCompositeModel.txt (the interval file) and knownGeneAnnotationTranscriptCompositeModel.fa (the sequences) should be located in the same directory.&lt;br /&gt;
&lt;br /&gt;
Although we extensively used the UCSC knownGene annotation set, it is worth mentioning that it is possible to use other gene annotation sets. However, in this case, the same information, and in the same format, should be provided to the corresponding programs.&lt;br /&gt;
&lt;br /&gt;
=====Human genome GRCh37/hg19=====&lt;br /&gt;
The corresponding version of these files for hg19 can be found [http://rnaseq.gersteinlab.org/fusionseq/tarballs/FusionSeq_Annotation_Data_hg19_1.0.tar.gz here (hg19)]. Please note that this data set has not been thoroughly  tested yet. This means that it should work anyway.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[#top|Top]]&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Asboner</name></author>
	</entry>
</feed>