comparison count.groups.xml @ 2:e9f0381ec8e8 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 3418f23b9768f5aafb86488f5ec1cb97530d4fb3
author iuc
date Tue, 20 Mar 2018 22:21:04 -0400
parents 6f454356bfc7
children dc3826bfc1ed
comparison
equal deleted inserted replaced
1:cd082173c04b 2:e9f0381ec8e8
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" group.dat && 13 ln -s '$group' group.dat &&
14 #if $groupnames.source == "accnos": 14 #if $groupnames.source == "accnos":
15 ln -s "$groupnames.accnos" groupnames.accnos.dat && 15 ln -s '$groupnames.accnos' groupnames.accnos.dat &&
16 #end if
17
18 echo 'count.groups(
19 #if $group.is_of_type("mothur.shared"):
20 shared=group.dat
21 #elif $group.is_of_type("mothur.count_table"):
22 count=group.dat
23 #else:
24 group=group.dat
25 #end if
26 #if $groupnames.source == "groups":
27 #if $groupnames.groups:
28 ,groups=${ str($groupnames.groups).replace(",","-") }
16 #end if 29 #end if
30 #elif $groupnames.source == "accnos":
31 #if $groupnames.accnos:
32 ,accnos=groupnames.accnos.dat
33 #end if
34 #end if
35 )'
36 | sed 's/ //g' ## mothur trips over whitespace
37 | mothur
38 | tee mothur.out.log &&
17 39
18 echo 'count.groups( 40 ## parse relevant tool output from logfile to file
19 #if $group.is_of_type("mothur.shared"): 41 cat mothur.*.logfile
20 shared=group.dat 42 | head -n-7
21 #elif $group.is_of_type("mothur.count_table"): 43 | sed '1,30d'
22 count=group.dat 44 > '$grp_count'
23 #else:
24 group=group.dat
25 #end if
26 #if $groupnames.source == "groups":
27 #if $groupnames.groups:
28 ,groups=$groupnames.groups
29 #end if
30 #elif $groupnames.source == "accnos":
31 #if $groupnames.accnos:
32 ,accnos=groupnames.accnos.dat
33 #end if
34 #end if
35 )'
36 | sed 's/ //g' ## mothur trips over whitespace
37 | mothur
38 | tee mothur.out.log &&
39
40 ## parse relevant tool output from logfile to file
41 cat mothur.*.logfile
42 | head -n-7
43 | sed '1,29d'
44 > "$grp_count"
45 ]]></command> 45 ]]></command>
46 <inputs> 46 <inputs>
47 <param name="group" type="data" format="mothur.groups,mothur.shared,mothur.count_table" label="group, shared, or count_table - Group file for sequence count"/> 47 <param name="group" type="data" format="mothur.groups,mothur.shared,mothur.count_table" label="group, shared, or count_table - Group file for sequence count"/>
48 <conditional name="groupnames"> 48 <conditional name="groupnames">
49 <param name="source" type="select" label="Filter group names"> 49 <param name="source" type="select" label="Filter group names">
62 </when> 62 </when>
63 <when value="accnos"> 63 <when value="accnos">
64 <param name="accnos" type="data" format="mothur.accnos" optional="true" label="accnos - Group Names from your history"/> 64 <param name="accnos" type="data" format="mothur.accnos" optional="true" label="accnos - Group Names from your history"/>
65 </when> 65 </when>
66 </conditional> 66 </conditional>
67 <expand macro="param-savelog"/>
67 </inputs> 68 </inputs>
68 <outputs> 69 <outputs>
69 <expand macro="logfile-output"/> 70 <expand macro="logfile-output"/>
70 <data name="grp_count" format="tabular" label="${tool.name} on ${on_string}: group.count"/> 71 <data name="grp_count" format="tabular" label="${tool.name} on ${on_string}: group.count"/>
71 <data name="summary" format="tabular" from_work_dir="group*.summary" label="${tool.name} on ${on_string}: summary"/> 72 <data name="summary" format="tabular" from_work_dir="group*.summary" label="${tool.name} on ${on_string}: summary"/>
72 </outputs> 73 </outputs>
73 <tests> 74 <tests>
74 <test> 75 <test>
75 <param name="group" value="amazon.an.shared" ftype="mothur.shared"/> 76 <param name="group" value="amazon.an.shared" ftype="mothur.shared"/>
77 <output name="summary" md5="58508af98ed02e00a707f0f7812c2359"/>
78 <output name="grp_count" md5="34ea2b8be163cf6c9c68d624d92fc73d"/>
79 <param name="savelog" value="true"/>
80 <expand macro="logfile-test"/>
81 </test>
82 <test>
83 <param name="group" value="amazon.an.shared" ftype="mothur.shared"/>
84 <param name="source" value="groups"/>
76 <param name="groups" value="forest,pasture"/> 85 <param name="groups" value="forest,pasture"/>
77 <output name="summary" md5="58508af98ed02e00a707f0f7812c2359"/> 86 <output name="summary" md5="58508af98ed02e00a707f0f7812c2359"/>
78 <output name="grp_count" md5="34ea2b8be163cf6c9c68d624d92fc73d"/> 87 <output name="grp_count" md5="34ea2b8be163cf6c9c68d624d92fc73d"/>
88 <param name="savelog" value="true"/>
79 <expand macro="logfile-test"/> 89 <expand macro="logfile-test"/>
80 </test> 90 </test>
81 </tests> 91 </tests>
82 <help> 92 <help><![CDATA[
83 <![CDATA[
84 93
85 @MOTHUR_OVERVIEW@ 94 @MOTHUR_OVERVIEW@
86 95
87 **Command Documentation** 96 **Command Documentation**
88 97
89 The count.groups_ command counts sequences from a specific group or set of groups from a group_ or shared_ file. 98 The count.groups_ command counts sequences from a specific group or set of groups from a group_ or shared_ file.
90 99
91 .. _shared: https://www.mothur.org/wiki/Shared_file 100 .. _shared: https://www.mothur.org/wiki/Shared_file
92 .. _group: https://www.mothur.org/wiki/Group_file 101 .. _group: https://www.mothur.org/wiki/Group_file
93 .. _count.groups: https://www.mothur.org/wiki/Count.groups 102 .. _count.groups: https://www.mothur.org/wiki/Count.groups
94 ]]> 103
95 </help> 104 ]]></help>
96 <expand macro="citations"/> 105 <expand macro="citations"/>
97 </tool> 106 </tool>