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