annotate bundle_collection.xml @ 2:705ebd286b57 draft default tip

"planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
author nml
date Mon, 24 Aug 2020 12:14:15 -0400
parents cd6da887a5f4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
1 <tool id="bundle_collection" name="Bundle Collection" version="1.3.0">
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
2 <description>Package up and download a collection of files as a single archive.</description>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
3 <requirements>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
4 <requirement type="package" version="2.50">perl-getopt-long</requirement>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
5 <requirement type="package" version="1.69">perl-pod-usage</requirement>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
6 </requirements>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
7 <command detect_errors="aggressive"><![CDATA[
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
8 perl '$__tool_directory__/bundle_collection.pl' -h '$html_file' -p '$html_file.files_path'
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
9
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
10 #if $singles_or_list.type == "list":
1
cd6da887a5f4 planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents: 0
diff changeset
11
2
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
12 #if $singles_or_list.input:
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
13 #for $f in $singles_or_list.input.keys
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
14 -i "$f,$singles_or_list.input[$f].ext=$singles_or_list.input[$f]"
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
15 #if $singles_or_list.input[$f].metadata.bam_index and $singles_or_list.input[$f].metadata.bam_index != "None"
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
16 #set $bamind = $f+","+$singles_or_list.input[$f].ext+".bai="+$singles_or_list.input[$f].metadata.bam_index
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
17 -i "$bamind"
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
18 #end if
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
19 #end for
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
20 #end if
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
21 #elif $singles_or_list.type == "singles":
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
22 #for $dataset in $singles_or_list.single_files
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
23 #if $dataset.single_file:
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
24 -i "$dataset.single_file.name,$dataset.single_file.ext=$dataset.single_file"
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
25 #end if
1
cd6da887a5f4 planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents: 0
diff changeset
26
2
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
27 #if $dataset.single_file.metadata.bam_index and $dataset.single_file.metadata.bam_index != "None"
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
28 #set $bamind = $dataset.single_file.name+","+$dataset.single_file.ext+".bai="+$dataset.single_file.metadata.bam_index
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
29 -i "$bamind"
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
30 #end if
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
31 #end for
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
32 #end if
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
33 ]]></command>
1
cd6da887a5f4 planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents: 0
diff changeset
34
2
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
35 <inputs>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
36 <conditional name="singles_or_list">
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
37 <param name="type" type="select" label="Bundle type">
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
38 <option value="singles">Individual datasets</option>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
39 <option value="list">List Collection </option>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
40 </param>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
41 <when value="singles">
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
42 <repeat name='single_files' title='Single dataset(s)'>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
43 <param name="single_file" label="Dataset to add the bundle" type="data" format='data' optional='False'/>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
44 </repeat>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
45 </when>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
46 <when value="list">
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
47 <param name="input" type="data_collection" label="Data Collection" collection_type="list" optional='False'/>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
48 </when>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
49 </conditional>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
50 </inputs>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
51
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
52 <outputs>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
53 <data name="html_file" format="html" label="Bundled Collection" />
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
54 </outputs>
0
bae199dc511f planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff changeset
55
2
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
56 <tests>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
57 <test>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
58 <conditional name="singles_or_list">
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
59 <param name="type" value="singles" />
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
60 <repeat name="single_files">
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
61 <param name="single_file" value="first.txt" />
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
62 </repeat>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
63 </conditional>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
64 <output name="html_file" file="out-1.html" />
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
65 </test>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
66 <test>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
67 <conditional name="singles_or_list">
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
68 <param name="type" value="singles" />
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
69 <repeat name="single_files">
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
70 <param name="single_file" value="first.txt" />
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
71 </repeat>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
72 <repeat name="single_files">
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
73 <param name="single_file" value="second.txt" />
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
74 </repeat>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
75 </conditional>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
76 <output name="html_file" file="out-2.html" />
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
77 </test>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
78 <test>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
79 <conditional name="singles_or_list">
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
80 <param name="type" value="list" />
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
81 <param name="input">
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
82 <collection type="list">
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
83 <element name="first.txt" value="first.txt"/>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
84 <element name="second.txt" value="second.txt"/>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
85 </collection>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
86 </param>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
87 </conditional>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
88 <output name="html_file" file="out-2.html" />
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
89 </test>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
90 </tests>
0
bae199dc511f planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff changeset
91
2
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
92 <help><![CDATA[
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
93 ***What it does**
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
94
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
95 This tool will bundle up files in a list collection into a downloadable zip file
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
96
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
97 Author: Mariam Iskander, Jen Cabral, and Aaron Petkau (Public Health Agency of Canada).
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
98 ]]>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
99 </help>
1
cd6da887a5f4 planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents: 0
diff changeset
100
2
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
101 <citations>
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
102 <citation type="bibtex">
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
103 @UNPUBLISHED{PHAC2020,
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
104 author = "Public Health Agency of Canada",
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
105 title = "Bundle Collections",
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
106 year = "2020",
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
107 url = {https://github.com/phac-nml/galaxy_tools}
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
108 }
705ebd286b57 "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0"
nml
parents: 1
diff changeset
109 </citation>
1
cd6da887a5f4 planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents: 0
diff changeset
110 </citations>
cd6da887a5f4 planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents: 0
diff changeset
111
0
bae199dc511f planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff changeset
112 </tool>