annotate hadoop_galaxy-13348e73/split_pathset.xml @ 1:30bd2584b6a0 draft default tip

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