Skip to content

Commit 6bdf8fc

Browse files
authored
Update metaQuantome tools to version 2.0.4 (#823)
* Update metaQuantome to version 2.0.4. Remove unused --slim_down parameter from filter and stat modules. Add new --load_obsolete feature to allow expand module to load obsolete GO terms from database. * Updates for linting: Add profile. Fix test parameter definitions. Remove unnecessary 'name' attribute from 'unique_value' filters. * Update test outputs.
1 parent 598948e commit 6bdf8fc

9 files changed

Lines changed: 107 additions & 112 deletions

tools/metaquantome/macros.xml

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<macros>
2-
<token name="@TOOL_VERSION@">2.0.2</token>
2+
<token name="@TOOL_VERSION@">2.0.4</token>
33
<token name="@VERSION_SUFFIX@">0</token>
4+
<token name="@PROFILE@">25.0</token>
45
<xml name="xrefs">
56
<xrefs>
67
<xref type="bio.tools">metaQuantome</xref>
@@ -15,35 +16,13 @@
1516
<xml name="db">
1617
<param argument="db_tar" type="data" label="Database Archive File"/>
1718
</xml>
18-
<xml name="ONTOLOGY_ARGS">
19-
<conditional name="ontology_args">
20-
<param name="ontology" type="select" label="Ontology">
21-
<option value="go">Gene Ontology (GO terms)</option>
22-
<option value="ec">Enzyme Commission (EC) numbers</option>
23-
<option value="cog">Clusters of Orthologous Groups (COG categories)</option>
24-
</param>
25-
<when value="go">
26-
<param argument="--slim_down" type="boolean" label="Use slim GO"/>
27-
</when>
28-
<when value="ec">
29-
<!-- do nothing -->
30-
</when>
31-
<when value="cog">
32-
<!-- do nothing -->
33-
</when>
34-
</conditional>
19+
<xml name="ONTOLOGY_SELECT">
20+
<param name="ontology" type="select" label="Ontology">
21+
<option value="go">Gene Ontology (GO terms)</option>
22+
<option value="ec">Enzyme Commission (EC) numbers</option>
23+
<option value="cog">Clusters of Orthologous Groups (COG categories)</option>
24+
</param>
3525
</xml>
36-
<token name="@COMMON_PARAMS@"><![CDATA[
37-
--samps '$samps'
38-
--mode '$mode_args.mode'
39-
#if $mode_args.mode == 'f'
40-
--ontology='$mode_args.ontology_args.ontology'
41-
#end if
42-
#if $mode_args.mode == 'ft'
43-
--ontology='$mode_args.ontology_args.ontology'
44-
#end if
45-
]]>
46-
</token>
4726
<xml name="SAMPS">
4827
<param name="samps" type="data" format="tabular" label="Samples file" help="must be created by 'metaQuantome: create samples file'"/>
4928
</xml>

tools/metaquantome/metaquantome_db.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<tool id="metaquantome_db" name="metaQuantome: database" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
1+
<tool id="metaquantome_db" name="metaQuantome: database" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
22
<description>download the GO, EC, and NCBI databases</description>
33
<macros>
44
<import>macros.xml</import>

tools/metaquantome/metaquantome_expand.xml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<tool id="metaquantome_expand" name="metaQuantome: expand" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
1+
<tool id="metaquantome_expand" name="metaQuantome: expand" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
22
<description>a set of functional or taxonomy annotations</description>
33
<macros>
44
<import>macros.xml</import>
@@ -41,6 +41,22 @@
4141
<option value="kingdom">kingdom</option>
4242
</param>
4343
</xml>
44+
<xml name="ONTOLOGY_CONDITIONAL">
45+
<conditional name="ontology_conditional">
46+
<expand macro="ONTOLOGY_SELECT"/>
47+
<when value="go">
48+
<param argument="--slim_down" type="boolean" label="Use slim GO"/>
49+
<param argument="--load_obsolete" type="boolean" label="Load obsolete GO terms from the database"/>
50+
</when>
51+
<when value="ec">
52+
<!-- do nothing -->
53+
</when>
54+
<when value="cog">
55+
<!-- do nothing -->
56+
</when>
57+
</conditional>
58+
</xml>
59+
4460
<token name="@FUNC_FILE@">
4561
--func_file='$mode_args.func_file'
4662
--pep_colname_func='$mode_args.pep_colname_func'
@@ -49,11 +65,14 @@
4965
--func_colname='$mode_args.func_colname'
5066
</token>
5167
<token name="@ONTOLOGY@">
52-
--ontology='$mode_args.ontology_args.ontology'
53-
#if $mode_args.ontology_args.ontology == 'go'
54-
#if $mode_args.ontology_args.slim_down
68+
--ontology='$mode_args.ontology_conditional.ontology'
69+
#if $mode_args.ontology_conditional.ontology == 'go'
70+
#if $mode_args.ontology_conditional.slim_down
5571
--slim_down
5672
#end if
73+
#if $mode_args.ontology_conditional.load_obsolete
74+
--load_obsolete
75+
#end if
5776
#end if
5877
</token>
5978
<token name="@TAX_FILE@">
@@ -105,7 +124,7 @@
105124
</param>
106125
<when value="f">
107126
<expand macro="FUNC_FILE"/>
108-
<expand macro="ONTOLOGY_ARGS"/>
127+
<expand macro="ONTOLOGY_CONDITIONAL"/>
109128
<expand macro="FUNC_COLNAME"/>
110129
</when>
111130
<when value="t">
@@ -115,7 +134,7 @@
115134
<when value="ft">
116135
<expand macro="FUNC_FILE"/>
117136
<expand macro="FUNC_COLNAME"/>
118-
<expand macro="ONTOLOGY_ARGS"/>
137+
<expand macro="ONTOLOGY_CONDITIONAL"/>
119138
<expand macro="TAX_FILE"/>
120139
<expand macro="TAX_COLNAME"/>
121140
<expand macro="FT_TAR_RANK"/>
@@ -135,11 +154,11 @@
135154
<param name="samps" value="samples_basic.tab" ftype="tabular"/>
136155
<param name="int_file" value="int_ttest.tab" ftype="tabular"/>
137156
<param name="pep_colname_int" value="peptide"/>
138-
<param name="func_file" value="multiple_func.tab"/>
139-
<param name="pep_colname_func" value="peptide"/>
140-
<param name="func_colname" value="ec"/>
141-
<param name="mode" value="f"/>
142-
<param name="ontology" value="ec"/>
157+
<param name="mode_args|func_file" value="multiple_func.tab"/>
158+
<param name="mode_args|pep_colname_func" value="peptide"/>
159+
<param name="mode_args|func_colname" value="ec"/>
160+
<param name="mode_args|mode" value="f"/>
161+
<param name="mode_args|ontology_conditional|ontology" value="ec"/>
143162
<output name="outfile">
144163
<assert_contents>
145164
<has_text text="1.2.7.10"/>

tools/metaquantome/metaquantome_filter.xml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<tool id="metaquantome_filter" name="metaQuantome: filter" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
1+
<tool id="metaquantome_filter" name="metaQuantome: filter" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
22
<description>for quality, redundancy, and sample coverage</description>
33
<macros>
44
<import>macros.xml</import>
@@ -10,7 +10,7 @@
1010
--samps '$samps'
1111
--mode '$mode_args.mode'
1212
#if $mode_args.mode == 'f' or $mode_args.mode == 'ft'
13-
--ontology='$mode_args.ontology_args.ontology'
13+
--ontology='$mode_args.ontology'
1414
#end if
1515
--expand_file '$expand_file'
1616
--min_peptides $min_peptides
@@ -36,12 +36,12 @@
3636
<option value="ft">Functional-taxonomic interaction analysis</option>
3737
</param>
3838
<when value="f">
39-
<expand macro="ONTOLOGY_ARGS"/>
39+
<expand macro="ONTOLOGY_SELECT"/>
4040
</when>
4141
<when value="t">
4242
</when>
4343
<when value="ft">
44-
<expand macro="ONTOLOGY_ARGS"/>
44+
<expand macro="ONTOLOGY_SELECT"/>
4545
</when>
4646
</conditional>
4747
<expand macro="SAMPS"/>
@@ -58,7 +58,7 @@
5858
The default is 0.
5959
</help>
6060
</param>
61-
<param argument="--min_pep_nsamp" type="integer" value="" min="0" optional="true" label="min_pep_nsamp">
61+
<param argument="--min_pep_nsamp" type="integer" min="0" optional="true" label="min_pep_nsamp">
6262
<help>
6363
Number of samples per group that must meet or exceed
6464
min_peptides. Default is 'all'.
@@ -71,7 +71,7 @@
7171
than or equal to min_children_non_leaf. The default is 0.
7272
</help>
7373
</param>
74-
<param argument="--min_child_nsamp" type="integer" value="" min="0" optional="true" label="min_child_nsamp">
74+
<param argument="--min_child_nsamp" type="integer" min="0" optional="true" label="min_child_nsamp">
7575
<help>
7676
Number of samples per group that must meet or exceed
7777
min_children_nsamp. The default is all samples.
@@ -93,13 +93,11 @@
9393
<tests>
9494
<test>
9595
<param name="expand_file" value="go_expanded.tab" ftype="tabular"/>
96-
<param name="mode" value="f" />
97-
<param name="ontology" value="go" />
96+
<param name="mode_args|mode" value="f" />
97+
<param name="mode_args|ontology" value="go" />
9898
<param name="samps" value="samples_basic.tab" ftype="tabular"/>
9999
<param name="min_peptides" value="2" />
100-
<param name="min_pep_nsamp" value="" />
101100
<param name="min_children_non_leaf" value="2" />
102-
<param name="min_child_nsamp" value="" />
103101
<param name="qthreshold" value="0" />
104102
<output name="outfile" file="go_filtered.tab" ftype="tabular"/>
105103
</test>

tools/metaquantome/metaquantome_sample.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<tool id="metaquantome_sample" name="metaQuantome: create samples file" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
1+
<tool id="metaquantome_sample" name="metaQuantome: create samples file" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
22
<description> by specifying the experiment's groups and associated column names</description>
33
<macros>
44
<import>macros.xml</import>
@@ -47,25 +47,25 @@
4747
</outputs>
4848
<tests>
4949
<test>
50-
<param name="samps_src" value="build" />
51-
<repeat name="samps">
50+
<param name="samps_args|samps_src" value="build" />
51+
<repeat name="samps_args|samps">
5252
<param name="group_name" value="NS"/>
5353
<param name="col_names" value="X737NS,X852NS,X867NS"/>
5454
</repeat>
55-
<repeat name="samps">
55+
<repeat name="samps_args|samps">
5656
<param name="group_name" value="WS"/>
5757
<param name="col_names" value="X737WS,X852WS,X867WS"/>
5858
</repeat>
5959
<output name="samples_file" file="samples.tab" ftype="tabular"/>
6060
</test>
6161
<test>
62-
<param name="samps_src" value="history" />
63-
<param name="file" value="int_737_test.tab" ftype="tabular" />
64-
<repeat name="samps">
62+
<param name="samps_args|samps_src" value="history" />
63+
<param name="samps_args|file" value="int_737_test.tab" ftype="tabular" />
64+
<repeat name="samps_args|samps">
6565
<param name="group_name" value="NS"/>
6666
<param name="col_names" value="3,5,7"/>
6767
</repeat>
68-
<repeat name="samps">
68+
<repeat name="samps_args|samps">
6969
<param name="group_name" value="WS"/>
7070
<param name="col_names" value="2,4,6"/>
7171
</repeat>

tools/metaquantome/metaquantome_stat.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<tool id="metaquantome_stat" name="metaQuantome: stat" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
1+
<tool id="metaquantome_stat" name="metaQuantome: stat" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
22
<description>differential analysis of functional expression and taxonomic abundance</description>
33
<macros>
44
<import>macros.xml</import>
@@ -10,7 +10,7 @@
1010
--samps '$samps'
1111
--mode '$mode_args.mode'
1212
#if $mode_args.mode == 'f' or $mode_args.mode == 'ft'
13-
--ontology='$mode_args.ontology_args.ontology'
13+
--ontology='$mode_args.ontology'
1414
#end if
1515
--file '$file'
1616
--control_group '$control_group'
@@ -29,12 +29,12 @@
2929
<option value="ft">Functional-taxonomic interaction analysis</option>
3030
</param>
3131
<when value="f">
32-
<expand macro="ONTOLOGY_ARGS"/>
32+
<expand macro="ONTOLOGY_SELECT"/>
3333
</when>
3434
<when value="t">
3535
</when>
3636
<when value="ft">
37-
<expand macro="ONTOLOGY_ARGS"/>
37+
<expand macro="ONTOLOGY_SELECT"/>
3838
</when>
3939
</conditional>
4040
<param argument="--control_group" type="text" label="Name of the control sample group of control (used as denominator for fold change evaluation).">
@@ -53,8 +53,8 @@
5353
<test>
5454
<param name="file" value="ec_ttest.tab" ftype="tabular" />
5555
<param name="parametric" value="True" />
56-
<param name="ontology" value="ec" />
57-
<param name="mode" value="f" />
56+
<param name="mode_args|ontology" value="ec" />
57+
<param name="mode_args|mode" value="f" />
5858
<param name="samps" value="samples_basic.tab" ftype="tabular" />
5959
<param name="control_group" value="s2"/>
6060
<output name="outfile" value="ec_ttest_tested.tab" ftype="tabular"/>

0 commit comments

Comments
 (0)