annotate tabix.xml @ 1:eb790a7f5e7a draft

Uploaded
author nilesh
date Wed, 10 Jul 2013 15:06:23 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
1 <tool id="tabix" name="tabix" version="0.0.1">
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
2 <description>Generic indexer for TAB-delimited genome position files.</description>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
3 <requirements>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
4 <requirements type="package" version= "0.2.6">tabix</requirements>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
5 </requirements>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
6 <command>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
7 tabix
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
8 #if str($position) == "no"
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
9 -0
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
10 #end if
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
11
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
12 #if str($options.extension) == "tabular"
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
13 #if str($options.columnseq) != ""
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
14 -s $options.columnseq
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
15 #end if
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
16
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
17 #if str($options.columnstart) != ""
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
18 -b $options.columnstart
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
19 #end if
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
20
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
21 #if str($options.columnend) != ""
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
22 -e $options.columnend
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
23 #end if
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
24
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
25 #if str($options.skiplines) != ""
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
26 -S $options.skiplines
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
27 #end if
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
28
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
29 #if str($options.skipchar) != ""
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
30 -c $options.skipchar
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
31 #end if
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
32 #else
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
33 -p
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
34 #end if
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
35
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
36 $input $region
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
37
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
38 </command>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
39 <inputs>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
40 <param name="input" type="data" label="Input file" format="gff,bed,sam,vcf,tabular">
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
41 </param>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
42 <param name="region" type="text" optional="true" label="Regions (seperate with spaces)"> </param>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
43 <conditional name="optional">
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
44 <param name= "extension" type="select" value= "tabular" label= "Input Extension">
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
45 <option value="tabular">tabular</option>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
46 <option value="gff">gff</option>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
47 <option value="bed">bed</option>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
48 <option value="sam">sam</option>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
49 <option value="vcf">vcf</option>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
50 </param>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
51 <when value="tabular">
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
52 <param name="columnseq" type="integer" optional= "true" label="Column of sequence name" />
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
53 <param name="columnstart" type="integer" optional= "true" label="Column of start chromosomal position" />
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
54 <param name="columnend" type="integer" optional= "true" label="Column of end chromosomal position" />
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
55 <param name="skiplines" type="integer" optional= "true" label="Skip first INT lines" />
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
56 <param name="skipchar" type="text" optional= "true" label="Skip lines started with CHAR" />
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
57 <param name="position" type= "select" value= "yes" label="1-based? (if not, 0-based)">
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
58 <option value= "yes">yes</option>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
59 <option value= "no">no</option>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
60 </param>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
61 </when>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
62 </conditional>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
63 </inputs>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
64
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
65 <outputs>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
66 <data format="tabular" name="output" />
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
67 </outputs>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
68
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
69 <help>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
70 **What it does:**
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
71
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
72 Tabix indexes a TAB-delimited genome position file in.tab.bgz and creates an index file in.tab.bgz.tbi when region is absent from the command-line. The input data file must be position sorted and compressed by bgzip which has a gzip(1) like interface. After indexing, tabix is able to quickly retrieve data lines overlapping regions specified in the format "chr:beginPos-endPos". Fast data retrieval also works over network if URI is given as a file name and in this case the index file will be downloaded if it is not present locally.
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
73
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
74 **Citation:**
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
75
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
76 Tabix was written by Heng Li. The BGZF library was originally implemented by Bob Handsaker and modified by Heng Li for remote file access and in-memory caching.
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
77
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
78 http://samtools.sourceforge.net/tabix.shtml
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
79
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
80 **Example:**
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
81
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
82 (grep ^"#" in.gff; grep -v ^"#" in.gff | sort -k1,1 -k4,4n) | bgzip > sorted.gff.gz;
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
83
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
84 tabix -p gff sorted.gff.gz;
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
85
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
86 tabix sorted.gff.gz chr1:10,000,000-20,000,000;
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
87
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
88 </help>
eb790a7f5e7a Uploaded
nilesh
parents:
diff changeset
89 </tool>