Mercurial > repos > iuc > mothur_count_groups
comparison count.groups.xml @ 0:6f454356bfc7 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:44:34 -0400 |
parents | |
children | e9f0381ec8e8 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6f454356bfc7 |
---|---|
1 <tool profile="16.07" id="mothur_count_groups" name="Count.groups" version="@WRAPPER_VERSION@.0"> | |
2 <description>counts the number of sequences represented by a specific group or set of 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 "$group" group.dat && | |
14 #if $groupnames.source == "accnos": | |
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=$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> | |
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"/> | |
48 <conditional name="groupnames"> | |
49 <param name="source" type="select" label="Filter group names"> | |
50 <option value="none">Report on All Groups</option> | |
51 <option value="groups">A List of Group Names</option> | |
52 <option value="accnos">A History Group Name Accnos Dataset</option> | |
53 </param> | |
54 <when value="none"/> | |
55 <when value="groups"> | |
56 <param name="groups" type="select" label="groups - Pick groups to include" multiple="true"> | |
57 <help>All groups displayed if none are selected.</help> | |
58 <options> | |
59 <filter type="data_meta" ref="group" key="groups"/> | |
60 </options> | |
61 </param> | |
62 </when> | |
63 <when value="accnos"> | |
64 <param name="accnos" type="data" format="mothur.accnos" optional="true" label="accnos - Group Names from your history"/> | |
65 </when> | |
66 </conditional> | |
67 </inputs> | |
68 <outputs> | |
69 <expand macro="logfile-output"/> | |
70 <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 </outputs> | |
73 <tests> | |
74 <test> | |
75 <param name="group" value="amazon.an.shared" ftype="mothur.shared"/> | |
76 <param name="groups" value="forest,pasture"/> | |
77 <output name="summary" md5="58508af98ed02e00a707f0f7812c2359"/> | |
78 <output name="grp_count" md5="34ea2b8be163cf6c9c68d624d92fc73d"/> | |
79 <expand macro="logfile-test"/> | |
80 </test> | |
81 </tests> | |
82 <help> | |
83 <![CDATA[ | |
84 | |
85 @MOTHUR_OVERVIEW@ | |
86 | |
87 **Command Documentation** | |
88 | |
89 The count.groups_ command counts sequences from a specific group or set of groups from a group_ or shared_ file. | |
90 | |
91 .. _shared: https://www.mothur.org/wiki/Shared_file | |
92 .. _group: https://www.mothur.org/wiki/Group_file | |
93 .. _count.groups: https://www.mothur.org/wiki/Count.groups | |
94 ]]> | |
95 </help> | |
96 <expand macro="citations"/> | |
97 </tool> |