view cat_contigs.xml @ 5:226949352e31 draft default tip

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cat commit a1c079107b72dc08612fa664897bb9d627624e52-dirty
author jjohnson
date Wed, 27 Nov 2019 12:11:14 -0500
parents aaeb63501369
children
line wrap: on
line source

<tool id="cat_contigs" name="CAT contigs" version="@VERSION@.0">
    <description>annotate with taxonomic classification</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <expand macro="version_command" />
    <command detect_errors="exit_code"><![CDATA[
    CAT contigs -c '$contigs_fasta'
    @CAT_DB@
    @USE_INTERMEDIATES@
    @CUSTOM_SETTINGS@
    @DIAMOND_OPTIONS@
    && @TXT2TSV@ *.ORF2LCA.txt *.contig2classification.txt
    @ADD_NAMES@
    @SUMMARISE@
    ]]></command>
    <inputs>
        <param name="contigs_fasta" type="data" format="fasta" label="Contigs fasta"/>
        <expand macro="cat_db" />
        <expand macro="use_intermediates" />
        <expand macro="custom_settings" />
        <expand macro="diamond_options" />
        <expand macro="add_names" />
        <expand macro="summarise" />
        <expand macro="select_cat_outputs" />
    </inputs>
    <outputs>
        <expand macro="outputs" />
    </outputs>
    <tests>
        <test>
            <param name="contigs_fasta" ftype="fasta" value="contigs.fasta"/>
            <expand macro="test_catdb"/>
            <param name="select_outputs" value="contig2classification"/>
            <output name="contig2classification">
                <assert_contents>
                    <has_text text="contig_38063" />
                </assert_contents>
            </output>
        </test>
        <test>
            <param name="contigs_fasta" ftype="fasta" value="contigs.fasta"/>
            <expand macro="test_catdb"/>
            <param name="select_outputs" value="predicted_proteins_faa"/>
            <conditional name="names">
                <param name="add_names" value="both"/>
            </conditional>
            <param name="summarise" value="classification"/>
            <output name="predicted_proteins_faa">
                <assert_contents>
                    <has_text text=">contig_9952" />
                </assert_contents>
            </output>
            <output name="orf2lca_names">
                <assert_contents>
                    <has_text text="Listeria" />
                </assert_contents>
            </output>
            <output name="classification_summary">
                <assert_contents>
                    <has_text text="Listeria" />
                </assert_contents>
            </output>
        </test>
    </tests>
    <help><![CDATA[
**CAT contigs**

Classifiy metagenomics contigs.

@OPTIONS_HELP@

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