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