comparison tools/mothur/summary.single.xml @ 0:ee4fee239fe7 draft default tip

planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
author sanbi-uwc
date Fri, 03 Jun 2016 09:32:47 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:ee4fee239fe7
1 <tool profile="16.07" id="mothur_summary_single" name="Summary.single" version="@WRAPPER_VERSION@.0">
2 <description>Summary of calculator values 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 echo 'summary.single(
10 #if $otu.is_of_type("mothur.rabund"):
11 rabund=$otu
12 #elif $otu.is_of_type("mothur.sabund"):
13 sabund=$otu
14 #elif $otu.is_of_type("mothur.list"):
15 list=$otu
16 #elif $otu.is_of_type("mothur.shared"):
17 shared=$otu,
18 groupmode=$groupmode
19 #end if
20 #if $label:
21 ,label=${ str($label).replace(",","-") }
22 #end if
23 #if $calc:
24 ,calc=${ str($calc).replace(",","-") }
25 #end if
26 #if $abund:
27 ,abund=$abund
28 #end if
29 #if $size:
30 ,size=$size
31 #end if
32 #if $subsample.use == 'yes':
33 #if $subsample.subsample:
34 ,subsample=$subsample.subsample
35 #else
36 ,subsample=T
37 #end if
38 #if $subsample.iters:
39 ,iters=$subsample.iters
40 #end if
41 #end if
42 )'
43 | sed 's/ //g' ## mothur trips over whitespace
44 | mothur &&
45
46 ## move output files to correct destination
47 prefix='$otu' &&
48 #if $subsample.use == 'yes' and not ($otu.extension == 'mothur.shared' and not $groupmode):
49 mv \${prefix%.dat}*.ave-std.summary '$subsample_summary' &&
50 #end if
51 #if $groupmode:
52 mv \${prefix%.dat}*.summary '$summary' &&
53 #else
54 mv \${prefix%.dat}*.summary . &&
55 #end if
56 mv mothur.*.logfile '$logfile'
57 ]]></command>
58 <inputs>
59 <param name="otu" type="data" format="mothur.list,mothur.rabund,mothur.sabund,mothur.shared" label="list,rabund,sabund,shared - OTU List"/>
60 <param name="label" type="select" label="label - OTU Labels" multiple="true">
61 <expand macro="labeloptions"/>
62 </param>
63 <param name="calc" type="select" label="calc - Calculators (Uses defaults if none selected)" multiple="true">
64 <option value="ace" selected="true">ace - Community richness the ACE estimator</option>
65 <option value="bootstrap">bootstrap - Community richness the bootstrap estimator</option>
66 <option value="chao" selected="true">chao - Community richness the Chao1 estimator</option>
67 <option value="jack" selected="true">jack - Community richness the jackknife estimator</option>
68 <option value="sobs" selected="true">sobs - Community richness the observed richness</option>
69 <option value="simpsoneven">simpsoneven - Community evenness a Simpson index-based measure of evenness</option>
70 <option value="shannoneven">shannoneven - Community evenness a Shannon index-based measure of evenness</option>
71 <option value="heip">heip - Community evenness Heip's metric of community evenness</option>
72 <option value="smithwilson">smithwilson - Community evenness Smith and Wilson's metric of community evenness</option>
73 <option value="bergerparker">bergerparker - Community diversity the Berger-Parker index</option>
74 <option value="coverage">coverage - Community diversity the sampling coverage </option>
75 <option value="goodscoverage">goodscoverage - Community diversity the Good's estimate of sampling coverage </option>
76 <option value="simpson" selected="true">simpson - Community diversity the Simpson index</option>
77 <option value="invsimpson">invsimpson - Community diversity the Simpson index</option>
78 <option value="qstat">qstat - Community diversity the Q statistic</option>
79 <option value="shannon" selected="true">shannon - Community diversity the Shannon index</option>
80 <option value="npshannon" selected="true">npshannon - Community diversity the non-parametric Shannon index</option>
81 <option value="boneh">boneh - Estimator Boneh's estimator</option>
82 <option value="efron">efron - Estimator Efron's estimator</option>
83 <option value="shen">shen - Estimator Shen's estimator</option>
84 <option value="solow">solow - Estimator Solow's estimator</option>
85 <option value="logseries">logseries - Statistical distribution tests whether observed data follow the log series distribution</option>
86 <option value="geometric">geometric - Statistical distribution tests whether observed data follow the geometric series distribution</option>
87 <option value="bstick">bstick - Statistical distribution tests whether observed data follow the broken stick distribution</option>
88 <option value="nseqs">nseqs - Utility the number of sequences in a sample</option>
89 </param>
90 <param name="abund" type="integer" min="0" value="10" label="abund - ACE Estimator threshold for abundant versus rare OTUs"/>
91 <param name="size" type="integer" optional="true" value="" min="1" label="size - enter the size of the sample, if not set mothur will use the size of your smallest group"/>
92 <conditional name="subsample">
93 <param name="use" type="select" label="produce subsample distance matrices">
94 <option value="no" selected="true">no</option>
95 <option value="yes">yes</option>
96 </param>
97 <when value="yes">
98 <param name="subsample" type="integer" value="" optional="true" label="subsample - size of the sample" help="If using shared input: may be left blank to use the size of your smallest group"/>
99 <param name="iters" type="integer" value="0" optional="true" label="iters - Number of times to run the subsample"/>
100 </when>
101 <when value="no"/>
102 </conditional>
103 <param name="groupmode" type="boolean" truevalue="true" falsevalue="false" checked="true" label="groupmode - Collate shared summary results in one file" help="If false, create a summary file per group."/>
104 </inputs>
105 <outputs>
106 <data name="logfile" format="txt" label="${tool.name} on ${on_string}: logfile"/>
107 <data name="summary" format="tabular" label="${tool.name} on ${on_string}: summary">
108 <filter>groupmode</filter>
109 </data>
110 <collection name="summaryfiles" type="list" label="${tool.name} on ${on_string}: summaries per group">
111 <filter>otu.extension == 'mothur.shared' and not groupmode</filter>
112 <discover_datasets pattern=".*?\.(?P&lt;designation&gt;.*)\.summary" format="tabular"/>
113 </collection>
114 <data name="subsample_summary" format="tabular" label="${tool.name} on ${on_string}: ave-std.summary">
115 <filter>subsample['use'] and not (otu.extension == 'mothur.shared' and not groupmode)</filter>
116 </data>
117 </outputs>
118 <tests>
119 <test><!-- test with shared and default params -->
120 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
121 <output name="summary" md5="eaf5304b383c3c5764193ac7f49589db" ftype="tabular"/>
122 <expand macro="logfile-test"/>
123 </test>
124 <test><!-- test with label select and all calculators -->
125 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
126 <param name="label" value="0.05,0.22,0.32"/>
127 <param name="calc" value="ace,bootstrap,chao,jack,sobs,simpsoneven,shannoneven,heip,smithwilson,bergerparker,coverage,goodscoverage,simpson,invsimpson,qstat,shannon,npshannon,boneh,efron,shen,solow,logseries,geometric,bstick,nseqs"/>
128 <output name="summary" md5="06039951e867e7d397db08aeb668f94f" ftype="tabular"/>
129 <expand macro="logfile-test"/>
130 </test>
131 <test><!-- test with shared and not groupmode -->
132 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
133 <param name="groupmode" value="false"/>
134 <output_collection name="summaryfiles" count="2">
135 <element name="forest" md5="96e2c1213f25d6c342ba87ab3d2de6bf" ftype="tabular"/>
136 </output_collection>
137 <expand macro="logfile-test"/>
138 </test>
139 <test><!-- test with rabund and subsample -->
140 <param name="otu" value="amazon.an.rabund" ftype="mothur.rabund"/>
141 <param name="use" value="yes"/>
142 <param name="subsample" value="10"/>
143 <param name="iters" value="42"/>
144 <output name="summary" ftype="tabular">
145 <assert_contents>
146 <has_text text="shannon"/>
147 <has_text text="unique"/>
148 <has_text text="0.05"/>
149 </assert_contents>
150 </output>
151 <output name="subsample_summary" ftype="tabular">
152 <assert_contents>
153 <has_text text="shannon"/>
154 <has_text text="unique"/>
155 <has_text text="0.05"/>
156 </assert_contents>
157 </output>
158 <expand macro="logfile-test"/>
159 </test>
160 </tests>
161 <help>
162 <![CDATA[
163
164 @MOTHUR_OVERVIEW@
165
166 **Command Documenation**
167
168 The summary.single_ command produce a summary file that has the calculator value for each line in the OTU data and for all possible comparisons between the different groups in the group_ file. This can be useful if you aren't interested in generating collector's or rarefaction curves for your multi-sample data analysis. It would be worth your while, however, to look at the collector's curves for the calculators you are interested in to determine how sensitive the values are to sampling. If the values are not sensitive to sampling, then you can trust the values. Otherwise, you need to keep sampling. For calc parameter choices see: http://www.mothur.org/wiki/Calculators
169
170 .. _group: http://www.mothur.org/wiki/Group_file
171 .. _summary.single: http://www.mothur.org/wiki/Summary.single
172 ]]>
173 </help>
174 <expand macro="citations"/>
175 </tool>