annotate make_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_make_pathset" name="Make Pathset" version="0.1.0">
7698311d4466 Uploaded
crs4
parents:
diff changeset
2 <description>Create a pathset for a set of files</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 make_pathset
7698311d4466 Uploaded
crs4
parents:
diff changeset
10 #if str($paths.source) == 'tool_input'
7698311d4466 Uploaded
crs4
parents:
diff changeset
11 --force-local --data-format $paths.datapaths.ext "$output_path" "$paths.datapaths"
7698311d4466 Uploaded
crs4
parents:
diff changeset
12 #elif str($paths.source) == 'text_box'
7698311d4466 Uploaded
crs4
parents:
diff changeset
13 #if str($paths.filesystem_select) == "local_fs"
7698311d4466 Uploaded
crs4
parents:
diff changeset
14 --force-local
7698311d4466 Uploaded
crs4
parents:
diff changeset
15 #end if
7698311d4466 Uploaded
crs4
parents:
diff changeset
16 #if $paths.data_format
7698311d4466 Uploaded
crs4
parents:
diff changeset
17 --data-format "$paths.data_format"
7698311d4466 Uploaded
crs4
parents:
diff changeset
18 #end if
7698311d4466 Uploaded
crs4
parents:
diff changeset
19 "$output_path" "$paths.datapaths"
7698311d4466 Uploaded
crs4
parents:
diff changeset
20 #else
7698311d4466 Uploaded
crs4
parents:
diff changeset
21 #raise ValueError("BUG!! unknown paths.source value")
7698311d4466 Uploaded
crs4
parents:
diff changeset
22 #end if
7698311d4466 Uploaded
crs4
parents:
diff changeset
23 </command>
7698311d4466 Uploaded
crs4
parents:
diff changeset
24
7698311d4466 Uploaded
crs4
parents:
diff changeset
25 <inputs>
7698311d4466 Uploaded
crs4
parents:
diff changeset
26 <conditional name="paths">
7698311d4466 Uploaded
crs4
parents:
diff changeset
27 <param name="source" type="select" label="Path source">
7698311d4466 Uploaded
crs4
parents:
diff changeset
28 <option value="tool_input">Dataset from your history</option>
7698311d4466 Uploaded
crs4
parents:
diff changeset
29 <option value="text_box">User input</option>
7698311d4466 Uploaded
crs4
parents:
diff changeset
30 </param>
7698311d4466 Uploaded
crs4
parents:
diff changeset
31 <when value="tool_input">
7698311d4466 Uploaded
crs4
parents:
diff changeset
32 <param name="datapaths" type="data" label="A dataset in any format" />
7698311d4466 Uploaded
crs4
parents:
diff changeset
33 </when>
7698311d4466 Uploaded
crs4
parents:
diff changeset
34 <when value="text_box">
7698311d4466 Uploaded
crs4
parents:
diff changeset
35 <param name="filesystem_select" type="select" label="File system type">
7698311d4466 Uploaded
crs4
parents:
diff changeset
36 <option value="default_fs">Default</option>
7698311d4466 Uploaded
crs4
parents:
diff changeset
37 <option value="local_fs">Local FS</option>
7698311d4466 Uploaded
crs4
parents:
diff changeset
38 </param>
7698311d4466 Uploaded
crs4
parents:
diff changeset
39 <param name="datapaths" type="text" label="Paths or URIs" size="60">
7698311d4466 Uploaded
crs4
parents:
diff changeset
40 <validator type="empty_field" />
7698311d4466 Uploaded
crs4
parents:
diff changeset
41 </param>
7698311d4466 Uploaded
crs4
parents:
diff changeset
42 <param name="data_format" type="text" label="Extension representing data format" size="20" />
7698311d4466 Uploaded
crs4
parents:
diff changeset
43 </when>
7698311d4466 Uploaded
crs4
parents:
diff changeset
44 </conditional>
7698311d4466 Uploaded
crs4
parents:
diff changeset
45 </inputs>
7698311d4466 Uploaded
crs4
parents:
diff changeset
46
7698311d4466 Uploaded
crs4
parents:
diff changeset
47 <outputs>
7698311d4466 Uploaded
crs4
parents:
diff changeset
48 <data name="output_path" format="pathset" />
7698311d4466 Uploaded
crs4
parents:
diff changeset
49 </outputs>
7698311d4466 Uploaded
crs4
parents:
diff changeset
50
7698311d4466 Uploaded
crs4
parents:
diff changeset
51 <stdio>
7698311d4466 Uploaded
crs4
parents:
diff changeset
52 <exit_code range="1:" level="fatal" />
7698311d4466 Uploaded
crs4
parents:
diff changeset
53 </stdio>
7698311d4466 Uploaded
crs4
parents:
diff changeset
54
7698311d4466 Uploaded
crs4
parents:
diff changeset
55 <help>
7698311d4466 Uploaded
crs4
parents:
diff changeset
56 Create a pathset for a set of files to be used as input for Hadoop tools.
7698311d4466 Uploaded
crs4
parents:
diff changeset
57 </help>
7698311d4466 Uploaded
crs4
parents:
diff changeset
58 </tool>