annotate fasta_charges.xml @ 3:a39d312f95c7 draft default tip

planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
author cpt
date Fri, 20 Sep 2024 05:36:05 +0000
parents defd34aad2dd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
1 <tool id="edu.tamu.cpt.tools.charges" name="Charges" version="2.0">
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
2 <description>colour sequences based on rules</description>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
3 <macros>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
4 <import>macros.xml</import>
2
defd34aad2dd planemo upload commit f33bdf952d796c5d7a240b132af3c4cbd102decc
cpt
parents: 1
diff changeset
5
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
6 </macros>
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
7 <expand macro="requirements"> </expand>
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
8 <command detect_errors="aggressive"><![CDATA[
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
9 python '$__tool_directory__/fasta_charges.py'
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
10 '$svg'
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
11 @SEQUENCE@
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
12
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
13 --width '$width'
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
14
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
15 #if $scheme.cs == "default":
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
16 --aa HSQTNCY AVILMPFWG ERDK
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
17 --fgColor "#000000" "#000000" "#ffffff"
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
18 --bgColor "#ffffff" "#999999" "#000000"
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
19 #elif $scheme.cs == "rb":
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
20 --aa KR ED HSQTNCYAVILMPFWG
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
21 --fgColor "#ffffff" "#ffffff" "#000000"
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
22 --bgColor "#00b0f0" "#fc0000" "#ffffff"
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
23 #elif $scheme.cs == "rbgb":
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
24 --aa KR ED P C HSQTNYAVILMFWG
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
25 --fgColor "#ffffff" "#ffffff" "#ffffff" "#ffffff" "#000000"
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
26 --bgColor "#00b0f0" "#fc0000" "#1cb026" "#805839" "#ffffff"
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
27 #else:
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
28 --aa
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
29 #for group in $scheme.groups:
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
30 "$group.aminoAcids"
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
31 #end for
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
32 --fgColor
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
33 #for group in $scheme.groups:
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
34 "$group.fgColour"
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
35 #end for
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
36 --bgColor
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
37 #for group in $scheme.groups:
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
38 "$group.bgColour"
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
39 #end for
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
40 #end if
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
41 ]]></command>
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
42 <inputs>
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
43 <expand macro="input/fasta/protein"></expand>
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
44 <label for="output-format">Output format</label>
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
45 <select id="output-format" name="svg">
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
46 <option value="">HTML</option>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
47 <option value="--svg">SVG</option>
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
48 </select>
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
49 <conditional name="scheme">
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
50 <label for="Colour scheme">Colour scheme</label>
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
51 <select id="Colour scheme" name="cs">
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
52 <option value="default">Default hyrophobic/polar/charged</option>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
53 <option value="rb">Positives Blue, Negatives Red</option>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
54 <option value="rbgb">Positives Blue, Negatives Red, Prolines Green, Cysteines Brown</option>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
55 <option value="custom">Custom Colour Scheme</option>
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
56 </select>
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
57 <when value="default"></when>
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
58 <when value="rb"></when>
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
59 <when value="custom">
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
60 <repeat name="groups" title="Colour Group">
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
61 <param name="aminoAcids" type="text" label="Amino Acids" help="Amino acids to colour a specific colour"/>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
62 <param name="fgColour" type="color" label="Foreground Color"/>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
63 <param name="bgColour" type="color" label="Background Color"/>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
64 </repeat>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
65 </when>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
66 </conditional>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
67 <param label="Plot width" name="width" type="integer" value="120"/>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
68 </inputs>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
69 <outputs>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
70 <data format="html" name="html">
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
71 <change_format>
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
72 <when input="svg" value="--svg" format="svg"></when>
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
73 </change_format>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
74 </data>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
75 </outputs>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
76 <tests>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
77 <test>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
78 <param name="sequences" value="prot.fa"/>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
79 <param name="cs" value="default"/>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
80 <param name="width" value="120"/>
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
81 <output name="html" file="charges.html"></output>
1
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
82 </test>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
83 </tests>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
84 <help>
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
85 **What it does**
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
86
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
87 Colors fasta (protein) sequences based on rules, and displays outputs as HTML.
054f96a0d0fb planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
cpt
parents:
diff changeset
88 </help>
3
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
89 <expand macro="citations"></expand>
a39d312f95c7 planemo upload commit 83c1184008f5967a8265194a4b3496042827cda1
cpt
parents: 2
diff changeset
90 </tool>