Mercurial > repos > iuc > sqlite_to_tabular
comparison macros.xml @ 9:4678715f7147 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/query_tabular commit daa9af57fe07ee83a45ddc9f855716f9d14a8e12"
author | iuc |
---|---|
date | Sat, 12 Sep 2020 01:22:24 +0000 |
parents | 5a4ae7678bc5 |
children | 575cd6cd537c |
comparison
equal
deleted
inserted
replaced
8:5a4ae7678bc5 | 9:4678715f7147 |
---|---|
38 #set $filter_dict = dict() | 38 #set $filter_dict = dict() |
39 #set $filter_dict['filter'] = str($fi.filter.filter_type) | 39 #set $filter_dict['filter'] = str($fi.filter.filter_type) |
40 #set $filter_dict['column'] = int(str($fi.filter.column).replace('c','')) | 40 #set $filter_dict['column'] = int(str($fi.filter.column).replace('c','')) |
41 #set $filter_dict['pattern'] = str($fi.filter.regex_pattern) | 41 #set $filter_dict['pattern'] = str($fi.filter.regex_pattern) |
42 #set $filter_dict['replace'] = str($fi.filter.regex_replace) | 42 #set $filter_dict['replace'] = str($fi.filter.regex_replace) |
43 #if $fi.filter.add: | |
44 #set $filter_dict['add'] = str($fi.filter.add) | |
45 #end if | |
43 #silent $input_filters.append($filter_dict) | 46 #silent $input_filters.append($filter_dict) |
44 #elif str($fi.filter.filter_type).endswith('pend_line_num'): | 47 #elif str($fi.filter.filter_type).endswith('pend_line_num'): |
45 #set $filter_dict = dict() | 48 #set $filter_dict = dict() |
46 #set $filter_dict['filter'] = str($fi.filter.filter_type) | 49 #set $filter_dict['filter'] = str($fi.filter.filter_type) |
47 #silent $input_filters.append($filter_dict) | 50 #silent $input_filters.append($filter_dict) |
170 </param> | 173 </param> |
171 </when> | 174 </when> |
172 <when value="replace"> | 175 <when value="replace"> |
173 <param name="column" type="text" value="" label="enter column number to replace" | 176 <param name="column" type="text" value="" label="enter column number to replace" |
174 help="example: 1 or c1 (selects the first column)"> | 177 help="example: 1 or c1 (selects the first column)"> |
175 <validator type="regex" message="Column ordinal position separated by commas">^(c?[1-9]\d*)$</validator> | 178 <validator type="regex" message="Column ordinal position">^(c?[1-9]\d*)$</validator> |
176 </param> | 179 </param> |
177 <param name="regex_pattern" type="text" value="" label="regex pattern"> | 180 <param name="regex_pattern" type="text" value="" label="regex pattern"> |
178 <sanitizer sanitize="False"/> | 181 <sanitizer sanitize="False"/> |
179 </param> | 182 </param> |
180 <param name="regex_replace" type="text" value="" label="replacement expression"> | 183 <param name="regex_replace" type="text" value="" label="replacement expression"> |
181 <sanitizer sanitize="False"/> | 184 <sanitizer sanitize="False"/> |
185 </param> | |
186 <param name="add" type="select" optional="true" label="Instead of replacing, Add as new column:"> | |
187 <option value="prepend">prepend to beginning of row</option> | |
188 <option value="append">append to the end of row</option> | |
189 <option value="before">insert before column field</option> | |
190 <option value="after">insert after column field</option> | |
182 </param> | 191 </param> |
183 </when> | 192 </when> |
184 <when value="normalize"> | 193 <when value="normalize"> |
185 <param name="columns" type="text" value="" label="enter column numbers to normalize"> | 194 <param name="columns" type="text" value="" label="enter column numbers to normalize"> |
186 <help><![CDATA[ | 195 <help><![CDATA[ |
209 - skip leading lines skip the first *number* of lines | 218 - skip leading lines skip the first *number* of lines |
210 - comment char omit any lines that start with the specified comment character | 219 - comment char omit any lines that start with the specified comment character |
211 - by regex expression matching *include/exclude* lines the match the regex expression | 220 - by regex expression matching *include/exclude* lines the match the regex expression |
212 - select columns choose to include only selected columns in the order specified | 221 - select columns choose to include only selected columns in the order specified |
213 - regex replace value in column replace a field in a column using a regex substitution (good for date reformatting) | 222 - regex replace value in column replace a field in a column using a regex substitution (good for date reformatting) |
223 - regex replace value in column add a new column using a regex substitution of a column value | |
214 - prepend a line number column each line has the ordinal value of the line read by this filter as the first column | 224 - prepend a line number column each line has the ordinal value of the line read by this filter as the first column |
215 - append a line number column each line has the ordinal value of the line read by this filter as the last column | 225 - append a line number column each line has the ordinal value of the line read by this filter as the last column |
216 - prepend a text column each line has the text string as the first column | 226 - prepend a text column each line has the text string as the first column |
217 - append a text column each line has the text string as the last column | 227 - append a text column each line has the text string as the last column |
218 - normalize list columns replicates the line for each item in the specified list *columns* | 228 - normalize list columns replicates the line for each item in the specified list *columns* |