annotate tabix.xml @ 3:5ff4702264f7 draft

Uploaded
author nilesh
date Wed, 10 Jul 2013 15:07:14 -0400
parents
children 148a92a4d0ed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
1 <tool id="tabix" name="tabix" version="0.0.1">
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
2 <description>Generic indexer for TAB-delimited genome position files.</description>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
3 <requirements>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
4 <requirement type="package" version= "0.2.6">tabix</requirement>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
5 </requirements>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
6 <command>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
7 tabix
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
8 #if str($position) == "no"
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
9 -0
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
10 #end if
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
11
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
12 #if str($options.extension) == "tabular"
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
13 #if str($options.columnseq) != ""
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
14 -s $options.columnseq
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
15 #end if
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
16
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
17 #if str($options.columnstart) != ""
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
18 -b $options.columnstart
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
19 #end if
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
20
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
21 #if str($options.columnend) != ""
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
22 -e $options.columnend
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
23 #end if
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
24
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
25 #if str($options.skiplines) != ""
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
26 -S $options.skiplines
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
27 #end if
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
28
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
29 #if str($options.skipchar) != ""
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
30 -c $options.skipchar
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
31 #end if
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
32 #else
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
33 -p
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
34 #end if
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
35
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
36 $input $region
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
37
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
38 </command>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
39 <inputs>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
40 <param name="input" type="data" label="Input file" format="gff,bed,sam,vcf,tabular">
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
41 </param>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
42 <param name="region" type="text" optional="true" label="Regions (seperate with spaces)"> </param>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
43 <conditional name="optional">
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
44 <param name= "extension" type="select" value= "tabular" label= "Input Extension">
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
45 <option value="tabular">tabular</option>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
46 <option value="gff">gff</option>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
47 <option value="bed">bed</option>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
48 <option value="sam">sam</option>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
49 <option value="vcf">vcf</option>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
50 </param>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
51 <when value="tabular">
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
52 <param name="columnseq" type="integer" optional= "true" label="Column of sequence name" />
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
53 <param name="columnstart" type="integer" optional= "true" label="Column of start chromosomal position" />
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
54 <param name="columnend" type="integer" optional= "true" label="Column of end chromosomal position" />
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
55 <param name="skiplines" type="integer" optional= "true" label="Skip first INT lines" />
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
56 <param name="skipchar" type="text" optional= "true" label="Skip lines started with CHAR" />
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
57 <param name="position" type= "select" value= "yes" label="1-based? (if not, 0-based)">
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
58 <option value= "yes">yes</option>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
59 <option value= "no">no</option>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
60 </param>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
61 </when>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
62 </conditional>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
63 </inputs>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
64
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
65 <outputs>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
66 <data format="tabular" name="output" />
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
67 </outputs>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
68
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
69 <help>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
70 **What it does:**
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
71
5ff4702264f7 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.
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
73
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
74 **Citation:**
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
75
5ff4702264f7 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.
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
77
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
78 http://samtools.sourceforge.net/tabix.shtml
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
79
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
80 **Example:**
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
81
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
82 (grep ^"#" in.gff; grep -v ^"#" in.gff | sort -k1,1 -k4,4n) | bgzip > sorted.gff.gz;
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
83
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
84 tabix -p gff sorted.gff.gz;
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
85
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
86 tabix sorted.gff.gz chr1:10,000,000-20,000,000;
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
87
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
88 </help>
5ff4702264f7 Uploaded
nilesh
parents:
diff changeset
89 </tool>