annotate rgweblogo/rgWebLogo3.xml @ 14:a75696764683 draft

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