annotate gemini_annotate.xml @ 9:de9bdb014464 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
author iuc
date Fri, 24 Jan 2020 22:21:57 +0000
parents e5eb597e8f80
children 260333f59308
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
1 <tool id="gemini_@BINARY@" name="GEMINI @BINARY@" version="@VERSION@+galaxy2">
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
2 <description>the variants in an existing GEMINI database with additional information</description>
0
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
3 <macros>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
4 <import>gemini_macros.xml</import>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
5 <token name="@BINARY@">annotate</token>
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
6 <xml name="add_as">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
7 <param argument="-c" name="column_name" type="text" value=""
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
8 label="Database column name to use for recording annotations"
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
9 help="A column with the name provided here will be added to the variants table of the GEMINI database to store the annotations">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
10 <validator type="empty_field" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
11 <validator type="expression" message="Only alphanumeric characters and the underscore can be used in column names">value.replace('_', '').isalnum()</validator>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
12 </param>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
13 </xml>
0
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
14 </macros>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
15 <expand macro="requirements" />
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
16 <expand macro="stdio" />
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
17 <expand macro="version_command" />
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
18 <command>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
19 <![CDATA[
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
20
3
f052e48b4783 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit e4dce25c8dbeffca62c402f74ca733ddc7a6091b
iuc
parents: 2
diff changeset
21 ## For GEMINI to work correctly, tabixed file must have form [name].[bed|vcf].gz
9
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
22 #if $annotate_source.ext == 'vcf_bgzip':
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
23 ## File is bgzipped and tabixed already -> just symlink data and index
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
24 #set $tabixed_file = 'tabixed.vcf.gz'
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
25 ln -s '$annotate_source' $tabixed_file &&
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
26 ln -s '$annotate_source.metadata.tabix_index' ${tabixed_file}.tbi &&
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
27 #else:
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
28 ## bgzip and index vcf or bed
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
29 #set $tabixed_file = "tabixed.%s.gz" % $annotate_source.ext
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
30 bgzip -c '$annotate_source' > '$tabixed_file' &&
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
31 tabix -p '$annotate_source.ext' '$tabixed_file' &&
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
32 #end if
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
33 ## gemini annotate modifies its input database in-place so, in Galaxy,
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
34 ## we need to create a copy first!
5
1f5421e565d8 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 283362494058ed64143b1f27afb447b8a1cb4313
iuc
parents: 4
diff changeset
35 cp '$infile' '$outfile' &&
3
f052e48b4783 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit e4dce25c8dbeffca62c402f74ca733ddc7a6091b
iuc
parents: 2
diff changeset
36
5
1f5421e565d8 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 283362494058ed64143b1f27afb447b8a1cb4313
iuc
parents: 4
diff changeset
37 gemini @BINARY@
1f5421e565d8 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 283362494058ed64143b1f27afb447b8a1cb4313
iuc
parents: 4
diff changeset
38 -f '$tabixed_file'
1f5421e565d8 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 283362494058ed64143b1f27afb447b8a1cb4313
iuc
parents: 4
diff changeset
39 -a $a.a_selector
1f5421e565d8 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 283362494058ed64143b1f27afb447b8a1cb4313
iuc
parents: 4
diff changeset
40 #if $a.a_selector == 'extract':
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
41 #set $types = []
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
42 #set $elements = []
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
43 #set $column_names = []
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
44 #set $operations = []
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
45 #for $action in $a.actions:
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
46 $types.append(str($action.column_type))
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
47 $elements.append(str($action.element_to_extract).strip())
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
48 $column_names.append(str($action.column_name).strip())
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
49 $operations.append(str($action.operation))
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
50 #end for
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
51
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
52 -t #echo ",".join($types)
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
53 -e '#echo ",".join($elements)#'
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
54 -o #echo ",".join($operations)
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
55 -c '#echo ",".join($column_names)#'
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
56 #else:
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
57 -c '${a.column_name}'
5
1f5421e565d8 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 283362494058ed64143b1f27afb447b8a1cb4313
iuc
parents: 4
diff changeset
58 #end if
9
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
59 #if str($annotate_source.ext) != "bed":
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
60 $region_only
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
61 #end if
5
1f5421e565d8 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 283362494058ed64143b1f27afb447b8a1cb4313
iuc
parents: 4
diff changeset
62 '$outfile'
0
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
63 ]]>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
64 </command>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
65 <inputs>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
66 <expand macro="infile" />
9
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
67 <param argument="-f" name="annotate_source" type="data" format="vcf,vcf_bgzip,bed"
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
68 label="Dataset to use as the annotation source"
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
69 help="The tool can use the information from a BED or VCF dataset to annotate the database variants."/>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
70 <param argument="--region-only" name="region_only" type="boolean" checked="true" truevalue="" falsevalue="--region-only"
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
71 label="Strict variant-identity matching of database and annotation records (VCF format only)"
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
72 help="The default is to consider VCF-formatted annotations only if a variant in the GEMINI database and a record in the annotation source describe the exact same nucleotide change at the same position in the genome. You can disable this option to make use of any annotation that overlaps with the position of a database variant. This setting is ignored for annotation sources in BED format, for which matching is always based on overlapping positions only." />
0
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
73 <conditional name="a">
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
74 <param argument="-a" name="a_selector" type="select"
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
75 label="Type of information to add to the database variants"
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
76 help="">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
77 <option value="boolean">Binary indicator (1=found, 0=not found) of whether the variant had any match in the annotation source (boolean)</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
78 <option value="count">Count of the number of matches found in the annotation source for the database variant (count)</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
79 <option value="extract" selected="True">Specific values extracted from matching records in the annotation source (extract)</option>
0
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
80 </param>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
81 <when value="extract">
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
82 <repeat name="actions" title="Annotation extraction recipe" default="1" min="1">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
83 <param argument="-e" name="element_to_extract" type="text" value=""
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
84 label="Elements to extract from the annotation source"
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
85 help="For an annotation source in BED format, specify the number of the column from which the annotations should be read. For a VCF source, name an INFO field element.">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
86 <validator type="expression" message="This field cannot be empty">value.strip()</validator>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
87 </param>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
88 <expand macro="add_as" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
89 <param argument="-t" name="column_type" type="select" display="radio"
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
90 label="What type of data are you trying to extract?"
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
91 help="Your selection will determine the data type used to store the new annotations in the database.">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
92 <option value="float">Numbers with decimal precision</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
93 <option value="integer">Integer numbers</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
94 <option value="text">Text (text)</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
95 </param>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
96 <param argument="-o" name="operation" type="select"
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
97 label="If multiple annotations are found for the same variant, store ..."
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
98 help="Note: If indicated (in parentheses) an option is only applicable to annotations of a specific type.">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
99 <option value="first">the first annotation found</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
100 <option value="last">the last annotation found</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
101 <option value="list">a comma-separated list of the (text) values</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
102 <option value="uniq_list">a comma-separated list of non-redundant (text) values</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
103 <option value="min">the smallest of the (numeric) values</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
104 <option value="max">the largest of the (numeric) values</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
105 <option value="mode">the most frequent of the (numeric) values</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
106 <option value="mean">the mean of the (numeric) values</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
107 <option value="median">the median of the (numeric) values</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
108 <option value="sum">the sum of the (numeric) values</option>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
109 </param>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
110 </repeat>
0
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
111 </when>
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
112 <when value="boolean">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
113 <expand macro="add_as" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
114 </when>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
115 <when value="count">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
116 <expand macro="add_as" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
117 </when>
0
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
118 </conditional>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
119 </inputs>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
120 <outputs>
5
1f5421e565d8 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 283362494058ed64143b1f27afb447b8a1cb4313
iuc
parents: 4
diff changeset
121 <data name="outfile" format="gemini.sqlite" />
0
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
122 </outputs>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
123 <tests>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
124 <test>
9
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
125 <!-- test with annotation source in bed format -->
5
1f5421e565d8 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 283362494058ed64143b1f27afb447b8a1cb4313
iuc
parents: 4
diff changeset
126 <param name="infile" value="gemini_load_result1.db" ftype="gemini.sqlite" />
9
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
127 <param name="annotate_source" value="anno.bed" ftype="bed" />
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
128 <param name="region_only" value="false" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
129 <conditional name="a">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
130 <param name="a_selector" value="count" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
131 <param name="column_name" value="anno5" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
132 </conditional>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
133 <assert_command>
9
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
134 <!-- confirm region_only gets ignored for bed input -->
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
135 <not_has_text text="--region-only" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
136 </assert_command>
5
1f5421e565d8 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 283362494058ed64143b1f27afb447b8a1cb4313
iuc
parents: 4
diff changeset
137 <output name="outfile" file="gemini_annotate_result.db" ftype="gemini.sqlite" compare="sim_size" delta="1000"/>
0
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
138 </test>
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
139 <test>
9
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
140 <!-- test with annotation source in vcf format -->
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
141 <param name="infile" value="gemini_load_result1.db" ftype="gemini.sqlite" />
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
142 <param name="annotate_source" value="gemini_amend.vcf" ftype="vcf" />
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
143 <param name="region_only" value="false" />
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
144 <conditional name="a">
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
145 <param name="a_selector" value="count" />
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
146 <param name="column_name" value="anno5" />
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
147 </conditional>
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
148 <output name="outfile" file="gemini_annotate_result.db" ftype="gemini.sqlite" compare="sim_size" delta="1000"/>
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
149 </test>
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
150 <test>
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
151 <!-- test with annotation source in vcf_bgzip format -->
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
152 <param name="infile" value="gemini_load_result1.db" ftype="gemini.sqlite" />
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
153 <param name="annotate_source" value="gemini_amend.vcf.gz" ftype="vcf_bgzip" />
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
154 <param name="region_only" value="false" />
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
155 <conditional name="a">
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
156 <param name="a_selector" value="count" />
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
157 <param name="column_name" value="anno5" />
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
158 </conditional>
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
159 <output name="outfile" file="gemini_annotate_result.db" ftype="gemini.sqlite" compare="sim_size" delta="1000"/>
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
160 </test>
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
161 <test>
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
162 <param name="infile" value="gemini_load_result1.db" ftype="gemini.sqlite" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
163 <param name="annotate_source" value="anno.bed" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
164 <conditional name="a">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
165 <param name="a_selector" value="extract" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
166 <repeat name="actions">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
167 <param name="element_to_extract" value="1" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
168 <param name="column_name" value="anno5" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
169 <param name="column_type" value="text" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
170 <param name="operation" value="first" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
171 </repeat>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
172 </conditional>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
173 <assert_command>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
174 <has_text_matching expression="-a +extract" />
9
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
175 <has_text_matching expression="-e +&apos;1&apos;" />
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
176 <has_text_matching expression="-c +&apos;anno5&apos;" />
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
177 <has_text_matching expression="-t +text" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
178 <has_text_matching expression="-o +first" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
179 </assert_command>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
180 </test>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
181 <test>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
182 <param name="infile" value="gemini_load_result1.db" ftype="gemini.sqlite" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
183 <param name="annotate_source" value="anno.bed" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
184 <conditional name="a">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
185 <param name="a_selector" value="extract" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
186 <repeat name="actions">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
187 <param name="element_to_extract" value="1" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
188 <param name="column_name" value="anno5" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
189 <param name="column_type" value="text" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
190 <param name="operation" value="first" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
191 </repeat>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
192 <repeat name="actions">
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
193 <param name="element_to_extract" value="2" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
194 <param name="column_name" value="anno6" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
195 <param name="column_type" value="integer" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
196 <param name="operation" value="first" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
197 </repeat>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
198 </conditional>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
199 <assert_command>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
200 <has_text_matching expression="-a +extract" />
9
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
201 <has_text_matching expression="-e +&apos;1,2&apos;" />
de9bdb014464 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 8
diff changeset
202 <has_text_matching expression="-c +&apos;anno5,anno6&apos;" />
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
203 <has_text_matching expression="-t +text,integer" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
204 <has_text_matching expression="-o +first,first" />
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
205 </assert_command>
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
206 </test>
0
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
207 </tests>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
208 <help><![CDATA[
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
209 **What it does**
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
210
8
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
211 Given an existing GEMINI database and an annotation source in BED or VCF
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
212 format, the annotate tool will, for each variant in the variants table of the
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
213 database, screen for overlapping regions defined in the annotation source and
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
214 update one or more new columns of the variant record in the database based on
e5eb597e8f80 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 6
diff changeset
215 the result and the annotation found.
0
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
216 ]]></help>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
217 <expand macro="citations"/>
c30f03974122 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit e88029bb12e5262687267293f9d2a694eb00d3f0-dirty
iuc
parents:
diff changeset
218 </tool>