view merge.taxsummary.xml @ 2:297f3f6ad488 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 3418f23b9768f5aafb86488f5ec1cb97530d4fb3
author iuc
date Tue, 20 Mar 2018 22:26:37 -0400
parents 8eebcd1d81b0
children
line wrap: on
line source

<tool profile="16.07" id="mothur_merge_taxsummary" name="Merge.taxsummary" version="@WRAPPER_VERSION@.0">
    <description>Merge tax.summary files</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements"/>
    <expand macro="stdio"/>
    <expand macro="version_command"/>
    <command><![CDATA[
@SHELL_OPTIONS@

## create symlinks to input datasets
#for $i in $input:
    ln -s '$i' input${input.index($i)}.dat &&
#end for

echo 'merge.taxsummary(
    input=#for $i in $input#input${input.index($i)}.dat-#end for#,
    output=$output
)'
| sed 's/ //g'  ## mothur trips over whitespace
| sed 's/-,/,/g'
| mothur
| tee mothur.out.log
    ]]></command>
    <inputs>
        <param name="input" type="data" format="mothur.tax.summary" multiple="true" label="input - tax.summary files"/>
        <expand macro="param-savelog"/>
    </inputs>
    <outputs>
        <expand macro="logfile-output"/>
        <data name="output" format="mothur.tax.summary" label="${tool.name} on ${on_string}: merged sff"/>
    </outputs>
    <tests>
        <test>
            <param name="input" value="amazon.wang.knn.tax.summary,amazon.silva.wang.tax.summary"/>
            <output name="output" md5="7175d0709a1e4622d0710e79dd52801b" ftype="mothur.tax.summary"/>
            <param name="savelog" value="true"/>
            <expand macro="logfile-test"/>
        </test>
    </tests>
    <help><![CDATA[

@MOTHUR_OVERVIEW@

.. _Mothur: https://www.mothur.org/wiki/Main_Page

**Command Documentation**

The merge.taxsummary command takes a list of tax.summary files separated by dashes and merges them into one file.

.. _merge.taxsummary: https://www.mothur.org/wiki/Merge.taxsummary

    ]]></help>
    <expand macro="citations"/>
</tool>