annotate Codonlogo.xml @ 0:c55bdc2fb9fa

Uploaded
author davidmurphy
date Thu, 27 Oct 2011 12:09:09 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
1 <tool id="codonlogo" name="Codon Logo" version="3">
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
2 <description>generator for fasta (eg Clustal alignments)</description>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
3 <command interpreter="python">
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
4 codonlogo -F $outformat -s $size -f $input -o $output -t "$logoname" -m $frame -n $stacks
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
5 #if $range.mode == 'part'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
6 -l "$range.seqstart" -u "$range.seqend"
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
7 #end if
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
8 #if $comp.mode == 'equiprobable'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
9 --composition 'equiprobable'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
10 #end if
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
11 #if $comp.mode == 'none'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
12 --composition 'none'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
13 #end if
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
14 #if $comp.mode == 'file'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
15 -R $compfile
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
16 #end if
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
17 </command>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
18 <inputs>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
19 <page>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
20 <param format="txt" name="input" type="data" label="txt" />
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
21 <param name="logoname" label="Title for output Sequence Logo" type="text" size="50" value="" />
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
22 <param name="outformat" type="select" label="Output format for image (or text report)" >
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
23 <option value="png" selected="True">PNG screen quality</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
24 <option value="png_print">High quality printable PNG</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
25 <option value="pdf">PDF</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
26 <option value="jpeg">JPG</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
27 <option value="eps">EPS</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
28 <option value="txt">Text (shows the detailed calculations for each position - no image)</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
29 </param>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
30 <param name="frame" type="select" label="Frame to view the alignment" >
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
31 <option value="0" selected="True">0</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
32 <option value="1">+1</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
33 <option value="2">-1</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
34 <option value="3">Negative Strand 0</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
35 <option value="4">Negative Strand +1</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
36 <option value="5">Negative Strand -1</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
37 </param>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
38 <param name="stacks" size="5" type="integer" value="20" label="Number of stacks per line, default 20" />
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
39 <conditional name="range">
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
40 <param name="mode" type="select" label="Include entire sequence (default) or specify a subsequence range to use">
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
41 <option value="complete" selected="true">complete sequence</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
42 <option value="part">Only use a part of the sequence</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
43 </param>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
44 <when value="complete">
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
45 </when>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
46 <when value="part">
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
47 <param name="seqstart" size="5" type="integer" value="1" help="WARNING: Specifying indexes outside the sequence lengths will cause unpredictable but bad consequences!"
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
48 label="Index (eg 1=first letter) of the start of the sequence range to include in the logo">
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
49 </param>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
50 <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" >
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
51 </param>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
52 </when>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
53 </conditional>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
54 <conditional name="comp">
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
55 <param name="mode" type="select" label="Select expected composition: auto(default), 'equiprobable', 'none' or supply a file with probabilities">
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
56
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
57 <option value="equiprobable">equiprobable</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
58 <option value="none">none</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
59 <option value="file">from file</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
60
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
61 </param>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
62 <when value="auto">
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
63 </when>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
64 <when value="equiprobable">
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
65 </when>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
66 <when value="none">
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
67 </when>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
68 <when value="file">
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
69 <param format="txt" name="compfile" type="data" label="File containing the expected composition of the sequence. expected: a file with 64 codons followed by their probability" />
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
70 </when>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
71
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
72 </conditional>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
73 <param name="size" type="select" label="Output CodonLogo size" >
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
74 <option value="large" selected="True">Large</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
75 <option value="medium">Medium</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
76 <option value="small">Small</option>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
77 </param>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
78 </page>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
79 </inputs>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
80 <outputs>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
81 <data format="pdf" name="output" label="${logoname}_output.${outformat}">
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
82 <change_format>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
83 <when input="outformat" value="png_print" format="png" />
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
84 <when input="outformat" value="png" format="png" />
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
85 <when input="outformat" value="jpeg" format="jpg" />
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
86 <when input="outformat" value="eps" format="eps" />
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
87 <when input="outformat" value="txt" format="txt" />
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
88 </change_format>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
89 </data>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
90 </outputs>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
91 <help>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
92
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
93 **Note**
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
94
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
95 This tool uses CodonLogo in Galaxy to generate a sequence logo from a provided alignment.
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
96 The input file must be an alignment in your current history.
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
97 The tool will attempt to read a provided file and if it is unable to it will generate an error.
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
98
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
99 A typical output looks like this
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
100
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
101 .. image:: ./static/images/CodonLogoExample.png
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
102
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
103 ----
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
104
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
105 **Warning about input files**
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
106
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
107 The program used by this tool will fail if your alignment files are not all the same length.
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
108
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
109 Fasta alignments from ClustalW Galaxy tool will work but many other fasta files may cause this tool to fail - please do not file
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
110 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
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
111 sequences are the same length!
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
112
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
113 ----
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
114
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
115 **Attribution**
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
116
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
117
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
118 This Galaxy wrapper was modified for CodonLogo by David Murphy and is based on the wrapper written by Ross Lazarus for the rgenetics project and the source code is licensed under the LGPL_
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
119
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
120 .. _Weblogo3: http://weblogo.berkeley.edu/
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
121 .. _LGPL: http://www.gnu.org/copyleft/lesser.html
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
122 .. _CodonLogo: http://recode.ucc.ie/CodonLogo
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
123
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
124 </help>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
125
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
126 </tool>
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
127
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
128