annotate split_pathset.xml @ 0:7698311d4466 draft

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