comparison unifrac.unweighted.xml @ 0:ca0099aa9a0c 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:31:39 -0400
parents
children c26d24a77e85
comparison
equal deleted inserted replaced
-1:000000000000 0:ca0099aa9a0c
1 <tool profile="16.07" id="mothur_unifrac_unweighted" name="unifrac.unweighted" version="@WRAPPER_VERSION@.0">
2 <description>Describes whether two or more communities have the same structure</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 "$tree" tree.dat &&
14 ln -s "$group" group.dat &&
15 ln -s "$name" name.dat &&
16 ln -s "$count" count.dat &&
17
18 echo 'unifrac.unweighted(
19 tree=tree.dat,
20 #if $group:
21 group=group.dat,
22 #if $groups:
23 groups=${ str($groups).replace(",","-") },
24 #end if
25 #end if
26 #if $name:
27 name=name.dat,
28 #end if
29 iters=$iters,
30 #if $subsampling.use == "yes":
31 #if $subsampling.subsample:
32 subsample=$subsampling.subsample,
33 #else
34 subsample=T,
35 #end if
36 consensus=$subsampling.consensus,
37 #else
38 random=$random,
39 #end if
40 #if $distance:
41 distance=$distance,
42 #end if
43 #if $count:
44 count=count.dat,
45 #end if
46 root=$root,
47 processors='\${GALAXY_SLOTS:-1}'
48 )'
49 | sed 's/ //g' ## mothur trips over whitespace
50 | mothur
51 | tee mothur.out.log
52 ]]></command>
53 <inputs>
54 <param name="tree" type="data" format="mothur.tre" label="tree - Tree"/>
55 <param name="group" type="data" format="mothur.groups" optional="true" label="group - Group file for the tree"/>
56 <param name="groups" type="select" optional="true" multiple="true" label="groups - Select groups for pairwise comparisons">
57 <options>
58 <filter type="data_meta" ref="group" key="groups"/>
59 </options>
60 </param>
61 <param name="name" type="data" format="mothur.names" optional="true" label="name - Names file for the tree"/>
62 <param name="iters" type="integer" value="1000" min="0" label="iters - Number of iterations to try (default 1000)"/>
63 <param name="random" type="boolean" truevalue="true" falsevalue="false" checked="false" label="random - Compare your trees with randomly generated trees" help="unused if subsample=True"/>
64 <conditional name="subsampling">
65 <param name="use" type="select" label="use subsampling of groups?" help="(instead of randomly generated comparisons)">
66 <option value="no" selected="true">no</option>
67 <option value="yes">yes</option>
68 </param>
69 <when value="yes">
70 <param name="subsample" type="integer" value="" min="1" optional="true" label="subsample - (defaults to the size of the smallest group)" help="the size per group of the sample"/>
71 <param name="consensus" type="boolean" truevalue="true" falsevalue="false" checked="false" label="consensus - " help="The consensus parameter allows you to indicate you would like trees built from distance matrices created with the results of the subsampling, as well as a consensus tree built from these trees. Default=F"/>
72 </when>
73 <when value="no"/>
74 </conditional>
75 <param name="distance" type="select" label="distance - Create a distance matrix for your history">
76 <option value="lt" selected="true">Phylip Lower Triangle Matrix</option>
77 <option value="square">Phylip Square Matrix</option>
78 <option value="column">Pairwise Distance Matrix</option>
79 </param>
80 <param name="root" type="boolean" truevalue="true" falsevalue="false" checked="false" label="root - the entire root in your calculations"/>
81 <param name="count" type="data" format="mothur.count_table" optional="true" label="count - a count_table" help="generated by count.seqs"/>
82 </inputs>
83 <outputs>
84 <expand macro="logfile-output"/>
85 <data name="summary" format="tabular" from_work_dir="tree*.uwsummary" label="${tool.name} on ${on_string}: summary"/>
86 <data name="dist" format="mothur.lower.dist" from_work_dir="tree.dat*.dist " label="${tool.name} on ${on_string}: dist">
87 <change_format>
88 <when input="distance" value="square" format="mothur.square.dist"/>
89 <when input="distance" value="column" format="mothur.pair.dist"/>
90 </change_format>
91 </data>
92 <data name="unweighted" format="tabular" from_work_dir="tree*.unweighted" label="${tool.name} on ${on_string}: unweighted">
93 <filter>(random and subsampling['use'] == 'no')</filter>
94 </data>
95 <data name="ave_dist" format="mothur.lower.dist" from_work_dir="tree*.ave.dist" label="${tool.name} on ${on_string}: ave.dist">
96 <filter>subsampling['use'] == 'yes'</filter>
97 <change_format>
98 <when input="distance" value="square" format="mothur.square.dist"/>
99 <when input="distance" value="column" format="mothur.pair.dist"/>
100 </change_format>
101 </data>
102 <data name="std_dist" format="mothur.lower.dist" from_work_dir="tree*.std.dist" label="${tool.name} on ${on_string}: std.dist">
103 <filter>subsampling['use'] == 'yes'</filter>
104 <change_format>
105 <when input="distance" value="square" format="mothur.square.dist"/>
106 <when input="distance" value="column" format="mothur.pair.dist"/>
107 </change_format>
108 </data>
109 <data name="all_tree" format="mothur.tre" from_work_dir="tree*.all.tre" label="${tool.name} on ${on_string}: all.tre">
110 <filter>(subsampling['use'] == 'yes' and subsampling['consensus'])</filter>
111 </data>
112 <data name="cons_tree" format="mothur.tre" from_work_dir="tree*.cons.tre" label="${tool.name} on ${on_string}: cons.tre">
113 <filter>(subsampling['use'] == 'yes' and subsampling['consensus'])</filter>
114 </data>
115 </outputs>
116 <tests>
117 <test><!-- test with defaults -->
118 <param name="tree" value="abrecovery.tre" ftype="mothur.tre"/>
119 <output name="summary" md5="33917fcb36e815ed8924f2ea2729bdc1" ftype="tabular"/>
120 <output name="dist" md5="ce65f7d1d2aeb492d8a5373ca18ed5b0" ftype="mothur.lower.dist"/>
121 <expand macro="logfile-test"/>
122 </test>
123 <test><!-- test with random and no subsampling -->
124 <param name="tree" value="abrecovery.tre" ftype="mothur.tre"/>
125 <param name="random" value="true"/>
126 <output name="summary" md5="6aff35274802c4727cbbbc084b7d2dca" ftype="tabular"/>
127 <output name="unweighted" md5="9f52d2bd4c5de4c459ae314b6ed83b7a" ftype="tabular"/>
128 <expand macro="logfile-test"/>
129 </test>
130 <test><!-- test with group file and group select -->
131 <param name="tree" value="abrecovery.tre" ftype="mothur.tre"/>
132 <param name="group" value="abrecovery.groups" ftype="mothur.groups"/>
133 <param name="groups" value="A,B"/>
134 <param name="distance" value="square"/>
135 <output name="summary" md5="a4a0a2faf75cb15bdb049c368dcbe73a" ftype="tabular"/>
136 <output name="dist" md5="d215db402049db87cac629470301d5c6" ftype="mothur.square.dist"/>
137 <expand macro="logfile-test"/>
138 </test>
139 <test><!-- test with subsample and consensus -->
140 <param name="tree" value="abrecovery.tre" ftype="mothur.tre"/>
141 <param name="group" value="abrecovery.groups" ftype="mothur.groups"/>
142 <param name="groups" value="A,B,C"/>
143 <param name="use" value="yes"/>
144 <param name="subsample" value="10"/>
145 <param name="distance" value="column"/>
146 <param name="consensus" value="true"/>
147 <output name="summary" md5="5f674c72ff8fe7daf152a78daf8acb5f" ftype="tabular"/>
148 <output name="dist" md5="fd64f6cfd978bb2dde394b7ac2eaead3" ftype="mothur.pair.dist"/>
149 <output name="ave_dist" ftype="mothur.pair.dist">
150 <assert_contents>
151 <has_text text="A"/>
152 <has_text text="B"/>
153 <has_text text="C"/>
154 </assert_contents>
155 </output>
156 <output name="std_dist" ftype="mothur.pair.dist">
157 <assert_contents>
158 <has_text text="A"/>
159 <has_text text="B"/>
160 <has_text text="C"/>
161 </assert_contents>
162 </output>
163 <output name="all_tree" ftype="mothur.tre">
164 <assert_contents>
165 <has_text text="A"/>
166 <has_text text="B"/>
167 <has_text text="C"/>
168 </assert_contents>
169 </output>
170 <output name="cons_tree" ftype="mothur.tre">
171 <assert_contents>
172 <has_text text="A"/>
173 <has_text text="B"/>
174 <has_text text="C"/>
175 </assert_contents>
176 </output>
177 <expand macro="logfile-test"/>
178 </test>
179 </tests>
180 <help>
181 <![CDATA[
182
183 @MOTHUR_OVERVIEW@
184
185 **Command Documentation**
186
187 The unifrac.unweighted_ command the unweighted UniFrac algorithm. The unifrac.weighted command implements the weighted version of the command. Both of these methods are available through the UniFrac website. The UniFrac methods are generic tests that describes whether two or more communities have the same structure. The significance of the test statistic can only indicate the probability that the communities have the same structure by chance. The value does not indicate a level of similarity.
188
189 .. _unifrac.unweighted: https://www.mothur.org/wiki/Unifrac.unweighted
190
191 ]]>
192 </help>
193 <expand macro="citations"/>
194 </tool>