Mercurial > repos > portiahollyoak > gff_feature_colours
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gff_feature_colours.xml Thu May 26 10:48:35 2016 -0400 @@ -0,0 +1,53 @@ +<tool id="gff_feature_colours" name="Add Feature Colours to GFF" version="0.1.0"> + <requirements> + </requirements> + <stdio> + <exit_code range="1:" /> + </stdio> + <command><![CDATA[ + python "$__tool_directory__"/add_colour.py + --input $input + --features + #for feature in $feat + "${feature.feature}" + #end for + --colours + #for feature in $feat + "${feature.feature_colour.value}" + #end for + --output $output + ]]></command> + <inputs> + <param name="input" type="data" format="gff,gtf" label="Dataset"/> + <repeat name="feat" title="Feature to assign a colour"> + <param name="feature" type="select"> + <options from_dataset="input"> + <column name="name" index="2"/> + <column name="value" index="2"/> + <filter type="unique_value" ref="input" column="2" /> + </options> + </param> + <param name="feature_colour" type="color" label="Feature Colour" value="#ff00ff"/> + </repeat> + </inputs> + <outputs> + <data format="input" name="output" label="Add feature colours to ${input.element_identifier}" /> + </outputs> + <help><![CDATA[ +Description +------------ + +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. + +Example +---------------- +Input: + +211000022278978 DHGP Bari1 515 2242 . + . ID=RR41606_transposable_element; + + +Output: + +211000022278978 DHGP Bari1 515 2242 . + . ID=RR41606_transposable_element;Colour=#ff00ff; + ]]></help> +</tool>