# HG changeset patch # User nml # Date 1598285655 14400 # Node ID 705ebd286b5762e7528c061f6ec8deabc2ea268b # Parent cd6da887a5f43afcc420bcef4d80274e2582090c "planemo upload commit 7761f1e59039279728185e751f1a51b56fe14cb0" diff -r cd6da887a5f4 -r 705ebd286b57 bundle_collection.pl --- a/bundle_collection.pl Fri Aug 04 12:04:09 2017 -0400 +++ b/bundle_collection.pl Mon Aug 24 12:14:15 2020 -0400 @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; @@ -52,57 +52,60 @@ printf $out " - + -table { - margin-left: 3em; - text-align: center; - } -th { - text-align:center; - background-color: #000080; - color: #FFF; - padding: 0.4em; - } -td { - font-family: monospace; - text-align: left; - background-color: #EEE; - color: #000; - padding: 0.4em; - } -h2 { - color: #800000; - padding-bottom: 0; - margin-bottom: 0; - clear: left; - } - + + +

Bundle Collection Summary



- - -

Bundle Collection Summary



+ Number of keys: $num_keys
+ Number of values: $num_vals

-Number of keys: $num_keys
-Number of values: $num_vals

- -"; +
File nameFile type
+ \n"; foreach my $key (sort(keys %information)) { foreach my $val (keys %{$information{$key}} ) { - printf $out ""; + printf $out " \n"; } } -printf $out "
File nameFile type
$key$val
$key$val
"; +printf $out " \n\n"; close $out; @@ -114,7 +117,7 @@ =head1 SYNOPSIS - bundle_collection.pl -h html_file -p output_path -o "key=value" + bundle_collection.pl -h html_file -p output_path -i "key=value" =back -=cut \ No newline at end of file +=cut diff -r cd6da887a5f4 -r 705ebd286b57 bundle_collection.xml --- a/bundle_collection.xml Fri Aug 04 12:04:09 2017 -0400 +++ b/bundle_collection.xml Mon Aug 24 12:14:15 2020 -0400 @@ -1,71 +1,112 @@ - - Download a collection of files - - - - bundle_collection.pl -h $html_file -p $html_file.files_path + + Package up and download a collection of files as a single archive. + + perl-getopt-long + perl-pod-usage + + - #if $dataset.single_file.metadata.bam_index and $dataset.single_file.metadata.bam_index != "None" - #set $bamind = $dataset.single_file.name+","+$dataset.single_file.ext+".bai="+$dataset.single_file.metadata.bam_index - -i "$bamind" - #end if - - #end for - #end if - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + - - ***What it does** - - This tool will bundle up files in a list collection into a downloadable zip file - - Author: Mariam Iskander and Jen Cabral - - - + + + @UNPUBLISHED{PHAC2020, + author = "Public Health Agency of Canada", + title = "Bundle Collections", + year = "2020", + url = {https://github.com/phac-nml/galaxy_tools} + } + diff -r cd6da887a5f4 -r 705ebd286b57 test-data/first.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/first.txt Mon Aug 24 12:14:15 2020 -0400 @@ -0,0 +1,1 @@ +first diff -r cd6da887a5f4 -r 705ebd286b57 test-data/out-1.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/out-1.html Mon Aug 24 12:14:15 2020 -0400 @@ -0,0 +1,49 @@ + + + + + + + + +

Bundle Collection Summary



+ + Number of keys: 1
+ Number of values: 1

+ + + + +
File nameFile type
first.txttxt
+ + \ No newline at end of file diff -r cd6da887a5f4 -r 705ebd286b57 test-data/out-2.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/out-2.html Mon Aug 24 12:14:15 2020 -0400 @@ -0,0 +1,50 @@ + + + + + + + + +

Bundle Collection Summary



+ + Number of keys: 2
+ Number of values: 2

+ + + + + +
File nameFile type
first.txttxt
second.txttxt
+ + \ No newline at end of file diff -r cd6da887a5f4 -r 705ebd286b57 test-data/second.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/second.txt Mon Aug 24 12:14:15 2020 -0400 @@ -0,0 +1,1 @@ +second