view merge.count.xml @ 7:6e3d1e4c9786 draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit dfdd4c590370ecb3a9806314d43eb5668e36a01a"
author iuc
date Fri, 22 Jan 2021 01:47:13 +0000
parents 7ac8c7bfaab2
children
line wrap: on
line source

<tool profile="16.07" id="mothur_merge_count" name="Merge.count" version="@WRAPPER_VERSION@.0">
    <description>Merge count tables</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.count(
    count=#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.count_table" multiple="true" label="input - count tables to merge"/>
        <expand macro="param-savelog"/>
    </inputs>
    <outputs>
        <expand macro="logfile-output"/>
        <data name="output" format="mothur.count_table" label="${tool.name} on ${on_string}: merged count table"/>
    </outputs>
    <tests>
        <test>
            <param name="input" value="stool_small.count_table,amazon.count_table"/>
            <output name="output" ftype="mothur.count_table">
                <assert_contents>
                    <expand macro="test-count-format"/>
                    <has_text text="U68630"/>
                    <has_text text="F11Fcsw_12747"/>
                </assert_contents>
            </output>
            <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.count_ command merges count files into a single count table.

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

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