annotate literal.xml @ 1:717a4009675c

literal.xml: adding custom color support
author Nick Stoler <nstoler@psu.edu>
date Sun, 02 Mar 2014 14:20:33 -0500
parents 5257ce9d9184
children 1695b2153760
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
1 <tool id="visualdna" name="DNA visualizer" version="0.1">
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
2 <description>Visualize DNA with colored pixels.</description>
1
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
3 <command interpreter="python">literal.py $input -o $output -s ${width}x${height}
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
4 #if $colors.custom:
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
5 -A $AR,$AG,$AB -T $TR,$TG,$TB -G $GR,$GG,$GB -C $CR,$CG,$CB
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
6 #end if
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
7 </command>
0
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
8 <inputs>
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
9 <param name="input" type="data" format="fasta" label="Input sequence" />
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
10 <param name="width" type="integer" value="512" min="512" label="Output image width" help="in pixels" />
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
11 <param name="height" type="integer" value="512" min="512" label="Output image height" help="in pixels" />
1
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
12 <conditional name="colors">
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
13 <param name="custom" type="select" label="Base colors">
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
14 <option value="" selected="True">Use default colors</option>
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
15 <option value="true">Use custom colors</option>
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
16 </param>
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
17 <when value="">
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
18 <!-- do nothing -->
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
19 </when>
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
20 <when value="true">
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
21 <!-- 'A':'0,255,0', 'T':'255,0,0', 'G':'255,255,255', 'C':'0,0,255' -->
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
22 <param name="AR" type="integer" value="0" label="A red value" />
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
23 <param name="AG" type="integer" value="255" label="A green value" />
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
24 <param name="AB" type="integer" value="0" label="A blue value" />
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
25 <param name="TR" type="integer" value="255" label="T red value" />
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
26 <param name="TG" type="integer" value="0" label="T green value" />
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
27 <param name="TB" type="integer" value="0" label="T blue value" />
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
28 <param name="GR" type="integer" value="255" label="G red value" />
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
29 <param name="GG" type="integer" value="255" label="G green value" />
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
30 <param name="GB" type="integer" value="255" label="G blue value" />
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
31 <param name="CR" type="integer" value="0" label="C red value" />
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
32 <param name="CG" type="integer" value="0" label="C green value" />
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
33 <param name="CB" type="integer" value="255" label="C blue value" />
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
34 </when>
717a4009675c literal.xml: adding custom color support
Nick Stoler <nstoler@psu.edu>
parents: 0
diff changeset
35 </conditional>
0
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
36 </inputs>
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
37 <outputs>
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
38 <data name="output" format="png"/>
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
39 </outputs>
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
40 <stdio>
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
41 <exit_code range="1:" err_level="fatal"/>
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
42 <exit_code range=":-1" err_level="fatal"/>
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
43 </stdio>
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
44
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
45 <help>
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
46
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
47 .. class:: infomark
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
48
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
49 **What it does**
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
50
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
51 This tool convert DNA sequence into a PNG image by representing each base with one colored pixel.
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
52
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
53 -----
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
54
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
55 .. class:: infomark
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
56
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
57 **Input Format**
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
58
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
59 The input sequence can be in FASTA format or a plain text file containing only the sequence. Any non-ATGC characters (case-insensitive) will be skipped.
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
60
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
61 </help>
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
62
5257ce9d9184 Initial literal.py tool
Nick Stoler <nstoler@psu.edu>
parents:
diff changeset
63 </tool>