Source code

Download source archive ↓

upstream/tools/biom_format/biom_normalize_table.xml

1<tool id="biom_normalize_table" name="Normalize" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2    <description>a BIOM table</description>
3    <macros>
4        <import>macros.xml</import>
5    </macros>
6    <expand macro="bio_tools"/>
7    <expand macro="requirements" />
8    <expand macro="version_command" />
9    <command detect_errors="exit_code">
10        <![CDATA[
11            biom normalize-table
12              --input-fp '$input_fp'
13              --output-fp '$output_fp'
14              $relative_abund
15              $presence_absence
16              --axis '$axis'
17        ]]>
18    </command>
19    <inputs>
20        <param argument="--input-fp" type="data" format="biom1" label="BIOM table to normalize" />
21        <param argument="--relative-abund" type="boolean" checked="true" truevalue="--relative-abund" falsevalue="" label="Convert table to relative abundance" />
22        <param argument="--presence-absence" type="boolean" checked="true" truevalue="--presence-absence" falsevalue="" label="Convert table to presence/absence" />
23        <param argument="--axis" type="select" label="The axis to normalize over">
24            <option value="sample" selected="true">Sample</option>
25            <option value="observation">Observation</option>
26        </param>
27    </inputs>
28    <outputs>
29        <data format="biom1" name="output_fp"/>
30    </outputs>
31    <tests>
32        <test>
33            <param name="input_fp" value="input_abundance_1.biom1" />
34            <param name="relative_abund" value="true" />
35            <param name="presence_absence" value="false" />
36            <param name="axis" value="sample" />
37            <output name="output_fp" value="normalized_relative_abund_samples.biom" ftype="biom1" compare="sim_size"/>
38        </test>
39        <test>
40            <param name="input_fp" value="input_abundance_1.biom1" />
41            <param name="relative_abund" value="false" />
42            <param name="presence_absence" value="true" />
43            <param name="axis" value="observation" />
44            <output name="output_fp" value="normalized_presence_absence_observations.biom" ftype="biom1" compare="sim_size"/>
45        </test>
46    </tests>
47    <help><![CDATA[
48Normalize the values of a BIOM table through various methods. Relative abundance will take the relative abundance of each observation in terms of samples or observations.  Presence absensece will convert observations to 1's and 0's based on presence of the observation.
49    ]]></help>
50    <expand macro="citations" />
51</tool>