comparison rarefaction.shared.xml @ 0:709508e0cb2d draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 180a403421967d36f995941b1a4561349d75cfc5
author iuc
date Fri, 24 Jun 2016 16:45:56 -0400
parents
children 9bdf0bca01c3
comparison
equal deleted inserted replaced
-1:000000000000 0:709508e0cb2d
1 <tool profile="16.07" id="mothur_rarefaction_shared" name="Rarefaction.shared" version="@WRAPPER_VERSION@.0">
2 <description>Generate inter-sample rarefaction curves for OTUs</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <expand macro="version_command"/>
8 <command detect_errors="aggressive"><![CDATA[
9 ## create symlinks to input datasets
10 ln -s "$otu" otu.dat &&
11 #if $designc.usedesign == "yes":
12 ln -s "$designc.design" designc.design.dat &&
13 #end if
14
15 echo 'rarefaction.shared(
16 shared=otu.dat,
17 #if $label:
18 label=${ str($label).replace(",","-") },
19 #end if
20 #if $groups
21 groups=${ str($groups).replace(",","-") },
22 #end if
23 #if $designc.usedesign == "yes":
24 design=designc.design.dat,
25 #if $designc.sets:
26 sets=${ str($designc.sets).replace(",","-") },
27 #end if
28 #end if
29 #if $subsample.usess == "yes":
30 #if $subsample.subsamplesize:
31 subsample=$subsample.subsamplesize,
32 #else
33 subsample=T,
34 #end if
35 #if $subsample.subsampleiters:
36 subsampleiters=$subsample.subsampleiters,
37 #end if
38 #end if
39 calc=${ str($calc).replace(",","-") },
40 iters=$iters,
41 jumble=$jumble
42 )'
43 | sed 's/ //g' ## mothur trips over whitespace
44 | mothur
45 ]]></command>
46 <inputs>
47 <param name="otu" type="data" format="mothur.shared" label="shared - OTU Shared"/>
48 <param name="label" type="select" label="label - OTU Labels" multiple="true">
49 <expand macro="labeloptions"/>
50 </param>
51 <param name="groups" type="select" label="groups - Groups to analyze" multiple="true" help="All groups will be analyzed by default if none are selected">
52 <options>
53 <filter type="data_meta" ref="otu" key="groups"/>
54 </options>
55 </param>
56 <conditional name="designc">
57 <param name="usedesign" type="select" label="run on a per set basis using a design file?">
58 <option value="no" selected="true">no</option>
59 <option value="yes">yes</option>
60 </param>
61 <when value="yes">
62 <param name="design" type="data" format="mothur.design" label="design - assigns groups to sets" help="design has 2 columns: group(col 1) and grouping(col 2) (separated by a TAB character) use make.design"/>
63 <param name="sets" type="select" multiple="true" label="sets - group sets to analyze">
64 <options>
65 <filter type="data_meta" ref="design" key="groups"/>
66 </options>
67 </param>
68 </when>
69 <when value="no"/>
70 </conditional>
71 <param name="iters" type="integer" value="1000" min="0" label="iters - Number of randomizations"/>
72 <param name="jumble" type="boolean" truevalue="true" falsevalue="false" checked="true" label="jumble"/>
73 <param name="calc" type="select" label="calc - Calculators " multiple="true">
74 <option value="sharedobserved" selected="true">sharedobserved - the number of sequences in two samples</option>
75 <option value="sharednseqs">sharednseqs - the number of sequences in two samples</option>
76 </param>
77 <conditional name="subsample">
78 <param name="usess" type="select" label="produce subsample rarefactions?">
79 <option value="no" selected="true">no</option>
80 <option value="yes">yes</option>
81 </param>
82 <when value="yes">
83 <param name="subsamplesize" type="integer" value="" optional="true" label="subsample - size pergroup of the sample" help="Leave blank to use the size of your smallest group"/>
84 <param name="subsampleiters" type="integer" value="0" optional="true" label="subsampleiters - Number of times to run the subsample"/>
85 </when>
86 <when value="no"/>
87 </conditional>
88 </inputs>
89 <outputs>
90 <expand macro="logfile-output"/>
91 <data name="rarefaction" format="tabular" from_work_dir="otu.shared.rarefaction" label="${tool.name} on ${on_string}: shared.rarefaction">
92 <filter>designc['usedesign'] == 'no' and 'sharedobserved' in calc</filter>
93 </data>
94 <data name="rarefaction2" format="tabular" from_work_dir="otu.shared.r_nseqs" label="${tool.name} on ${on_string}: shared.r_nseqs">
95 <filter>designc['usedesign'] == 'no' and 'sharednseqs' in calc</filter>
96 </data>
97 <data name="group_rarefaction" format="tabular" from_work_dir="otu.groups.rarefaction" label="${tool.name} on ${on_string}: groups.rarefaction">
98 <filter>designc['usedesign'] == 'yes'</filter>
99 </data>
100 <collection name="rarefaction_subsample_sharedobserved" type="list" label="${tool.name} on ${on_string}: shared.rarefaction">
101 <filter>subsample['usess'] == 'yes' and 'sharedobserved' in calc</filter>
102 <discover_datasets pattern=".*?\.(?P&lt;designation&gt;.*)\.shared\.rarefaction" format="tabular"/>
103 </collection>
104 <collection name="rarefaction_subsample_sharednseqs" type="list" label="${tool.name} on ${on_string}: shared.r_nseqs">
105 <filter>subsample['usess'] == 'yes' and 'sharednseqs' in calc</filter>
106 <discover_datasets pattern=".*?\.(?P&lt;designation&gt;.*)\.shared\.r_nseqs" format="tabular"/>
107 </collection>
108 </outputs>
109 <tests>
110 <test><!-- test with default values -->
111 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
112 <output name="rarefaction">
113 <assert_contents>
114 <has_text text="numsampled"/>
115 <has_text text="lci"/>
116 <has_text text="hci"/>
117 <has_text text="unique"/>
118 <has_text text="0.22"/>
119 <has_text text="0.33"/>
120 <has_text text="0.55"/>
121 </assert_contents>
122 </output>
123 <expand macro="logfile-test"/>
124 </test>
125 <test><!-- test with label, group and calc select -->
126 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
127 <param name="groups" value="forest,pasture"/>
128 <param name="label" value="0.22,0.55"/>
129 <param name="calc" value="sharedobserved,sharednseqs"/>
130 <output name="rarefaction">
131 <assert_contents>
132 <has_text text="numsampled"/>
133 <has_text text="lci"/>
134 <has_text text="hci"/>
135 <not_has_text text="unique"/>
136 <has_text text="0.22"/>
137 <not_has_text text="0.33"/>
138 <has_text text="0.55"/>
139 </assert_contents>
140 </output>
141 <output name="rarefaction2">
142 <assert_contents>
143 <has_text text="numsampled"/>
144 <has_text text="lci"/>
145 <has_text text="hci"/>
146 <not_has_text text="unique"/>
147 <has_text text="0.22"/>
148 <not_has_text text="0.33"/>
149 <has_text text="0.55"/>
150 </assert_contents>
151 </output>
152 <expand macro="logfile-test"/>
153 </test>
154 <test><!-- test with design file -->
155 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
156 <param name="usedesign" value="yes"/>
157 <param name="design" value="toymothur.design2" ftype="mothur.design"/>
158 <param name="sets" value="tardis,dalek"/>
159 <output name="group_rarefaction">
160 <assert_contents>
161 <has_text text="numsampled"/>
162 <has_text text="lci"/>
163 <has_text text="hci"/>
164 <has_text text="unique"/>
165 <has_text text="0.22"/>
166 <has_text text="0.33"/>
167 <has_text text="0.55"/>
168 </assert_contents>
169 </output>
170 <expand macro="logfile-test"/>
171 </test>
172 <test><!-- test with subsampling -->
173 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
174 <param name="usess" value="yes"/>
175 <param name="subsamplesize" value="10"/>
176 <param name="subsampleiters" value="42"/>
177 <param name="calc" value="sharedobserved,sharednseqs"/>
178 <output name="rarefaction">
179 <assert_contents>
180 <has_text text="numsampled"/>
181 <has_text text="lci"/>
182 <has_text text="hci"/>
183 <has_text text="unique"/>
184 <has_text text="0.22"/>
185 <has_text text="0.33"/>
186 <has_text text="0.55"/>
187 </assert_contents>
188 </output>
189 <output_collection name="rarefaction_subsample_sharedobserved" count="36">
190 <element name="ave-std.0.14" ftype="tabular">
191 <assert_contents>
192 <has_text text="numsampled"/>
193 <has_text text="lci"/>
194 <has_text text="hci"/>
195 <has_text text="ave"/>
196 <has_text text="std"/>
197 <has_text text="0.14"/>
198 </assert_contents>
199 </element>
200 </output_collection>
201 <output_collection name="rarefaction_subsample_sharednseqs" count="36">
202 <element name="ave-std.0.14" ftype="tabular">
203 <assert_contents>
204 <has_text text="numsampled"/>
205 <has_text text="lci"/>
206 <has_text text="hci"/>
207 <has_text text="ave"/>
208 <has_text text="std"/>
209 <has_text text="0.14"/>
210 </assert_contents>
211 </element>
212 </output_collection>
213 <expand macro="logfile-test"/>
214 </test>
215 </tests>
216 <help>
217 <![CDATA[
218
219 @MOTHUR_OVERVIEW@
220
221 **Command Documenation**
222
223 The rarefaction.shared_ command generates inter-sample rarefaction curves using a re-sampling without replacement approach. The traditional way that ecologists use rarefaction is not to randomize the sampling order within a sample, rather between samples. For instance, if we wanted to know the number of OTUs in the human colon, we might sample from various sites within the colon, and sequence a bunch of 16S rRNA genes. By determining the number of OTUs in each sample and comparing the composition of those samples it is possible to determine how well you have sampled the biodiversity within the individual. For calc parameter choices see: http://www.mothur.org/wiki/Calculators
224
225 .. _rarefaction.shared: http://www.mothur.org/wiki/Rarefaction.shared
226 ]]>
227 </help>
228 <expand macro="citations"/>
229 </tool>