diff tarfast5.xml @ 2:e660e8605dd8 draft

"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/tarfast5 commit 62909f7108d2d371e6461a4e3f8040ebb54f1ec0"
author artbio
date Sun, 16 May 2021 18:20:09 +0000
parents 436f11e1ed6d
children 75ae798e310b
line wrap: on
line diff
--- a/tarfast5.xml	Thu May 06 23:12:50 2021 +0000
+++ b/tarfast5.xml	Sun May 16 18:20:09 2021 +0000
@@ -1,4 +1,4 @@
-<tool id="tarfast5" name="tarfast5" version="0.4">
+<tool id="tarfast5" name="tarfast5" version="0.5.2">
   <description></description>
   <requirements>
         <requirement type="package" version="2.6">pigz</requirement>
@@ -11,21 +11,42 @@
         #for $file in $inputs:
             ln -s $file ${file.element_identifier}.h5 &&
         #end for
+        #if $output_format == "gzip":
             export PIGZ="-p \${GALAXY_SLOTS:-4}" &&
-            tar -cvh --use-compress-program=pigz -f $compressed_output *.h5
+            tar -cvh --use-compress-program=pigz -f $output *.h5
+        #else:
+            tar -cvh -f $output *.h5
+        #end if
   ]]></command>
  <inputs>
     <param name="inputs" type="data" format="h5" label="fast5 sequence files" multiple="true" />
+    <param name="output_format" type="select" label="compression of the tar archive" display="radio">
+        <option value="tar">tar (no compression)</option>
+        <option value="gzip" selected="true">tar.gz</option>
+    </param>
  </inputs>
 
  <outputs>
-    <data format="fast5.tar.gz" name="compressed_output" label="tar.gz archive of fast5" />
+    <data format="fast5.tar" name="output" label="Archive of fast5" >
+        <change_format>
+            <when input="output_format" value="gzip" format="fast5.tar.gz"/>
+        </change_format>
+    </data>
+
+
 </outputs>
 
     <tests>
-        <test> <!-- 0 -->
+        <test> <!-- tar -->
+            <param name="inputs" value="F1.fast5.h5" ftype="h5" />
+            <param name="output_format" value="tar" />
+            <output file="archive.tar" name="output" compare="sim_size" delta="3000" />
+        </test>
+
+        <test> <!-- tar.gz -->
             <param name="inputs" value="F1.fast5.h5,F2.fast5.h5" ftype="h5" />
-            <output file="archive.tar.gz" name="compressed_output" compare="sim_size" delta="3000" />
+            <param name="output_format" value="gzip" />
+            <output file="archive.tar.gz" name="output" compare="sim_size" delta="3000" />
         </test>
     </tests>
 <help>