annotate tools/visualization/build_ucsc_custom_track.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="build_ucsc_custom_track_1" name="Build custom track">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>for UCSC genome browser</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 build_ucsc_custom_track.py
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 "$out_file1"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 #for $t in $tracks
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 "${t.input.file_name}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 "${t.input.ext}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 #if $t.input.ext == "interval"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 ${t.input.metadata.chromCol},${t.input.metadata.startCol},${t.input.metadata.endCol},${t.input.metadata.strandCol}
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 #else
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 "NA"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 "${t.name}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 "${t.description}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 "${t.color}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 "${t.visibility}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 #end for
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <repeat name="tracks" title="Track">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <param name="input" type="data" format="interval,wig" label="Dataset"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <param name="name" type="text" size="15" value="User Track">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 <validator type="length" max="15"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 <param name="description" type="text" value="User Supplied Track (from Galaxy)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <validator type="length" max="60"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <param label="Color" name="color" type="select">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <option selected="yes" value="0-0-0">Black</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <option value="255-0-0">Red</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 <option value="0-255-0">Green</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 <option value="0-0-255">Blue</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <option value="255-0-255">Magenta</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 <option value="0-255-255">Cyan</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 <option value="255-215-0">Gold</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 <option value="160-32-240">Purple</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 <option value="255-140-0">Orange</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 <option value="255-20-147">Pink</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 <option value="92-51-23">Dark Chocolate</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 <option value="85-107-47">Olive green</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 <param label="Visibility" name="visibility" type="select">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 <option selected="yes" value="1">Dense</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 <option value="2">Full</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 <option value="3">Pack</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 <option value="4">Squish</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 <option value="0">Hide</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 </repeat>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 <data format="customtrack" name="out_file1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 <!--TODO: add a 2nd test here that includes 2 tracks -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 <param name="input" value="customTrack1.bed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 <param name="name" value="User Track" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 <param name="description" value="User Supplied Track (from Galaxy)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 <param name="color" value="0-0-0" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 <param name="visibility" value="1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 <output name="out_file1" file="build_ucsc_custom_track_out1.customtrack" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
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.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 .. class:: warningmark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
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.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 <code file="build_ucsc_custom_track_code.py" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82 </tool>