annotate gemini_annotate.xml @ 9:cf0f0f05ba9f draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit f7bdf08922aaf4119aefe7041e754a69cf64aebd
author iuc
date Wed, 13 Jul 2022 15:23:12 +0000
parents 567837ca5f33
children
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>
9
cf0f0f05ba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit f7bdf08922aaf4119aefe7041e754a69cf64aebd
iuc
parents: 7
diff changeset
3 <expand macro="bio_tools"/>
0
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
4 <macros>
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
5 <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
6 <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
7 <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
8 <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
9 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
10 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
11 <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
12 <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
13 </param>
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
14 </xml>
0
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
15 </macros>
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
16 <expand macro="requirements" />
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
17 <expand macro="stdio" />
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
18 <expand macro="version_command" />
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
19 <command>
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
20 <![CDATA[
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
21
2
8da05bf2b1d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 11ee7ac206d41894c0b6a11f2439aaea490824f0
iuc
parents: 0
diff changeset
22 ## 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
23 #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
24 ## 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
25 #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
26 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
27 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
28 #else:
567837ca5f33 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 6
diff changeset
29 ## 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
30 #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
31 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
32 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
33 #end if
567837ca5f33 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 6
diff changeset
34 ## 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
35 ## 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
36 cp '$infile' '$outfile' &&
0
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
37
4
5bcaca8085bd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 283362494058ed64143b1f27afb447b8a1cb4313
iuc
parents: 2
diff changeset
38 gemini @BINARY@
5bcaca8085bd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 283362494058ed64143b1f27afb447b8a1cb4313
iuc
parents: 2
diff changeset
39 -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
40 -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
41 #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
42 #set $types = []
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
43 #set $elements = []
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
44 #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
45 #set $operations = []
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
46 #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
47 $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
48 $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
49 $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
50 $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
51 #end for
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
52
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
53 -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
54 -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
55 -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
56 -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
57 #else:
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
58 -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
59 #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
60 #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
61 $region_only
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
62 #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
63 '$outfile'
0
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
64 ]]>
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
65 </command>
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
66 <inputs>
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
67 <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
68 <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
69 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
70 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
71 <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
72 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
73 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
74 <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
75 <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
76 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
77 help="">
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="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
79 <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
80 <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
81 </param>
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
82 <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
83 <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
84 <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
85 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
86 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
87 <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
88 </param>
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
89 <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
90 <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
91 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
92 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
93 <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
94 <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
95 <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
96 </param>
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
97 <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
98 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
99 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
100 <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
101 <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
102 <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
103 <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
104 <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
105 <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
106 <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
107 <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
108 <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
109 <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
110 </param>
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
111 </repeat>
0
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
112 </when>
6
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
113 <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
114 <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
115 </when>
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
116 <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
117 <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
118 </when>
0
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
119 </conditional>
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
120 </inputs>
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
121 <outputs>
4
5bcaca8085bd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 283362494058ed64143b1f27afb447b8a1cb4313
iuc
parents: 2
diff changeset
122 <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
123 </outputs>
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
124 <tests>
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
125 <test>
7
567837ca5f33 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 6
diff changeset
126 <!-- 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
127 <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
128 <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
129 <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
130 <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
131 <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
132 <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
133 </conditional>
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
134 <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
135 <!-- 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
136 <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
137 </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
138 <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
139 </test>
6
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
140 <test>
7
567837ca5f33 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 6
diff changeset
141 <!-- 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
142 <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
143 <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
144 <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
145 <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
146 <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
147 <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
148 </conditional>
567837ca5f33 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 6
diff changeset
149 <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
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>
567837ca5f33 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 6
diff changeset
152 <!-- 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
153 <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
154 <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
155 <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
156 <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
157 <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
158 <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
159 </conditional>
567837ca5f33 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 6
diff changeset
160 <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
161 </test>
567837ca5f33 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7"
iuc
parents: 6
diff changeset
162 <test>
6
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="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
164 <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
165 <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
166 <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
167 <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
168 <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
169 <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
170 <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
171 <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
172 </repeat>
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
173 </conditional>
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
174 <assert_command>
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
175 <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
176 <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
177 <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
178 <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
179 <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
180 </assert_command>
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 <test>
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="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
184 <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
185 <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
186 <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
187 <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
188 <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
189 <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
190 <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
191 <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
192 </repeat>
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
193 <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
194 <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
195 <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
196 <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
197 <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
198 </repeat>
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
199 </conditional>
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
200 <assert_command>
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
201 <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
202 <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
203 <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
204 <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
205 <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
206 </assert_command>
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
207 </test>
0
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
208 </tests>
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
209 <help><![CDATA[
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
210 **What it does**
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
211
6
0c8f7322f8fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 29750462f6e725177dc5617c14ba28bcaeed9794
iuc
parents: 5
diff changeset
212 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
213 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
214 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
215 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
216 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
217 ]]></help>
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
218 <expand macro="citations"/>
685b3408c181 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/gemini commit 4bbfca6f0e9cae9a8f263aad4eab7304c96358c4
iuc
parents:
diff changeset
219 </tool>