comparison gemini_annotate.xml @ 20:b5207530f991 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_gemini_downloader commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
author iuc
date Tue, 29 Dec 2015 10:19:47 -0500
parents 27ce3de83007
children
comparison
equal deleted inserted replaced
19:27ce3de83007 20:b5207530f991
1 <tool id="gemini_@BINARY@" name="GEMINI @BINARY@" version="@VERSION@.0">
2 <description>adding your own custom annotations</description>
3 <macros>
4 <import>gemini_macros.xml</import>
5 <token name="@BINARY@">annotate</token>
6 </macros>
7 <expand macro="requirements" />
8 <expand macro="stdio" />
9 <expand macro="version_command" />
10 <command>
11 <![CDATA[
12
13 bgzip -c $annotate_source > tabixed.gz;
14 tabix -p bed tabixed.gz;
15
16 gemini @BINARY@
17 -f tabixed.gz
18 -c $column_name
19 -a $a.a_selector
20 #if $a.a_selector == 'extract':
21 -t $a.column_type
22 -e $a.column_extracts
23 -o $a.operation
24 #end if
25
26 "${ infile }"
27 > "${ outfile }"
28 ]]>
29
30 </command>
31 <inputs>
32 <expand macro="infile" />
33 <param name="annotate_source" type="data" format="bed" label="File containing the annotations in BED format" help="(-f)"/>
34
35 <param name="column_name" type="text" value=""
36 label="The name of the column to be added to the variant table" help="(-c)">
37 <sanitizer invalid_char=" ">
38 <valid initial="string.letters,string.digits">
39 <add value="_" />
40 </valid>
41 </sanitizer>
42 </param>
43 <conditional name="a">
44 <param name="a_selector" type="select" label="How should the annotation file be used?" help="(-a)">
45 <option value="boolean">Did a variant overlap a region or not? (boolean)</option>
46 <option value="count">How many regions did a variant overlap? (count)</option>
47 <option value="extract" selected="True">Extract specific values from a BED file. (extract)</option>
48 </param>
49 <when value="extract">
50
51 <param name="column_extracts" label="Column to extract information from for list annotations"
52 type="data_column" data_ref="annotate_source" force_select="true" help="(-e)"/>
53
54
55 <param name="column_type" type="select" label="What data type(s) should be used to represent the new values in the database?"
56 help="(-t)">
57 <option value="float">Decimal precision number (float)</option>
58 <option value="integer">Integer number (integer)</option>
59 <option value="text">Text columns such as “valid”, “yes” (text)</option>
60 </param>
61
62 <param name="operation" type="select" label="Operation to apply to the extract column values ..."
63 help="in the event that a variant overlaps multiple annotations in your annotation file. (-o)">
64 <option value="mean">Compute the average of the (numeric) values</option>
65 <option value="median">Compute the median of the (numeric) values</option>
66 <option value="mix">Compute the minimum of the (numeric) values</option>
67 <option value="max">Compute the maximum of the (numeric) values</option>
68 <option value="mode">Compute the maximum of the (numeric) values</option>
69 <option value="first">Use the value from the first record in the annotation file</option>
70 <option value="last">Use the value from the last record in the annotation file</option>
71 <option value="list">Create a comma-separated list of the observed (text) values</option>
72 <option value="uniq_list">Create a comma-separated list of non-redundant observed (text) values</option>
73 </param>
74
75 </when>
76 <when value="boolean"/>
77 <when value="count"/>
78 </conditional>
79
80 </inputs>
81 <outputs>
82 <data name="outfile" format="tabular" />
83 </outputs>
84 <tests>
85 <test>
86 </test>
87 </tests>
88 <help>
89 **What it does**
90
91 It is inevitable that researchers will want to enhance the gemini framework with their own, custom annotations. gemini provides a sub-command called annotate for exactly this purpose.
92
93 @CITATION@
94 </help>
95 <expand macro="citations"/>
96 </tool>