annotate tools/rgenetics/rgWebLogo3.xml @ 1:cdcb0ce84a1b

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