comparison summary.single.xml @ 0:b0c7113ee948 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:53:46 -0400
parents
children 9ea778acd657
comparison
equal deleted inserted replaced
-1:000000000000 0:b0c7113ee948
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="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
15 echo 'summary.single(
16 #if $otu.is_of_type("mothur.rabund"):
17 rabund=otu.dat
18 #elif $otu.is_of_type("mothur.sabund"):
19 sabund=otu.dat
20 #elif $otu.is_of_type("mothur.list"):
21 list=otu.dat
22 #elif $otu.is_of_type("mothur.shared"):
23 shared=otu.dat,
24 groupmode=$groupmode
25 #end if
26 #if $label:
27 ,label=${ str($label).replace(",","-") }
28 #end if
29 #if $calc:
30 ,calc=${ str($calc).replace(",","-") }
31 #end if
32 #if $abund:
33 ,abund=$abund
34 #end if
35 #if $size:
36 ,size=$size
37 #end if
38 #if $subsample.use == 'yes':
39 #if $subsample.subsample:
40 ,subsample=$subsample.subsample
41 #else
42 ,subsample=T
43 #end if
44 #if $subsample.iters:
45 ,iters=$subsample.iters
46 #end if
47 #end if
48 )'
49 | sed 's/ //g' ## mothur trips over whitespace
50 | mothur
51 | tee mothur.out.log
52 #if $subsample.use == 'yes' and not ($otu.extension == 'mothur.shared' and not $groupmode):
53 && mv otu.ave-std.summary otu.ave-std
54 #end if
55 ]]></command>
56 <inputs>
57 <param name="otu" type="data" format="mothur.list,mothur.rabund,mothur.sabund,mothur.shared" label="list,rabund,sabund,shared - OTU List"/>
58 <param name="label" type="select" label="label - OTU Labels" multiple="true">
59 <expand macro="labeloptions"/>
60 </param>
61 <param name="calc" type="select" label="calc - Calculators (Uses defaults if none selected)" multiple="true">
62 <option value="ace" selected="true">ace - Community richness the ACE estimator</option>
63 <option value="bootstrap">bootstrap - Community richness the bootstrap estimator</option>
64 <option value="chao" selected="true">chao - Community richness the Chao1 estimator</option>
65 <option value="jack" selected="true">jack - Community richness the jackknife estimator</option>
66 <option value="sobs" selected="true">sobs - Community richness the observed richness</option>
67 <option value="simpsoneven">simpsoneven - Community evenness a Simpson index-based measure of evenness</option>
68 <option value="shannoneven">shannoneven - Community evenness a Shannon index-based measure of evenness</option>
69 <option value="heip">heip - Community evenness Heip's metric of community evenness</option>
70 <option value="smithwilson">smithwilson - Community evenness Smith and Wilson's metric of community evenness</option>
71 <option value="bergerparker">bergerparker - Community diversity the Berger-Parker index</option>
72 <option value="coverage">coverage - Community diversity the sampling coverage </option>
73 <option value="goodscoverage">goodscoverage - Community diversity the Good's estimate of sampling coverage </option>
74 <option value="simpson" selected="true">simpson - Community diversity the Simpson index</option>
75 <option value="invsimpson">invsimpson - Community diversity the Simpson index</option>
76 <option value="qstat">qstat - Community diversity the Q statistic</option>
77 <option value="shannon" selected="true">shannon - Community diversity the Shannon index</option>
78 <option value="npshannon" selected="true">npshannon - Community diversity the non-parametric Shannon index</option>
79 <option value="boneh">boneh - Estimator Boneh's estimator</option>
80 <option value="efron">efron - Estimator Efron's estimator</option>
81 <option value="shen">shen - Estimator Shen's estimator</option>
82 <option value="solow">solow - Estimator Solow's estimator</option>
83 <option value="logseries">logseries - Statistical distribution tests whether observed data follow the log series distribution</option>
84 <option value="geometric">geometric - Statistical distribution tests whether observed data follow the geometric series distribution</option>
85 <option value="bstick">bstick - Statistical distribution tests whether observed data follow the broken stick distribution</option>
86 <option value="nseqs">nseqs - Utility the number of sequences in a sample</option>
87 </param>
88 <param name="abund" type="integer" min="0" value="10" label="abund - ACE Estimator threshold for abundant versus rare OTUs"/>
89 <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"/>
90 <conditional name="subsample">
91 <param name="use" type="select" label="produce subsample distance matrices">
92 <option value="no" selected="true">no</option>
93 <option value="yes">yes</option>
94 </param>
95 <when value="yes">
96 <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"/>
97 <param name="iters" type="integer" value="0" optional="true" label="iters - Number of times to run the subsample"/>
98 </when>
99 <when value="no"/>
100 </conditional>
101 <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."/>
102 </inputs>
103 <outputs>
104 <expand macro="logfile-output"/>
105 <data name="subsample_summary" format="tabular" from_work_dir="otu.ave-std" label="${tool.name} on ${on_string}: ave-std.summary">
106 <filter>subsample['use'] and not (otu.extension == 'mothur.shared' and not groupmode)</filter>
107 </data>
108 <data name="summary" format="tabular" from_work_dir="otu*.summary" label="${tool.name} on ${on_string}: summary">
109 <filter>groupmode</filter>
110 </data>
111 <collection name="summaryfiles" type="list" label="${tool.name} on ${on_string}: summaries per group">
112 <filter>otu.extension == 'mothur.shared' and not groupmode</filter>
113 <discover_datasets pattern=".*?\.(?P&lt;designation&gt;.*)\.summary" format="tabular"/>
114 </collection>
115 </outputs>
116 <tests>
117 <test><!-- test with shared and default params -->
118 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
119 <output name="summary" md5="eaf5304b383c3c5764193ac7f49589db" ftype="tabular"/>
120 <expand macro="logfile-test"/>
121 </test>
122 <test><!-- test with label select and all calculators -->
123 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
124 <param name="label" value="0.05,0.22,0.32"/>
125 <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"/>
126 <output name="summary" md5="06039951e867e7d397db08aeb668f94f" ftype="tabular"/>
127 <expand macro="logfile-test"/>
128 </test>
129 <test><!-- test with shared and not groupmode -->
130 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
131 <param name="groupmode" value="false"/>
132 <output_collection name="summaryfiles" count="2">
133 <element name="forest" md5="96e2c1213f25d6c342ba87ab3d2de6bf" ftype="tabular"/>
134 </output_collection>
135 <expand macro="logfile-test"/>
136 </test>
137 <test><!-- test with rabund and subsample -->
138 <param name="otu" value="amazon.an.rabund" ftype="mothur.rabund"/>
139 <param name="use" value="yes"/>
140 <param name="subsample" value="10"/>
141 <param name="iters" value="42"/>
142 <output name="summary" ftype="tabular">
143 <assert_contents>
144 <has_text text="shannon"/>
145 <has_text text="unique"/>
146 <has_text text="0.05"/>
147 </assert_contents>
148 </output>
149 <output name="subsample_summary" ftype="tabular">
150 <assert_contents>
151 <has_text text="shannon"/>
152 <has_text text="unique"/>
153 <has_text text="0.05"/>
154 </assert_contents>
155 </output>
156 <expand macro="logfile-test"/>
157 </test>
158 </tests>
159 <help>
160 <![CDATA[
161
162 @MOTHUR_OVERVIEW@
163
164 **Command Documentation**
165
166 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: https://www.mothur.org/wiki/Calculators
167
168 .. _group: https://www.mothur.org/wiki/Group_file
169 .. _summary.single: https://www.mothur.org/wiki/Summary.single
170 ]]>
171 </help>
172 <expand macro="citations"/>
173 </tool>