view filter_taxa_from_otu_table.xml @ 7:13ad599d3fe3 draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit c845cb240f57663cf1e2240c5c506ea0b294872c"
author iuc
date Thu, 05 Dec 2019 07:51:24 -0500
parents 95a39cd8a53a
children
line wrap: on
line source

<tool id="qiime_filter_taxa_from_otu_table" name="Filter taxa from an OTU table" version="@WRAPPER_VERSION@.0" profile="@PROFILE@">
    <description>(filter_taxa_from_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[
@MPLBACKEND@
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>