Mercurial > repos > portiahollyoak > gff_feature_colours
annotate gff_feature_colours.xml @ 1:4f0fb855276c draft default tip
planemo upload for repository https://github.com/portiahollyoak/Tools commit 5f5802314b55f52ea4b3f9f515ec46a5a770696d-dirty
author | portiahollyoak |
---|---|
date | Thu, 26 May 2016 11:07:21 -0400 |
parents | f562c252b285 |
children |
rev | line source |
---|---|
0
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
1 <tool id="gff_feature_colours" name="Add Feature Colours to GFF" version="0.1.0"> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
2 <requirements> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
3 </requirements> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
4 <stdio> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
5 <exit_code range="1:" /> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
6 </stdio> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
7 <command><![CDATA[ |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
8 python "$__tool_directory__"/add_colour.py |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
9 --input $input |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
10 --features |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
11 #for feature in $feat |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
12 "${feature.feature}" |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
13 #end for |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
14 --colours |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
15 #for feature in $feat |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
16 "${feature.feature_colour.value}" |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
17 #end for |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
18 --output $output |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
19 ]]></command> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
20 <inputs> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
21 <param name="input" type="data" format="gff,gtf" label="Dataset"/> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
22 <repeat name="feat" title="Feature to assign a colour"> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
23 <param name="feature" type="select"> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
24 <options from_dataset="input"> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
25 <column name="name" index="2"/> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
26 <column name="value" index="2"/> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
27 <filter type="unique_value" ref="input" column="2" /> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
28 </options> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
29 </param> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
30 <param name="feature_colour" type="color" label="Feature Colour" value="#ff00ff"/> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
31 </repeat> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
32 </inputs> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
33 <outputs> |
1
4f0fb855276c
planemo upload for repository https://github.com/portiahollyoak/Tools commit 5f5802314b55f52ea4b3f9f515ec46a5a770696d-dirty
portiahollyoak
parents:
0
diff
changeset
|
34 <data format_source="input" name="output" label="Add feature colours to ${input.element_identifier}" /> |
0
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
35 </outputs> |
1
4f0fb855276c
planemo upload for repository https://github.com/portiahollyoak/Tools commit 5f5802314b55f52ea4b3f9f515ec46a5a770696d-dirty
portiahollyoak
parents:
0
diff
changeset
|
36 <tests> |
4f0fb855276c
planemo upload for repository https://github.com/portiahollyoak/Tools commit 5f5802314b55f52ea4b3f9f515ec46a5a770696d-dirty
portiahollyoak
parents:
0
diff
changeset
|
37 <test> |
4f0fb855276c
planemo upload for repository https://github.com/portiahollyoak/Tools commit 5f5802314b55f52ea4b3f9f515ec46a5a770696d-dirty
portiahollyoak
parents:
0
diff
changeset
|
38 <param name="input" value="test-gff.gff" ftype="gff"/> |
4f0fb855276c
planemo upload for repository https://github.com/portiahollyoak/Tools commit 5f5802314b55f52ea4b3f9f515ec46a5a770696d-dirty
portiahollyoak
parents:
0
diff
changeset
|
39 <param name="feat_0|feature" value="Idefix" /> |
4f0fb855276c
planemo upload for repository https://github.com/portiahollyoak/Tools commit 5f5802314b55f52ea4b3f9f515ec46a5a770696d-dirty
portiahollyoak
parents:
0
diff
changeset
|
40 <param name="feat_0|feature_colour" value="#ff0000"/> |
4f0fb855276c
planemo upload for repository https://github.com/portiahollyoak/Tools commit 5f5802314b55f52ea4b3f9f515ec46a5a770696d-dirty
portiahollyoak
parents:
0
diff
changeset
|
41 <param name="feat_1|feature" value="INE-1" /> |
4f0fb855276c
planemo upload for repository https://github.com/portiahollyoak/Tools commit 5f5802314b55f52ea4b3f9f515ec46a5a770696d-dirty
portiahollyoak
parents:
0
diff
changeset
|
42 <param name="feat_1|feature_colour" value="#00ff00"/> |
4f0fb855276c
planemo upload for repository https://github.com/portiahollyoak/Tools commit 5f5802314b55f52ea4b3f9f515ec46a5a770696d-dirty
portiahollyoak
parents:
0
diff
changeset
|
43 <output name="output" file="test-gff-colours.gff" ftype="gff"/> |
4f0fb855276c
planemo upload for repository https://github.com/portiahollyoak/Tools commit 5f5802314b55f52ea4b3f9f515ec46a5a770696d-dirty
portiahollyoak
parents:
0
diff
changeset
|
44 </test> |
4f0fb855276c
planemo upload for repository https://github.com/portiahollyoak/Tools commit 5f5802314b55f52ea4b3f9f515ec46a5a770696d-dirty
portiahollyoak
parents:
0
diff
changeset
|
45 </tests>> |
0
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
46 <help><![CDATA[ |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
47 Description |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
48 ------------ |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
49 |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
50 The Add Feature Colours tool allows the user to assign a colour to unique features found in the 3rd column of a GFF file for visualisation in a genome browser. It works by allowing the user to match unique features to a colour and then it will add the assigned colour of that feature to the 9th column of the feature line. This will then be interpreted by the genome browser, and the feature will appear in its assigned colour. |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
51 |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
52 Example |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
53 ---------------- |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
54 Input: |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
55 |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
56 211000022278978 DHGP Bari1 515 2242 . + . ID=RR41606_transposable_element; |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
57 |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
58 |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
59 Output: |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
60 |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
61 211000022278978 DHGP Bari1 515 2242 . + . ID=RR41606_transposable_element;Colour=#ff00ff; |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
62 ]]></help> |
f562c252b285
planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
portiahollyoak
parents:
diff
changeset
|
63 </tool> |