annotate unzip.xml @ 2:57f0914ddb7b draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
author imgteam
date Fri, 14 Apr 2023 19:02:41 +0000
parents 38eec75fbe9b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
1 <tool id="unzip" name="Unzip" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
2 <description>Unzip a file</description>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
3 <macros>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
4 <token name="@TOOL_VERSION@">6.0</token>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
5 <token name="@VERSION_SUFFIX@">0</token>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
6 <token name="@PROFILE@">22.01</token>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
7 </macros>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
8 <requirements>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
9 <requirement type="package" version="@TOOL_VERSION@">unzip</requirement>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
10 <requirement type="package" version="1.34">tar</requirement>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
11 </requirements>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
12 <command>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
13 <![CDATA[
0
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
14 mkdir ./out &&
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
15 #if $input_file.is_of_type("zip"):
2
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
16 unzip
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
17 #if $extract_options['extract_all'] == 'False'
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
18 -p '$input_file' '$extract_options["pathtofile"]' > out.data
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
19 #else
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
20 '$input_file' -d out/
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
21 #end if
0
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
22 #end if
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
23 #if $input_file.is_of_type("tar"):
2
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
24 tar
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
25 #if $extract_options['extract_all'] == 'False'
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
26 xfO '$input_file' '$extract_options["pathtofile"]' > out.data
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
27 #else
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
28 -xf '$input_file' -C ./out/
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
29 #end if
0
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
30 #end if
2
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
31 &&
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
32
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
33 ## Flatten any potential directory structure, e.g.
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
34 ## out/sub1/subsub2/fileA.ext -> out/sub1_subsub2_fileA.ext
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
35 find out -type f | cut -d '/' -f 2- | grep '/' | xargs -I % sh -c "mv out/% out/\\$(echo % | tr / _)"
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
36 ]]>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
37 </command>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
38 <inputs>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
39 <param label="input_file" name="input_file" type="data" format="zip,tar"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
40 <conditional name="extract_options">
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
41 <param label="Extract single file" name="extract_all" type="select">
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
42 <option selected="True" value="True">All files</option>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
43 <option value="False">Single file</option>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
44 </param>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
45 <when value="True"></when>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
46 <when value="False">
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
47 <param name="pathtofile" type="text" value="" label="Filepath">
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
48 <validator type="expression" message="No two dots (..) allowed">'..' not in value</validator>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
49 <validator type="expression" message="No comma (,) allowed">',' not in value</validator>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
50 <validator type="expression" message="No asterisk (*) allowed">'*' not in value</validator>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
51 <validator type="expression" message="No leading slash (/) allowed">str(value)[0] != '/'</validator>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
52 </param>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
53 </when>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
54 </conditional>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
55 </inputs>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
56 <outputs>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
57 <data auto_format="true" name="unzipped_single" from_work_dir="out.data" label="${tool.name} on ${on_string}">
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
58 <filter>extract_options['extract_all'] == 'False'</filter>
0
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
59 </data>
2
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
60 <collection name="unzipped" type="list" label="${tool.name} on ${on_string} all files as collection">
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
61 <discover_datasets directory="out" pattern="(?P&lt;designation&gt;.+?)(\.(?P&lt;ext&gt;[^\._]+))?$" visible="false" format="auto"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
62 <!-- pattern=__designation_and_ext__ = (?P&lt;designation&gt;.*)\.(?P&lt;ext&gt;[^\._]+)? would discard files without extensions -->
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
63 <filter>extract_options['extract_all'] == 'True'</filter>
0
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
64 </collection>
2
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
65 </outputs>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
66 <tests>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
67 <test expect_num_outputs="1">
0
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
68 <param name="input_file" value="input.zip" ftype="zip"/>
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
69 <param name="extract_all" value="False"/>
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
70 <param name="pathtofile" value="input.png"/>
2
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
71 <output name="unzipped_single" file="input.png" ftype="png" compare="sim_size"/>
0
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
72 </test>
2
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
73 <test expect_num_outputs="1">
0
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
74 <param name="input_file" value="input.zip" ftype="zip"/>
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
75 <param name="extract_all" value="True"/>
2
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
76 <output_collection name="unzipped" type="list" count="2">
1
38eec75fbe9b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents: 0
diff changeset
77 <element name="input" file="input.png" ftype="png" compare="sim_size"/>
38eec75fbe9b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents: 0
diff changeset
78 <element name="res" file="res.tiff" ftype="tiff" compare="sim_size"/>
0
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
79 </output_collection>
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
80 </test>
2
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
81 <!-- Binary files without file extension -->
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
82 <test expect_num_outputs="1">
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
83 <param name="input_file" value="input_binary.zip" ftype="zip"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
84 <param name="extract_all" value="True"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
85 <output_collection name="unzipped" type="list" count="2">
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
86 <element name="yelp" file="yelp" compare="sim_size"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
87 <element name="yes" file="yes" compare="sim_size"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
88 </output_collection>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
89 </test>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
90 <!-- Compressed object with subfolders, each containing files -->
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
91 <test expect_num_outputs="1">
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
92 <param name="input_file" value="subfolders.zip" ftype="zip"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
93 <param name="extract_all" value="True"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
94 <output_collection name="unzipped" type="list" count="4">
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
95 <element name="binaries_yelp" file="yelp" compare="sim_size"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
96 <element name="binaries_yes" file="yes" compare="sim_size"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
97 <element name="images_input" file="input.png" ftype="png" compare="sim_size"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
98 <element name="images_res" file="res.tiff" ftype="tiff" compare="sim_size"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
99 </output_collection>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
100 </test>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
101 <test expect_num_outputs="1">
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
102 <param name="input_file" value="input.tar" ftype="tar"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
103 <param name="extract_all" value="False"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
104 <param name="pathtofile" value="input.png"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
105 <output name="unzipped_single" file="input.png" ftype="png" compare="sim_size"/>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
106 </test>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
107 <test expect_num_outputs="1">
0
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
108 <param name="input_file" value="input.tar" ftype="tar"/>
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
109 <param name="extract_all" value="True"/>
2
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
110 <output_collection name="unzipped" type="list" count="2">
1
38eec75fbe9b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents: 0
diff changeset
111 <element name="input" file="input.png" ftype="png" compare="sim_size"/>
38eec75fbe9b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents: 0
diff changeset
112 <element name="res" file="res.tiff" ftype="tiff" compare="sim_size"/>
0
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
113 </output_collection>
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
114 </test>
2
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
115 </tests>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
116 <help>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
117 **What it does**
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
118
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
119 Unzip a folder containing file(s) of various types. If multiple files are asked to be retained, the output will be a collection containing all files within the zip or tar archive.
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
120 </help>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
121 <citations>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
122 <citation type="doi">10.1016/j.jbiotec.2017.07.019</citation>
57f0914ddb7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 1
diff changeset
123 </citations>
0
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
124 </tool>
ec30427e0d42 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
125