view classify.svm.xml @ 0:ba0b90285bc0 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 4648c7574a78601e03ae6a318cbcd5b492a8a9f4
author iuc
date Wed, 14 Feb 2018 10:29:38 -0500
parents
children
line wrap: on
line source

<tool profile="16.07" id="mothur_classify_svm" name="Classify.svm" version="@WRAPPER_VERSION@.0">
    <description>description</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
        ln -s '$otu' shared.dat &&
        ln -s '$design' design.dat &&

        echo 'classify.svm(
            shared=shared.dat,
            design=design.dat
            #if $label:
                ,label=${ str($label).replace(",","-") }
            #end if
            #if $groups:
                ,groups=${ str($groups).replace(",","-") }
            #end if
        )'
        | sed 's/ //g'  ## mothur trips over whitespace
        | mothur
        | tee mothur.out.log
    ]]></command>
    <inputs>
        <param argument="shared" name="otu" type="data" format="mothur.shared" label="shared - OTU Shared"/>
        <param argument="design" type="data" format="mothur.design" label="design - assigns groups to sets" help="design has 2 columns: group(col 1) and grouping(col 2) (separated by a TAB character) use make.design"/>
        <param argument="label" type="select" multiple="true" optional="true" label="label - OTU Label filter">
            <expand macro="labeloptions"/>
        </param>
        <param argument="groups" type="select" multiple="true" optional="true" label="groups - Groups filter (uses all groups if none are selected)" help="To filter: select select at least 2 groups">
            <options>
                <filter type="data_meta" ref="otu" key="groups"/>
            </options>
        </param>
    </inputs>
    <outputs>
        <expand macro="logfile-output"/>
        <data name="summary" format="tabular" from_work_dir="shared.RF*summary" label="${tool.name} on ${on_string}: summary"/>
        <data name="misclass-summary" format="tabular" from_work_dir="shared.misclassifications*.summary" label="${tool.name} on ${on_string}: misclassifications summary"/>
    </outputs>
    <tests>
        <test><!-- test with defaults -->
            <param name="otu" value="stool.final.opti_mcc.shared" ftype="mothur.shared"/>
            <param name="design" value="stool.design"/>
            <output name="summary" md5="dd5501c82a66b681b6b9961bcf731d7d" ftype="tabular"/>
            <output name="misclass-summary" ftype="tabular">
                <assert_contents>
                    <has_line_matching expression="Sample\tRF classification\tActual classification"/>
                    <has_text text="F003D000"/>
                    <has_text text="F003D150"/>
                </assert_contents>
            </output>
            <expand macro="logfile-test"/>
        </test>
        <test><!-- test with custom settings -->
            <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
            <param name="design" value="toymothur.design2"/>
            <param name="label" value="0.03"/>
            <param name="groups" value="pasture"/>
            <output name="summary" md5="dd5501c82a66b681b6b9961bcf731d7d" ftype="tabular"/>
            <output name="misclass-summary" ftype="tabular">
                <assert_contents>
                    <has_line_matching expression="Sample\tRF classification\tActual classification"/>
                    <has_text text="F003D000"/>
                    <not_has_text text="F003D150"/>
                </assert_contents>
            </output>
            <expand macro="logfile-test"/>
        </test>
    </tests>
    <help><![CDATA[
@MOTHUR_OVERVIEW@


**Command Documentation**


.. _classify.rf: http://www.mothur.org/wiki/Classify.rf
    ]]></help>
    <expand macro="citations"/>
</tool>