annotate rgWebLogo3.xml @ 0:66253fc0a69b draft

Imported from capsule None
author devteam
date Mon, 27 Jan 2014 09:25:50 -0500
parents
children a10f9ed463ae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
1 <tool id="rgweblogo3" name="Sequence Logo" version="0.4">
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
2 <description>generator for fasta (eg Clustal alignments)</description>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
3 <requirements>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
4 <requirement type="package" version="3.3">weblogo</requirement>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
5 <requirement type="package" version="9.10">ghostscript</requirement>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
6 </requirements>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
7 <command interpreter="python">
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
8 rgWebLogo3.py -F $outformat -s $size -i $input -o $output -t "$logoname" -c "$colours" -U "$units"
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
9 #if $range.mode == 'part'
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
10 -l "$range.seqstart" -u "$range.seqend"
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
11 #end if
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
12 </command>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
13 <inputs>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
14 <page>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
15 <param format="fasta" name="input" type="data" label="Fasta File" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
16 <param name="logoname" label="Title for output Sequence Logo" type="text" size="50" value="Galaxy-Rgenetics Sequence Logo" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
17 <param name="outformat" type="select" label="Output format for image (or text report)" >
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
18 <option value="png" selected="True">PNG screen quality</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
19 <option value="png_print">High quality printable PNG</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
20 <option value="pdf">PDF</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
21 <option value="jpeg">JPG</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
22 <option value="eps">EPS</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
23 <option value="txt">Text (shows the detailed calculations for each position - no image)</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
24 </param>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
25 <param name="units" type="select" label="Display Units"
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
26 help="What the height of each logo element depicts - eg bits of entropy (default)">
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
27 <option value="bits" selected="True">Entropy (bits)</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
28 <option value="probability">Probability</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
29 <option value="nats">Nats</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
30 <option value="kT">kT</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
31 <option value="kJ/mol">kJ/mol</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
32 <option value="kcal/mol">kcal/mol</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
33 </param>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
34 <param name="colours" type="select" label="Colour scheme for output Sequence Logo"
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
35 help="Note that some of these only make sense for protein sequences!">
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
36 <option value="auto" selected="True">Default automatic colour selection</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
37 <option value="base pairing">Base pairing</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
38 <option value="charge">Charge colours</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
39 <option value="chemistry">Chemistry colours</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
40 <option value="classic">Classical colours</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
41 <option value="hydrophobicity">Hydrophobicity</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
42 <option value="monochrome">monochrome</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
43 </param>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
44
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
45
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
46 <conditional name="range">
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
47 <param name="mode" type="select" label="Include entire sequence (default) or specify a subsequence range to use">
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
48 <option value="complete" selected="true">complete sequence</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
49 <option value="part">Only use a part of the sequence</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
50 </param>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
51 <when value="complete">
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
52 </when>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
53 <when value="part">
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
54 <param name="seqstart" size="5" type="integer" value="1" help="WARNING: Specifying indexes outside the sequence lengths will cause unpredictable but bad consequences!"
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
55 label="Index (eg 1=first letter) of the start of the sequence range to include in the logo">
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
56 </param>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
57 <param name="seqend" size="5" type="integer" value="99999" label="Index (eg 75=75th letter) of the end of the sequence range to include in the logo" >
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
58 </param>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
59 </when>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
60 </conditional>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
61 <param name="size" type="select" label="Output weblogo size" >
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
62 <option value="large" selected="True">Large</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
63 <option value="medium">Medium</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
64 <option value="small">Small</option>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
65 </param>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
66 </page>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
67 </inputs>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
68 <outputs>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
69 <data format="pdf" name="output" label="${logoname}_output.${outformat}">
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
70 <change_format>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
71 <when input="outformat" value="png_print" format="png" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
72 <when input="outformat" value="png" format="png" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
73 <when input="outformat" value="jpeg" format="jpg" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
74 <when input="outformat" value="eps" format="eps" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
75 <when input="outformat" value="txt" format="txt" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
76 </change_format>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
77 </data>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
78 </outputs>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
79 <tests>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
80 <test>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
81 <param name="input" value="rgClustal_testout.fasta" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
82 <param name="logoname" value="Galaxy/Rgenetics weblogo" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
83 <param name="outformat" value="jpeg" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
84 <param name="mode" value="complete" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
85 <param name="size" value="medium" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
86 <param name="colours" value="auto" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
87 <param name="units" value="bits" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
88 <output name="output" file="rgWebLogo3_test.jpg" ftype="jpg" compare="sim_size" delta="10000" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
89 </test>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
90 <test>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
91 <param name="input" value="rgClustal_testout.fasta" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
92 <param name="logoname" value="Galaxy/Rgenetics weblogo" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
93 <param name="outformat" value="png" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
94 <param name="mode" value="complete" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
95 <param name="size" value="medium" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
96 <param name="colours" value="auto" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
97 <param name="units" value="probability" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
98 <output name="output" file="rgWebLogo3_test2.png" ftype="png" compare="sim_size" delta="10000" />
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
99 </test>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
100 </tests>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
101 <help>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
102
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
103 **Note**
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
104
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
105 This tool uses Weblogo3_ in Galaxy to generate a sequence logo. The input file must be a fasta file in your current history.
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
106
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
107 It is recommended for (eg) viewing multiple sequence alignments output from the clustalw tool - set the output to fasta and feed
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
108 it in to this tool.
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
109
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
110 A typical output looks like this
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
111
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
112 .. image:: ${static_path}/images/rgWebLogo3_test.jpg
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
113
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
114 ----
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
115
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
116 **Warning about input Fasta format files**
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
117
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
118 The Weblogo3 program used by this tool will fail if your fasta sequences are not all EXACTLY the same length. The tool will provide a warning
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
119 and refuse to call the weblogo3 executable if irregular length sequences are detected.
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
120
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
121 Fasta alignments from the companion ClustalW Galaxy tool will work but many other fasta files may cause this tool to fail - please do not file
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
122 a Galaxy bug report - this is a feature of the tool and a problem with your source data - not a tool error - please make certain all your fasta
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
123 sequences are the same length!
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
124
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
125 ----
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
126
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
127 **Attribution**
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
128
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
129 Weblogo attribution and associated documentation are available at Weblogo3_
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
130
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
131 This Galaxy wrapper was written by Ross Lazarus for the rgenetics project and the source code is licensed under the LGPL_ like other rgenetics artefacts
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
132
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
133 .. _Weblogo3: http://weblogo.berkeley.edu/
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
134
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
135 .. _LGPL: http://www.gnu.org/copyleft/lesser.html
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
136
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
137 </help>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
138
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
139 </tool>
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
140
66253fc0a69b Imported from capsule None
devteam
parents:
diff changeset
141