comparison classify.otu.xml @ 0:ddb2e4c51634 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:02:29 -0400
parents
children 1ae93cdb2383
comparison
equal deleted inserted replaced
-1:000000000000 0:ddb2e4c51634
1 <tool profile="16.07" id="mothur_classify_otu" name="Classify.otu" version="@WRAPPER_VERSION@.0">
2 <description>Assign sequences to taxonomy</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 ln -s "$tax.taxonomy" tax.taxonomy.dat &&
15 ln -s "$name" name.dat &&
16 ln -s "$count" count.dat &&
17 ln -s "$group" group.dat &&
18 #if $reftax.source2:
19 ln -s "$reftax.taxonomy" myreftax.taxonomy &&
20 ln -s "$sum" myreftax.tree.sum &&
21 #end if
22
23 echo 'classify.otu(
24 list=otu.dat,
25 taxonomy=tax.taxonomy.dat,
26 #if $name:
27 name=name.dat,
28 #end if
29 #if $count:
30 count=count.dat,
31 #end if
32 #if $reftax.source2:
33 reftaxonomy=myreftax.taxonomy,
34 #end if
35 #if $label:
36 label=${ str($label).replace(",","-") },
37 #end if
38 #if $group:
39 group=group.dat,
40 #end if
41 basis=$basis,
42 probs=$probs,
43 persample=$persample,
44 cutoff=$cutoff
45 )'
46 | sed 's/ //g' ## mothur trips over whitespace
47 | mothur
48 | tee mothur.out.log
49 ]]></command>
50 <inputs>
51 <param name="otu" type="data" format="mothur.list" label="list - OTU List "/>
52 <param name="name" type="data" format="mothur.names" optional="true" label="name - taxonomy sequence names"/>
53 <param name="count" type="data" format="mothur.count_table" optional="true" label="count - used to represent the number of duplicate sequences for a given representative sequence"/>
54 <conditional name="tax">
55 <param name="source" type="select" label="Select Taxonomy from" help="">
56 <option value="hist">History</option>
57 <option value="ref">Cached Reference</option>
58 </param>
59 <when value="ref">
60 <param name="taxonomy" type="select" format="mothur.seq.taxonomy" label="taxonomy - Taxonomy Reference">
61 <options from_data_table="mothur_taxonomy"/>
62 </param>
63 </when>
64 <when value="hist">
65 <param name="taxonomy" type="data" format="mothur.seq.taxonomy" label="taxonomy - Taxonomy Reference"/>
66 </when>
67 </conditional>
68 <conditional name="reftax">
69 <param name="source2" type="select" label="Select Reference Taxonomy used in Classify.seqs from" help="Including the reference taxonomy file used when you classified your sequences keep the rankIDs in the summary file static.">
70 <option value="">Selection is Optional</option>
71 <option value="hist">History</option>
72 <option value="ref">Cached Reference</option>
73 </param>
74 <when value=""/>
75 <when value="ref">
76 <param name="taxonomy" type="select" format="mothur.seq.taxonomy" label="reftaxonomy - Taxonomy Reference used when sequences were classified">
77 <options from_data_table="mothur_taxonomy"/>
78 </param>
79 <param name="sum" type="data" format="tabular" label="tree.sum - summary file produced when sequences were classified" help="run classify.seqs to get this file"/>
80 </when>
81 <when value="hist">
82 <param name="taxonomy" type="data" format="mothur.seq.taxonomy" label="reftaxonomy - Taxonomy Reference used when sequences were classified"/>
83 <param name="sum" type="data" format="tabular" label="tree.sum - summary file produced when sequences were classified" help="run classify.seqs to get this file"/>
84 </when>
85 </conditional>
86 <param name="label" type="select" label="label - OTU Labels" multiple="true">
87 <expand macro="labeloptions"/>
88 </param>
89 <param name="cutoff" type="integer" value="60" min="0" max="100" label="cutoff - Confindence percentage cutoff between 1 and 100"/>
90 <param name="probs" type="boolean" falsevalue="false" truevalue="true" checked="true" label="probs - Show probabilities"/>
91 <param name="basis" type="select" label="basis - Summary file gives numbers of" help="">
92 <option value="otu">OTU</option>
93 <option value="sequence">sequence</option>
94 </param>
95 <param name="group" type="data" format="mothur.groups" optional="true" label="group - Groups for summary file"/>
96 <param name="persample" type="boolean" falsevalue="false" truevalue="true" checked="false" label="persample - allows you to find a consensus taxonomy for each group. default=f"/>
97 </inputs>
98 <outputs>
99 <expand macro="logfile-output"/>
100 <collection name="taxsummaries" type="list" label="${tool.name} on ${on_string}: tax.summary">
101 <discover_datasets pattern=".*?\.(?P&lt;designation&gt;.*)\.cons\.tax\.summary" format="mothur.tax.summary"/>
102 </collection>
103 <collection name="taxonomies" type="list" label="${tool.name} on ${on_string}: taxonomy">
104 <discover_datasets pattern=".*?\.(?P&lt;designation&gt;.*)\.cons\.taxonomy" format="mothur.cons.taxonomy"/>
105 </collection>
106 </outputs>
107 <tests>
108 <test><!-- test with defaults -->
109 <param name="otu" value="amazon.an.list" ftype="mothur.list"/>
110 <param name="source" value="hist"/>
111 <param name="taxonomy" value="abrecovery.pds.wang.taxonomy" ftype="mothur.seq.taxonomy"/>
112 <output_collection name="taxonomies" count="36">
113 <element name="0.18" md5="69a80ebaeb368d4944aa95ce120c6643" ftype="mothur.cons.taxonomy"/>
114 </output_collection>
115 <output_collection name="taxsummaries" count="36">
116 <element name="0.18" md5="bd5613b544a70c5c19f21a3d6602d926" ftype="mothur.tax.summary"/>
117 </output_collection>
118 <expand macro="logfile-test"/>
119 </test>
120 <test><!-- test with reftaxonomy and names file and label select -->
121 <param name="otu" value="amazon.an.list" ftype="mothur.list"/>
122 <param name="name" value="amazon1.names" ftype="mothur.names"/>
123 <param name="source" value="hist"/>
124 <param name="taxonomy" value="abrecovery.pds.wang.taxonomy" ftype="mothur.seq.taxonomy"/>
125 <param name="source2" value="hist"/>
126 <param name="reftaxonomy" value="abrecovery.pds.wang.taxonomy" ftype="mothur.seq.taxonomy"/>
127 <param name="sum" value="abrecovery.pds.wang.tree.sum"/>
128 <param name="label" value="unique,0.05,0.18"/>
129 <output_collection name="taxonomies" count="3">
130 <element name="0.18" md5="69a80ebaeb368d4944aa95ce120c6643" ftype="mothur.cons.taxonomy"/>
131 </output_collection>
132 <output_collection name="taxsummaries" count="3">
133 <element name="0.18" md5="115769aa33dcfd121dd945a40ea11dcb" ftype="mothur.tax.summary"/>
134 </output_collection>
135 <expand macro="logfile-test"/>
136 </test>
137 <test><!-- test with count table -->
138 <param name="otu" value="amazon.an.list" ftype="mothur.list"/>
139 <param name="count" value="amazon1.count_table" ftype="mothur.count_table"/>
140 <param name="source" value="hist"/>
141 <param name="label" value="unique,0.05,0.18"/>
142 <param name="taxonomy" value="abrecovery.pds.wang.taxonomy" ftype="mothur.seq.taxonomy"/>
143 <output_collection name="taxonomies" count="3">
144 <element name="0.18" md5="69a80ebaeb368d4944aa95ce120c6643" ftype="mothur.cons.taxonomy"/>
145 </output_collection>
146 <output_collection name="taxsummaries" count="3">
147 <element name="0.18" md5="bd5613b544a70c5c19f21a3d6602d926" ftype="mothur.tax.summary"/>
148 </output_collection>
149 <expand macro="logfile-test"/>
150 </test>
151 <test><!-- test with group file -->
152 <param name="otu" value="amazon.an.list" ftype="mothur.list"/>
153 <param name="group" value="amazon.groups" ftype="mothur.groups"/>
154 <param name="source" value="hist"/>
155 <param name="label" value="unique,0.05,0.18"/>
156 <param name="taxonomy" value="abrecovery.pds.wang.taxonomy" ftype="mothur.seq.taxonomy"/>
157 <output_collection name="taxonomies" count="3">
158 <element name="0.18" md5="69a80ebaeb368d4944aa95ce120c6643" ftype="mothur.cons.taxonomy"/>
159 </output_collection>
160 <output_collection name="taxsummaries" count="3">
161 <element name="0.18" md5="fe038e7670fbc5d68c1f5bb79d8ef4ac" ftype="mothur.tax.summary"/>
162 </output_collection>
163 <expand macro="logfile-test"/>
164 </test>
165 </tests>
166 <help>
167 <![CDATA[
168
169 @MOTHUR_OVERVIEW@
170
171 **Command Documentation**
172
173 The classify.otu_ command assigns sequences to chosen taxonomy outline.
174
175 The basis parameter allows you indicate what you want the summary file to represent, options are otu and sequence. Default is otu. For example consider the following basis=sequence could give Clostridiales 3 105 16 43 46, where 105 is the total number of sequences whose otu classified to Clostridiales. 16 is the number of sequences in the otus from groupA, 43 is the number of sequences in the otus from groupB, and 46 is the number of sequences in the otus from groupC. Now for basis=otu could give Clostridiales 3 7 6 1 2, where 7 is the number of otus that classified to Clostridiales. 6 is the number of otus containing sequences from groupA, 1 is the number of otus containing sequences from groupB, and 2 is the number of otus containing sequences from groupC.
176
177 .. _classify.otu: https://www.mothur.org/wiki/Classify.otu
178
179 v1.21.0: Updated to use Mothur 1.33. Added count parameter (1.28.0) and persample parameter (1.29.0)
180 ]]>
181 </help>
182 <expand macro="citations"/>
183 </tool>