Mercurial > repos > bgruening > motus
comparison motus_profiler.xml @ 0:d20f3b9a59a2 draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/mOTUs commit 36fa40d4507065b7240c0a98815a079aba589e25
author | bgruening |
---|---|
date | Fri, 06 Sep 2024 15:00:49 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d20f3b9a59a2 |
---|---|
1 <tool id="motus_profiler" name="mOTUs_profiler" version="@TOOL_VERSION@+galaxy0" profile="21.05"> | |
2 <description>performs taxonomic profiling of metagenomics and metatrancriptomics samples</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="biotools"/> | |
7 <expand macro="requirements"/> | |
8 <command detect_errors="exit_code"><![CDATA[ | |
9 #if $db.db_source == 'cached' | |
10 #set $DATABASE_DIR=$db.db_cached.fields.path | |
11 #else | |
12 #set $database_path = $db.database | |
13 mkdir database_dir && | |
14 tar -xvf '$database_path' -C database_dir/ && | |
15 #set $DATABASE_DIR = 'database_dir/db_mOTU' ##the actual DB folder in the archive called db_mOTU | |
16 #end if | |
17 echo "Database Directory:" $DATABASE_DIR && | |
18 | |
19 motus profile | |
20 -t \${GALAXY_SLOTS:-8} | |
21 -n '$sample_name' | |
22 -db '$DATABASE_DIR' | |
23 #if $inputs.input_type.selector == 'reads' | |
24 #if $inputs.input_type.reads_type.selector == 'paired' | |
25 -f '${inputs.input_type.reads_type.forward_reads}' | |
26 -r '${inputs.input_type.reads_type.reverse_reads}' | |
27 #elif $inputs.input_type.reads_type.selector == 'single' | |
28 -s '${inputs.input_type.reads_type.unpaired_reads}' | |
29 #elif $input_type.selector == 'SAM_BAM_input' | |
30 -i '${inputs.input_type.SAM_BAM_input}' | |
31 #elif $input_type.selector == 'mgc_read_count' | |
32 -m '${inputs.input_type.mgc_read_count}' | |
33 #end if | |
34 #end if | |
35 #if $algorithm_advanced_options.advanced_options.customize_algorithm_options == 'customize' | |
36 -g $algorithm_advanced_options.advanced_options.marker_genes_cutoff | |
37 -l $algorithm_advanced_options.advanced_options.minimum_alignment_len | |
38 -v $algorithm_advanced_options.advanced_options.verbosity_level_selection | |
39 -y $algorithm_advanced_options.advanced_options.read_count_type_selection | |
40 #end if | |
41 | |
42 #if $biom_format | |
43 -o '$output_biom' | |
44 $biom_format | |
45 #elif $ref_motus | |
46 -o '$output_ref' | |
47 $ref_motus | |
48 #elif $full_species_name | |
49 -o '$output_species' | |
50 $full_species_name | |
51 #elif $result_as_counts | |
52 -o '$output_counts' | |
53 $result_as_counts | |
54 #elif $ncbi_taxonomy_ids | |
55 -o '$output_ncbi' | |
56 $ncbi_taxonomy_ids | |
57 #elif $full_rank_taxonomy | |
58 -o '$output_fullrank' | |
59 $full_rank_taxonomy | |
60 #elif $all_taxonomic_level | |
61 -o '$output_alltaxonomy' | |
62 $all_taxonomic_level | |
63 | |
64 #elif $cami_format_option.cami_options == 'yes' | |
65 -o '$output_cami' | |
66 -C $cami_format_option.cami_format | |
67 #elif $taxonomic_level_option.taxonomic_option == 'yes' | |
68 -o '$output_taxonomic' | |
69 -k $taxonomic_level_option.taxonomic_level | |
70 #else | |
71 -o '$output_motus' | |
72 #end if | |
73 #if $save_bam | |
74 -I '$output_bam' | |
75 #end if | |
76 #if $save_mgc | |
77 -M '$output_mgc' | |
78 #end if | |
79 | |
80 ]]></command> | |
81 <inputs> | |
82 <section name="inputs" title="Inputs" expanded="true"> | |
83 <conditional name="input_type"> | |
84 <param name="selector" type="select" label="Input file(s)"> | |
85 <option value="reads" selected="True">fastq,fastq.gz file(s)</option> | |
86 <option value="SAM_BAM_input">SAM/BAM input file(s) generated by motus map_tax</option> | |
87 <option value="mgc_read_count">mgc_read_count file(s) generated by motus cal-mgc</option> | |
88 </param> | |
89 <when value="reads"> | |
90 <conditional name="reads_type"> | |
91 <param name="selector" type="select" format="fastq,fastq.gz" label="Choose input file(s)"> | |
92 <option value="paired">Paired-end</option> | |
93 <option value="single" selected="true">Single</option> | |
94 </param> | |
95 <when value="paired"> | |
96 <param name="forward_reads" type="data" format="fastq,fastq.gz" label="Forward reads" help="-f Input file(s) for reads in forward orientation, fastq(.gz)-formatted"/> | |
97 <param name="reverse_reads" type="data" format="fastq,fastq.gz" label="Reverse reads" help="-r Input file(s) for reads in reverse orientation, fastq(.gz)-formatted"/> | |
98 </when> | |
99 <when value="single"> | |
100 <param name="unpaired_reads" type="data" format="fastq,fastq.gz" label="Single reads" help="-s input file(s) for single reads, fastq(.gz)-formatted"/> | |
101 </when> | |
102 </conditional> | |
103 </when> | |
104 <when value="SAM_BAM_input"> | |
105 <param name="SAM_BAM_input" type="data" format="sam,bam" label="motus map_tax SAM or BAM file" help="-i SAM or BAM input file(s) generated by motus map_tax"/> | |
106 </when> | |
107 <when value="mgc_read_count"> | |
108 <param name="mgc_count" type="data" format="mgc" label="mgc read count file)(s)" help="-m mgc reads count file generated by motus calc_mgc"/> | |
109 </when> | |
110 </conditional> | |
111 <param name="sample_name" type="text" label="Sample name" help="sample name can contain letters and/or numbers" default_value="unnamed sample"/> | |
112 <conditional name="db"> | |
113 <param name="db_source" type="select" label="mOTUs Database"> | |
114 <option value="cached" selected="True">Use a pre-installed database</option> | |
115 <option value="history">Use a database from history</option> | |
116 </param> | |
117 <when value="cached"> | |
118 <param name="db_cached" type="select" label="A pre-installed mOTUs databese" help="no pre-installed mOTUs databases are avalable yet"> | |
119 <options from_data_table="motus_db_versioned"> | |
120 <filter type="sort_by" column="1"/> | |
121 <validator type="no_options" message="No compatible motus database is available"/> | |
122 </options> | |
123 </param> | |
124 </when> | |
125 <when value="history"> | |
126 <param name="database" type="data" format="tar" label="Database from history" help="Custom database or other version of mOTUs database from link: https://zenodo.org/records/5140350"/> | |
127 </when> | |
128 </conditional> | |
129 </section> | |
130 <param argument="ref_motus" type="boolean" label="only species with reference genomes (ref-mOTUs)" truevalue="-e" falsevalue="" checked="false"/> | |
131 <param argument="full_species_name" type="boolean" label="print the full name of the species" truevalue="-u" falsevalue="" checked="false"/> | |
132 <param argument="result_as_counts" type="boolean" label="print result as counts" help="-c print result as counts instead of relative abundances." truevalue="-p" falsevalue="" checked="false"/> | |
133 <param argument="ncbi_taxonomy_ids" type="boolean" label="print NCBI taxonomy identifiers" truevalue="-p" falsevalue="" checked="false"/> | |
134 <param argument="biom_format" type="boolean" label="print result in BIOM format" truevalue="-B" falsevalue="" checked="false"/> | |
135 <param argument="full_rank_taxonomy" type="boolean" label="print the full rank taxonomy" truevalue="-q" falsevalue="" checked="false"/> | |
136 <param argument="all_taxonomic_level" type="boolean" label="print all taxonomic levels together" help="-A print all taxonomic levels together (kingdom to mOTUs, override -k)." truevalue="-A" falsevalue="" checked="false"/> | |
137 <param argument="save_bam" type="boolean" label="BAM output" help="-I save the result of BWA in BAM format (output of motus map_tax)." truevalue="-I" falsevalue="" checked="false"/> | |
138 <param argument="save_mgc" type="boolean" label="Mgc output" help="-M save the mgc reads count(output of motus calc_mgc)." truevalue="-M" falsevalue="" checked="false"/> | |
139 <conditional name="cami_format_option"> | |
140 <param argument="cami_options" type="select" label="Choose cami_format"> | |
141 <option value="yes">yes</option> | |
142 <option value="no" selected="True">no</option> | |
143 </param> | |
144 <when value="yes"> | |
145 <param argument="cami_format" type="select" label="Select value for cami format"> | |
146 <option value="precision">Precision</option> | |
147 <option value="recall">Recall</option> | |
148 <option value="parenthesis">Parenthesis</option> | |
149 </param> | |
150 </when> | |
151 <when value="no"> | |
152 <!-- Define actions or defaults for the default option if necessary --> | |
153 </when> | |
154 </conditional> | |
155 <conditional name="taxonomic_level_option"> | |
156 <param argument="taxonomic_option" type="select" label="taxonomic_level"> | |
157 <option value="yes">yes</option> | |
158 <option value="no" selected="True">no</option> | |
159 </param> | |
160 <when value="yes"> | |
161 <param argument="taxonomic_level" type="select" label="taxonomic_level"> | |
162 <option value="kingdom">kingdom</option> | |
163 <option value="phylum">phylum</option> | |
164 <option value="class">class</option> | |
165 <option value="order">order</option> | |
166 <option value="family">family</option> | |
167 <option value="genus">genus</option> | |
168 <option value="mOTU" selected="True">default mOTU</option> | |
169 </param> | |
170 </when> | |
171 <when value="no"> | |
172 <!-- Define actions or defaults for the default option if necessary --> | |
173 </when> | |
174 </conditional> | |
175 <section name="algorithm_advanced_options" title="algorithm" expanded="true"> | |
176 <conditional name="advanced_options"> | |
177 <param argument="customize_algorithm_options" type="select" label="Advanced algorithm options"> | |
178 <option value="default_options" selected="True">No, Use param defaults</option> | |
179 <option value="customize">Yes, See full parameter list</option> | |
180 </param> | |
181 <when value="customize"> | |
182 <param argument="marker_genes_cutoff" type="select" label="Select number of marker genes cutoff" help="-g Select number of marker genes cutoff: 1=higher recall, 6=higher precision"> | |
183 <option value="1">higher recall</option> | |
184 <option value="2">option 2</option> | |
185 <option value="3" selected="True">default option</option> | |
186 <option value="4">option 4</option> | |
187 <option value="5">option 5</option> | |
188 <option value="6">higher precision</option> | |
189 </param> | |
190 <param argument="minimum_alignment_len" type="integer" value="75" optional="true" label="Minimum Alignment Length (bp)" help="Specify the desired minimum alignment length in base pairs. Default value is 75bp."/> | |
191 <param argument="verbosity_level_selection" type="select" label="verbosity level" help="-v verbosity level: 1=error, 2=warning, 3=message, 4+=debugging"> | |
192 <option value="1">error</option> | |
193 <option value="2">warning</option> | |
194 <option value="3" selected="True">message default</option> | |
195 <option value="4">debugging</option> | |
196 </param> | |
197 <param argument="read_count_type_selection" type="select" label="slect tyepe of read counts" help="-y type of read counts Values: [base.coverage, insert.raw_counts, insert.scaled_counts]"> | |
198 <option value="base.coverage">base.coverage</option> | |
199 <option value="insert.raw_counts">insert.raw_counts</option> | |
200 <option value="insert.scaled_counts" selected="True">insert.scaled_counts default_value</option> | |
201 </param> | |
202 </when> | |
203 <when value="default_options"> | |
204 <!-- Define actions or defaults for the default option if necessary --> | |
205 </when> | |
206 </conditional> | |
207 </section> | |
208 </inputs> | |
209 <outputs> | |
210 <data name="output_motus" format="txt" label="${tool.name} on ${on_string}: default Output"> | |
211 <filter>not biom_format and not ref_motus</filter> | |
212 </data> | |
213 <data name="output_biom" format="biom1" label="${tool.name} on ${on_string}: BIOM Output"> | |
214 <filter>biom_format</filter> | |
215 </data> | |
216 <data name="output_ref" format="txt" label="${tool.name} on ${on_string}: ref_motus Output"> | |
217 <filter>ref_motus</filter> | |
218 </data> | |
219 <data name="output_species" format="txt" label="${tool.name} on ${on_string}: species Output"> | |
220 <filter>full_species_name</filter> | |
221 </data> | |
222 <data name="output_counts" format="txt" label="${tool.name} on ${on_string}: count Output"> | |
223 <filter>result_as_counts</filter> | |
224 </data> | |
225 <data name="output_ncbi" format="txt" label="${tool.name} on ${on_string}: ncbi taxonomy Output"> | |
226 <filter>ncbi_taxonomy_ids</filter> | |
227 </data> | |
228 <data name="output_fullrank" format="txt" label="${tool.name} on ${on_string}: full rank taxonomy Output"> | |
229 <filter>full_rank_taxonomy</filter> | |
230 </data> | |
231 <data name="output_alltaxonomy" format="txt" label="${tool.name} on ${on_string}: all taxonomic level Output"> | |
232 <filter>all_taxonomic_level</filter> | |
233 </data> | |
234 <data name="output_bam" format="bam_no_index" label="${tool.name} on ${on_string}: BAM Output"> | |
235 <filter>save_bam</filter> | |
236 </data> | |
237 <data name="output_mgc" format="txt" label="${tool.name} on ${on_string}: mgc Output"> | |
238 <filter>save_mgc</filter> | |
239 </data> | |
240 <data name="output_cami" format="txt" label="${tool.name} on ${on_string}: cami Output"> | |
241 <filter>cami_format_option['cami_options']=="yes"</filter> | |
242 </data> | |
243 <data name="output_taxonomic" format="txt" label="${tool.name} on ${on_string}: taxonomic Output"> | |
244 <filter>taxonomic_level_option['taxonomic_option']=="yes"</filter> | |
245 </data> | |
246 </outputs> | |
247 <tests> | |
248 <test expect_num_outputs="2"> | |
249 <param name="biom_format" value="false"/> | |
250 <param name="ref_motus" value="false"/> | |
251 <param name="full_species_name" value="false"/> | |
252 <param name="result_as_counts" value="false"/> | |
253 <param name="ncbi_taxonomy_ids" value="false"/> | |
254 <param name="full_rank_taxonomy" value="false"/> | |
255 <param name="all_taxonomic_level" value="false"/> | |
256 <param name="cami_format_option|cami_options" value="no"/> | |
257 <param name="taxonomic_level_option|taxonomic_option" value="no"/> | |
258 <param name="save_bam" value="false"/> | |
259 <param name="save_mgc" value="true"/> | |
260 | |
261 <section name="inputs"> | |
262 <conditional name="input_type"> | |
263 <param name="selector" value="reads"/> | |
264 <conditional name="reads_type"> | |
265 <param name="selector" value="single"/> | |
266 <param name="unpaired_reads" ftype="fastq.gz" value="test1_single.fastq"/> | |
267 </conditional> | |
268 </conditional> | |
269 <conditional name="db"> | |
270 <param name="db_source" value="history"/> | |
271 <param name="database" location="https://zenodo.org/record/7778108/files/db_mOTU_v3.1.0.tar.gz"/> | |
272 </conditional> | |
273 </section> | |
274 <output name="output_motus" ftype="txt"> | |
275 <assert_contents> | |
276 <has_text_matching expression=".*#consensus_taxonomy.*"/> | |
277 <has_n_lines n="34344" delta="5"/> | |
278 <has_size value="2300000" delta="100000"/> | |
279 </assert_contents> | |
280 </output> | |
281 <output name="output_mgc" ftype="txt"> | |
282 <assert_contents> | |
283 <has_text_matching expression=".*# map_tax*"/> | |
284 <has_n_lines n="82" delta="5"/> | |
285 </assert_contents> | |
286 </output> | |
287 </test> | |
288 </tests> | |
289 <help><![CDATA[ | |
290 What it does | |
291 ============ | |
292 | |
293 The mOTUs profiler is a tool designed for taxonomic profiling of metagenomic and metatranscriptomic data. | |
294 It allows for the identification and quantification of microbial community composition directly from sequencing reads. | |
295 mOTUs utilizes a database of marker genes identified across a wide range of microbial taxa, enabling the detection of known and unknown microorganisms in your sample data. | |
296 | |
297 Additional Resources | |
298 ==================== | |
299 | |
300 For a more comprehensive understanding of mOTUs and detailed usage instructions, please visit the mOTUs GitHub repository: | |
301 | |
302 mOTUs GitHub Repository: [https://github.com/motu-tool/mOTUs] | |
303 | |
304 | |
305 ]]></help> | |
306 <expand macro="citations"/> | |
307 </tool> |