view zipcollection.xml @ 1:278da6e5ab11 draft default tip

planemo upload for repository https://github.com/Alveo/alveo-galaxy-tools commit f2432aaedd36ae7662873623d8861d0982dffdd2
author stevecassidy
date Mon, 20 Nov 2017 22:51:12 -0500
parents fe887de9b4b5
children
line wrap: on
line source

<tool id="zipcollection" name="Create a Zip file" version="0.01">
    <description>from one or more datasets</description>

    <command interpreter="python">
        zipcollection.py --dataset "${",".join(map(str, $dataset))}"
        --identifier "${",".join(map(str, [t.element_identifier + "." + t.extension for t in $dataset]))}"
        #if $extension:
          --extension $extension
        #end if
        --output $output
    </command>

    <inputs>
        <param name="dataset" format="data" type="data"
               multiple="true" label="DataSets" help="Datasets to include in zip"/>
        <param name="extension" type="text" size="10" format="text"
               label="New extension for files (leave empty to use the dataset type, eg txt, tabbed)"/>
        <param name="job_name" type="text" size="25"
               label="Name of output zip file" value="dataset"/>
    </inputs>

    <outputs>
        <data format="zip" name="output" label="$job_name" />
    </outputs>

    <tests>
        <!-- can't compare zip file as it changes based on time the test is run
        <test>
            <param name="dataset" value="textgrids/1_1308_2_22_020-ch6-speaker16.TextGrid_TextGrid"/>
            <param name="job_name" value="test.zip"/>
            <output name="output" ftype="zip" file="test.zip"/>
        </test>
         -->
    </tests>

    <help>Creates a zip file from a dataset or dataset collection</help>

</tool>