annotate unzip.xml @ 6:e54b0e59b367 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 8e99ddb62ceab1da15996906a0813826b62d38fe
author imgteam
date Wed, 17 Dec 2025 11:23:10 +0000
parents 5a8835c225a4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
1 <tool id="unzip" name="Unzip" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
2 <description>Unzip a file</description>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
3 <macros>
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
4 <import>creators.xml</import>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
5 <token name="@TOOL_VERSION@">6.0</token>
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
6 <token name="@VERSION_SUFFIX@">2</token>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
7 <token name="@PROFILE@">22.01</token>
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
8 <xml name="regex_sanitizer">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
9 <sanitizer>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
10 <valid>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
11 <add preset="string.printable"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
12 <remove value="\"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
13 <remove value="'"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
14 </valid>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
15 <mapping initial="none">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
16 <add source="\" target="__backslash__"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
17 <add source="'" target="__sq__"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
18 </mapping>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
19 </sanitizer>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
20 </xml>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
21 </macros>
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
22 <creator>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
23 <expand macro="creators/bmcv"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
24 <expand macro="creators/tuncK"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
25 </creator>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
26 <requirements>
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
27 <!--
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
28 BioContainer for: unzip=6.0,tar=1.34,findutils=4.10.0
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
29 Enforced containerization to minimize potential security issues due to regex hacking.
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
30 -->
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
31 <container type="docker">quay.io/biocontainers/mulled-v2-6a2891161dcf5f35b38c6a49fff923163de7a66d:159a5b483a078f27b97a401b0626abac09e5f2d1-0</container>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
32 </requirements>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
33 <command>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
34 <![CDATA[
0
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
35 mkdir ./out &&
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
36 #if $input_file.is_of_type("zip"):
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
37 unzip
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
38 #if $extract_options['target'] == 'single'
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
39 -p '$input_file' '$extract_options["pathtofile"]' > out.data
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
40 #else
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
41 '$input_file' -d out/
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
42 #end if
0
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
43 #end if
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
44 #if $input_file.is_of_type("tar"):
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
45 tar
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
46 #if $extract_options['target'] == 'single'
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
47 xfO '$input_file' '$extract_options["pathtofile"]' > out.data
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
48 #else
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
49 -xf '$input_file' -C ./out/
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
50 #end if
0
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
51 #end if
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
52 &&
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
53
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
54 ## Filter out files that do not match the regex
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
55 #if $extract_options['target'] != 'single'
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
56 pushd out &&
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
57 find . -regextype posix-extended -type f -not -regex '$extract_options["keep_regex"]' -delete &&
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
58 popd &&
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
59 #end if
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
60
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
61 ## Flatten any potential directory structure, e.g.
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
62 ## out/sub1/subsub2/fileA.ext -> out/sub1_subsub2_fileA.ext
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
63 find out -type f | cut -d '/' -f 2- | grep '/' | xargs -I % sh -c "mv out/% out/\\$(echo % | tr / _)"
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
64 ]]>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
65 </command>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
66 <inputs>
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
67 <param label="Input file" name="input_file" type="data" format="zip,tar"/>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
68 <conditional name="extract_options">
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
69 <param label="What to extract" name="target" type="select">
6
e54b0e59b367 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 8e99ddb62ceab1da15996906a0813826b62d38fe
imgteam
parents: 5
diff changeset
70 <option value="all" selected="True">All files</option>
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
71 <option value="all_nondot">All files except dotfiles</option>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
72 <option value="all_regex">All files matching a regex</option>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
73 <option value="single">Single file</option>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
74 </param>
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
75 <when value="all">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
76 <param name="keep_regex" type="hidden" value=".*"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
77 </when>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
78 <when value="all_nondot">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
79 <param name="keep_regex" type="hidden" value=".*/[^.][^/]*">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
80 <expand macro="regex_sanitizer"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
81 </param>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
82 </when>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
83 <when value="all_regex">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
84 <param name="keep_regex" type="text" value=".*" optional="False" label="Regular expression" help="POSIX regular expression, that will be used for filtering the extracted files. Only files that match this expression will be retained. Example: To only retain files from a sub-directory &lt;tt&gt;subdir&lt;/tt&gt;, use &lt;tt&gt;./subdir/.*&lt;/tt&gt; as the regular expression.">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
85 <expand macro="regex_sanitizer"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
86 </param>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
87 </when>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
88 <when value="single">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
89 <param name="pathtofile" type="text" value="" label="File path">
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
90 <validator type="expression" message="No two dots (..) allowed">'..' not in value</validator>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
91 <validator type="expression" message="No comma (,) allowed">',' not in value</validator>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
92 <validator type="expression" message="No asterisk (*) allowed">'*' not in value</validator>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
93 <validator type="expression" message="No leading slash (/) allowed">str(value)[0] != '/'</validator>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
94 </param>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
95 </when>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
96 </conditional>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
97 </inputs>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
98 <outputs>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
99 <data auto_format="true" name="unzipped_single" from_work_dir="out.data" label="${tool.name} on ${on_string}">
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
100 <filter>extract_options['target'] == 'single'</filter>
0
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
101 </data>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
102 <collection name="unzipped" type="list" label="${tool.name} on ${on_string} all files as collection">
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
103 <discover_datasets directory="out" pattern="(?P&lt;designation&gt;\.*[^\.]+)\.?(?P&lt;ext&gt;.*)" visible="false" format="auto"/>
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
104 <filter>extract_options['target'] != 'single'</filter>
0
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
105 </collection>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
106 </outputs>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
107 <tests>
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
108 <test expect_num_outputs="1">
0
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
109 <param name="input_file" value="input.zip" ftype="zip"/>
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
110 <conditional name="extract_options">
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
111 <param name="target" value="single"/>
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
112 <param name="pathtofile" value="input.png"/>
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
113 </conditional>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
114 <output name="unzipped_single" file="input.png" ftype="png" compare="sim_size"/>
0
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
115 </test>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
116 <test expect_num_outputs="1">
0
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
117 <param name="input_file" value="input.zip" ftype="zip"/>
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
118 <conditional name="extract_options">
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
119 <param name="target" value="all"/>
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
120 </conditional>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
121 <output_collection name="unzipped" type="list" count="2">
1
94bc6ec5213e planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 7844727a27ca785505451a0fe2851928a835ba2b
imgteam
parents: 0
diff changeset
122 <element name="input" file="input.png" ftype="png" compare="sim_size"/>
94bc6ec5213e planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 7844727a27ca785505451a0fe2851928a835ba2b
imgteam
parents: 0
diff changeset
123 <element name="res" file="res.tiff" ftype="tiff" compare="sim_size"/>
0
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
124 </output_collection>
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
125 </test>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
126 <!-- Binary files without file extension -->
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
127 <test expect_num_outputs="1">
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
128 <param name="input_file" value="input_binary.zip" ftype="zip"/>
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
129 <conditional name="extract_options">
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
130 <param name="target" value="all"/>
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
131 </conditional>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
132 <output_collection name="unzipped" type="list" count="2">
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
133 <element name="yelp" file="yelp" compare="sim_size"/>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
134 <element name="yes" file="yes" compare="sim_size"/>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
135 </output_collection>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
136 </test>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
137 <!-- Compressed object with subfolders, each containing files -->
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
138 <test expect_num_outputs="1">
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
139 <param name="input_file" value="subfolders.zip" ftype="zip"/>
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
140 <conditional name="extract_options">
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
141 <param name="target" value="all"/>
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
142 </conditional>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
143 <output_collection name="unzipped" type="list" count="4">
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
144 <element name="binaries_yelp" file="yelp" compare="sim_size"/>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
145 <element name="binaries_yes" file="yes" compare="sim_size"/>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
146 <element name="images_input" file="input.png" ftype="png" compare="sim_size"/>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
147 <element name="images_res" file="res.tiff" ftype="tiff" compare="sim_size"/>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
148 </output_collection>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
149 </test>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
150 <test expect_num_outputs="1">
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
151 <param name="input_file" value="input.tar" ftype="tar"/>
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
152 <conditional name="extract_options">
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
153 <param name="target" value="single"/>
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
154 <param name="pathtofile" value="input.png"/>
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
155 </conditional>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
156 <output name="unzipped_single" file="input.png" ftype="png" compare="sim_size"/>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
157 </test>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
158 <test expect_num_outputs="1">
0
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
159 <param name="input_file" value="input.tar" ftype="tar"/>
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
160 <conditional name="extract_options">
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
161 <param name="target" value="all"/>
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
162 </conditional>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
163 <output_collection name="unzipped" type="list" count="2">
1
94bc6ec5213e planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 7844727a27ca785505451a0fe2851928a835ba2b
imgteam
parents: 0
diff changeset
164 <element name="input" file="input.png" ftype="png" compare="sim_size"/>
94bc6ec5213e planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 7844727a27ca785505451a0fe2851928a835ba2b
imgteam
parents: 0
diff changeset
165 <element name="res" file="res.tiff" ftype="tiff" compare="sim_size"/>
0
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
166 </output_collection>
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
167 </test>
5
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
168 <!-- ZIP containing dotfiles and non-dotfiles -->
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
169 <test expect_num_outputs="1">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
170 <param name="input_file" value="input_with_dotfiles.zip" ftype="zip"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
171 <conditional name="extract_options">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
172 <param name="target" value="all"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
173 </conditional>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
174 <output_collection name="unzipped" type="list" count="4">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
175 <element name=".dotfile">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
176 <assert_contents>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
177 <has_size value="0"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
178 </assert_contents>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
179 </element>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
180 <element name="nondotfile">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
181 <assert_contents>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
182 <has_size value="0"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
183 </assert_contents>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
184 </element>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
185 <element name="subdir_"><!-- The suffix `.dotfile` is recognized as the extension -->
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
186 <assert_contents>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
187 <has_size value="0"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
188 </assert_contents>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
189 </element>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
190 <element name="subdir_nondotfile">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
191 <assert_contents>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
192 <has_size value="0"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
193 </assert_contents>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
194 </element>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
195 </output_collection>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
196 </test>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
197 <test expect_num_outputs="1">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
198 <param name="input_file" value="input_with_dotfiles.zip" ftype="zip"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
199 <conditional name="extract_options">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
200 <param name="target" value="all_nondot"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
201 </conditional>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
202 <output_collection name="unzipped" type="list" count="2">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
203 <element name="nondotfile">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
204 <assert_contents>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
205 <has_size value="0"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
206 </assert_contents>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
207 </element>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
208 <element name="subdir_nondotfile">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
209 <assert_contents>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
210 <has_size value="0"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
211 </assert_contents>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
212 </element>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
213 </output_collection>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
214 </test>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
215 <!-- Custom Regex -->
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
216 <test expect_num_outputs="1">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
217 <param name="input_file" value="subfolders.zip" ftype="zip"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
218 <conditional name="extract_options">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
219 <param name="target" value="all_regex"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
220 <param name="keep_regex" value="./images/.*"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
221 </conditional>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
222 <output_collection name="unzipped" type="list" count="2">
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
223 <element name="images_input" file="input.png" ftype="png" compare="sim_size"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
224 <element name="images_res" file="res.tiff" ftype="tiff" compare="sim_size"/>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
225 </output_collection>
5a8835c225a4 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
imgteam
parents: 4
diff changeset
226 </test>
4
f4d29564af7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 743de88ce8df688ec44bbdf8bb4ca00982c9f126
imgteam
parents: 3
diff changeset
227 </tests>
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
228 <help>
6
e54b0e59b367 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 8e99ddb62ceab1da15996906a0813826b62d38fe
imgteam
parents: 5
diff changeset
229
e54b0e59b367 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 8e99ddb62ceab1da15996906a0813826b62d38fe
imgteam
parents: 5
diff changeset
230 **Unzip an archive containing file(s) of various types.**
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
231
6
e54b0e59b367 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 8e99ddb62ceab1da15996906a0813826b62d38fe
imgteam
parents: 5
diff changeset
232 If multiple files are asked to be retained, the output will be a collection containing all files within the ZIP or TAR archive.
e54b0e59b367 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 8e99ddb62ceab1da15996906a0813826b62d38fe
imgteam
parents: 5
diff changeset
233
3
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
234 </help>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
235 <citations>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
236 <citation type="doi">10.1016/j.jbiotec.2017.07.019</citation>
d3e92a93d671 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit a8d89b9ebc13951944dcec84323464692837bba7
imgteam
parents: 2
diff changeset
237 </citations>
0
11df4d6f9ab8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff changeset
238 </tool>