comparison build_ucsc_custom_track.xml @ 0:618e56c3109b draft

Imported from capsule None
author devteam
date Mon, 28 Jul 2014 11:55:41 -0400
parents
children 760f588e8a26
comparison
equal deleted inserted replaced
-1:000000000000 0:618e56c3109b
1 <tool id="build_ucsc_custom_track_1" name="Build custom track" version="1.0.0">
2 <description>for UCSC genome browser</description>
3 <command interpreter="python">
4 build_ucsc_custom_track.py
5 "$out_file1"
6 #for $t in $tracks
7 "${t.input.file_name}"
8 "${t.input.ext}"
9 #if $t.input.ext == "interval"
10 ${t.input.metadata.chromCol},${t.input.metadata.startCol},${t.input.metadata.endCol},${t.input.metadata.strandCol}
11 #else
12 "NA"
13 #end if
14 "${t.name}"
15 "${t.description}"
16 "${t.color}"
17 "${t.visibility}"
18 #end for
19 </command>
20 <inputs>
21 <repeat name="tracks" title="Track">
22 <param name="input" type="data" format="interval,wig" label="Dataset"/>
23 <param name="name" type="text" size="15" value="User Track">
24 <validator type="length" max="15"/>
25 </param>
26 <param name="description" type="text" value="User Supplied Track (from Galaxy)">
27 <validator type="length" max="60"/>
28 </param>
29 <param label="Color" name="color" type="select">
30 <option selected="yes" value="0-0-0">Black</option>
31 <option value="255-0-0">Red</option>
32 <option value="0-255-0">Green</option>
33 <option value="0-0-255">Blue</option>
34 <option value="255-0-255">Magenta</option>
35 <option value="0-255-255">Cyan</option>
36 <option value="255-215-0">Gold</option>
37 <option value="160-32-240">Purple</option>
38 <option value="255-140-0">Orange</option>
39 <option value="255-20-147">Pink</option>
40 <option value="92-51-23">Dark Chocolate</option>
41 <option value="85-107-47">Olive green</option>
42 </param>
43 <param label="Visibility" name="visibility" type="select">
44 <option selected="yes" value="1">Dense</option>
45 <option value="2">Full</option>
46 <option value="3">Pack</option>
47 <option value="4">Squish</option>
48 <option value="0">Hide</option>
49 </param>
50 </repeat>
51 </inputs>
52 <outputs>
53 <data format="customtrack" name="out_file1" />
54 </outputs>
55 <tests>
56 <!--TODO: add a 2nd test here that includes 2 tracks -->
57 <test>
58 <param name="input" value="customTrack1.bed" />
59 <param name="name" value="User Track" />
60 <param name="description" value="User Supplied Track (from Galaxy)" />
61 <param name="color" value="0-0-0" />
62 <param name="visibility" value="1" />
63 <output name="out_file1" file="build_ucsc_custom_track_out1.customtrack" />
64 </test>
65 </tests>
66 <help>
67
68 .. class:: infomark
69
70 This tool allows you to build custom tracks using datasets in your history for the UCSC genome browser. You can view these custom tracks on the UCSC genome browser by clicking on **display at UCSC main/test** link in the history panel of the output dataset.
71
72 -----
73
74 .. class:: warningmark
75
76 Please note that this tool requires **all input datasets(tracks) to have the same genome build**. The tool throws an error when this requirement is not met. You may then have to choose a valid dataset or remove invalid tracks.
77
78 </help>
79
80 <code file="build_ucsc_custom_track_code.py" />
81
82 </tool>