view remove.otus.xml @ 9:0e73681a7cdc draft default tip

"planemo upload for repository commit dfdd4c590370ecb3a9806314d43eb5668e36a01a"
author iuc
date Fri, 22 Jan 2021 01:43:43 +0000
parents 45d51905b3b5
line wrap: on
line source

<tool profile="16.07" id="mothur_remove_otus" name="Remove.otus" version="@WRAPPER_VERSION@.0">
    <description>Removes OTUs from various file formats</description>
    <expand macro="requirements"/>
    <expand macro="stdio"/>
    <expand macro="version_command"/>

## create symlinks to input datasets
ln -s '$infile.otu' infile.otu.dat &&
ln -s '$accnos' accnos.dat &&

echo 'remove.otus(
    #if $infile.otu.is_of_type("mothur.cons.taxonomy"):,
    #end if
    #if $infile.otu.is_of_type("mothur.otu.corr"):
    #end if
    #if $infile.otu.is_of_type("mothur.axes"):
    #end if
    #if $infile.otu.is_of_type("mothur.list"):
    #end if
    #if $infile.otu.is_of_type("mothur.shared"):
    #end if
    #if $infile.intype == "in_shared" and $infile.label:
        label=${ str($infile.label).replace(",","-") },
    #end if
| sed 's/ //g'  ## mothur trips over whitespace
| mothur
| tee mothur.out.log
        <param name="accnos" type="data" format="mothur.otulabels" label="accnos - otulabels" help="Required"/>
        <conditional name="infile">
            <param name="intype" type="select" label="Which type of files will you be supplying?" help="">
                <option value="in_shared">Shared or List file</option>
                <option value="in_other">Constaxonomy / OtuCorr / CorrAxes file</option>
            <when value="in_shared">
                <param name="otu" type="data" format="mothur.list,mothur.shared" label="shared/list - allows you to input a list file you wish to select OTUs from. "/>
                <param name="label" type="select" label="label - pick (one) OTU Label" optional="true" help="By default first label in your file is used">
                    <expand macro="labeloptions"/>
            <when value="in_other">
                <param name="otu" type="data" format="mothur.cons.taxonomy,mothur.otu.corr,mothur.axes" label="cons.taxonomy/otu.corr/axes file" help="constaxonomy file can be obtained by the running classify.otu tool, otucorr from otu.association tool, and corraxes from corr.axes command"/>
        <expand macro="param-savelog"/>
        <expand macro="logfile-output"/>
        <data name="pick_out" format_source="otu" from_work_dir="infile.otu*.pick.dat" label="${} on ${on_string}: pick"/>
        <test><!-- test with shared/list input and label selection -->
            <param name="accnos" value="amazon.accnos.otulabels"/>
            <param name="intype" value="in_shared"/>
            <param name="otu" value="" ftype="mothur.list"/>
            <param name="label" value="0.22"/>
            <output name="pick_out" ftype="mothur.list">
                    <expand macro="test-list-format"/>
                    <has_text text="U68686"/>
                    <has_text text="0.22"/>
                    <not_has_text text="0.03"/>
            <param name="savelog" value="true"/>
            <expand macro="logfile-test"/>
        <test><!-- test with constaxonomy/otucorr/corraxes file -->
            <param name="accnos" value="amazon.accnos.otulabels"/>
            <param name="intype" value="in_other"/>
            <param name="otu" value="amazon.pcoa.axes" ftype="mothur.axes"/>
            <output name="pick_out" ftype="mothur.axes">
                    <expand macro="test-axes-format"/>
                    <has_text text="U68686"/>
            <param name="savelog" value="true"/>
            <expand macro="logfile-test"/>


**Command Documentation**

The remove.otus command removes otu labels from cons.taxonomy, corr.axes, otu.corr, shared and list files. This can be useful especially with subsampled datasets or when groups have been selected.

.. _remove.otus:

    <expand macro="citations"/>