comparison rarefaction.single.xml @ 0:4e53dc9d5e83 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 180a403421967d36f995941b1a4561349d75cfc5
author iuc
date Fri, 24 Jun 2016 16:46:10 -0400
parents
children 3779e72d3525
comparison
equal deleted inserted replaced
-1:000000000000 0:4e53dc9d5e83
1 <tool profile="16.07" id="mothur_rarefaction_single" name="Rarefaction.single" version="@WRAPPER_VERSION@.0">
2 <description>Generate intra-sample rarefaction curves for OTUs</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <expand macro="version_command"/>
8 <command detect_errors="aggressive"><![CDATA[
9 ## create symlinks to input datasets
10 ln -s "$otu" otu.dat &&
11
12 echo 'rarefaction.single(
13 #if $otu.is_of_type("mothur.rabund"):
14 rabund=otu.dat,
15 #elif $otu.is_of_type("mothur.sabund"):
16 sabund=otu.dat,
17 #elif $otu.is_of_type("mothur.shared"):
18 shared=otu.dat,
19 #elif $otu.is_of_type("mothur.list"):
20 list=otu.dat,
21 #end if
22 #if $label:
23 label=${ str($label).replace(",","-") },
24 #end if
25 calc=${ str($calc).replace(",","-") },
26 abund=$abund,
27 iters=$iters,
28 freq=$freq,
29 processors='\${GALAXY_SLOTS:-8}'
30 )'
31 | sed 's/ //g' ## mothur trips over whitespace
32 | mothur
33 ]]></command>
34 <inputs>
35 <param name="otu" type="data" format="mothur.list,mothur.rabund,mothur.sabund,mothur.shared" label="list,rabund,sabund,shared - OTU List"/>
36 <param name="label" type="select" label="label - OTU Labels" multiple="true">
37 <expand macro="labeloptions"/>
38 </param>
39 <param name="calc" type="select" label="calc - Calculators (Uses defaults if none selected)" multiple="true">
40 <option value="ace">ace - Community richness the ACE estimator</option>
41 <option value="bootstrap">bootstrap - Community richness the bootstrap estimator</option>
42 <option value="chao">chao - Community richness the Chao1 estimator</option>
43 <option value="jack">jack - Community richness the jackknife estimator</option>
44 <option value="sobs" selected="true">sobs - Community richness the observed richness</option>
45 <option value="simpsoneven">simpsoneven - Community evenness a Simpson index-based measure of evenness</option>
46 <option value="shannoneven">shannoneven - Community evenness a Shannon index-based measure of evenness</option>
47 <option value="heip">heip - Community evenness Heip's metric of community evenness</option>
48 <option value="smithwilson">smithwilson - Community evenness Smith and Wilson's metric of community evenness</option>
49 <option value="coverage">coverage - Community diversity the sampling coverage </option>
50 <option value="simpson">simpson - Community diversity the Simpson index</option>
51 <option value="invsimpson">invsimpson - Community diversity the Simpson index</option>
52 <option value="shannon">shannon - Community diversity the Shannon index</option>
53 <option value="npshannon">npshannon - Community diversity the non-parametric Shannon index</option>
54 <option value="nseqs">nseqs - Utility the number of sequences in a sample</option>
55 </param>
56 <param name="abund" type="integer" value="10" min="0" label="abund - ACE Estimator threshold for abundant versus rare OTUs"/>
57 <param name="iters" type="integer" value="1000" min="0" label="iters - Number of randomizations"/>
58 <param name="freq" type="float" value="100" min="0" max="100" label="freq - Reporting frequency" help="if between 0 and 1 the fraction of sequences to sample, if greater than one - report every n iterations"/>
59 </inputs>
60 <outputs>
61 <expand macro="logfile-output"/>
62 <collection name="rarefactioncurves" type="list" label="${tool.name} on ${on_string}: rarefaction curves">
63 <discover_datasets pattern=".*?\.groups\.(?P&lt;designation&gt;.*)" format="tabular"/>
64 </collection>
65 </outputs>
66 <tests>
67 <test><!-- test with default values -->
68 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
69 <output_collection name="rarefactioncurves" count="1">
70 <element name="rarefaction" md5="c4c1f1970edf87ea5103e0704130f079" ftype="tabular"/>
71 </output_collection>
72 <expand macro="logfile-test"/>
73 </test>
74 <test><!-- test with all calculators and subset of labels -->
75 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
76 <param name="calc" value="ace,bootstrap,chao,jack,sobs,simpsoneven,shannoneven,heip,smithwilson,coverage,simpson,invsimpson,shannon,npshannon,nseqs"/>
77 <param name="label" value="0.03,0.05,0.36,0.55"/>
78 <output_collection name="rarefactioncurves" count="15">
79 <element name="r_simpson" md5="8d6b7ad9a68c30c882e93b17d343042a" ftype="tabular"/>
80 </output_collection>
81 <expand macro="logfile-test"/>
82 </test>
83 </tests>
84 <help>
85 <![CDATA[
86
87 @MOTHUR_OVERVIEW@
88
89 **Command Documenation**
90
91 The rarefaction.single_ command generates intra-sample rarefaction curves using a re-sampling without replacement approach. Rarefaction curves provide a way of comparing the richness observed in different samples. For calc parameter choices see: http://www.mothur.org/wiki/Calculators
92
93 .. _rarefaction.single: http://www.mothur.org/wiki/Rarefaction.single
94 ]]>
95 </help>
96 <expand macro="citations"/>
97 </tool>