# Downloading FastQTL

Hereafter, the different versions of FastQTL.

Version | Description
--- | ---
v2.165 (Binary + Examples for Linux) | Binary of the first version released to the public. It includes functions to perform a nominal pass of association and permutations. Source code will be made available upon publication. If it doesn't work on your machine, please contact olivier.delaneau@gmail.com to request a version compiled on a different machine.
v2.165 (Binary + Examples for MacOS > 10.6) | Binary of the first version released to the public. It includes functions to perform a nominal pass of association and permutations. Source code will be made available upon publication. If it doesn't work on your machine, please contact olivier.delaneau@gmail.com to request a version compiled on a different machine.
v2.166 (Binary + Source + Examples for Linux) | Binary of the second version released to the public. It includes a new column in the output file : the slope of the linear regression. Source code is now available! Source code is located in the src folder. Instructions to compile the code can be found in the next section or in the INSTALL file provided with the tarball.

# Installing FastQTL

In the bin folder is a static binary that should work on most machines. If not, you can re-compile FastQTL following the following steps. First, few libraries are needed:

- The GNU Scientific Library: This library is usually installed by default on most computers. FastQTL needs it for maximum likelihood estimations. Instructions to install it can be found here.
- The Boost C++ libraries: This collection of C++ libraries is also usually installed by default on most computers. FastQTL needs it to handle file descriptors and parse program options. Instructions to install it can be found here.
- The Zlib library: This standard library allows gzipped files to be internally (un-)compressed by FastQTL. Instructions to install it can be found here.
- The standalone Rmath library: This (very useful) library provided by R contains all basic functions to simulate from standard probability distributions (ex: qnorm, pnorm, rnorm, etc ...). Instructions to install it can be found here. FastQTL uses its F, Beta and Normal distribution routines. A pre-compiled version can be directly obtained by installing the package r-mathlib on Debian/Ubuntu or libRmath-dev on Fedora/RedHat.

Once all libraries installed, just go in the FastQTL folder and compile the code using:

`make`

This creates a binary of the program in the bin folder nammed fastQTL.