0
|
1 <tool id="mothur_collect_single" name="Collector Curve" version="1.0" force_history_refresh="True">
|
|
2 <description>Calculate and plot collector's curves for OTUs</description>
|
|
3 <requirements>
|
|
4 <requirement type="binary">@BINARY@</requirement>
|
|
5 <requirement type="package" version="1.30.2-1.33.3">mothur</requirement>
|
|
6 </requirements>
|
|
7 <command interpreter="bash">
|
|
8 collectorcurve.sh
|
|
9 #if isinstance($otu.datatype, $__app__.datatypes_registry.get_datatype_by_extension('shared').__class__):
|
|
10 shared
|
|
11 #elif isinstance($otu.datatype, $__app__.datatypes_registry.get_datatype_by_extension('rabund').__class__):
|
|
12 rabund
|
|
13 #elif isinstance($otu.datatype, $__app__.datatypes_registry.get_datatype_by_extension('sabund').__class__):
|
|
14 sabund
|
|
15 #elif isinstance($otu.datatype, $__app__.datatypes_registry.get_datatype_by_extension('list').__class__):
|
|
16 list
|
|
17 #end if
|
|
18 $otu
|
|
19 $label
|
|
20 $output
|
|
21 $output.id
|
|
22 $__new_file_path__
|
|
23 #if $calc.__str__ != "None" and len($calc.__str__) > 0:
|
|
24 $calc
|
|
25 #end if
|
|
26 $advancedoption.advanced
|
|
27 #if $advancedoption.advanced:
|
|
28 $advancedoption.abundoption.cabund
|
|
29 #if $advancedoption.abundoption.cabund:
|
|
30 $advancedoption.abundoption.abund
|
|
31 #else
|
|
32 ''
|
|
33 #end if
|
|
34 $advancedoption.sizeoption.csize
|
|
35 #if $advancedoption.sizeoption.csize:
|
|
36 $advancedoption.sizeoption.size
|
|
37 #else
|
|
38 ''
|
|
39 #end if
|
|
40 $advancedoption.freqoption.cfreq
|
|
41 #if $advancedoption.freqoption.cfreq:
|
|
42 $advancedoption.freqoption.freq
|
|
43 #else
|
|
44 ''
|
|
45 #end if
|
|
46 #end if
|
|
47 </command>
|
|
48 <inputs>
|
|
49 <param name="otu" type="data" format="rabund,sabund,list,shared" label="OTU list (rabund, sabund, list or shared format)" help="The rabund output from the 'Map Reads to OTU' tool"/>
|
|
50 <param name="label" type="select" label="Labels - OTU labels" multiple="true" help="Select one or more labels to calculate the collector's curve for. By default all labels are selected" >
|
|
51 <options>
|
|
52 <filter type="data_meta" ref="otu" key="labels" />
|
|
53 </options>
|
|
54 </param>
|
|
55 <param name="calc" type="select" label="Calculators" multiple="true" help="Select one or more calculators for collector's curve generation. By default chao, invsimpson and npshannon are selected. Please see the description for information on the calculators.">
|
|
56 <option value="ace">ace</option>
|
|
57 <option value="bootstrap">bootstrap</option>
|
|
58 <option value="chao" selected="true">chao</option>
|
|
59 <option value="jack">jack</option>
|
|
60 <option value="sobs">sobs</option>
|
|
61 <option value="simpsoneven">simpsoneven</option>
|
|
62 <option value="shannoneven">shannoneven</option>
|
|
63 <option value="heip">heip</option>
|
|
64 <option value="smithwilson">smithwilson</option>
|
|
65 <option value="bergerparker">bergerparker</option>
|
|
66 <option value="coverage">coverage</option>
|
|
67 <option value="goodscoverage">goodscoverage</option>
|
|
68 <option value="simpson">simpson</option>
|
|
69 <option value="invsimpson" selected="true">invsimpson</option>
|
|
70 <option value="qstat">qstat</option>
|
|
71 <option value="shannon">shannon</option>
|
|
72 <option value="npshannon" selected="true">npshannon</option>
|
|
73 <option value="boneh">boneh</option>
|
|
74 <option value="efron">efron</option>
|
|
75 <option value="shen">shen</option>
|
|
76 <option value="solow">solow</option>
|
|
77 <option value="logseries">logseries</option>
|
|
78 <option value="geometric">geometric</option>
|
|
79 <option value="bstick">bstick</option>
|
|
80 <option value="nseqs">nseqs</option>
|
|
81 </param>
|
|
82 <conditional name="advancedoption">
|
|
83 <param name="advanced" type="boolean" value="true" label="Please select to show and specify advanced option" help="Advanced options including specification of ACE Estimator threshold for abundant versus rare OTUs, sample size for OTU predicition and frequency for output."/>
|
|
84 <when value="true">
|
|
85 <conditional name="abundoption">
|
|
86 <param name="cabund" type="boolean" value="true" label="Select, if you would like to specify the ACE Estimator threshold for abundant versus rare OTUs" help=""/>
|
|
87 <when value="true">
|
|
88 <param name="abund" type="integer" value="10" label="Abund - ACE estimator threshold for abundant versus rare OTUs (default 10)"/>
|
|
89 </when>
|
|
90 </conditional>
|
|
91 <conditional name="sizeoption">
|
|
92 <param name="csize" type="boolean" value="true" label="Select, if you would like to specify the sample size for OTU prediction" help=""/>
|
|
93 <when value="true">
|
|
94 <param name="size" type="integer" value="1" label="Size - sample size for OTU prediction (ignored if < 1)"
|
|
95 help="By default these calculators will base the prediction on a sample that is the same size as the initial sampling"/>
|
|
96 </when>
|
|
97 </conditional>
|
|
98 <conditional name="freqoption">
|
|
99 <param name="cfreq" type="boolean" value="true" label="Select, if you would like to specify the frequency for output" help=""/>
|
|
100 <when value="true">
|
|
101 <param name="freq" type="float" value="0.1" label="Frequency - frequency for output (the default setting is to output data every 100 sequences)"
|
|
102 help="Use a decimal between 0 and 1 to set the frequency as a percentage of the number of sequences"/>
|
|
103 </when>
|
|
104 </conditional>
|
|
105 </when>
|
|
106 </conditional>
|
|
107 </inputs>
|
|
108 <outputs>
|
|
109 <data format="tabular" name="output" label="${tool.name} on ${on_string}: tab" />
|
|
110 </outputs>
|
|
111 <help>
|
|
112 ===========
|
|
113 Description
|
|
114 ===========
|
|
115
|
|
116 Collector's curve calculation based on mothur's collect.single command.
|
|
117
|
|
118 Collector's curves can be calculated using calculators, that describe the richness, diversity, and other features of individual samples. Collector's curves describe how richness or diversity change as you sample additional individuals. If a collector's curve becomes parallel to the x-axis, you can be reasonably confident that you have done a good job of sampling and can trust the last value in the curve. Otherwise, you need to keep sampling.
|
|
119 For calculator parameter choices see: mothur_wiki__
|
|
120
|
|
121 .. _mothur_wiki: http://www.mothur.org/wiki/Calculators
|
|
122
|
|
123 -----
|
|
124
|
|
125 ----------
|
|
126 Input
|
|
127 ----------
|
|
128
|
|
129 OTU list
|
|
130 rabund,
|
|
131 sabund,
|
|
132 list or
|
|
133 shared format
|
|
134
|
|
135 ----------
|
|
136 Parameters
|
|
137 ----------
|
|
138
|
|
139 Labels - OTU labels
|
|
140 Select labels you want the collector's curve calculated for (e.g. lines labelled 0.03)
|
|
141 by default collector's curves will be calculated for all labels listed
|
|
142
|
|
143 Calculators
|
|
144 Find following the list of available calculators (see mothur_wiki_ for a more detailed description)
|
|
145 and select calculators for calculating collector's curves .
|
|
146 Default selection: chao - Community richness, npshannon (non-parametric) and invsimpson - Community diversity
|
|
147
|
|
148 +---------------+-----------------------------------------------------------------------------------------------+
|
|
149 | chao | Community richness the Chao1 estimator |
|
|
150 +---------------+-----------------------------------------------------------------------------------------------+
|
|
151 | invsimpson | Community diversity the Simpson index |
|
|
152 +---------------+-----------------------------------------------------------------------------------------------+
|
|
153 | npshannon | Community diversity the non-parametric Shannon index |
|
|
154 +---------------+-----------------------------------------------------------------------------------------------+
|
|
155 | ace | Community richness the ACE estimator |
|
|
156 +---------------+-----------------------------------------------------------------------------------------------+
|
|
157 | bootstrap | Community richness the bootstrap estimator |
|
|
158 +---------------+-----------------------------------------------------------------------------------------------+
|
|
159 | jack | Community richness the jackknife estimator |
|
|
160 +---------------+-----------------------------------------------------------------------------------------------+
|
|
161 | sobs | Community richness the observed richness |
|
|
162 +---------------+-----------------------------------------------------------------------------------------------+
|
|
163 | simpsoneven | Community evenness a Simpson index-based measure of evenness |
|
|
164 +---------------+-----------------------------------------------------------------------------------------------+
|
|
165 | shannoneven | Community evenness a Shannon index-based measure of evenness |
|
|
166 +---------------+-----------------------------------------------------------------------------------------------+
|
|
167 | heip | Community evenness Heip's metric of community evenness |
|
|
168 +---------------+-----------------------------------------------------------------------------------------------+
|
|
169 | smithwilson | Community evenness Smith and Wilson's metric of community evenness |
|
|
170 +---------------+-----------------------------------------------------------------------------------------------+
|
|
171 | bergerparker | Community diversity the Berger-Parker index |
|
|
172 +---------------+-----------------------------------------------------------------------------------------------+
|
|
173 | coverage | Community diversity the sampling coverage |
|
|
174 +---------------+-----------------------------------------------------------------------------------------------+
|
|
175 | goodscoverage | Community diversity the Good's estimate of sampling coverage |
|
|
176 +---------------+-----------------------------------------------------------------------------------------------+
|
|
177 | simpson | Community diversity the Simpson index |
|
|
178 +---------------+-----------------------------------------------------------------------------------------------+
|
|
179 | qstat | Community diversity the Q statistic |
|
|
180 +---------------+-----------------------------------------------------------------------------------------------+
|
|
181 | shannon | Community diversity the Shannon index |
|
|
182 +---------------+-----------------------------------------------------------------------------------------------+
|
|
183 | boneh | Estimator Boneh's estimator |
|
|
184 +---------------+-----------------------------------------------------------------------------------------------+
|
|
185 | efron | Estimator Efron's estimator |
|
|
186 +---------------+-----------------------------------------------------------------------------------------------+
|
|
187 | shen | Estimator Shen's estimator |
|
|
188 +---------------+-----------------------------------------------------------------------------------------------+
|
|
189 | solow | Estimator Solow's estimator |
|
|
190 +---------------+-----------------------------------------------------------------------------------------------+
|
|
191 | logseries | Statistical distribution tests whether observed data follow the log series distribution |
|
|
192 +---------------+-----------------------------------------------------------------------------------------------+
|
|
193 | geometric | Statistical distribution tests whether observed data follow the geometric series distribution |
|
|
194 +---------------+-----------------------------------------------------------------------------------------------+
|
|
195 | bstick | Statistical distribution tests whether observed data follow the broken stick distribution |
|
|
196 +---------------+-----------------------------------------------------------------------------------------------+
|
|
197 | nseqs | Utility the number of sequences in a sample |
|
|
198 +---------------+-----------------------------------------------------------------------------------------------+
|
|
199
|
|
200
|
|
201 ----------------------------
|
|
202 Optional advanced parameters
|
|
203 ----------------------------
|
|
204
|
|
205 ACE estimator threshold
|
|
206 By default the ACE estimator uses 10 as the cutoff between OTUs that are rare and abundant. So if an OTU has more than 10 individuals in it, then it is considered abundant. This is really just an empirical decision and we are merely following the lead of Anne Chao and others who implement 10 in their software. If you would like to use a different cutoff, you can use the abund option.
|
|
207
|
|
208 Size - Sample Size
|
|
209 Within the suite of calculators available in mothur are a set that will predict the number of additional OTUs that will be observed for a given sample size. By default these calculators will base the prediction on a sample that is the same size as the initial sampling. If you would like to use a different sample size, use the size option.
|
|
210 The value of size should be between 1 and the size of the initial sampling.
|
|
211
|
|
212 Frequency
|
|
213 For larger datasets you might not be interested in obtaining all of the data for the number of sequences sampled. For instance, if you have 100,000 sequences, you may only want to output the data every 100 sequences. Alternatively, if you only have 100 sequences, you may only want to output all of the data.
|
|
214 The default setting is to output data every 100 sequences.
|
|
215
|
|
216 ------
|
|
217 Output
|
|
218 ------
|
|
219
|
|
220 .. class:: warningmark
|
|
221
|
|
222 Please note, the number of outputs is depending on the number of selected calculators. Each selected calculator will result in an extra output, which is indicated by the calculator name in brackets at the end of the output's filename. In case the outputs for the selected calculators are **not** showing in the History panel, refresh your history by clicking on the refresh icon.
|
|
223
|
|
224
|
|
225 (A) A summary file in table format containing the following fields, number of sequences, the sample coverage, the number of observed OTUs, the chao richness estimate, the invsimpson diversity estimate, and the npshannon non-parametric diversity estimate. The summary gives results for each of the listed fields when all available data is used.
|
|
226
|
|
227 (B) Followed by a file for each calculator selected (indicated by the calculator's name in brackets at the end of the output's filename) which can be plotted as collector's curve and used to evaluate how the results of the calculator change with sampling effort.
|
|
228
|
|
229 .. class:: infomark
|
|
230
|
|
231
|
|
232 Use Galaxy's integrated visualization tool to plot the collector's curve. The visualization tool is accessible via the 'Visualize' icon in the extended dataset information area. After having launched the integrated visualization tool select the 'Data Controls' tab. In the 'Data Controls' tab select column 1 (number sampled) as 'Data column for X' and use column 2 (minimum identity, according to select labels) as 'Data column for Y'.
|
|
233
|
|
234 -----
|
|
235
|
|
236 =========
|
|
237 Resources
|
|
238 =========
|
|
239
|
|
240 mothur_
|
|
241
|
|
242 .. _http://www.mothur.org
|
|
243
|
|
244 **Author**
|
|
245
|
|
246 Patrick D. Schloss (pschloss@umich.edu)
|
|
247
|
|
248 **Wrapper Author**
|
|
249
|
|
250 QFAB Bioinformatics (support@qfab.org)
|
|
251 based on jjohnson mothur_toolsuite wrapper
|
|
252 </help>
|
1
|
253 <tests>
|
|
254 <test>
|
4
|
255 <param name="otu" value="reads2otus.rabund"/>
|
3
|
256 <param name="label" value="0.03" />
|
1
|
257 <param name="advanced" value="FALSE" />
|
|
258 <param name="calc" value="chao,invsimpson,npshannon" />
|
|
259 <output name="output" file="output.tabular" ftype="tabular" lines_diff="10" />
|
|
260 </test>
|
4
|
261 </tests>
|
0
|
262 </tool>
|