diff humann_split_stratified_table.xml @ 0:81e57f1d3937 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/humann commit 6b06711cfba45855d5a992ed1c73c472eaef644f
author thanhlv
date Mon, 13 Feb 2023 16:23:45 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/humann_split_stratified_table.xml	Mon Feb 13 16:23:45 2023 +0000
@@ -0,0 +1,46 @@
+<tool id="humann_split_stratified_table" name="Split a HUMAnN table" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" >
+    <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>