comparison Codonlogo.xml @ 0:c55bdc2fb9fa

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