Home


Installation

This installation guide is subdivided into the following sections:


Installation for Linux

Precompiled binary

We provide a precompiled binary for Linux x86_64, which does not require any runtime libraries. If you just want to use Q, you do not have to install from source.

Open a terminal and create the directory ~/bin in your home directory, if not yet existing.

mkdir ~/bin

Move the downloaded precompiled binary resides to the directory just created.

mv ~/Downloads/Q ~/bin

Make the binary executable using:

chmod u+x ~/bin/Q

Open your hidden personal configuration file using a text editor of your choice (for example gedit or kate).

gedit ~/.profile

Add the following line to your profile:

export PATH=$PATH:$HOME/bin

For the first time you have to reload your profile using:

source ~/.profile

Try the following command (which will display help messages) to test the file.

Q --help

Installation from source

Preliminaries

Q is written in C++ and makes use of several external libraries. Q uses SeqAn for BAM file I/O, and the SeqAn library is provided together with the Q source code and does not need to be installed separated. The zlib, bz2, and gomp libraries are needed for operating with the (compressed) BAM files and for multiprocessor support. Here, the dev versions of the libraries should be installed (which are guaranteed to have the header files needed for compilation). In addition, the boost library is used by Q for certain statistical calculations.

On Debian install all required packages using the following command line:

sudo apt-get install zlib1g-dev libbz2-dev libboost-dev libgomp1

On other linux distrubtions, install the libraries using the command appropriate to your system. We have tested Q using the following compiler and library versions.

Installation

Clone the source code from the github repository:

git clone https://github.com/charite/Q.git

Change into the cloned directory and use the following command to check if your system has the required libraries and to create a Makefile:

./configure

Assuming no error messages are produce, Q can now be compiled. There are two ways of doing so. You can install the executable in a system wide directory (if you have write permissions, e.g., because you are root):

make; make install

Alternatively, to install Q in another directory, use the following to create the Makefile:

./configure --prefix=/path/to/my/directory

Entering make;make install will now install Q into /path/to/my/directory/bin/Q.

The above will compile a version of Q will all of the library code included as well as debugging symbols. To create a release target, you can use the following command:

make install-strip

In order to make the compile binary available on the command line you will have to adjust your $PATH variable (see section for the precompiled binary).

Install UCSC's converter tools

Q generates BedGraph files for the fragment coverage profiles on the fly. This section describes the installation of several UCSC executables that will be needed (See the tutorial for details). Sometimes the BigWig format is more suitable and we will implement the generation of BigWig files in near future. By then two tools from the UCSC command line utilities are needed for the conversion from BedGraph to BigWig format. For downloading change to the bin directory within your home directory and enter the following command lines.

wget http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/fetchChromSizes
wget http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/bedGraphToBigWig

Now you have to make the utilities executable using the following command:

chmod u+x fetchChromSizes bedGraphToBigWig

If you have added /home/bin to your $PATH variable, the utilities should now be available.