Mercurial > repos > gga > tripal_db_index
comparison db_index.xml @ 0:62cfb06bd887 draft
planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/tripal commit f745b23c84a615bf434d717c8c0e553a012f0268
author | gga |
---|---|
date | Mon, 11 Sep 2017 05:52:46 -0400 |
parents | |
children | c1fd973dd914 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:62cfb06bd887 |
---|---|
1 <?xml version="1.0"?> | |
2 <tool id="db_index" profile="16.04" name="Index Tripal data" version="@WRAPPER_VERSION@.0"> | |
3 <description>using Elasticsearch</description> | |
4 <macros> | |
5 <import>macros.xml</import> | |
6 </macros> | |
7 <expand macro="requirements"/> | |
8 <expand macro="stdio"/> | |
9 <command><![CDATA[ | |
10 | |
11 @AUTH@ | |
12 | |
13 tripaille db index | |
14 | |
15 --mode '${table.mode}' | |
16 | |
17 #if $table.mode == "table": | |
18 --index_name "${table.index_name}" | |
19 #end if | |
20 | |
21 #if $queues: | |
22 --queues "$queues" | |
23 #end if | |
24 | |
25 #if $tokenizer: | |
26 --tokenizer "$tokenizer" | |
27 #end if | |
28 | |
29 #if $table.mode == "table": | |
30 --table '${table.table}' | |
31 | |
32 #for $rep in $table.repeat_fields: | |
33 --fields "${rep.field_name}|${rep.field_type}" | |
34 #end for | |
35 | |
36 #for $rep in $table.repeat_links: | |
37 --links "${rep.column}|${rep.url}" | |
38 #end for | |
39 #end if | |
40 | |
41 && | |
42 | |
43 echo "Data loaded" > $results | |
44 ]]></command> | |
45 <inputs> | |
46 <conditional name="table"> | |
47 <param name="mode" | |
48 type="select" | |
49 label="Data to index"> | |
50 <option value="website" selected="true">Index all the Tripal content</option> | |
51 <option value="table">Index a specific table</option> | |
52 </param> | |
53 <when value="website"/> | |
54 <when value="table"> | |
55 <param name="table" | |
56 argument="--table" | |
57 type="text" | |
58 label="Table to index" | |
59 help="The name of a Chado (or custom) table to index" /> | |
60 <param name="index_name" label="Index Name" argument="--index_name" type="text" help="Index name" /> | |
61 <repeat name="repeat_fields" title="Fields"> | |
62 <param name="field_name" | |
63 label="Field name" | |
64 argument="--fields" | |
65 type="text" | |
66 help="Field to index" /> | |
67 <param name="field_type" | |
68 label="Field | |
69 type" type="select" | |
70 help="Field type"> | |
71 <option value="string" selected="true">string</option> | |
72 <option value="keyword">keyword</option> | |
73 <option value="date">date</option> | |
74 <option value="long">long</option> | |
75 <option value="double">double</option> | |
76 <option value="boolean">boolean</option> | |
77 <option value="ip">ip</option> | |
78 <option value="object">object</option> | |
79 <option value="nested">nested</option> | |
80 <option value="geo_point">geo_point</option> | |
81 <option value="geo_shape">geo_shape</option> | |
82 <option value="completion">completion</option> | |
83 </param> | |
84 </repeat> | |
85 <repeat name="repeat_links" title="Links"> | |
86 <param name="column" | |
87 label="Table column where to display links" | |
88 type="text" | |
89 help="Should be in the list of indexed column" /> | |
90 <param name="url" | |
91 label="Links url" | |
92 type="text" | |
93 help="e.g.: /your/url/[any-column-name]"/> | |
94 </repeat> | |
95 </when> | |
96 </conditional> | |
97 <param name="tokenizer" | |
98 type="select" | |
99 label="Tokenizer to use"> | |
100 <option value="standard" selected="true">standard</option> | |
101 <option value="letter">letter</option> | |
102 <option value="lowercase">lowercase</option> | |
103 <option value="whitespace">whitespace</option> | |
104 <option value="uax_url_email">uax_url_email</option> | |
105 <option value="classic">classic</option> | |
106 <option value="ngram">ngram</option> | |
107 <option value="edge_ngram">edge_ngram</option> | |
108 <option value="keyword">keyword</option> | |
109 <option value="pattern">pattern</option> | |
110 <option value="path_hierarchy">path_hierarchy</option> | |
111 </param> | |
112 <param name="queues" label="Queues" argument="queues" type="integer" value="10" help="Number of indexing task queues" /> | |
113 </inputs> | |
114 <outputs> | |
115 <data format="txt" name="results" label="Index Tripal data" /> | |
116 </outputs> | |
117 <tests> | |
118 <test expect_failure="true" expect_exit_code="1"> | |
119 <conditional name="table"> | |
120 <param name="mode" value="all" /> | |
121 </conditional> | |
122 | |
123 <expand macro="test_result" /> | |
124 </test> | |
125 <test expect_failure="true" expect_exit_code="1"> | |
126 <conditional name="table"> | |
127 <param name="mode" value="singles" /> | |
128 <param name="table" value="organism" /> | |
129 <param name="fields" value="genus species description" /> | |
130 </conditional> | |
131 | |
132 <expand macro="test_result" /> | |
133 </test> | |
134 </tests> | |
135 <help><![CDATA[ | |
136 @HELP_OVERVIEW@ | |
137 | |
138 **Index using Elasticsearch** | |
139 | |
140 With this tool, you can trigger indexing of a Tripal instance content using Elasticsearch. | |
141 | |
142 The `tripal_elasticsearch <http://github.com/tripal/tripal_elasticsearch>`_ module must be installed and configured on the Tripal instance. | |
143 | |
144 @HELP@ | |
145 ]]></help> | |
146 <expand macro="citation"/> | |
147 </tool> |