Mercurial > repos > imgteam > unzip
annotate unzip.xml @ 1:38eec75fbe9b draft
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
author | imgteam |
---|---|
date | Fri, 02 Aug 2019 07:21:01 -0400 |
parents | ec30427e0d42 |
children | 57f0914ddb7b |
rev | line source |
---|---|
1
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
1 <tool id="unzip" name="Unzip" version="0.2"> |
0
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
2 <description>Unzip file</description> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
3 <requirements> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
4 <requirement type="package">unzip</requirement> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
5 <requirement type="package">tar</requirement> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
6 </requirements> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
7 <command> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
8 <![CDATA[ |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
9 mkdir ./out && |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
10 #if $input_file.is_of_type("zip"): |
1
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
11 unzip |
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
12 #if $extract_options['extract_all'] == 'False' |
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
13 -p "$input_file" "$extract_options['pathtofile']" > out.data |
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
14 #else |
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
15 "$input_file" -d out/ |
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
16 #end if |
0
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
17 #end if |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
18 #if $input_file.is_of_type("tar"): |
1
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
19 tar |
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
20 #if $extract_options['extract_all'] == 'False' |
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
21 xfO "$input_file" "$extract_options['pathtofile']" > out.data |
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
22 #else |
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
23 -xf "$input_file" -C ./out/ |
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
24 #end if |
0
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
25 #end if |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
26 ]]> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
27 </command> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
28 <inputs> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
29 <param label="input_file" name="input_file" type="data" format="zip,tar"/> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
30 <conditional name="extract_options"> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
31 <param label="Extract single file" name="extract_all" type="select"> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
32 <option selected="True" value="True">All files</option> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
33 <option value="False">Single file</option> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
34 </param> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
35 <when value="True"></when> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
36 <when value="False"> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
37 <param name="pathtofile" type="text" value="" label="Filepath"> |
1
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
38 <validator type="expression" message="No two dots (..) allowed">'..' not in value</validator> |
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
39 <validator type="expression" message="No comma (,) allowed">',' not in value</validator> |
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
40 <validator type="expression" message="No asterisk (*) allowed">'*' not in value</validator> |
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
41 <validator type="expression" message="No leading slash (/) allowed">str(value)[0] != '/'</validator> |
0
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
42 </param> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
43 </when> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
44 </conditional> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
45 </inputs> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
46 <outputs> |
1
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
47 <data auto_format="true" name="unzipped_single" from_work_dir="out.data"> |
0
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
48 <filter>extract_options['extract_all'] == 'False'</filter> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
49 </data> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
50 <collection name="unzipped" type="list" label="${tool.name} on ${on_string}"> |
1
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
51 <discover_datasets pattern="__designation_and_ext__" directory="out" visible="false" format="auto" /> |
0
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
52 <filter>extract_options['extract_all'] == 'True'</filter> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
53 </collection> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
54 </outputs> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
55 <tests> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
56 <test> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
57 <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
|
58 <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
|
59 <param name="pathtofile" value="input.png"/> |
1
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
60 <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
|
61 </test> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
62 <test> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
63 <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
|
64 <param name="extract_all" value="True"/> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
65 <output_collection name="unzipped" type="list"> |
1
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
66 <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
|
67 <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
|
68 </output_collection> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
69 </test> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
70 <test> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
71 <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
|
72 <param name="extract_all" value="True"/> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
73 <output_collection name="unzipped" type="list"> |
1
38eec75fbe9b
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit ab38debe1175446664e9bede9be8c667894bf9f1
imgteam
parents:
0
diff
changeset
|
74 <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
|
75 <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
|
76 </output_collection> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
77 </test> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
78 </tests> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
79 <help> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
80 **What it does** |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
81 |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
82 Unzip folder to collection. |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
83 </help> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
84 <citations> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
85 <citation type="doi">10.1016/j.jbiotec.2017.07.019</citation> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
86 </citations> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
87 </tool> |
ec30427e0d42
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/unzip/ commit 2183b20497f6ed7962ae764c7a93d0adcfffe254
imgteam
parents:
diff
changeset
|
88 |