annotate gemini_annotate.xml @ 7:567837ca5f33 draft

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