Mercurial > repos > iuc > maaslin2
comparison maaslin2.xml @ 0:c629e6de3c49 draft
"planemo upload for repository https://github.com/biobakery/Maaslin2 commit a0d2ac51212781be1ba2ecd02f0388f6f01cba28"
author | iuc |
---|---|
date | Fri, 05 Nov 2021 11:24:33 +0000 |
parents | |
children | ef2cace85809 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c629e6de3c49 |
---|---|
1 <tool id="maaslin2" name="MaAsLin 2" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
2 <description>Microbiome Multivariable Association with Linear Models</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="edam_ontology"/> | |
7 <expand macro="requirements"/> | |
8 <command detect_errors="exit_code"><![CDATA[ | |
9 ln -s '$input_data' 'input_data.tsv' | |
10 && | |
11 ln -s '$input_metadata' 'input_metadata.tsv' | |
12 && | |
13 Maaslin2.R | |
14 #if $additional_options.min_abundance | |
15 --min_abundance '$additional_options.min_abundance' | |
16 #end if | |
17 #if $additional_options.min_prevalence | |
18 --min_prevalence '$additional_options.min_prevalence' | |
19 #end if | |
20 #if $additional_options.max_significance | |
21 --max_significance '$additional_options.max_significance' | |
22 #end if | |
23 #if $additional_options.normalization | |
24 --normalization '$additional_options.normalization' | |
25 #end if | |
26 #if $additional_options.transform | |
27 --transform '$additional_options.transform' | |
28 #end if | |
29 #if $additional_options.analysis_method | |
30 --analysis_method '$additional_options.analysis_method' | |
31 #end if | |
32 #if $random_effects | |
33 --random_effects '$random_effects' | |
34 #end if | |
35 #if $fixed_effects | |
36 --fixed_effects '$fixed_effects' | |
37 #end if | |
38 #if $additional_options.correction | |
39 --correction '$additional_options.correction' | |
40 #end if | |
41 $additional_options.standardize | |
42 $output.plot_heatmap | |
43 #if $output.heatmap_first_n | |
44 --heatmap_first_n '$output.heatmap_first_n' | |
45 #end if | |
46 $output.plot_scatter | |
47 --cores \${GALAXY_SLOTS:-4} | |
48 'input_data.tsv' | |
49 'input_metadata.tsv' | |
50 'outputFolder' | |
51 && | |
52 cd outputFolder && mkdir -p figures/ && cp *.pdf figures | |
53 ]]></command> | |
54 <inputs> | |
55 <param name="input_data" type="data" format="tabular" label="Data (or features) file"/> | |
56 <param name="input_metadata" type="data" format="tabular" label="Metadata file"/> | |
57 <param argument="--fixed_effects" type="select" multiple="true" optional="true" label="Interactions: Fixed effects" help="The fixed effects for the model, comma-delimited for multiple effects"> | |
58 <option value="diagnosis" selected="true">diagnosis</option> | |
59 <option value="dysbiosisnonIBD" selected="true">dysbiosisnonIBD</option> | |
60 <option value="dysbiosisUC" selected="true">dysbiosisUC</option> | |
61 <option value="dysbiosisCD" selected="true">dysbiosisCD</option> | |
62 <option value="antibiotics" selected="true">antibiotics</option> | |
63 <option value="age" selected="true">age</option> | |
64 </param> | |
65 <param argument="--random_effects" type="text" multiple="true" optional="true" label="Random effects" help="The random effects for the model, comma-delimited for multiple effects"/> | |
66 <section name="additional_options" title="Additional Options" expanded="true"> | |
67 <param argument="--min_abundance" type="float" value="0.0" optional="true" label="Minimum abundance" help="The minimum abundance for each feature"/> | |
68 <param argument="--min_prevalence" type="float" value="0.1" optional="true" label="Minimum prevalence" help="The minimum percent of samples for which a feature is detected at minimum abundance"/> | |
69 <param argument="--max_significance" type="float" value="0.25" optional="true" label="Maximum significance" help="The q-value threshold for significance"/> | |
70 <param argument="--normalization" type="select" optional="true" label="The normalization method to apply"> | |
71 <option value="TSS" selected="true">TSS</option> | |
72 <option value="CLR">CLR</option> | |
73 <option value="CSS">CSS</option> | |
74 <option value="NONE">NONE</option> | |
75 <option value="TMM">TMM</option> | |
76 </param> | |
77 <param argument="--transform" type="select" optional="true" label="The transform to apply"> | |
78 <option value="LOG" selected="true">LOG</option> | |
79 <option value="LOGIT">LOGIT</option> | |
80 <option value="AST">AST</option> | |
81 <option value="NONE">NONE</option> | |
82 </param> | |
83 <param argument="--analysis_method" type="select" optional="true" label="The analysis method to apply"> | |
84 <option value="LM" selected="true">LM</option> | |
85 <option value="CPLM">CPLM</option> | |
86 <option value="NEGBIN">NEGBIN</option> | |
87 <option value="ZINB">ZINB</option> | |
88 </param> | |
89 <param argument="--correction" type="text" value="BH" optional="true" label="Correction" help="The correction method for computing the q-value"/> | |
90 <param argument="--standardize" type="boolean" truevalue="--standardize TRUE" falsevalue="--standardize FALSE" checked="true" label="Apply z-score so continuous metadata are on the same scale"/> | |
91 </section> | |
92 <section name="output" title="Set Plotting Output" expanded="true"> | |
93 <param argument="--plot_heatmap" type="boolean" truevalue="--plot_heatmap TRUE" falsevalue="--plot_heatmap FALSE" checked="true" label="Generate a heatmap for the significant associations"/> | |
94 <param argument="--heatmap_first_n" type="integer" value="50" optional="true" label="Heatmap plot first N" help="In heatmap, plot top N features with significant associations"/> | |
95 <param argument="--plot_scatter" type="boolean" truevalue="--plot_scatter TRUE" falsevalue="--plot_scatter FALSE" checked="true" label="Generate scatter plots for the significant associations"/> | |
96 <param name="residuals_output" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="true" label="Output data frame with residuals for each feature"/> | |
97 </section> | |
98 </inputs> | |
99 <outputs> | |
100 <data name="all_results" format="tabular" from_work_dir="outputFolder/all_results.tsv" label="All results ordered by increasing q-value"/> | |
101 <data name="significant_results" format="tabular" from_work_dir="outputFolder/significant_results.tsv" label="Q-values smaller than or equal to the threshold"/> | |
102 <data name="residuals" format="rdata" from_work_dir="outputFolder/residuals.rds" label="Data frame with residuals for each feature"> | |
103 <filter>output['residuals_output'] is True</filter> | |
104 </data> | |
105 <data format="pdf" name="headmap" from_work_dir="outputFolder/figures/heatmap.pdf" label="Heatmap of the significant associations" > | |
106 <filter>output['plot_heatmap'] is True</filter> | |
107 </data> | |
108 <collection name="figures_pdfs" type="list" label="Plots" > | |
109 <discover_datasets pattern="(?P<designation>.+)" directory="outputFolder/figures/" format="pdf"/> | |
110 <filter>output['plot_scatter'] is True</filter> | |
111 </collection> | |
112 </outputs> | |
113 <tests> | |
114 <test expect_num_outputs="5"> | |
115 <param name="input_data" value="HMP2_taxonomy.tsv"/> | |
116 <param name="input_metadata" value="HMP2_metadata.tsv"/> | |
117 <param name="random_effects" value="site,subject"/> | |
118 <param name="fixed_effects" value="diagnosis,dysbiosisnonIBD,dysbiosisUC,dysbiosisCD,antibiotics,age"/> | |
119 <section name="additional_options"> | |
120 <param name="min_abundance" value="0.0"/> | |
121 <param name="min_prevalence" value="0.1"/> | |
122 <param name="max_significance" value="0.25"/> | |
123 <param name="normalization" value="NONE"/> | |
124 <param name="transform" value="AST"/> | |
125 <param name="analysis_method" value="LM"/> | |
126 <param name="correction" value="BH"/> | |
127 <param name="standardize" value="false"/> | |
128 </section> | |
129 <section name="output"> | |
130 <param name="plot_heatmap" value="true"/> | |
131 <param name="heatmap_first_n" value="50"/> | |
132 <param name="plot_scatter" value="true"/> | |
133 <param name="residuals_output" value="true"/> | |
134 </section> | |
135 <output name="all_results"> | |
136 <assert_contents> | |
137 <has_text text="feature"/> | |
138 <has_n_lines n="610"/> | |
139 <has_n_columns n="9"/> | |
140 </assert_contents> | |
141 </output> | |
142 <output name="significant_results"> | |
143 <assert_contents> | |
144 <has_text text="dysbiosisCD"/> | |
145 <has_n_lines n="159"/> | |
146 <has_n_columns n="9"/> | |
147 </assert_contents> | |
148 </output> | |
149 <output name="residuals"> | |
150 <assert_contents> | |
151 <has_size value="462746" delta="1000"/> | |
152 </assert_contents> | |
153 </output> | |
154 <output name="headmap"> | |
155 <assert_contents> | |
156 <has_size value="7373" delta="1000" /> | |
157 </assert_contents> | |
158 </output> | |
159 <output_collection name="figures_pdfs" type="list"> | |
160 <element name="heatmap.pdf" ftype="pdf"> | |
161 <assert_contents> | |
162 <has_size value="7373" delta="1000" /> | |
163 </assert_contents> | |
164 </element> | |
165 <element name="age.pdf" ftype="pdf"> | |
166 <assert_contents> | |
167 <has_size value="407859" delta="100000" /> | |
168 </assert_contents> | |
169 </element> | |
170 <element name="antibiotics.pdf" ftype="pdf"> | |
171 <assert_contents> | |
172 <has_size value="1590476" delta="1000000" /> | |
173 </assert_contents> | |
174 </element> | |
175 <element name="diagnosis.pdf" ftype="pdf"> | |
176 <assert_contents> | |
177 <has_size value="1407572" delta="1000000" /> | |
178 </assert_contents> | |
179 </element> | |
180 <element name="dysbiosisCD.pdf" ftype="pdf"> | |
181 <assert_contents> | |
182 <has_size value="2328523" delta="1000000" /> | |
183 </assert_contents> | |
184 </element> | |
185 <element name="dysbiosisnonIBD.pdf" ftype="pdf"> | |
186 <assert_contents> | |
187 <has_size value="1032602" delta="1000000" /> | |
188 </assert_contents> | |
189 </element> | |
190 <element name="dysbiosisUC.pdf" ftype="pdf"> | |
191 <assert_contents> | |
192 <has_size value="1037005" delta="1000000" /> | |
193 </assert_contents> | |
194 </element> | |
195 </output_collection> | |
196 </test> | |
197 <test expect_num_outputs="5"> | |
198 <param name="input_data" value="HMP2_taxonomy.tsv"/> | |
199 <param name="input_metadata" value="HMP2_metadata.tsv"/> | |
200 <param name="fixed_effects" value="diagnosis,dysbiosisnonIBD"/> | |
201 <section name="additional_options"> | |
202 <param name="min_abundance" value="0.0"/> | |
203 <param name="min_prevalence" value="0.1"/> | |
204 <param name="max_significance" value="0.25"/> | |
205 <param name="normalization" value="NONE"/> | |
206 <param name="transform" value="AST"/> | |
207 <param name="analysis_method" value="LM"/> | |
208 <param name="correction" value="BH"/> | |
209 <param name="standardize" value="false"/> | |
210 </section> | |
211 <section name="output"> | |
212 <param name="plot_heatmap" value="true"/> | |
213 <param name="heatmap_first_n" value="50"/> | |
214 <param name="plot_scatter" value="true"/> | |
215 <param name="residuals_output" value="true"/> | |
216 </section> | |
217 <output name="all_results"> | |
218 <assert_contents> | |
219 <has_text text="feature"/> | |
220 <has_n_lines n="262"/> | |
221 <has_n_columns n="9"/> | |
222 </assert_contents> | |
223 </output> | |
224 <output name="significant_results"> | |
225 <assert_contents> | |
226 <has_text text="diagnosis"/> | |
227 <has_n_lines n="175"/> | |
228 <has_n_columns n="9"/> | |
229 </assert_contents> | |
230 </output> | |
231 <output name="residuals"> | |
232 <assert_contents> | |
233 <has_size value="367224" delta="1000"/> | |
234 </assert_contents> | |
235 </output> | |
236 <output_collection name="figures_pdfs" type="list"> | |
237 <element name="diagnosis.pdf" ftype="pdf"> | |
238 <assert_contents> | |
239 <has_size value="6234127" delta="1000000" /> | |
240 </assert_contents> | |
241 </element> | |
242 </output_collection> | |
243 </test> | |
244 <test expect_num_outputs="5"> | |
245 <param name="input_data" value="HMP2_taxonomy.tsv"/> | |
246 <param name="input_metadata" value="HMP2_metadata.tsv"/> | |
247 <param name="fixed_effects" value="diagnosis,dysbiosisnonIBD"/> | |
248 <section name="additional_options"> | |
249 <param name="min_abundance" value="0.0001"/> | |
250 <param name="min_prevalence" value="0.1"/> | |
251 <param name="max_significance" value="0.25"/> | |
252 <param name="normalization" value="NONE"/> | |
253 <param name="transform" value="AST"/> | |
254 <param name="analysis_method" value="LM"/> | |
255 <param name="correction" value="BH"/> | |
256 <param name="standardize" value="false"/> | |
257 </section> | |
258 <section name="output"> | |
259 <param name="plot_heatmap" value="true"/> | |
260 <param name="heatmap_first_n" value="50"/> | |
261 <param name="plot_scatter" value="true"/> | |
262 <param name="residuals_output" value="true"/> | |
263 </section> | |
264 <output name="all_results"> | |
265 <assert_contents> | |
266 <has_text text="feature"/> | |
267 <has_n_lines n="250"/> | |
268 <has_n_columns n="9"/> | |
269 </assert_contents> | |
270 </output> | |
271 <output name="significant_results"> | |
272 <assert_contents> | |
273 <has_text text="diagnosis"/> | |
274 <has_n_lines n="172"/> | |
275 <has_n_columns n="9"/> | |
276 </assert_contents> | |
277 </output> | |
278 <output name="residuals"> | |
279 <assert_contents> | |
280 <has_size value="359943" delta="1000"/> | |
281 </assert_contents> | |
282 </output> | |
283 <output name="headmap"> | |
284 <assert_contents> | |
285 <has_size value="6554" delta="1000" /> | |
286 </assert_contents> | |
287 </output> | |
288 <output_collection name="figures_pdfs" type="list"> | |
289 <element name="heatmap.pdf" ftype="pdf"> | |
290 <assert_contents> | |
291 <has_size value="6554" delta="1000" /> | |
292 </assert_contents> | |
293 </element> | |
294 <element name="diagnosis.pdf" ftype="pdf"> | |
295 <assert_contents> | |
296 <has_size value="6061545" delta="1000000" /> | |
297 </assert_contents> | |
298 </element> | |
299 <element name="dysbiosisnonIBD.pdf" ftype="pdf"> | |
300 <assert_contents> | |
301 <has_size value="2599373" delta="1000000" /> | |
302 </assert_contents> | |
303 </element> | |
304 </output_collection> | |
305 </test> | |
306 </tests> | |
307 <help><![CDATA[ | |
308 @HELP_HEADER@ | |
309 MaAsLin 2 | |
310 ========= | |
311 MaAsLin2 is the next generation of MaAsLin (Microbiome Multivariable Association with Linear Models). | |
312 | |
313 Input | |
314 ===== | |
315 MaAsLin2 requires two input files: | |
316 | |
317 - Data (or features) tabular file | |
318 - This file is tab-delimited. | |
319 - Formatted with features as columns and samples as rows. | |
320 - The transpose of this format is also okay. | |
321 - Possible features in this file include taxonomy or genes. | |
322 - Metadata tabular file | |
323 - This file is tab-delimited. | |
324 - Formatted with features as columns and samples as rows. | |
325 - The transpose of this format is also okay. | |
326 - Possible metadata in this file include gender or age. | |
327 | |
328 The data file can contain samples not included in the metadata file (along with the reverse case). For both cases, those samples not included in both files will be removed from the analysis. Also the samples do not need to be in the same order in the two files. | |
329 | |
330 Output | |
331 ====== | |
332 1- Data output files | |
333 - All results ordered by increasing q-value (tabular file) | |
334 - Full list of associations that pass MaAsLin2's significance threshold, ordered by increasing q-values | |
335 - This includes the same data as the data.frame returned. | |
336 - This file contains all results ordered by increasing q-value. | |
337 - The first columns are the metadata and feature names. | |
338 - The next two columns are the value and coefficient from the model. | |
339 - The next column is the standard deviation from the model. | |
340 - The N column is the total number of data points. | |
341 - The N.not.zero column is the total of non-zero data points. | |
342 - The pvalue from the calculation is the second to last column. | |
343 - The qvalue is computed with p.adjust with the correction method. | |
344 - Q-values smaller than or equal to the threshold (tabular file) | |
345 - This file is a subset of the results in the first file. | |
346 - It only includes associations with q-values <= to the threshold. | |
347 - Data frame with residuals for each feature (R data file) | |
348 - This file contains a data frame with residuals for each feature. | |
349 2- Visualization output files | |
350 - Heatmap of the significant associations (PDF file) | |
351 - This file contains a heatmap of the significant associations. | |
352 - A plot for every significant association found (PDF file(s)) | |
353 - A plot is generated for each significant association. | |
354 - Scatter plots are used for continuous metadata. | |
355 - Box plots are for categorical data. | |
356 - Data points plotted are after normalization, filtering, and transform. | |
357 | |
358 ]]></help> | |
359 <citations> | |
360 <citation type="doi">10.1101/2021.01.20.427420</citation> | |
361 </citations> | |
362 </tool> |