view 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 source

<tool id="tarfast5" name="tarfast5" version="0.5.2">
  <description></description>
  <requirements>
        <requirement type="package" version="2.6">pigz</requirement>
        <requirement type="package" version="1.34">tar</requirement>
  </requirements>
  <stdio>
      <exit_code range="1:" level="fatal" description="Tool exception" />
  </stdio>
  <command detect_errors="exit_code"><![CDATA[
        #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 $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" name="output" label="Archive of fast5" >
        <change_format>
            <when input="output_format" value="gzip" format="fast5.tar.gz"/>
        </change_format>
    </data>


</outputs>

    <tests>
        <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" />
            <param name="output_format" value="gzip" />
            <output file="archive.tar.gz" name="output" compare="sim_size" delta="3000" />
        </test>
    </tests>
<help>

**What it does**

Creates a tar.gz archive of fast5 (h5) sequences files

.. class:: warningmark

This tools follows a "map-reduce" procedure: multiple inputs, that can be arranged as a data collection,
are compressed into a single tar.gz archive.
 


**Output**

A fast5.tar.gz archive

</help>

<citations>
    <citation type="doi">10.1093/bioinformatics/btp352</citation>
     <citation type="bibtex">@Book{,
    title = {Lattice: Multivariate Data Visualization with R},
    author = {Deepayan Sarkar},
    publisher = {Springer},
    address = {New York},
    year = {2008},
    note = {ISBN 978-0-387-75968-5},
    url = {http://lmdvr.r-forge.r-project.org},
  }</citation>
</citations>
</tool>