comparison get.groups.xml @ 3:378f8103cf1b draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 4648c7574a78601e03ae6a318cbcd5b492a8a9f4
author iuc
date Wed, 14 Feb 2018 10:12:03 -0500
parents 1e6a7d59a872
children 3d777453d29d
comparison
equal deleted inserted replaced
2:40561fdfb8d3 3:378f8103cf1b
5 </macros> 5 </macros>
6 <expand macro="requirements"/> 6 <expand macro="requirements"/>
7 <expand macro="stdio"/> 7 <expand macro="stdio"/>
8 <expand macro="version_command"/> 8 <expand macro="version_command"/>
9 <command><![CDATA[ 9 <command><![CDATA[
10 @SHELL_OPTIONS@ 10 @SHELL_OPTIONS@
11 11
12 ## create symlinks to input datasets 12 ## create symlinks to input datasets
13 ln -s "$group_in" group_in.dat && 13 ln -s '$group_in' group_in.dat &&
14 ln -s "$fasta_in" fasta_in.dat && 14 ln -s '$fasta_in' fasta_in.dat &&
15 ln -s "$name_in" name_in.dat && 15 ln -s '$name_in' name_in.dat &&
16 ln -s "$list_in" list_in.dat && 16 ln -s '$list_in' list_in.dat &&
17 ln -s "$shared_in" shared_in.dat && 17 ln -s '$shared_in' shared_in.dat &&
18 ln -s "$taxonomy_in" taxonomy_in.dat && 18 ln -s '$taxonomy_in' taxonomy_in.dat &&
19 ln -s "$design_in" design_in.dat && 19 ln -s '$design_in' design_in.dat &&
20 #if $groupnames.source == 'accnos': 20 ln -s '$column_in' column_in.dat &&
21 ln -s "$groupnames.accnos" groupnames.accnos.dat && 21 ln -s '$phylip_in' phylip_in.dat &&
22 #if $groupnames.source == 'accnos':
23 ln -s '$groupnames.accnos' groupnames.accnos.dat &&
24 #end if
25
26 echo 'get.groups(
27 #if $group_in.is_of_type("mothur.groups"):
28 group=group_in.dat
29 #else
30 count=group_in.dat
31 #end if
32 #if $groupnames.source == 'groups':
33 #if $groupnames.groups:
34 ,groups=${ str($groupnames.groups).replace(",","-") }
22 #end if 35 #end if
23 36 #else
24 echo 'get.groups( 37 ,accnos=groupnames.accnos.dat
25 #if $group_in.is_of_type("mothur.groups"): 38 #end if
26 group=group_in.dat 39 #if $fasta_in:
27 #else 40 ,fasta=fasta_in.dat
28 count=group_in.dat 41 #end if
29 #end if 42 #if $name_in:
30 #if $groupnames.source == 'groups': 43 ,name=name_in.dat
31 #if $groupnames.groups: 44 #end if
32 ,groups=${ str($groupnames.groups).replace(",","-") } 45 #if $list_in:
33 #end if 46 ,list=list_in.dat
34 #else 47 #end if
35 ,accnos=groupnames.accnos.dat 48 #if $shared_in:
36 #end if 49 ,shared=shared_in.dat
37 #if $fasta_in: 50 #end if
38 ,fasta=fasta_in.dat 51 #if $taxonomy_in:
39 #end if 52 ,taxonomy=taxonomy_in.dat
40 #if $name_in: 53 #end if
41 ,name=name_in.dat 54 #if $design_in:
42 #end if 55 ,design=design_in.dat
43 #if $list_in: 56 #end if
44 ,list=list_in.dat 57 #if $column_in:
45 #end if 58 ,column=column_in.dat
46 #if $shared_in: 59 #end if
47 ,shared=shared_in.dat 60 #if $phylip_in:
48 #end if 61 ,phylip=phylip_in.dat
49 #if $taxonomy_in: 62 #end if
50 ,taxonomy=taxonomy_in.dat 63 )'
51 #end if 64 | sed 's/ //g' ## mothur trips over whitespace
52 #if $design_in: 65 | mothur
53 ,design=design_in.dat 66 | tee mothur.out.log
54 #end if
55 )'
56 | sed 's/ //g' ## mothur trips over whitespace
57 | mothur
58 | tee mothur.out.log
59 ]]></command> 67 ]]></command>
60 <inputs> 68 <inputs>
61 <param name="group_in" type="data" format="mothur.groups,mothur.count_table" label="group or count_table file"/> 69 <param name="group_in" type="data" format="mothur.groups,mothur.count_table" optional="true" label="group or count_table file"/>
70 <param name="shared_in" type="data" format="mothur.shared" optional="true" label="shared - OTU Shared"/>
71 <param name="design_in" type="data" format="tabular" optional="true" label="design - assign groups to new grouping"
72 help="design has 2 columns: group(col 1) and grouping(col 2) (separated by a TAB character) use make.design"/>
62 <conditional name="groupnames"> 73 <conditional name="groupnames">
63 <param name="source" type="select" label="Select Group Names from"> 74 <param name="source" type="select" label="Select Group Names from">
64 <option value="groups">A List of Group Names</option> 75 <option value="groups">A List of Group Names</option>
65 <option value="accnos">A History Group Name Accnos Dataset</option> 76 <option value="accnos">A History Group Name Accnos Dataset</option>
66 </param> 77 </param>
76 </when> 87 </when>
77 </conditional> 88 </conditional>
78 <param name="fasta_in" type="data" format="fasta,mothur.align" optional="true" label="fasta - Fasta Sequences"/> 89 <param name="fasta_in" type="data" format="fasta,mothur.align" optional="true" label="fasta - Fasta Sequences"/>
79 <param name="name_in" type="data" format="mothur.names" optional="true" label="name - Sequences Name reference"/> 90 <param name="name_in" type="data" format="mothur.names" optional="true" label="name - Sequences Name reference"/>
80 <param name="list_in" type="data" format="mothur.list" optional="true" label="list - OTU List"/> 91 <param name="list_in" type="data" format="mothur.list" optional="true" label="list - OTU List"/>
81 <param name="shared_in" type="data" format="mothur.shared" optional="true" label="shared - OTU Shared"/>
82 <param name="taxonomy_in" type="data" format="mothur.seq.taxonomy" optional="true" label="taxonomy - Taxonomy"/> 92 <param name="taxonomy_in" type="data" format="mothur.seq.taxonomy" optional="true" label="taxonomy - Taxonomy"/>
83 <param name="design_in" type="data" format="tabular" optional="true" label="design - assign groups to new grouping" help="design has 2 columns: group(col 1) and grouping(col 2) (separated by a TAB character) use make.design"/> 93 <param name="phylip_in" type="data" format="mothur.lower.dist,mothur.square.dist" optional="true" label="phylip - Distance Matrix you would like to select distances from"
94 help="must be a phylip-formatted distance matrix"/>
95 <param name="column_in" type="data" format="mothur.pair.dist" optional="true" label="column - Distance Matrix you would like to select distances from"
96 help="must be a column-formatted distance matrix"/>
84 </inputs> 97 </inputs>
85 <outputs> 98 <outputs>
86 <expand macro="logfile-output"/> 99 <expand macro="logfile-output"/>
87 <data name="group_out" format="mothur.groups" from_work_dir="group_in*.pick.*" label="${tool.name} on ${on_string}: pick.groups"> 100 <data name="group_out" format="mothur.groups" from_work_dir="group_in*.pick.*" label="${tool.name} on ${on_string}: pick.groups">
88 <filter>group_in.ext == "mothur.groups"</filter> 101 <filter>group_in.ext == "mothur.groups"</filter>
107 <data name="taxonomy_out" format="mothur.seq.taxonomy" from_work_dir="taxonomy_in*.pick.*" label="${tool.name} on ${on_string}: pick.taxonomy"> 120 <data name="taxonomy_out" format="mothur.seq.taxonomy" from_work_dir="taxonomy_in*.pick.*" label="${tool.name} on ${on_string}: pick.taxonomy">
108 <filter>taxonomy_in</filter> 121 <filter>taxonomy_in</filter>
109 </data> 122 </data>
110 <data name="design_out" format="mothur.design" from_work_dir="design_in*.pick.*" label="${tool.name} on ${on_string}: pick.design"> 123 <data name="design_out" format="mothur.design" from_work_dir="design_in*.pick.*" label="${tool.name} on ${on_string}: pick.design">
111 <filter>design_in</filter> 124 <filter>design_in</filter>
125 </data>
126 <data name="phylip_out" format_source="phylip_in" from_work_dir="phylip_in*.pick.*" label="${tool.name} on ${on_string}: pick.phylip">
127 <filter>phylip_in</filter>
128 </data>
129 <data name="column_out" format="mothur.pair.dist" from_work_dir="column_in*.pick.*" label="${tool.name} on ${on_string}: pick.column">
130 <filter>column_in</filter>
112 </data> 131 </data>
113 </outputs> 132 </outputs>
114 <tests> 133 <tests>
115 <test><!-- test with group file --> 134 <test><!-- test with group file -->
116 <param name="group_in" value="amazon.groups" ftype="mothur.groups"/> 135 <param name="group_in" value="amazon.groups" ftype="mothur.groups"/>
143 <output_collection name="sharedfiles" count="36"> 162 <output_collection name="sharedfiles" count="36">
144 <element name="0.38" md5="3c78742e0a480ca3353f9b591fc9bf36" ftype="mothur.shared"/> 163 <element name="0.38" md5="3c78742e0a480ca3353f9b591fc9bf36" ftype="mothur.shared"/>
145 </output_collection> 164 </output_collection>
146 <expand macro="logfile-test"/> 165 <expand macro="logfile-test"/>
147 </test> 166 </test>
167 <test><!-- test with distance matrix -->
168 <param name="group_in" value="amazon_withgroups.count_table" ftype="mothur.count_table"/>
169 <param name="source" value="accnos"/>
170 <param name="accnos" value="amazon.groupaccnos" ftype="mothur.accnos"/>
171 <param name="column_in" value="amazon.pair.dist" ftype="mothur.pair.dist"/>
172 <param name="phylip_in" value="amazon.dist" ftype="mothur.square.dist"/>
173 <output name="column_out" ftype="mothur.pair.dist">
174 <assert_contents>
175 <expand macro="test-column-format"/>
176 <has_text text="U68589"/>
177 </assert_contents>
178 </output>
179 <output name="phylip_out" ftype="mothur.square.dist">
180 <assert_contents>
181 <expand macro="test-dist-format"/>
182 <has_text text="U68589"/>
183 </assert_contents>
184 </output>
185 <expand macro="logfile-test"/>
186 </test>
148 </tests> 187 </tests>
149 <help> 188 <help><![CDATA[
150 <![CDATA[
151 189
152 @MOTHUR_OVERVIEW@ 190 @MOTHUR_OVERVIEW@
153 191
154 192
155 **Command Documentation** 193 **Command Documentation**
160 .. _group: https://www.mothur.org/wiki/Group_file 198 .. _group: https://www.mothur.org/wiki/Group_file
161 .. _list: https://www.mothur.org/wiki/List_file 199 .. _list: https://www.mothur.org/wiki/List_file
162 .. _taxonomy: https://www.mothur.org/wiki/Taxonomy_outline 200 .. _taxonomy: https://www.mothur.org/wiki/Taxonomy_outline
163 .. _get.groups: https://www.mothur.org/wiki/Get.groups 201 .. _get.groups: https://www.mothur.org/wiki/Get.groups
164 202
165 ]]> 203 ]]></help>
166 </help>
167 <expand macro="citations"/> 204 <expand macro="citations"/>
168 </tool> 205 </tool>