comparison split.groups.xml @ 2:5f34cf40f36d 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:23:21 -0400
parents dba66f208b1a
children ccdcfd746250
comparison
equal deleted inserted replaced
1:addf3c859349 2:5f34cf40f36d
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 "$name" name.dat && 13 ln -s '$name' name.dat &&
14 ln -s "$count" count.dat && 14 ln -s '$count' count.dat &&
15 ln -s "$fasta" fasta.dat && 15 ln -s '$fasta' fasta.dat &&
16 ln -s "$group" group.dat && 16 ln -s '$group' group.dat &&
17 17
18 echo 'split.groups( 18 echo 'split.groups(
19 #if $name: 19 #if $name:
20 name=name.dat, 20 name=name.dat,
21 #end if 21 #end if
22 #if $groups: 22 #if $groups:
23 groups=${ str($groups).replace(",","-") }, 23 groups=${ str($groups).replace(",","-") },
24 #end if 24 #end if
25 #if $count: 25 #if $count:
26 count=count.dat, 26 count=count.dat,
27 #end if 27 #end if
28 fasta=fasta.dat, 28 fasta=fasta.dat,
29 group=group.dat 29 group=group.dat
30 )' 30 )'
31 | sed 's/ //g' ## mothur trips over whitespace 31 | sed 's/ //g' ## mothur trips over whitespace
32 | mothur 32 | mothur
33 | tee mothur.out.log 33 | tee mothur.out.log
34 ]]></command> 34 ]]></command>
35 <inputs> 35 <inputs>
36 <param name="fasta" type="data" format="fasta" label="fasta - Fasta to split by group"/> 36 <param name="fasta" type="data" format="fasta" label="fasta - Fasta to split by group"/>
37 <param name="name" type="data" format="mothur.names" label="name - Names to split by group" optional="true"/> 37 <param name="name" type="data" format="mothur.names" label="name - Names to split by group" optional="true"/>
38 <param name="group" type="data" format="mothur.groups" label="group - Groups"/> 38 <param name="group" type="data" format="mothur.groups" label="group - Groups"/>
40 <options> 40 <options>
41 <filter type="data_meta" ref="group" key="groups"/> 41 <filter type="data_meta" ref="group" key="groups"/>
42 </options> 42 </options>
43 </param> 43 </param>
44 <param name="count" type="data" format="mothur.count_table" optional="true" label="count - a count_table" help="generated by count.seqs"/> 44 <param name="count" type="data" format="mothur.count_table" optional="true" label="count - a count_table" help="generated by count.seqs"/>
45 <expand macro="param-savelog"/>
45 </inputs> 46 </inputs>
46 <outputs> 47 <outputs>
47 <expand macro="logfile-output"/> 48 <expand macro="logfile-output"/>
48 <collection name="groupfastas" type="list" label="${tool.name} on ${on_string}: fasta per group"> 49 <collection name="groupfastas" type="list" label="${tool.name} on ${on_string}: fasta per group">
49 <!-- TODO: format_source on discovered collection elements doesn't seem to work yet, change to format_source="fasta" once it does --> 50 <!-- TODO: format_source on discovered collection elements doesn't seem to work yet, change to format_source="fasta" once it does -->
56 <param name="group" value="amazon.groups" ftype="mothur.groups"/> 57 <param name="group" value="amazon.groups" ftype="mothur.groups"/>
57 <output_collection name="groupfastas" count="2"> 58 <output_collection name="groupfastas" count="2">
58 <element name="pasture" md5="3844bc02ec09acbbf31845ea6ac6632d" ftype="fasta"/> 59 <element name="pasture" md5="3844bc02ec09acbbf31845ea6ac6632d" ftype="fasta"/>
59 <element name="forest" md5="f0e662d1d82e96b4977864925493dbf5" ftype="fasta"/> 60 <element name="forest" md5="f0e662d1d82e96b4977864925493dbf5" ftype="fasta"/>
60 </output_collection> 61 </output_collection>
62 <param name="savelog" value="true"/>
61 <expand macro="logfile-test"/> 63 <expand macro="logfile-test"/>
62 </test> 64 </test>
63 </tests> 65 </tests>
64 <help> 66 <help><![CDATA[
65 <![CDATA[
66 67
67 @MOTHUR_OVERVIEW@ 68 @MOTHUR_OVERVIEW@
68 69
69 **Command Documentation** 70 **Command Documentation**
70 71
71 The split.groups_ command reads a fasta file and group_ file and generates a fasta file for each group in the groupfile. A name_ file can also be split into groups. 72 The split.groups_ command reads a fasta file and group_ file and generates a fasta file for each group in the groupfile. A name_ file can also be split into groups.
72 73
73 .. _group: https://www.mothur.org/wiki/Group_file 74 .. _group: https://www.mothur.org/wiki/Group_file
74 .. _name: https://www.mothur.org/wiki/Name_file 75 .. _name: https://www.mothur.org/wiki/Name_file
75 .. _split.groups: https://www.mothur.org/wiki/Split.groups 76 .. _split.groups: https://www.mothur.org/wiki/Split.groups
76 ]]> 77
77 </help> 78 ]]></help>
78 <expand macro="citations"/> 79 <expand macro="citations"/>
79 </tool> 80 </tool>