comparison gff_feature_colours.xml @ 0:f562c252b285 draft

planemo upload for repository https://github.com/portiahollyoak/Tools commit c31c1a7e9806718e30c9a9036a723e473e09a5eb
author portiahollyoak
date Thu, 26 May 2016 10:48:35 -0400
parents
children 4f0fb855276c
comparison
equal deleted inserted replaced
-1:000000000000 0:f562c252b285
1 <tool id="gff_feature_colours" name="Add Feature Colours to GFF" version="0.1.0">
2 <requirements>
3 </requirements>
4 <stdio>
5 <exit_code range="1:" />
6 </stdio>
7 <command><![CDATA[
8 python "$__tool_directory__"/add_colour.py
9 --input $input
10 --features
11 #for feature in $feat
12 "${feature.feature}"
13 #end for
14 --colours
15 #for feature in $feat
16 "${feature.feature_colour.value}"
17 #end for
18 --output $output
19 ]]></command>
20 <inputs>
21 <param name="input" type="data" format="gff,gtf" label="Dataset"/>
22 <repeat name="feat" title="Feature to assign a colour">
23 <param name="feature" type="select">
24 <options from_dataset="input">
25 <column name="name" index="2"/>
26 <column name="value" index="2"/>
27 <filter type="unique_value" ref="input" column="2" />
28 </options>
29 </param>
30 <param name="feature_colour" type="color" label="Feature Colour" value="#ff00ff"/>
31 </repeat>
32 </inputs>
33 <outputs>
34 <data format="input" name="output" label="Add feature colours to ${input.element_identifier}" />
35 </outputs>
36 <help><![CDATA[
37 Description
38 ------------
39
40 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.
41
42 Example
43 ----------------
44 Input:
45
46 211000022278978 DHGP Bari1 515 2242 . + . ID=RR41606_transposable_element;
47
48
49 Output:
50
51 211000022278978 DHGP Bari1 515 2242 . + . ID=RR41606_transposable_element;Colour=#ff00ff;
52 ]]></help>
53 </tool>