comparison make.lefse.xml @ 0:d58287720f30 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:38:38 -0400
parents
children 5e4ee2031e00
comparison
equal deleted inserted replaced
-1:000000000000 0:d58287720f30
1 <tool profile="16.07" id="mothur_make_lefse" name="Make.lefse" version="@WRAPPER_VERSION@.0">
2 <description>create a lefse formatted input file from mothur's output files</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 "$design" design.dat &&
15 ln -s "$constaxonomy" constaxonomy.dat &&
16
17 echo 'make.lefse(
18 #if $otu.is_of_type("mothur.relabund"):
19 relabund=otu.dat,
20 #else
21 shared=otu.dat,
22 #end if
23 #if $design:
24 design=design.dat,
25 #end if
26 #if $constaxonomy:
27 constaxonomy=constaxonomy.dat,
28 #end if
29 #if $label:
30 label=${ str($label).replace(",","-") },
31 #end if
32 scale=$scale
33 )'
34 | sed 's/ //g' ## mothur trips over whitespace
35 | mothur
36 | tee mothur.out.log
37 ]]></command>
38 <inputs>
39 <param name="otu" type="data" format="mothur.shared,mothur.relabund" label="shared or relabund - provide a shared or relabund file"/>
40 <param name="label" type="select" optional="true" label="label - OTU Labels" help="If none selected, the first label in your file will be used">
41 <expand macro="labeloptions"/>
42 </param>
43 <param name="constaxonomy" type="data" format="mothur.cons.taxonomy" optional="true" label="constaxonomy - provide a constaxonomy file"/>
44 <param name="design" type="data" format="tabular" optional="true" label="design - provide your design file"/>
45 <param name="scale" type="select" multiple="false" label="scale - select what scale you would like to use to convert your shared file abundances to relative abundances" help="">
46 <option value="totalgroup" selected="true">totalgroup</option>
47 <option value="totalotu">totalotu</option>
48 <option value="averagegroup">averagegroup</option>
49 <option value="averageotu">averageotu</option>
50 </param>
51 </inputs>
52 <outputs>
53 <expand macro="logfile-output"/>
54 <data name="lefse_out" format="tabular" from_work_dir="otu*.lefse" label="${tool.name} on ${on_string}: lefse"/>
55 </outputs>
56 <tests>
57 <test><!-- test with shared file and defaults -->
58 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
59 <output name="lefse_out" md5="295633107cd983be73389e8b92164686" ftype="tabular"/>
60 <expand macro="logfile-test"/>
61 </test>
62 <test><!-- test with relabund file -->
63 <param name="otu" value="amazon.an.relabund" ftype="mothur.relabund"/>
64 <param name="design" value="toymothur.design2" ftype="tabular"/>
65 <param name="label" value="0.18"/>
66 <output name="lefse_out" md5="c1e88702c6db198080c09f3b9c404c63" ftype="tabular"/>
67 <expand macro="logfile-test"/>
68 </test>
69 </tests>
70 <help>
71 <![CDATA[
72
73 @MOTHUR_OVERVIEW@
74
75 **Command Documentation**
76
77 The make.lefse_ allows you to create a lefse formatted input file from mothur's output files.
78
79 .. _make.lefse: https://www.mothur.org/wiki/Make.lefse
80
81 ]]>
82 </help>
83 <citations>
84 <citation type="doi">10.1128/AEM.01541-09</citation>
85 </citations>
86 </tool>