comparison humann_rename_table.xml @ 0:d24841f5c3d2 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/humann commit 077b8f34e081e6c427acb0fde0fbb97d1b241e0b"
author iuc
date Wed, 12 May 2021 09:02:43 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d24841f5c3d2
1 <tool id="humann_rename_table" name="Rename features" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2 <description>of a HUMAnN generated table</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="edam_ontology"/>
7 <expand macro="requirements"/>
8 <expand macro="version"/>
9 <command detect_errors="exit_code"><![CDATA[
10 humann_rename_table
11 --input '$input'
12 -o '$output'
13 #if $renaming.type == 'standard'
14 --names '$renaming.names'
15 #else if $renaming.type == 'advanced'
16 --custom '$renaming.names.fields.path'
17 #else
18 --custom '$renaming.custom'
19 #end if
20 $simplify
21 ]]></command>
22 <inputs>
23 <param argument="--input" type="data" format="tsv,tabular" label="Gene/pathway table"/>
24 <conditional name="renaming">
25 <param name="type" type="select" label="Type of feature renaming">
26 <option value="standard">Basic feature renaming</option>
27 <option value="advanced">Advanced feature renaming</option>
28 <option value="custom">Custom feature renaming</option>
29 </param>
30 <when value="standard">
31 <param argument="--names" type="select" label="Features to be renamed" help="More features can be renamed with advanced mode">
32 <option value="metacyc-rxn" selected="true">MetaCyc reactions</option>
33 <option value="metacyc-pwy">MetaCyc pathways</option>
34 <option value="infogo1000">InfoGO1000</option>
35 <option value="kegg-module">KEGG Module</option>
36 <option value="ec">Enzyme commision (EC)</option>
37 <option value="go">Gene Ontology (GO)</option>
38 <option value="pfam">PFAM</option>
39 <option value="eggnog">eggNOG</option>
40 <option value="kegg-pathway">KEGG Pathway</option>
41 <option value="kegg-orthology">KEGG Orthology</option>
42 </param>
43 </when>
44 <when value="advanced">
45 <param name="names" type="select" label="Features to be renamed">
46 <options from_data_table="humann_utility_mapping">
47 <validator message="No utility mapping is available" type="no_options" />
48 <filter type="regexp" column="0" value=".*name" keep="true" />
49 </options>
50 </param>
51 </when>
52 <when value="custom">
53 <param argument="--custom" type="data" format="tsv,tabular" label="Mapping file" help="The mapping file must be tabular format file with two tab-separated columns. The first column must contain the value you want to modify and the second contain the new value"/>
54 </when>
55 </conditional>
56 <param argument="--simplify" type="boolean" truevalue="--simplify" falsevalue="" checked="false" label="Remove non-alphanumeric characters from names?"/>
57 </inputs>
58 <outputs>
59 <data format="tabular" name="output"/>
60 </outputs>
61 <tests>
62 <test expect_num_outputs="1">
63 <param name="input" value="regrouped_gene_families_to_infogo1000.tsv"/>
64 <conditional name="renaming">
65 <param name="type" value="standard"/>
66 <param name="names" value="infogo1000" />
67 </conditional>
68 <param name="simplify" value=""/>
69 <output name="output" ftype="tabular">
70 <assert_contents>
71 <has_text text="GO:0000015: [CC] phosphopyruvate hydratase complex" />
72 <has_text text="GO:0000287: [MF] magnesium ion binding" />
73 </assert_contents>
74 </output>
75 </test>
76 <test expect_num_outputs="1">
77 <param name="input" value="demo_genefamilies.tsv"/>
78 <conditional name="renaming">
79 <param name="type" value="advanced"/>
80 <param name="names" value="utility_mapping-full-map_uniref90_name-3.0.0-29042021"/>
81 </conditional>
82 <param name="simplify" value=""/>
83 <output name="output" ftype="tabular">
84 <assert_contents>
85 <has_text text="UniRef90_A6L2T0: NO_NAME|g__Bacteroides.s__Bacteroides_vulgatus" />
86 <has_text text="UniRef90_U5FT06: Hexosyltransferase|unclassified" />
87 <has_text text="UniRef90_Q8GT21: Benzyl alcohol O-benzoyltransferase|unclassified" />
88 </assert_contents>
89 </output>
90 </test>
91 <test expect_num_outputs="1">
92 <param name="input" value="demo_genefamilies.tsv"/>
93 <conditional name="renaming">
94 <param name="type" value="custom"/>
95 <param name="custom" value="test-db/utility_mapping/map_uniref90_name.txt" />
96 </conditional>
97 <param name="simplify" value=""/>
98 <output name="output" ftype="tabular">
99 <assert_contents>
100 <has_text text="UniRef90_A6L2T0: NO_NAME|g__Bacteroides.s__Bacteroides_vulgatus" />
101 <has_text text="UniRef90_U5FT06: Hexosyltransferase|unclassified" />
102 <has_text text="UniRef90_Q8GT21: Benzyl alcohol O-benzoyltransferase|unclassified" />
103 </assert_contents>
104 </output>
105 </test>
106 </tests>
107 <help><![CDATA[
108 @HELP_HEADER@
109
110 By default, HUMAnN outputs do not attach names (glosses) to individual feature IDs to keep file sizes down.
111 This tool is used to attach those names.
112
113 The most common use for this tool is attaching gene names to UniRef90/UniRef50 features in the default gene family output files.
114 Features without names (common for many UniRef90/50 families) are assigned the default name: NO_NAME.
115 ]]></help>
116 <expand macro="citations"/>
117 </tool>