comparison get.lineage.xml @ 2:c5034189eb03 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:27:20 -0400
parents f217eb7fad54
children 6fbd83d3a29f
comparison
equal deleted inserted replaced
1:0aea19572961 2:c5034189eb03
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 #import re 12 #import re
13 ## create symlinks to input datasets 13 ## create symlinks to input datasets
14 ln -s "$file.taxonomy" file.taxonomy.dat && 14 ln -s '$file.taxonomy' file.taxonomy.dat &&
15 #if $file.filetype == "useconstaxonomy": 15 #if $file.filetype == "useconstaxonomy":
16 ln -s "$file.shared" file.shared.dat && 16 ln -s '$file.shared' file.shared.dat &&
17 ln -s "$file.list" file.list.dat && 17 ln -s '$file.list' file.list.dat &&
18 #end if
19 ln -s '$fasta_in' fasta_in.dat &&
20 ln -s '$group_in' group_in.dat &&
21 ln -s '$alignreport_in' alignreport_in.dat &&
22 ln -s '$list_in' list_in.dat &&
23 ln -s '$name_in' name_in.dat &&
24 ln -s '$count' count.dat &&
25
26 echo 'get.lineage(
27 #if $file.filetype == "usetaxonomy":
28 taxonomy=file.taxonomy.dat
29 #else
30 constaxonomy=file.taxonomy.dat
31 #if $file.shared:
32 ,shared=file.shared.dat
18 #end if 33 #end if
19 ln -s "$fasta_in" fasta_in.dat && 34 #if $file.list:
20 ln -s "$group_in" group_in.dat && 35 ,list=file.list.dat
21 ln -s "$alignreport_in" alignreport_in.dat && 36 #end if
22 ln -s "$list_in" list_in.dat && 37 #end if
23 ln -s "$name_in" name_in.dat && 38 #if $file.taxons:
24 ln -s "$count" count.dat && 39 #set taxonstring=str($file.taxons).replace(",","-")
25 40 ,taxon='"'$re.sub("(\s|,)+",",",$re.sub("\(\d+\)","", $taxonstring ))'"'
26 echo 'get.lineage( 41 #elif $taxon:
27 #if $file.filetype == "usetaxonomy": 42 ,taxon='"'$re.sub("(\s|,)+",",",$re.sub("\(\d+\)","", $taxon.value )).replace(",","-")'"'
28 taxonomy=file.taxonomy.dat 43 #end if
29 #else 44 #if $fasta_in:
30 constaxonomy=file.taxonomy.dat 45 ,fasta=fasta_in.dat
31 #if $file.shared: 46 #end if
32 ,shared=file.shared.dat 47 #if $group_in:
33 #end if 48 ,group=group_in.dat
34 #if $file.list: 49 #end if
35 ,list=file.list.dat 50 #if $alignreport_in:
36 #end if 51 ,alignreport=alignreport_in.dat
37 #end if 52 #end if
38 #if $file.taxons: 53 #if $list_in:
39 #set taxonstring=str($file.taxons).replace(",","-") 54 ,list=list_in.dat
40 ,taxon='"'$re.sub("(\s|,)+",",",$re.sub("\(\d+\)","", $taxonstring ))'"' 55 #end if
41 #elif $taxon: 56 #if $name_in:
42 ,taxon='"'$re.sub("(\s|,)+",",",$re.sub("\(\d+\)","", $taxon.value )).replace(",","-")'"' 57 ,name=name_in.dat
43 #end if 58 ,dups=$dups
44 #if $fasta_in: 59 #end if
45 ,fasta=fasta_in.dat 60 #if $count:
46 #end if 61 ,count=count.dat
47 #if $group_in: 62 #end if
48 ,group=group_in.dat 63 )'
49 #end if 64 | sed 's/ //g' ## mothur trips over whitespace
50 #if $alignreport_in: 65 | mothur
51 ,alignreport=alignreport_in.dat 66 | tee mothur.out.log
52 #end if
53 #if $list_in:
54 ,list=list_in.dat
55 #end if
56 #if $name_in:
57 ,name=name_in.dat
58 ,dups=$dups
59 #end if
60 #if $count:
61 ,count=count.dat
62 #end if
63 )'
64 | sed 's/ //g' ## mothur trips over whitespace
65 | mothur
66 | tee mothur.out.log
67 ]]></command> 67 ]]></command>
68 <inputs> 68 <inputs>
69 <conditional name="file"> 69 <conditional name="file">
70 <param name="filetype" type="select" label="choose which file is used"> 70 <param name="filetype" type="select" label="choose which file is used">
71 <option value="usetaxonomy" selected="true">taxonomy</option> 71 <option value="usetaxonomy" selected="true">taxonomy</option>
89 </valid> 89 </valid>
90 </sanitizer> 90 </sanitizer>
91 </param> 91 </param>
92 </when> 92 </when>
93 <when value="useconstaxonomy"> 93 <when value="useconstaxonomy">
94 <param name="taxonomy" type="data" format="mothur.cons.taxonomy" label="constaxonomy - Constaxonomy file. Provide either a constaxonomy file or a taxonomy file" help="please make sure your file has no quotation marks in it"/> 94 <param name="taxonomy" type="data" format="mothur.cons.taxonomy" label="constaxonomy - Constaxonomy file. Provide either a constaxonomy file or a taxonomy file"
95 help="please make sure your file has no quotation marks in it"/>
95 <param name="taxons" type="select" size="120" optional="true" multiple="true" label="Browse Taxons from Taxonomy"> 96 <param name="taxons" type="select" size="120" optional="true" multiple="true" label="Browse Taxons from Taxonomy">
96 <options from_dataset="taxonomy"> 97 <options from_dataset="taxonomy">
97 <column name="name" index="2"/> 98 <column name="name" index="2"/>
98 <column name="value" index="2"/> 99 <column name="value" index="2"/>
99 <filter type="unique_value" name="unique_taxon" column="2"/> 100 <filter type="unique_value" name="unique_taxon" column="2"/>
110 </param> 111 </param>
111 <param name="shared" type="data" format="mothur.shared" optional="true" label="shared - shared file"/> 112 <param name="shared" type="data" format="mothur.shared" optional="true" label="shared - shared file"/>
112 <param name="list" type="data" format="mothur.list" optional="true" label="list - list file"/> 113 <param name="list" type="data" format="mothur.list" optional="true" label="list - list file"/>
113 </when> 114 </when>
114 </conditional> 115 </conditional>
115 <param name="taxon" type="text" area="True" size="5x120" label="taxon - Manually select Taxons for filtering" help="If no taxons selected from file, Enter 1 or more taxons separated by dashes here, e.g. Bacteria;Firmicutes;-Bacteria;Actinobacteria; "/> 116 <param name="taxon" type="text" area="True" size="5x120" label="taxon - Manually select Taxons for filtering"
117 help="If no taxons selected from file, Enter 1 or more taxons separated by dashes here, e.g. Bacteria;Firmicutes;-Bacteria;Actinobacteria; "/>
116 <param name="fasta_in" type="data" format="fasta" optional="true" label="fasta - Fasta Sequences"/> 118 <param name="fasta_in" type="data" format="fasta" optional="true" label="fasta - Fasta Sequences"/>
117 <param name="group_in" type="data" format="mothur.groups" optional="true" label="group - Groups"/> 119 <param name="group_in" type="data" format="mothur.groups" optional="true" label="group - Groups"/>
118 <param name="alignreport_in" type="data" format="mothur.align.report" optional="true" label="alignreport - Align Report"/> 120 <param name="alignreport_in" type="data" format="mothur.align.report" optional="true" label="alignreport - Align Report"/>
119 <param name="list_in" type="data" format="mothur.list" optional="true" label="list - OTU List"/> 121 <param name="list_in" type="data" format="mothur.list" optional="true" label="list - OTU List"/>
120 <param name="name_in" type="data" format="mothur.names" optional="true" label="name - Sequences Name reference"/> 122 <param name="name_in" type="data" format="mothur.names" optional="true" label="name - Sequences Name reference"/>
121 <param name="dups" type="boolean" truevalue="true" falsevalue="false" checked="true" label="dups - Apply to duplicate names"/> 123 <param name="dups" type="boolean" truevalue="true" falsevalue="false" checked="true" label="dups - Apply to duplicate names"/>
122 <param name="count" type="data" format="mothur.count_table" optional="true" help="The count file is similar to the name file in that it is used to represent the number of duplicate sequences for a given representative sequence. It can also contain group information"/> 124 <param name="count" type="data" format="mothur.count_table" optional="true" label="Count Table"
125 help="The count file is similar to the name file in that it is used to represent the number of duplicate sequences for a given representative sequence. It can also contain group information"/>
126 <expand macro="param-savelog"/>
123 </inputs> 127 </inputs>
124 <outputs> 128 <outputs>
125 <expand macro="logfile-output"/> 129 <expand macro="logfile-output"/>
126 <data name="taxonomy_out" format="mothur.seq.taxonomy" from_work_dir="file.taxonomy*.pick.*" label="${tool.name} on ${on_string}: pick.taxonomy"/> 130 <data name="taxonomy_out" format="mothur.seq.taxonomy" from_work_dir="file.taxonomy*.pick.*" label="${tool.name} on ${on_string}: pick.taxonomy"/>
127 <data name="fasta_out" format_source="fasta_in" from_work_dir="fasta_in*.pick.*" label="${tool.name} on ${on_string}: pick.fasta"> 131 <data name="fasta_out" format_source="fasta_in" from_work_dir="fasta_in*.pick.*" label="${tool.name} on ${on_string}: pick.fasta">
183 <param name="taxonomy" value="example.constaxonomy" ftype="mothur.cons.taxonomy"/> 187 <param name="taxonomy" value="example.constaxonomy" ftype="mothur.cons.taxonomy"/>
184 <param name="taxons" value="Bacteria(100);Firmicutes(100);Clostridia(70);Clostridiales(70);Lachnospiraceae(51);unclassified;,Bacteria(100);Proteobacteria(100);Gammaproteobacteria(100);unclassified;unclassified;unclassified;"/> 188 <param name="taxons" value="Bacteria(100);Firmicutes(100);Clostridia(70);Clostridiales(70);Lachnospiraceae(51);unclassified;,Bacteria(100);Proteobacteria(100);Gammaproteobacteria(100);unclassified;unclassified;unclassified;"/>
185 <output name="taxonomy_out" md5="0ea2511f40073a95c0812268da0cf727"/> 189 <output name="taxonomy_out" md5="0ea2511f40073a95c0812268da0cf727"/>
186 </test> 190 </test>
187 </tests> 191 </tests>
188 <help> 192 <help><![CDATA[
189 <![CDATA[
190 193
191 @MOTHUR_OVERVIEW@ 194 @MOTHUR_OVERVIEW@
192 195
193 **Command Documentation** 196 **Command Documentation**
194 197
199 .. _group: https://www.mothur.org/wiki/Group_file 202 .. _group: https://www.mothur.org/wiki/Group_file
200 .. _list: https://www.mothur.org/wiki/List_file 203 .. _list: https://www.mothur.org/wiki/List_file
201 .. _align.report: https://www.mothur.org/wiki/Align.seqs 204 .. _align.report: https://www.mothur.org/wiki/Align.seqs
202 .. _get.lineage: https://www.mothur.org/wiki/Get.lineage 205 .. _get.lineage: https://www.mothur.org/wiki/Get.lineage
203 206
204 ]]> 207 ]]></help>
205 </help>
206 <expand macro="citations"/> 208 <expand macro="citations"/>
207 </tool> 209 </tool>