view biom_subset_table.xml @ 6:83a5b43e3dbe draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/biom_format commit 5fc41e15cb372b3ae635c550c387ccd41af166f7
author iuc
date Sat, 21 Jan 2023 11:17:29 +0000
parents 9d84e99a4253
children f594c9971185
line wrap: on
line source

<tool id="biom_subset_table" name="Subset" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
    <description>a BIOM table</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <expand macro="version_command" />
    <command detect_errors="exit_code">
        <![CDATA[
            biom subset-table
              --input-json-fp '$input_json_fp'
              --output-fp '$output_fp'
              --axis '$axis'
              --ids '$ids'
        ]]>
    </command>
    <inputs>
        <param name="input_json_fp" argument="--input-json-fp" type="data" format="biom1" label="BIOM table to subset" />
        <param argument="--axis" type="select" label="The axis to subset over">
            <option value="sample" selected="True">Sample</option>
            <option value="observation">Observation</option>
        </param>
        <param argument="--ids" type="data" format="txt,tabular" label="file containing a single column of IDs to retain" />
    </inputs>
    <outputs>
        <data format="biom1" name="output_fp"/>
    </outputs>
    <tests>
        <test>
            <param name="input_json_fp" value="input_abundance_1.biom1" />
            <param name="axis" value="sample" />
            <param name="ids" value="sample_subsetting" />
            <output name="output_fp" file="subset_samples.biom" ftype="biom1" compare="sim_size"/>
        </test>
        <test>
            <param name="input_json_fp" value="input_abundance_1.biom1" />
            <param name="axis" value="observation" />
            <param name="ids" value="observation_subsetting" />
            <output name="output_fp" file="subset_observations.biom" ftype="biom1" compare="sim_size"/>
        </test>
    </tests>
    <help><![CDATA[
Subset a BIOM table, over either observations or samples, without fully parsing it. This command is intended to assist in working with very large tables when tight on memory, or as a lightweight way to subset a full table. Currently, it is possible to produce tables with rows or columns (observations or samples) that are fully zeroed.
    ]]></help>
    <expand macro="citations" />
</tool>