view tools/mothur/merge.files.xml @ 0:ee4fee239fe7 draft default tip

planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
author sanbi-uwc
date Fri, 03 Jun 2016 09:32:47 -0400
parents
children
line wrap: on
line source

<tool profile="16.07" id="mothur_merge_files" name="Merge.files" version="@WRAPPER_VERSION@.0">
    <description>Merge data</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements"/>
    <expand macro="version_command"/>
    <command detect_errors="aggressive"><![CDATA[
        #set infiles=str($merge.inputs).replace(',','-').replace(' ','')
        echo 'merge.files(
            input=$infiles,
            output=$output
        )'
        | sed 's/ //g'  ## mothur trips over whitespace
        | mothur &&

        ## move output files to correct destination
        mv mothur.*.logfile "$logfile"
    ]]></command>
    <inputs>
    <conditional name="merge">
        <param name="type" type="select" format="fasta,qual,mothur.groups,mothur.names,mothur.accnos" label="Merge">
            <option value="fasta">fasta</option>
            <option value="qual">qual</option>
            <option value="groups">groups</option>
            <option value="names">names</option>
            <option value="accnos">accnos</option>
        </param>
        <when value="fasta">
            <param name="inputs" type="data" format="fasta" multiple="true" label="inputs - fasta"/>
        </when> <!-- fasta -->
        <when value="qual">
            <param name="inputs" type="data" format="qual" multiple="true" label="inputs - qual"/>
        </when> <!-- qual -->
        <when value="groups">
            <param name="inputs" type="data" format="mothur.groups" multiple="true" label="inputs - groups"/>
        </when> <!-- groups -->
        <when value="names">
            <param name="inputs" type="data" format="mothur.names" multiple="true" label="inputs - names"/>
        </when> <!-- names -->
        <when value="accnos">
            <param name="inputs" type="data" format="mothur.accnos" multiple="true" label="inputs - accnos"/>
        </when> <!-- fasta -->
    </conditional> <!-- merge -->
    </inputs>
    <outputs>
        <data name="logfile" format="txt" label="${tool.name} on ${on_string}: logfile"/>
        <data format_source="inputs" name="output" label="${tool.name} on ${on_string}: ${merge.type}"/>
    </outputs>
    <tests>
        <test>
            <param name="type" value="fasta"/>
            <param name="inputs" value="sample1.fa,sample2.fa,sample3.fa" ftype="fasta"/>
            <output name="output" file="output.fa" ftype="fasta"/>
            <expand macro="logfile-test"/>
        </test>
    </tests>
    <help>
@MOTHUR_OVERVIEW@

**Command Documenation**

The merge.files_ command merge inputs into a single output.

.. _merge.files: http://www.mothur.org/wiki/Merge.files


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