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