comparison tree.shared.xml @ 0:ffeb8cd81f04 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:16:26 -0400
parents
children 506ad7182cfb
comparison
equal deleted inserted replaced
-1:000000000000 0:ffeb8cd81f04
1 <tool profile="16.07" id="mothur_tree_shared" name="Tree.shared" version="@WRAPPER_VERSION@.0">
2 <description>Generate a newick tree for dissimilarity among groups</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 "$input.dist" input_dist.dat &&
14 #if not $input.source == "shared":
15 ln -s "$input.name" input_name.dat &&
16 #end if
17
18 echo 'tree.shared(
19 #if $input.source == "shared":
20 shared=input_dist.dat,
21 #if $input.groups:
22 groups=${ str($input.groups).replace(",","-") },
23 #end if
24 #if $input.label:
25 label=${ str($input.label).replace(",","-") },
26 #end if
27 #if $input.subsampling.use == "yes":
28 #if $input.subsampling.subsample:
29 subsample=$input.subsampling.subsample,
30 #else
31 subsample=T,
32 #end if
33 #if $input.subsampling.iters:
34 iters="$input.subsampling.iters,
35 #end if
36 #end if
37 #elif $input.source == "column":
38 column=input_dist.dat,
39 name=input_name.dat,
40 #elif $input.source == "phylip":
41 phylip=input_dist.dat,
42 #if $input.name:
43 name=input_name.dat,
44 #end if
45 #else
46 count=input_name.dat,
47 #end if
48 #if $calc:
49 calc=${ str($calc).replace(",","-") },
50 #end if
51 processors='\${GALAXY_SLOTS:-8}'
52 )'
53 | sed 's/ //g' ## mothur trips over whitespace
54 | mothur
55 | tee mothur.out.log
56 ]]></command>
57 <inputs>
58 <conditional name="input">
59 <param name="source" type="select" label="Select input format">
60 <option value="shared">OTU Shared</option>
61 <option value="column">Pairwise Column Distance Matrix</option>
62 <option value="phylip">Phylip Distance Matrix</option>
63 <option value="count">Count file</option>
64 </param>
65 <when value="column">
66 <param name="dist" type="data" format="mothur.pair.dist" label="column - Distance Matrix"/>
67 <param name="name" type="data" format="mothur.names" label="name - Sequences Name reference"/>
68 </when>
69 <when value="phylip">
70 <param name="dist" type="data" format="mothur.dist,mothur.lower.dist,mothur.square.dist" label="phylip - Distance Matrix"/>
71 <param name="name" type="data" format="mothur.names" optional="true" label="name - Names"/>
72 </when>
73 <when value="shared">
74 <param name="dist" type="data" format="mothur.shared" label="shared - OTU Shared"/>
75 <param name="label" type="select" label="label - OTU Labels" multiple="true">
76 <options>
77 <filter type="data_meta" ref="dist" key="labels"/>
78 </options>
79 </param>
80 <param name="groups" type="select" label="groups - Groups to consider" multiple="true">
81 <options>
82 <filter type="data_meta" ref="dist" key="groups"/>
83 </options>
84 </param>
85 <conditional name="subsampling">
86 <param name="use" type="select" label="subsample">
87 <option value="no" selected="true">no</option>
88 <option value="yes">yes</option>
89 </param>
90 <when value="yes">
91 <param name="subsample" type="integer" value="" min="0" optional="true" label="subsample (defaults to the size of the smallest group)" help="Should not exceed the number of sequences in any group"/>
92 <param name="iters" type="integer" value="" min="1" optional="true" label="iters - Number of iterations to try (default 1000)"/>
93 </when>
94 <when value="no"/>
95 </conditional>
96 </when>
97 <when value="count">
98 <param name="dist" type="data" format="mothur.pair.dist" label="column - Distance Matrix"/>
99 <param name="name" type="data" format="mothur.count_table" label="count - count_table file"/>
100 </when>
101 </conditional>
102 <param name="calc" type="select" label="calc - Calculators (Uses defaults if none selected)" multiple="true">
103 <expand macro="calc-common"/>
104 <!-- set default option(s) -->
105 <option value="jclass" selected="true">jclass - Community Membership Similarity the traditional Jaccard similarity coefficient based on the observed richness</option>
106 <option value="thetayc" selected="true">thetayc - Community Structure Similarity the Yue &amp; Clayton theta similarity coefficient</option>
107 </param>
108 </inputs>
109 <outputs>
110 <expand macro="logfile-output"/>
111 <data name="tre" format="mothur.tre" from_work_dir="input_dist*.tre" label="${tool.name} on ${on_string}: tre">
112 <filter>input['source'] != 'shared'</filter>
113 </data>
114 <collection name="trefiles" type="list" label="${tool.name} on ${on_string}: tre">
115 <filter>input['source'] == 'shared'</filter>
116 <discover_datasets pattern=".*?\.(?P&lt;designation&gt;.*)\.tre" format="mothur.tre"/>
117 </collection>
118 </outputs>
119 <tests>
120 <test><!-- test with phylip and defaults -->
121 <param name="source" value="phylip"/>
122 <param name="dist" value="env.dist"/>
123 <output name="tre" md5="c74a88ed448aad2d07059eda0b4161e9" ftype="mothur.tre"/>
124 <expand macro="logfile-test"/>
125 </test>
126 <test><!-- test with shared and subsampling -->
127 <param name="source" value="shared"/>
128 <param name="dist" value="amazon.an.shared"/>
129 <param name="use" value="yes"/>
130 <param name="calc" value="jclass"/>
131 <output_collection name="trefiles" count="108">
132 <element name="jclass.0.32.all" md5="b8adfa6e41397b3815768f987836d102" ftype="mothur.tre"/>
133 </output_collection>
134 <expand macro="logfile-test"/>
135 </test>
136 <test><!-- test with shared and label and group select and all calculators -->
137 <param name="source" value="shared"/>
138 <param name="dist" value="amazon.an.shared"/>
139 <param name="label" value="0.05,0.22,0.32"/>
140 <param name="groups" value="forest,pasture"/>
141 <param name="calc" value="sharedsobs,sharedchao,sharedace,anderberg,jclass,jest,kulczynski,kulczynskicody,kstest,lennon,ochiai,sorclass,sorest,whittaker,hamming,memchi2,memchord,memeuclidean,mempearson,braycurtis,jabund,morisitahorn,sorabund,thetan,thetayc,canberra,gower,hellinger,manhattan,odum,soergel,spearman,speciesprofile,structchi2,structchord,structeuclidean,structkulczynski,structpearson,sharednseqs,sharedobserved"/>
142 <output_collection name="trefiles" count="117">
143 <element name="canberra.0.32" md5="477b061d738d24a7476dd4c90d9666cf" ftype="mothur.tre"/>
144 </output_collection>
145 <expand macro="logfile-test"/>
146 </test>
147 <test><!-- test with column and name file -->
148 <param name="source" value="column"/>
149 <param name="dist" value="amazon.pair.dist"/>
150 <param name="name" value="amazon1.names"/>
151 <output name="tre" md5="33cc8cb433f123e49b33b998186b74ed" ftype="mothur.tre"/>
152 <expand macro="logfile-test"/>
153 </test>
154 </tests>
155 <help>
156 <![CDATA[
157
158 @MOTHUR_OVERVIEW@
159
160 **Command Documentation**
161
162 The tree.shared_ command will generate a newick-formatted tree file that describes the dissimilarity (1-similarity) among multiple groups. For calc parameter choices see: https://www.mothur.org/wiki/Calculators
163
164 .. _tree.shared: https://www.mothur.org/wiki/Tree.shared
165
166 ]]>
167 </help>
168 <expand macro="citations"/>
169 </tool>