view mlst_list.xml @ 2:253b7a1cf87e draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mlst commit 305238bd9771875830e8f4e961d16f0d7253e724
author iuc
date Mon, 12 Feb 2018 05:18:20 -0500
parents 8e8dc9a1e3e5
children 68cdb40ff91c
line wrap: on
line source

<tool id="mlst_list" name="MLST List" version="2.10">
    <requirements>
        <requirement type="package" version="2.10">mlst</requirement>
    </requirements>

    <version_command>mlst --version</version_command>

    <command detect_errors="exit_code"><![CDATA[
        mlst $list_type > "$report"
    ]]></command>

    <inputs>
        <param name="list_type" type="boolean" label="Output allele information" truevalue="--longlist" falsevalue="--list"
            help="Selecting 'Yes' will provide the alleles for all MLST schemes" optional="false" />
    </inputs>

    <outputs>
        <data format="txt" name="report" label="${tool.name} - list of schemes"/>
    </outputs>

    <tests>
        <!-- Test the longlist option -->
        <test>
            <param name="list_type" value="true" />
            <output name="report" ftype="txt" >
                <assert_contents>
                    <has_text text="saureus" />
                </assert_contents>
            </output>
        </test>

        <!-- Test the list option -->
        <test>
            <param name="list_type" value="false" />
            <output name="report" ftype="txt" >
                <assert_contents>
                    <has_text text="saureus" />
                </assert_contents>
            </output>
        </test>
    </tests>

    <help><![CDATA[
**What it does**

MLST List will list all the scheme names used by MLST. Selecting the long list option will also provide the alleles for all MLST schemes.

    ]]></help>

    <citations>
      <citation type="bibtex">
        @UNPUBLISHED{Seemann2016,
        author = "Seemann T",
        title = "ABRicate: mass screening of contigs for antiobiotic resistance genes",
        year = "2016",
        note = "https://github.com/tseemann/abricate"}
      </citation>
    </citations>
</tool>