| 1 |
<html> |
| 2 |
<head> |
| 3 |
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/> |
| 4 |
<meta http-equiv="Cache-Control" content="max-age=3600"/> |
| 5 |
<meta name="description" content="description"/> |
| 6 |
<meta name="keywords" content="keywords"/> |
| 7 |
<meta name="author" content="author"/> |
| 8 |
<link rel="stylesheet" type="text/css" href="../style/default.css" media="screen"/> |
| 9 |
<title>FastQTL</title> |
| 10 |
<script language="Javascript" src="../script/print_last_modif_date.js" ></script> |
| 11 |
</head> |
| 12 |
|
| 13 |
<body> |
| 14 |
<div class="content"> |
| 15 |
|
| 16 |
<div class="item" id="bed1"> |
| 17 |
<h1>BED file</h1> |
| 18 |
<p> |
| 19 |
The <b>BED</b> file contains the phenotypic data in a UCSC BED derived format. It is basically a BED file with one additional column per sample. |
| 20 |
Hereafter an example of 3 molecular phenotypes for 4 samples. |
| 21 |
</p> |
| 22 |
|
| 23 |
<code> |
| 24 |
#Chr start end ID UNR1 UNR2 UNR3 UNR4 |
| 25 |
chr1 173863 173864 ENSG123 -0.50 0.82 -0.71 0.83<br> |
| 26 |
chr1 685395 685396 ENSG456 -1.13 1.18 -0.03 0.11<br> |
| 27 |
chr1 700304 700305 ENSG789 -1.18 1.32 -0.36 1.26<br> |
| 28 |
</code> |
| 29 |
|
| 30 |
<p> |
| 31 |
This file is <i>TAB</i> delimited. |
| 32 |
Each line corresponds to a single molecular phenotype. |
| 33 |
The first 4 columns are: |
| 34 |
</p> |
| 35 |
|
| 36 |
<ol> |
| 37 |
<li>Chromosome ID <i>[string]</i></li> |
| 38 |
<li>Start genomic position of the phenotype (e.g. TSS) <i>[integer]</i></li> |
| 39 |
<li>End genomic position of the phenotype (e.g. TSS) <i>[integer]</i></li> |
| 40 |
<li>Phenotype ID <i>[string]</i></li> |
| 41 |
</ol> |
| 42 |
|
| 43 |
<p> |
| 44 |
Then additional columns give phenotype quantifications for all samples. |
| 45 |
Phenotype quantifications are encoded with floating numbers. |
| 46 |
This file should have P lines and N+4 columns where P and N are the numbers of phenotypes and samples, respectively. |
| 47 |
</p> |
| 48 |
</div> |
| 49 |
|
| 50 |
<div class="item" id="bed2"> |
| 51 |
<h1>Indexing BED file (required)</h1> |
| 52 |
<p> |
| 53 |
To feed FastQTL with BED files containing phenotypes, you need to index them with tabix first. Hereafter, the commands that does it: |
| 54 |
</p> |
| 55 |
|
| 56 |
<code> |
| 57 |
bgzip phenotypes.bed && tabix -p bed phenotypes.bed.gz |
| 58 |
</code> |
| 59 |
|
| 60 |
<p> |
| 61 |
Look <A href=http://samtools.sourceforge.net/tabix.shtml>here</A> for more details on Tabix and Bgzip command lines. |
| 62 |
The above command line produces a file <b>phenotypes.bed.gz.tbi</b> that contains the index for <b>data.bed.gz</b>. |
| 63 |
These tow files need to be together in the same folder in order for FastQTL do be able to also read the index file when reading <b>phenotypes.bed.gz</b>. |
| 64 |
</p> |
| 65 |
</div> |
| 66 |
|
| 67 |
|
| 68 |
<div class="log"><script type="text/javascript"> print_last_modif_date("$Date: 2015-01-22 00:08:17 +0100 (Thu, 22 Jan 2015) $"); </script></div> |
| 69 |
</div> |
| 70 |
</body> |
| 71 |
</html> |