1
|
1 <tool id="hadoop_galaxy_split_pathset" name="Split pathset" version="0.1.4">
|
|
2 <description>Split a pathset according to a regular expression criteria</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="0.11">pydoop</requirement>
|
|
5 <requirement type="package" version="0.1.4">hadoop-galaxy</requirement>
|
|
6 </requirements>
|
|
7
|
|
8 <command>
|
|
9 split_pathset '$criteria_expr'
|
|
10 #if $anchor_end
|
|
11 --anchor-end
|
|
12 #end if
|
|
13 --expand-levels $expand_levels
|
|
14 $input_pathset $output_true $output_false
|
|
15 </command>
|
|
16
|
|
17 <inputs>
|
|
18 <param name="criteria_expr" type="text" label="Regular expression criteria">
|
|
19 <validator type="empty_field" />
|
|
20 </param>
|
|
21 <param name="anchor_end" type="boolean"
|
|
22 checked="false"
|
|
23 label="Anchor expression and the end of the string (like $)"
|
|
24 />
|
|
25 <param name="expand_levels" type="integer"
|
|
26 value="0"
|
|
27 label="Expand paths by at least this many levels before applying criteria"
|
|
28 />
|
|
29 <param name="input_pathset" type="data" format="pathset" label="Input pathset" />
|
|
30 <param name="match_name" type="text" value="match" label="Name of dataset matching criteria">
|
|
31 <validator type="empty_field" />
|
|
32 </param>
|
|
33 <param name="no_match_name" type="text" value="no_match" label="Name of dataset not matching criteria">
|
|
34 <validator type="empty_field" />
|
|
35 </param>
|
|
36 </inputs>
|
|
37
|
|
38 <outputs>
|
|
39 <data name="output_true" type="data" format="pathset" label="$match_name" />
|
|
40 <data name="output_false" type="data" format="pathset" label="$no_match_name" />
|
|
41 </outputs>
|
|
42
|
|
43 <stdio>
|
|
44 <exit_code range="1:" level="fatal" />
|
|
45 </stdio>
|
|
46
|
|
47 <help>
|
|
48 Splits a pathset according to a regular expression.
|
|
49
|
|
50 You can have the tool expand the paths in the pathset by a certain number
|
|
51 of levels prior to testing whether it matches the regular expression.
|
|
52
|
|
53
|
|
54 **Note**: you can't use '$' in your regular expression. To anchor the
|
|
55 expression to the end of the path use the checkbox.
|
|
56
|
|
57
|
|
58 *Note*: the regular expression must match the path from its beginning.
|
|
59 </help>
|
|
60 </tool>
|