Mercurial > repos > nml > bundle_collections
annotate bundle_collection.xml @ 1:cd6da887a5f4 draft
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
author | nml |
---|---|
date | Fri, 04 Aug 2017 12:04:09 -0400 |
parents | bae199dc511f |
children | 705ebd286b57 |
rev | line source |
---|---|
1
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
1 <tool id="bundle_collection" name="Bundle Collection" version="1.2.1"> |
0
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
2 <description>Download a collection of files</description> |
1
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
3 <stdio> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
4 <exit_code range="1:" level="fatal" description="Unknown error has occurred"/> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
5 </stdio> |
0
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
6 <command interpreter="perl">bundle_collection.pl -h $html_file -p $html_file.files_path |
1
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
7 |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
8 #if $singles_or_list.type == "list": |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
9 |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
10 #if $singles_or_list.input: |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
11 #for $f in $singles_or_list.input.keys |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
12 -i "$f,$singles_or_list.input[$f].ext=$singles_or_list.input[$f]" |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
13 #if $singles_or_list.input[$f].metadata.bam_index and $singles_or_list.input[$f].metadata.bam_index != "None" |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
14 #set $bamind = $f+","+$singles_or_list.input[$f].ext+".bai="+$singles_or_list.input[$f].metadata.bam_index |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
15 -i "$bamind" |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
16 #end if |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
17 #end for |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
18 #end if |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
19 #elif $singles_or_list.type == "singles": |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
20 #for $dataset in $singles_or_list.single_files |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
21 #if $dataset.single_file: |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
22 -i "$dataset.single_file.name,$dataset.single_file.ext=$dataset.single_file" |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
23 #end if |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
24 |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
25 #if $dataset.single_file.metadata.bam_index and $dataset.single_file.metadata.bam_index != "None" |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
26 #set $bamind = $dataset.single_file.name+","+$dataset.single_file.ext+".bai="+$dataset.single_file.metadata.bam_index |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
27 -i "$bamind" |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
28 #end if |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
29 |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
30 #end for |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
31 #end if |
0
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
32 </command> |
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
33 |
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
34 <inputs> |
1
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
35 <conditional name="singles_or_list"> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
36 <param name="type" type="select" label="Bundle type"> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
37 <option value="singles">Individual datasets</option> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
38 <option value="list">List Collection </option> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
39 </param> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
40 <when value="singles"> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
41 <repeat name='single_files' title='Single dataset(s)'> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
42 <param name="single_file" label="Dataset to add the bundle" type="data" format='data' optional='False'/> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
43 </repeat> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
44 </when> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
45 <when value="list"> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
46 <param name="input" type="data_collection" label="Data Collection" collection_type="list" optional='False'/> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
47 </when> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
48 </conditional> |
0
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
49 </inputs> |
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
50 |
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
51 <outputs> |
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
52 <data name="html_file" format="html" label="Bundled Collection" /> |
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
53 </outputs> |
1
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
54 <tests> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
55 <test> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
56 <output/> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
57 </test> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
58 </tests> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
59 |
0
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
60 <help> |
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
61 ***What it does** |
1
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
62 |
0
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
63 This tool will bundle up files in a list collection into a downloadable zip file |
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
64 |
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
65 Author: Mariam Iskander and Jen Cabral |
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
66 </help> |
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
67 |
1
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
68 <citations> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
69 </citations> |
cd6da887a5f4
planemo upload commit 44ee87b603c444f0ae5f73dea57d4ed2f589a4eb
nml
parents:
0
diff
changeset
|
70 |
0
bae199dc511f
planemo upload commit 75c510cf71217015f3f83baf61a4a54a3a1f4bfd
nml
parents:
diff
changeset
|
71 </tool> |