comparison get.otulabels.xml @ 0:ca0c577f910d 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:43:09 -0400
parents
children 29769fb14cd2
comparison
equal deleted inserted replaced
-1:000000000000 0:ca0c577f910d
1 <tool profile="16.07" id="mothur_get_otulabels" name="Get.otulabels" version="@WRAPPER_VERSION@.0">
2 <description>Selects OTU labels</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 "$infile.otu" infile.otu.dat &&
14 ln -s "$accnos" accnos.dat &&
15
16 echo 'get.otulabels(
17 #if $infile.otu.is_of_type("mothur.cons.taxonomy"):
18 constaxonomy=infile.otu.dat,
19 #end if
20 #if $infile.otu.is_of_type("mothur.otu.corr"):
21 otucorr=infile.otu.dat,
22 #end if
23 #if $infile.otu.is_of_type("mothur.axes"):
24 corraxes=infile.otu.dat,
25 #end if
26 #if $infile.otu.is_of_type("mothur.list"):
27 list=infile.otu.dat,
28 #end if
29 #if $infile.otu.is_of_type("mothur.shared"):
30 shared=infile.otu.dat,
31 #end if
32 #if $infile.intype == "in_shared" and $infile.label:
33 label=$infile.label,
34 #end if
35 accnos=accnos.dat
36 )'
37 | sed 's/ //g' ## mothur trips over whitespace
38 | mothur
39 | tee mothur.out.log
40 ]]></command>
41 <inputs>
42 <param name="accnos" type="data" format="mothur.otulabels" label="accnos - otulabels" help="Required"/>
43 <conditional name="infile">
44 <param name="intype" type="select" label="Which type of files will you be supplying?" help="">
45 <option value="in_shared">Shared or List file</option>
46 <option value="in_other">Constaxonomy / OtuCorr / CorrAxes file</option>
47 </param>
48 <when value="in_shared">
49 <param name="otu" type="data" format="mothur.list,mothur.shared" label="shared/list - allows you to input a list file you wish to select OTUs from. "/>
50 <param name="label" type="select" label="label - pick (one) OTU Label" optional="true" help="By default first label in your file is used">
51 <expand macro="labeloptions"/>
52 </param>
53 </when>
54 <when value="in_other">
55 <param name="otu" type="data" format="mothur.cons.taxonomy,mothur.otu.corr,mothur.axes" label="cons.taxonomy/otu.corr/axes file" help="constaxonomy file can be obtained by the running classify.otu tool, otucorr from otu.association tool, and corraxes from corr.axes command"/>
56 </when>
57 </conditional>
58 </inputs>
59 <outputs>
60 <expand macro="logfile-output"/>
61 <data name="pick_out" format_source="otu" from_work_dir="infile.otu*.pick.dat" label="${tool.name} on ${on_string}: pick"/>
62 </outputs>
63 <tests>
64 <test>
65 <param name="intype" value="in_shared"/>
66 <param name="accnos" value="amazon.accnos.otulabels"/>
67 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
68 <param name="label" value="0.22"/>
69 <output name="pick_out" md5="1868b58c69f48fe0ae14113d1fc50b33" ftype="mothur.shared"/>
70 <expand macro="logfile-test"/>
71 </test>
72 <test>
73 <param name="intype" value="in_other"/>
74 <param name="accnos" value="amazon.accnos.otulabels"/>
75 <param name="otu" value="amazon.pcoa.axes" ftype="mothur.axes"/>
76 <output name="pick_out" md5="c5f9d1a80b85cce640f25eb89cb67509" ftype="mothur.axes"/>
77 <expand macro="logfile-test"/>
78 </test>
79 </tests>
80 <help>
81 <![CDATA[
82
83 @MOTHUR_OVERVIEW@
84
85
86 **Command Documentation**
87
88 The get.otulabels_ command selects otu labels from the output from classify.otu_, corr.axes_ and otu.association_. This can be useful especially with subsampled datasets or when groups have been selected.
89
90 .. _classify.otu: https://www.mothur.org/wiki/Classify.otu
91 .. _corr.axes: https://www.mothur.org/wiki/Corr.axes
92 .. _otu.association: https://www.mothur.org/wiki/Otu.association
93
94 v.1.27.0: Added list and shared parameters, updated to Mothur 1.33
95 ]]>
96 </help>
97 <expand macro="citations"/>
98 </tool>