view filter_taxa_from_otu_table.xml @ 4:36bd1a5607ef draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit d41cdeeec9fd0eb5612df0d5af63a979d1c9ec87
author iuc
date Mon, 10 Jul 2017 16:45:08 -0400
parents 9209e7b16b05
children 95a39cd8a53a
line wrap: on
line source

<tool id="qiime_filter_taxa_from_otu_table" name="Filter taxa from otu table" version="@WRAPPER_VERSION@.0">
    <description>Filter taxa from an OTU table</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements"/>
    <version_command>filter_taxa_from_otu_table.py --version</version_command>
    <command detect_errors="aggressive"><![CDATA[
        filter_taxa_from_otu_table.py
            --input_otu_table_fp '$input_otu_table_fp'
            --output_otu_table_fp '$output_otu_table_fp'
            #if str($positive_taxa) != ''
                --positive_taxa '$positive_taxa'
            #end if
            #if str($negative_taxa) != ''
                --negative_taxa '$negative_taxa'
            #end if
            --metadata_field '$metadata_field'
    ]]></command>
    <inputs>
        <param argument="--input_otu_table_fp" type="data" format="biom1" label="Input OTU table to filter"/>
        <param argument="--positive_taxa" type="text" label="Comma-separated list of taxa to retain" optional="True"/>
        <param argument="--negative_taxa" type="text" label="Comma-separated list of taxa to discard" optional="True"/>
        <param argument="--metadata_field" type="text" value="taxonomy" label="Observation metadata identifier to filter based on"/>
    </inputs>
    <outputs>
        <data name="output_otu_table_fp" format="biom1" label="${tool.name} on ${on_string}: Filtered OTU table"/>
    </outputs>
    <tests>
        <test>
            <param name="input_otu_table_fp" value="filter_taxa_from_otu_table/otu_table.biom"/>
            <param name="positive_taxa" value="p__Bacteroidetes,p__Firmicutes"/>
            <param name="metadata_field" value="taxonomy"/>
            <output name="output_otu_table_fp" file="filter_taxa_from_otu_table/positive_taxa.biom" ftype="biom1" compare="sim_size" delta="20"/>
        </test>
        <test>
            <param name="input_otu_table_fp" value="filter_taxa_from_otu_table/otu_table.biom"/>
            <param name="negative_taxa" value="p__Bacteroidetes,p__Firmicutes"/>
            <param name="metadata_field" value="taxonomy"/>
            <output name="output_otu_table_fp" file="filter_taxa_from_otu_table/negative_taxa.biom" ftype="biom1" compare="sim_size" delta="20"/>
        </test>
        <test>
            <param name="input_otu_table_fp" value="filter_taxa_from_otu_table/otu_table.biom"/>
            <param name="positive_taxa" value="p__Firmicutes"/>
            <param name="negative_taxa" value="c__Clostridia"/>
            <param name="metadata_field" value="taxonomy"/>
            <output name="output_otu_table_fp" file="filter_taxa_from_otu_table/positive_negative_taxa.biom" ftype="biom1" compare="sim_size" delta="20"/>
        </test>
    </tests>
    <help><![CDATA[
**What it does**

This scripts filters an OTU table based on taxonomic metadata. It can be applied for positive filtering (i.e., keeping only certain taxa), negative filtering (i.e., discarding only certain taxa), or both at the same time.
    ]]></help>
    <citations>
        <expand macro="citations"/>
    </citations>
</tool>