Mercurial > repos > iuc > mothur_classify_seqs
comparison classify.seqs.xml @ 3:5b53b77232dc draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 3418f23b9768f5aafb86488f5ec1cb97530d4fb3
author | iuc |
---|---|
date | Tue, 20 Mar 2018 22:14:35 -0400 |
parents | cc9c7b550c29 |
children | 65b370206748 |
comparison
equal
deleted
inserted
replaced
2:cc9c7b550c29 | 3:5b53b77232dc |
---|---|
5 </macros> | 5 </macros> |
6 <expand macro="requirements"/> | 6 <expand macro="requirements"/> |
7 <expand macro="stdio"/> | 7 <expand macro="stdio"/> |
8 <expand macro="version_command"/> | 8 <expand macro="version_command"/> |
9 <command><![CDATA[ | 9 <command><![CDATA[ |
10 @SHELL_OPTIONS@ | 10 @SHELL_OPTIONS@ |
11 | 11 |
12 ## enable mothur to find blast | 12 ## enable mothur to find blast |
13 loc=`which mothur` && ln -s "\${loc%/mothur}"/* . && | 13 ln -s `dirname \$(which mothur)`/* . && |
14 | 14 |
15 ## create symlinks to input datasets | 15 ## create symlinks to input datasets |
16 ln -s "$fasta" fasta.dat && | 16 ln -s '$fasta' fasta.dat && |
17 ln -s "$alignment.template" alignment.template.dat && | 17 ln -s '$alignment.template' alignment.template.dat && |
18 ln -s "$tax.taxonomy" tax.taxonomy.dat && | 18 ln -s '$tax.taxonomy' tax.taxonomy.dat && |
19 ln -s "$count" count.dat && | 19 ln -s '$count' count.dat && |
20 ln -s "$name" name.dat && | 20 ln -s '$name' name.dat && |
21 | 21 |
22 echo 'classify.seqs( | 22 echo 'classify.seqs( |
23 fasta=fasta.dat, | 23 fasta=fasta.dat, |
24 reference=alignment.template.dat, | 24 reference=alignment.template.dat, |
25 taxonomy=tax.taxonomy.dat, | 25 taxonomy=tax.taxonomy.dat, |
26 method=$classify.method, | 26 method=$classify.method, |
27 #if $classify.method == "wang": | 27 #if $classify.method == "wang": |
28 ksize=$classify.ksize, | 28 ksize=$classify.ksize, |
29 iters=$classify.iters, | 29 iters=$classify.iters, |
30 cutoff=$classify.cutoff, | 30 cutoff=$classify.cutoff, |
31 probs=$classify.probs, | 31 probs=$classify.probs, |
32 #elif $classify.method == "knn": | 32 #elif $classify.method == "knn": |
33 numwanted=$classify.numwanted, | 33 numwanted=$classify.numwanted, |
34 search=$classify.search.algorithm, | 34 search=$classify.search.algorithm, |
35 #if $classify.search.algorithm == "kmer": | 35 #if $classify.search.algorithm == "kmer": |
36 ksize=$classify.search.ksize, | 36 ksize=$classify.search.ksize, |
37 #elif $classify.search.algorithm == "blast": | 37 #elif $classify.search.algorithm == "blast": |
38 match=$classify.search.match, | 38 match=$classify.search.match, |
39 mismatch=$classify.search.mismatch, | 39 mismatch=$classify.search.mismatch, |
40 gapopen=$classify.search.gapopen, | 40 gapopen=$classify.search.gapopen, |
41 gapextend=$classify.search.gapextend, | 41 gapextend=$classify.search.gapextend, |
42 #end if | 42 #end if |
43 #end if | 43 #end if |
44 #if $count: | 44 #if $count: |
45 count=count.dat, | 45 count=count.dat, |
46 #end if | 46 #end if |
47 #if $name: | 47 #if $name: |
48 name=name.dat, | 48 name=name.dat, |
49 #end if | 49 #end if |
50 relabund=$relabund, | 50 relabund=$relabund, |
51 processors='\${GALAXY_SLOTS:-8}' | 51 output=$output, |
52 )' | 52 printlevel=$printlevel, |
53 | sed 's/ //g' ## mothur trips over whitespace | 53 processors='\${GALAXY_SLOTS:-8}' |
54 | ./mothur | 54 )' |
55 | tee mothur.out.log | 55 | sed 's/ //g' ## mothur trips over whitespace |
56 | ./mothur | |
57 | tee mothur.out.log | |
56 ]]></command> | 58 ]]></command> |
57 <inputs> | 59 <inputs> |
58 <param name="fasta" type="data" format="fasta" label="fasta - Candiate Sequences"/> | 60 <param argument="fasta" type="data" format="fasta" label="fasta - Candiate Sequences"/> |
59 <conditional name="alignment"> | 61 <conditional name="alignment"> |
60 <param name="source" type="select" label="Select Reference Template from" help=""> | 62 <param name="source" type="select" label="Select Reference Template from"> |
61 <option value="hist">History</option> | 63 <option value="hist">History</option> |
62 <option value="ref">Cached Reference</option> | 64 <option value="ref">Cached Reference</option> |
63 </param> | 65 </param> |
64 <when value="ref"> | 66 <when value="ref"> |
65 <param name="template" type="select" label="reference - Select an alignment database " help=""> | 67 <param argument="reference" name="template" type="select" label="reference - Select an alignment database " help=""> |
66 <options from_data_table="mothur_aligndb"> | 68 <options from_data_table="mothur_aligndb"> |
67 </options> | 69 </options> |
68 </param> | 70 </param> |
69 </when> | 71 </when> |
70 <when value="hist"> | 72 <when value="hist"> |
71 <param name="template" type="data" format="fasta" label="reference - Reference to align with" help=""/> | 73 <param argument="reference" name="template" type="data" format="fasta" label="reference - Reference to align with" help=""/> |
72 </when> | 74 </when> |
73 </conditional> | 75 </conditional> |
74 <conditional name="tax"> | 76 <conditional name="tax"> |
75 <param name="source2" type="select" label="Select Taxonomy from" help=""> | 77 <param name="source2" type="select" label="Select Taxonomy from"> |
76 <option value="ref">Cached Reference</option> | 78 <option value="ref">Cached Reference</option> |
77 <option value="hist">History</option> | 79 <option value="hist">History</option> |
78 </param> | 80 </param> |
79 <when value="ref"> | 81 <when value="ref"> |
80 <param name="taxonomy" type="select" format="mothur.seq.taxonomy" label="taxonomy - Taxonomy reference"> | 82 <param argument="taxonomy" type="select" format="mothur.seq.taxonomy" label="taxonomy - Taxonomy reference"> |
81 <options from_data_table="mothur_taxonomy"/> | 83 <options from_data_table="mothur_taxonomy"/> |
82 </param> | 84 </param> |
83 </when> | 85 </when> |
84 <when value="hist"> | 86 <when value="hist"> |
85 <param name="taxonomy" type="data" format="mothur.seq.taxonomy" label="taxonomy - Taxonomy reference"/> | 87 <param argument="taxonomy" type="data" format="mothur.seq.taxonomy" label="taxonomy - Taxonomy reference"/> |
86 </when> | 88 </when> |
87 </conditional> | 89 </conditional> |
88 <conditional name="classify"> | 90 <conditional name="classify"> |
89 <param name="method" type="select" label="method - Select a classification method" help=""> | 91 <param argument="method" type="select" label="method - Select a classification method"> |
90 <option value="wang" selected="true">Wang (default)</option> | 92 <option value="wang" selected="true">Wang (default)</option> |
91 <option value="knn">K-Nearest Neighbor (knn)</option> | 93 <option value="knn">K-Nearest Neighbor (knn)</option> |
92 </param> | 94 </param> |
93 <when value="wang"> | 95 <when value="wang"> |
94 <param name="ksize" type="integer" value="8" min="1" label="ksize - kmer length"/> | 96 <param argument="ksize" type="integer" value="8" min="1" label="ksize - kmer length"/> |
95 <param name="iters" type="integer" value="100" min="1" label="iters - iterations to do when calculating the bootstrap confidence score"/> | 97 <param argument="iters" type="integer" value="100" min="1" label="iters - iterations to do when calculating the bootstrap confidence score"/> |
96 <param name="cutoff" type="integer" value="0" min="0" label="cutoff - specify a bootstrap confidence threshold for your taxonomy"/> | 98 <param argument="cutoff" type="integer" value="80" min="0" label="cutoff - specify a bootstrap confidence threshold for your taxonomy"/> |
97 <param name="probs" type="boolean" falsevalue="false" truevalue="true" checked="true" label="probs - Show probabilities"/> | 99 <param argument="probs" type="boolean" falsevalue="false" truevalue="true" checked="true" label="probs - Show probabilities"/> |
98 </when> | 100 </when> |
99 <when value="knn"> | 101 <when value="knn"> |
100 <param name="numwanted" type="integer" value="10" label="numwanted - the number of sequence matches you want with the knn method"/> | 102 <param argument="numwanted" type="integer" value="10" label="numwanted - the number of sequence matches you want with the knn method"/> |
101 <conditional name="search"> | 103 <conditional name="search"> |
102 <param name="algorithm" type="select" label="algorithm - " help=""> | 104 <param argument="search" name="algorithm" type="select" label="algorithm - " help=""> |
103 <option value="kmer" selected="true">Kmer (default)</option> | 105 <option value="kmer" selected="true">Kmer (default)</option> |
104 <option value="blast">BLAST</option> | 106 <option value="blast">BLAST</option> |
105 <option value="suffix">Suffix Tree</option> | 107 <option value="suffix">Suffix Tree</option> |
106 <option value="distance">Distance</option> | 108 <option value="distance">Distance</option> |
107 </param> | 109 </param> |
108 <when value="kmer"> | 110 <when value="kmer"> |
109 <param name="ksize" type="integer" value="8" min="1" label="ksize - kmer length"/> | 111 <param argument="ksize" type="integer" value="8" min="1" label="ksize - kmer length"/> |
110 </when> | 112 </when> |
111 <when value="blast"> | 113 <when value="blast"> |
112 <param name="match" type="integer" value="1" label="match - Pairwise alignment reward for a match"/> | 114 <param argument="match" type="integer" value="1" label="match - Pairwise alignment reward for a match"/> |
113 <param name="mismatch" type="integer" value="-1" label="mismatch - Pairwise alignment penalty for a mismatch"/> | 115 <param argument="mismatch" type="integer" value="-1" label="mismatch - Pairwise alignment penalty for a mismatch"/> |
114 <param name="gapopen" type="integer" value="-2" label="gapopen - Pairwise alignment penalty for opening a gap"/> | 116 <param argument="gapopen" type="integer" value="-2" label="gapopen - Pairwise alignment penalty for opening a gap"/> |
115 <param name="gapextend" type="integer" value="-1" label="gapextend - Pairwise alignment penalty for extending a gap"/> | 117 <param argument="gapextend" type="integer" value="-1" label="gapextend - Pairwise alignment penalty for extending a gap"/> |
116 </when> | 118 </when> |
117 <when value="suffix"/> | 119 <when value="suffix"/> |
118 <when value="distance"/> | 120 <when value="distance"/> |
119 </conditional> | 121 </conditional> |
120 </when> | 122 </when> |
121 </conditional> | 123 </conditional> |
122 <param name="count" type="data" format="mothur.count_table" label="count file" optional="true"/> | 124 <param argument="count" type="data" format="mothur.count_table" optional="true" label="count file"/> |
123 <param name="name" type="data" format="mothur.names" label="names file" optional="true"/> | 125 <param argument="name" type="data" format="mothur.names" optional="true" label="names file"/> |
124 <param name="relabund" type="boolean" falsevalue="false" truevalue="true" checked="false" label="relabund - allows you to indicate that you want the summary files to be relative abundances rather than raw abundances. default=f"/> | 126 <param argument="relabund" type="boolean" falsevalue="false" truevalue="true" checked="false" |
127 label="relabund - allows you to indicate that you want the summary files to be relative abundances rather than raw abundances"/> | |
128 <expand macro="param-output"/> | |
129 <expand macro="param-printlevel"/> | |
130 <expand macro="param-savelog"/> | |
125 </inputs> | 131 </inputs> |
126 <outputs> | 132 <outputs> |
127 <expand macro="logfile-output"/> | 133 <expand macro="logfile-output"/> |
128 <data name="taxonomy_out" format="mothur.seq.taxonomy" from_work_dir="fasta*.taxonomy" label="${tool.name} on ${on_string}: taxonomy"/> | 134 <data name="taxonomy_out" format="mothur.seq.taxonomy" from_work_dir="fasta*.taxonomy" label="${tool.name} on ${on_string}: taxonomy"/> |
129 <data name="tax_summary" format="mothur.tax.summary" from_work_dir="fasta*.tax.summary" label="${tool.name} on ${on_string}: tax.summary"/> | 135 <data name="tax_summary" format="mothur.tax.summary" from_work_dir="fasta*.tax.summary" label="${tool.name} on ${on_string}: tax.summary"/> |
134 <param name="fasta" value="amazon.fasta" ftype="fasta"/> | 140 <param name="fasta" value="amazon.fasta" ftype="fasta"/> |
135 <param name="source" value="hist"/> | 141 <param name="source" value="hist"/> |
136 <param name="template" value="abrecovery.fasta" ftype="fasta"/> | 142 <param name="template" value="abrecovery.fasta" ftype="fasta"/> |
137 <param name="source2" value="hist"/> | 143 <param name="source2" value="hist"/> |
138 <param name="taxonomy" value="abrecovery.pds.wang.taxonomy" ftype="mothur.seq.taxonomy"/> | 144 <param name="taxonomy" value="abrecovery.pds.wang.taxonomy" ftype="mothur.seq.taxonomy"/> |
139 <output name="tax_summary" md5="d6f02a20cdf415fb84e394d0dab2314f" ftype="mothur.tax.summary"/> | 145 <output name="tax_summary" ftype="mothur.tax.summary"> |
146 <assert_contents> | |
147 <expand macro="test-taxsummary-format"/> | |
148 <has_text text="Root"/> | |
149 <has_text text="Bacteria"/> | |
150 </assert_contents> | |
151 </output> | |
140 <output name="taxonomy_out" ftype="mothur.seq.taxonomy"> | 152 <output name="taxonomy_out" ftype="mothur.seq.taxonomy"> |
141 <assert_contents> | 153 <assert_contents> |
142 <has_text text="Bacteria"/> | 154 <has_text text="Bacteria"/> |
143 <has_text text="U68589"/> | 155 <has_text text="U68589"/> |
144 </assert_contents> | 156 </assert_contents> |
145 </output> | 157 </output> |
146 <output name="tree_sum" md5="a6ae5cc82edd181082dd23f348b621d9" ftype="tabular"/> | 158 <output name="tree_sum" md5="b44a392a719cf083e5a26d45904926c6" ftype="tabular"> |
159 <assert_contents> | |
160 <has_text text="@WRAPPER_VERSION@"/> | |
161 <has_text text="Root"/> | |
162 <has_text text="Bacteria"/> | |
163 </assert_contents> | |
164 </output> | |
165 <param name="savelog" value="true"/> | |
147 <expand macro="logfile-test"/> | 166 <expand macro="logfile-test"/> |
148 </test> | 167 </test> |
149 <test><!-- test with knn method --> | 168 <test><!-- test with knn method --> |
150 <param name="fasta" value="amazon.fasta" ftype="fasta"/> | 169 <param name="fasta" value="amazon.fasta" ftype="fasta"/> |
151 <param name="source" value="hist"/> | 170 <param name="source" value="hist"/> |
152 <param name="template" value="abrecovery.fasta" ftype="fasta"/> | 171 <param name="template" value="abrecovery.fasta" ftype="fasta"/> |
153 <param name="source2" value="hist"/> | 172 <param name="source2" value="hist"/> |
154 <param name="taxonomy" value="abrecovery.pds.wang.taxonomy" ftype="mothur.seq.taxonomy"/> | 173 <param name="taxonomy" value="abrecovery.pds.wang.taxonomy" ftype="mothur.seq.taxonomy"/> |
155 <param name="method" value="knn"/> | 174 <param name="method" value="knn"/> |
156 <output name="tax_summary" md5="4931072238dcf29344f4a1e3332f3415" ftype="mothur.tax.summary"/> | 175 <output name="tax_summary" ftype="mothur.tax.summary"> |
157 <output name="taxonomy_out" md5="1080c7676c1a1f4f429c7d8df6a62f47" ftype="mothur.seq.taxonomy"/> | 176 <assert_contents> |
177 <expand macro="test-taxsummary-format"/> | |
178 <has_text text="Root"/> | |
179 <has_text text="Bacteria"/> | |
180 </assert_contents> | |
181 </output> | |
182 <output name="taxonomy_out" ftype="mothur.seq.taxonomy"> | |
183 <assert_contents> | |
184 <has_text text="Bacteria"/> | |
185 <has_text text="U68589"/> | |
186 </assert_contents> | |
187 </output> | |
188 <param name="savelog" value="true"/> | |
158 <expand macro="logfile-test"/> | 189 <expand macro="logfile-test"/> |
159 </test> | 190 </test> |
160 <test><!-- test with knn method and blast algorithm --> | 191 <test><!-- test with knn method and blast algorithm --> |
161 <param name="fasta" value="abrecovery.fasta" ftype="fasta"/> | 192 <param name="fasta" value="abrecovery.fasta" ftype="fasta"/> |
162 <param name="source" value="hist"/> | 193 <param name="source" value="hist"/> |
163 <param name="template" value="abrecovery.fasta" ftype="fasta"/> | 194 <param name="template" value="abrecovery.fasta" ftype="fasta"/> |
164 <param name="source2" value="hist"/> | 195 <param name="source2" value="hist"/> |
165 <param name="taxonomy" value="abrecovery.pds.wang.taxonomy" ftype="mothur.seq.taxonomy"/> | 196 <param name="taxonomy" value="abrecovery.pds.wang.taxonomy" ftype="mothur.seq.taxonomy"/> |
166 <param name="method" value="knn"/> | 197 <param name="method" value="knn"/> |
167 <param name="algorithm" value="blast"/> | 198 <param name="algorithm" value="blast"/> |
168 <output name="tax_summary" md5="4d6e1fa3be9abe5f57b0660fe5ae5887" ftype="mothur.tax.summary"/> | 199 <output name="tax_summary" ftype="mothur.tax.summary"> |
169 <output name="taxonomy_out" md5="1296e2a2c8efd58f9c840760bed55042" ftype="mothur.seq.taxonomy"/> | 200 <assert_contents> |
201 <expand macro="test-taxsummary-format"/> | |
202 <has_text text="Root"/> | |
203 <has_text text="Bacteria"/> | |
204 </assert_contents> | |
205 </output> | |
206 <output name="taxonomy_out" ftype="mothur.seq.taxonomy"> | |
207 <assert_contents> | |
208 <has_text text="Bacteria"/> | |
209 <has_text text="AY457914"/> | |
210 </assert_contents> | |
211 </output> | |
212 <param name="savelog" value="true"/> | |
170 <expand macro="logfile-test"/> | 213 <expand macro="logfile-test"/> |
171 </test> | 214 </test> |
172 </tests> | 215 </tests> |
173 <help> | 216 <help><![CDATA[ |
174 <![CDATA[ | |
175 | 217 |
176 @MOTHUR_OVERVIEW@ | 218 @MOTHUR_OVERVIEW@ |
177 | 219 |
178 **Command Documentation** | 220 **Command Documentation** |
179 | 221 |
181 | 223 |
182 .. _classify.seqs: https://www.mothur.org/wiki/Classify.seqs | 224 .. _classify.seqs: https://www.mothur.org/wiki/Classify.seqs |
183 | 225 |
184 | 226 |
185 v1.22.0: Updated for Mothur 1.33. Added count parameter (1.28), added relabund parameter (1.33), bayesian term changed to wang. | 227 v1.22.0: Updated for Mothur 1.33. Added count parameter (1.28), added relabund parameter (1.33), bayesian term changed to wang. |
186 ]]> | 228 |
187 </help> | 229 ]]></help> |
188 <expand macro="citations"/> | 230 <expand macro="citations"/> |
189 </tool> | 231 </tool> |