view humann_split_stratified_table.xml @ 6:a92c06a3afa7 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/humann commit cb7dc8ff1810f6d335b5dd6615651f32a3ea7447
author iuc
date Fri, 27 Sep 2024 09:57:42 +0000
parents 75bedfb2078b
children
line wrap: on
line source

<tool id="humann_split_stratified_table" name="Split a HUMAnN table" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
    <description>into 2 tables (one stratified and one unstratified)</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="edam_ontology"/>
    <expand macro="requirements"/>
    <expand macro="version"/>
    <command detect_errors="exit_code"><![CDATA[
humann_split_stratified_table
    --input '$input'
    --output 'output'
    ]]></command>
    <inputs>
        <param argument="--input" type="data" format="tsv,tabular" label="Stratified input table"/>
    </inputs>
    <outputs>
        <data format="tabular" name="stratified" from_work_dir="output/*_stratified*" label="${tool.name} on ${on_string}: Stratified table"/>
        <data format="tabular" name="unstratified" from_work_dir="output/*_unstratified*" label="${tool.name} on ${on_string}: Unstratified table"/>
    </outputs>
    <tests>
        <test expect_num_outputs="2">
            <param name="input" value="demo_genefamilies.tsv"/>
            <output name="stratified" ftype="tabular">
                <assert_contents>
                    <has_text text="UniRef90_A0A174QBF2|g__Bacteroides.s__Bacteroides_vulgatus" />
                    <has_text text="UniRef90_A0A3E5DKA1|g__Bacteroides.s__Bacteroides_vulgatus" />
                </assert_contents>
            </output>
            <output name="unstratified" ftype="tabular">
                <assert_contents>
                    <has_text text="UniRef90_A0A174QBF2" />
                    <not_has_text text="UniRef90_A0A174QBF2|g__Bacteroides.s__Bacteroides_vulgatus" />
                    <has_text text="UniRef90_A0A3E5DKA1" />
                    <not_has_text text="UniRef90_A0A3E5DKA1|g__Bacteroides.s__Bacteroides_vulgatus" />
                </assert_contents>
            </output>
        </test>
    </tests>
    <help><![CDATA[
@HELP_HEADER@

This tool splits a stratified table into two files (one stratified and one unstratified).
    ]]></help>
    <expand macro="citations"/>
</tool>