Debian Codegraph @

doc/pages/format_vcf.html

raw
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="vcf1">
17 <h1>VCF file format</h1>
18 <p>
19 The <b>VCF</b> file contains the genetic data (genotypes). Hereafter a minimal example:
20 </p>
21
22 <code>
23 ##fileformat=VCFv4.1<br>
24 #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT UNR1 UNR2 UNR3 UNR4<br>
25 chr7 123 SNP1 A G 100 PASS INFO GT:DS 0/0:0.001 0/0:0.000 0/1:0.999 1/1:1.999<br>
26 chr7 456 SNP2 T C 100 PASS INFO GT:DS 0/0:0.001 0/0:0.000 0/1:1.100 0/0:0.100<br>
27 chr7 789 SNP3 A T 100 PASS INFO GT:DS 1/1:2.000 0/1:1.001 0/0:0.010 0/1:0.890<br>
28 </code>
29
30 <p>
31 A precise description of this file format can be found <A href=http://vcftools.sourceforge.net/specs.html>here</A>.
32 FastQTL needs at least one of the two following fields <b>GT</b> or <b>DS</b>.
33 It uses in priority the <b>DS</b> field and if absent, the <b>GT</b> field from which it derives the required dosages.
34 We strongly recommend to use dosages instead of fixed genotypes in order to account for imputation uncertainty.
35 </p>
36
37 <note>
38 Missing entries (<b>./.</b>, <b>./0</b> or <b>./1</b>) are internally imputed as mean dosage at the variant site.
39 </note>
40
41 </div>
42
43 <div class="item" id="vcf24">
44 <h1>Indexing VCF file (required)</h1>
45 <p>
46 To feed FastQTL with VCF files, you need to index them with tabix first. Hereafter, the commands that does it:
47 </p>
48
49 <code>
50 bgzip genotypes.vcf && tabix -p vcf genotypes.vcf.gz
51 </code>
52
53 <p>
54 Look <A href=http://samtools.sourceforge.net/tabix.shtml>here</A> for more details on Tabix and Bgzip command lines.
55 The above command line produces a file <b>genotypes.vcf.gz.tbi</b> that contains the index for <b>data.vcf.gz</b>.
56 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>genotypes.vcf.gz</b>.
57 </p>
58 </div>
59
60 <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>
61 </div>
62 </body>
63 </html>