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