comparison indicator.xml @ 0:e66e20795ddb draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
author iuc
date Fri, 19 May 2017 05:27:21 -0400
parents
children 5d1f9418ff72
comparison
equal deleted inserted replaced
-1:000000000000 0:e66e20795ddb
1 <tool profile="16.07" id="mothur_indicator" name="Indicator" version="@WRAPPER_VERSION@.0">
2 <description>Identify indicator "species" for nodes on a tree</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <expand macro="stdio"/>
8 <expand macro="version_command"/>
9 <command><![CDATA[
10 @SHELL_OPTIONS@
11
12 ## create symlinks to input datasets
13 ln -s "$otu" otu.dat &&
14 #if $withdesign.tree:
15 ln -s "$withdesign.tree" withdesign.tree.dat &&
16 #end if
17 #if $withdesign.havedesign == "yes":
18 ln -s "$withdesign.design" withdesign.design.dat &&
19 #end if
20
21 echo 'indicator(
22 #if $withdesign.tree:
23 tree=withdesign.tree.dat,
24 #end if
25 #if $otu.is_of_type("mothur.relabund"):
26 relabund=otu.dat,
27 #elif $otu.is_of_type("mothur.shared"):
28 shared=otu.dat,
29 #end if
30 #if $label:
31 label=${ str($label).replace(",","-") },
32 #end if
33 #if $withdesign.groups:
34 groups=${ str($withdesign.groups).replace(",","-") },
35 #end if
36 #if $withdesign.havedesign == "yes":
37 design=withdesign.design.dat,
38 #end if
39 processors='\${GALAXY_SLOTS:-8}'
40 )'
41 | sed 's/ //g' ## mothur trips over whitespace
42 | mothur
43 | tee mothur.out.log
44 ]]></command>
45 <inputs>
46 <param name="otu" type="data" format="mothur.shared,mothur.relabund" label="shared/relabund - OTU dataset"/>
47 <param name="label" type="select" optional="true" multiple="false" label="label - OTU Labels">
48 <expand macro="labeloptions"/>
49 </param>
50 <conditional name="withdesign">
51 <param name="havedesign" type="select" label="Will you supply a design file?">
52 <option value="yes">yes</option>
53 <option value="no">no</option>
54 </param>
55 <when value="yes">
56 <param name="tree" type="data" format="tree" optional="true" label="tree - A newick-formatted tree" help="Optional, if a design file is provided."/>
57 <param name="design" type="data" format="mothur.design" optional="true" label="design - assign groups to new grouping" help="make sure your file is of type mothur.design. Design has 2 columns: group(col 1) and grouping(col 2) (separated by a TAB character)"/>
58 <param name="groups" type="select" optional="true" multiple="true" label="groups - Pick groups to annalyze">
59 <options>
60 <filter type="data_meta" ref="design" key="groups"/>
61 </options>
62 </param>
63 </when>
64 <when value="no">
65 <param name="tree" type="data" format="tree" label="tree - A newick-formatted tree" help="Mandatory if no design file is provided"/>
66 <param name="groups" type="select" optional="true" multiple="true" label="groups - Pick groups to annalyze">
67 <options>
68 <filter type="data_meta" ref="otu" key="groups"/>
69 </options>
70 </param>
71 </when>
72 </conditional>
73 </inputs>
74 <outputs>
75 <expand macro="logfile-output"/>
76 <data name="tree_out" format="mothur.tre" from_work_dir="withdesign.tree*.tre" label="${tool.name} on ${on_string}: indicator.tre">
77 <filter>tree</filter>
78 </data>
79 <data name="summary" format="tabular" from_work_dir="otu*.summary" label="${tool.name} on ${on_string}: indicator.summary"/>
80 </outputs>
81 <tests>
82 <test><!-- test with design input -->
83 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
84 <param name="havedesign" value="yes"/>
85 <param name="design" value="toymothur.design2" ftype="mothur.design"/>
86 <param name="label" value="0.03"/>
87 <param name="groups" value="tardis,dalek"/>
88 <output name="summary">
89 <assert_contents>
90 <has_line_matching expression="^OTU\tIndicator_Groups\tIndicator_Value\tpValue$"/>
91 <has_text text="forest"/>
92 <has_text text="pasture"/>
93 </assert_contents>
94 </output>
95 <expand macro="logfile-test"/>
96 </test>
97 <test><!-- test with design input and subset of groups-->
98 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
99 <param name="havedesign" value="yes"/>
100 <param name="design" value="toymothur.design2" ftype="mothur.design"/>
101 <param name="groups" value="tardis"/>
102 <output name="summary">
103 <assert_contents>
104 <has_line_matching expression="^OTU\tIndicator_Groups\tIndicator_Value\tpValue$"/>
105 <has_text text="forest"/>
106 <not_has_text text="pasture"/>
107 </assert_contents>
108 </output>
109 <expand macro="logfile-test"/>
110 </test>
111 <test><!-- test with tree input -->
112 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
113 <param name="havedesign" value="no"/>
114 <param name="tree" value="amazon.an.jclass.unique.tre"/>
115 <param name="groups" value="forest,pasture"/>
116 <output name="summary">
117 <assert_contents>
118 <has_text text="TreeNode"/>
119 <has_text text="forest-pasture"/>
120 </assert_contents>
121 </output>
122 <output name="tree_out" md5="a22f90898611e1f4c5d84cfe18dc6ebe"/>
123 <expand macro="logfile-test"/>
124 </test>
125 <test><!-- test with tree input and subset of groups -->
126 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
127 <param name="havedesign" value="no"/>
128 <param name="tree" value="amazon.an.jclass.unique.tre"/>
129 <param name="groups" value="forest"/>
130 <output name="summary">
131 <assert_contents>
132 <has_text text="TreeNode"/>
133 <not_has_text text="forest-pasture"/>
134 </assert_contents>
135 </output>
136 <output name="tree_out" md5="756bfd16311e141a099cfe96db458d83"/>
137 <expand macro="logfile-test"/>
138 </test>
139 </tests>
140 <help>
141 <![CDATA[
142
143 @MOTHUR_OVERVIEW@
144
145 **Command Documentation**
146
147 The indicator_ command reads a shared_ or relabund_ file and a tree file, and outputs a .indicator.summary file and when a tree file is given a .indicator.tre file. The summary file lists the indicator value for each OTU for each node. The new tree contains labels at each internal node. The label is the node number so you can relate the tree to the summary file.
148
149 .. _shared: https://www.mothur.org/wiki/Shared_file
150 .. _relabund: https://www.mothur.org/wiki/Get.relabund
151 .. _indicator: https://www.mothur.org/wiki/Indicator
152
153 v.1.22.0: Updated to Mothur 1.33
154 ]]>
155 </help>
156 <expand macro="citations"/>
157 </tool>