comparison hcluster.xml @ 0:8e77c6d5c69c 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:22:47 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:8e77c6d5c69c
1 <tool profile="16.07" id="mothur_hcluster" name="Hcluster" version="@WRAPPER_VERSION@.0">
2 <description>Assign sequences to OTUs (Operational Taxonomic Unit)</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 "$matrix.dist" matrix.dist.dat &&
14 ln -s "$matrix.name" matrix.name.dat &&
15
16 echo 'hcluster(
17 #if $matrix.format == "column":
18 column=matrix.dist.dat,
19 name=matrix.name.dat,
20 #elif $matrix.format == "phylip":
21 phylip=matrix.dist.dat,
22 #if $matrix.name:
23 name=matrix.name.dat,
24 #end if
25 #end if
26 method=$method,
27 #if $cutoff:
28 cutoff=$cutoff,
29 #end if
30 precision=$precision,
31 hard=$hard,
32 sorted=$sorted,
33 showabund=$showabund
34 )'
35 | sed 's/ //g' ## mothur trips over whitespace
36 | mothur
37 | tee mothur.out.log
38 ]]></command>
39 <inputs>
40 <conditional name="matrix">
41 <param name="format" type="select" label="Select a Distance Matrix Format" help="">
42 <option value="column">Pairwise Column Matrix</option>
43 <option value="phylip">Phylip Distance Matrix</option>
44 </param>
45 <when value="column">
46 <param name="dist" type="data" format="mothur.pair.dist" label="column - Distance Matrix"/>
47 <param name="name" type="data" format="mothur.names" label="name - Names"/>
48 </when>
49 <when value="phylip">
50 <param name="dist" type="data" format="mothur.dist,mothur.lower.dist,mothur.square.dist" label="phylip - Distance Matrix"/>
51 <param name="name" type="data" format="mothur.names" optional="true" label="name - Names"/>
52 </when>
53 </conditional>
54 <param name="cutoff" type="float" value="" min="0" optional="true" label="cutoff - Distance Cutoff threshold - ignored if not > 0" help="Ignore pairwise distances larger than this, a common value would be 0.10"/>
55 <param name="hard" type="boolean" checked="true" truevalue="true" falsevalue="false" label="hard - Use hard cutoff instead of rounding"/>
56 <param name="precision" type="select" optional="true" label="precision - Precision for rounding distance values" help="Set higher precision for longer genome scale sequence lengths">
57 <option value="10">.1</option>
58 <option value="100" selected="true">.01</option>
59 <option value="1000">.001</option>
60 <option value="10000">.0001</option>
61 <option value="100000">.00001</option>
62 <option value="1000000">.000001</option>
63 </param>
64 <param name="method" type="select" label="method - Select a Clustering Method" help="">
65 <option value="average" selected="true">Average neighbor</option>
66 <option value="nearest">Nearest neighbor</option>
67 <option value="furthest">Furthest neighbor</option>
68 <option value="weighted">Weighted</option>
69 </param>
70 <param name="sorted" type="boolean" checked="false" truevalue="true" falsevalue="false" label="sorted - The input matrix is already sorted"/>
71 <param name="showabund" type="boolean" checked="true" truevalue="true" falsevalue="false" label="showabund - Verbose ouput"/>
72 </inputs>
73 <outputs>
74 <expand macro="logfile-output"/>
75 <data name="rabund" format="mothur.rabund" from_work_dir="matrix.dist*.rabund" label="${tool.name} on ${on_string}: rabund (Rank Abundance)"/>
76 <data name="sabund" format="mothur.sabund" from_work_dir="matrix.dist*.sabund" label="${tool.name} on ${on_string}: sabund (Species Abundance)"/>
77 <data name="otulist" format="mothur.list" from_work_dir="matrix.dist*.list" label="${tool.name} on ${on_string}: list (OTU List)"/>
78 </outputs>
79 <tests>
80 <test><!-- test with phylip input-->
81 <param name="format" value="phylip"/>
82 <param name="dist" value="98_sq_phylip_amazon.dist"/>
83 <output name="rabund" ftype="mothur.rabund">
84 <assert_contents>
85 <has_line_matching expression="0\.[0-9]+(\t[0-9]+)+"/>
86 </assert_contents>
87 </output>
88 <output name="sabund" ftype="mothur.sabund">
89 <assert_contents>
90 <has_line_matching expression="0\.[0-9]+(\t[0-9]+)+"/>
91 </assert_contents>
92 </output>
93 <output name="otulist" ftype="mothur.list">
94 <assert_contents>
95 <has_text text="unique"/>
96 <has_text text="label"/>
97 <has_text text="numOtus"/>
98 <has_text text="Otu98"/>
99 </assert_contents>
100 </output>
101 <expand macro="logfile-test"/>
102 </test>
103 <test><!-- test with column and name input -->
104 <param name="format" value="column"/>
105 <param name="dist" value="amazon.pair.dist"/>
106 <param name="name" value="amazon.names"/>
107 <output name="rabund" md5="ec88216404729d0f4a0463e50e60c9ad" ftype="mothur.rabund"/>
108 <output name="sabund" md5="f2c714531430b98d8cdfd3497468eec2" ftype="mothur.sabund"/>
109 <output name="otulist" ftype="mothur.list">
110 <assert_contents>
111 <has_text text="unique"/>
112 <has_text text="label"/>
113 <has_text text="numOtus"/>
114 <has_text text="Otu96"/>
115 </assert_contents>
116 </output>
117 <expand macro="logfile-test"/>
118 </test>
119 </tests>
120 <help>
121 <![CDATA[
122
123 @MOTHUR_OVERVIEW@
124
125 **Command Documentation**
126
127 The hcluster_ command assign sequences to OTUs (Operational Taxonomy Unit). The assignment is based on a phylip-formatted_distance_matrix_ or a column-formatted_distance_matrix_ and name_ file. It generates a list_, a sabund_ (Species Abundance), and a rabund_ (Relative Abundance) file.
128
129 .. _phylip-formatted_distance_matrix: https://www.mothur.org/wiki/Phylip-formatted_distance_matrix
130 .. _column-formatted_distance_matrix: https://www.mothur.org/wiki/Column-formatted_distance_matrix
131 .. _name: https://www.mothur.org/wiki/Name_file
132 .. _list: https://www.mothur.org/wiki/List_file
133 .. _rabund: https://www.mothur.org/wiki/Rabund_file
134 .. _sabund: https://www.mothur.org/wiki/Sabund_file
135
136 ]]>
137 </help>
138 <expand macro="citations"/>
139 </tool>