annotate pyCRAC/pyGTF2bed.xml @ 0:19b20927172d draft

Uploaded
author swebb
date Tue, 18 Jun 2013 09:11:00 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
19b20927172d Uploaded
swebb
parents:
diff changeset
1 <tool id="pyGTF2bed" name="pyGTF2bed">
19b20927172d Uploaded
swebb
parents:
diff changeset
2 <description>converter</description>
19b20927172d Uploaded
swebb
parents:
diff changeset
3 <requirements>
19b20927172d Uploaded
swebb
parents:
diff changeset
4 <requirement type="package">pyCRAC</requirement>
19b20927172d Uploaded
swebb
parents:
diff changeset
5 </requirements>
19b20927172d Uploaded
swebb
parents:
diff changeset
6 <command interpreter="python">/usr/local/bin/pyGTF2bed.py --gtf $input -o $output
19b20927172d Uploaded
swebb
parents:
diff changeset
7 #if $addtrack.track == "--track":
19b20927172d Uploaded
swebb
parents:
diff changeset
8 --track
19b20927172d Uploaded
swebb
parents:
diff changeset
9 --name $addtrack.name
19b20927172d Uploaded
swebb
parents:
diff changeset
10 --description $addtrack.description
19b20927172d Uploaded
swebb
parents:
diff changeset
11 #if $addtrack.colorscheme.colorsel == "default":
19b20927172d Uploaded
swebb
parents:
diff changeset
12 -c $addtrack.colorscheme.color
19b20927172d Uploaded
swebb
parents:
diff changeset
13 #else:
19b20927172d Uploaded
swebb
parents:
diff changeset
14 -s '$addtrack.colorscheme.plus,$addtrack.colorscheme.minus'
19b20927172d Uploaded
swebb
parents:
diff changeset
15 #end if#
19b20927172d Uploaded
swebb
parents:
diff changeset
16 #end if#
19b20927172d Uploaded
swebb
parents:
diff changeset
17 </command>
19b20927172d Uploaded
swebb
parents:
diff changeset
18 <version_command>/usr/local/bin/pyGTF2bed.py --version</version_command>
19b20927172d Uploaded
swebb
parents:
diff changeset
19 <inputs>
19b20927172d Uploaded
swebb
parents:
diff changeset
20 <param name="input" type="data" format="gtf" label="GTF file --gtf"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
21 <conditional name="addtrack">
19b20927172d Uploaded
swebb
parents:
diff changeset
22 <param name="track" type="select" label="Add UCSC track line to output --track">
19b20927172d Uploaded
swebb
parents:
diff changeset
23 <option value="" selected="true">NO</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
24 <option value="--track">YES</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
25 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
26 <when value=""/>
19b20927172d Uploaded
swebb
parents:
diff changeset
27 <when value="--track">
19b20927172d Uploaded
swebb
parents:
diff changeset
28 <param name="name" format="txt" type="text" value="User_supplied_track" size="80" label="Track name -n"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
29 <param name="description" format="txt" type="text" value="User_supplied_track" size="80" label="Track description -d"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
30 <conditional name="colorscheme">
19b20927172d Uploaded
swebb
parents:
diff changeset
31 <param name="colorsel" type="select" label="Colouring scheme">
19b20927172d Uploaded
swebb
parents:
diff changeset
32 <option value="default" selected="true">One Colour</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
33 <option value="strand">By Strand</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
34 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
35 <when value="default">
19b20927172d Uploaded
swebb
parents:
diff changeset
36 <param name="color" type="select" label="Choose track colour -c">
19b20927172d Uploaded
swebb
parents:
diff changeset
37 <option value="black" selected="true">Black</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
38 <option value="red">Red</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
39 <option value="blue">Blue</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
40 <option value="green">Green</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
41 <option value="purple">Purple</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
42 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
43 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
44 <when value="strand">
19b20927172d Uploaded
swebb
parents:
diff changeset
45 <param name="plus" type="select" label="Choose forward strand track colour -s">
19b20927172d Uploaded
swebb
parents:
diff changeset
46 <option value="black" selected="true">Black</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
47 <option value="red">Red</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
48 <option value="blue">Blue</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
49 <option value="green">Green</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
50 <option value="purple">Purple</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
51 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
52 <param name="minus" type="select" label="Choose minus strand track colour -s">
19b20927172d Uploaded
swebb
parents:
diff changeset
53 <option value="black" selected="true">Black</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
54 <option value="red">Red</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
55 <option value="blue">Blue</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
56 <option value="green">Green</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
57 <option value="purple">Purple</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
58 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
59 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
60 </conditional>
19b20927172d Uploaded
swebb
parents:
diff changeset
61 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
62 </conditional>
19b20927172d Uploaded
swebb
parents:
diff changeset
63 <param name="label" type="text" format="txt" size="30" value="pyGTF2bed" label="Enter output file label -o" />
19b20927172d Uploaded
swebb
parents:
diff changeset
64 </inputs>
19b20927172d Uploaded
swebb
parents:
diff changeset
65 <outputs>
19b20927172d Uploaded
swebb
parents:
diff changeset
66 <data name="output" format="bed6" label="${label.value}.bed"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
67 </outputs>
19b20927172d Uploaded
swebb
parents:
diff changeset
68 <help>
19b20927172d Uploaded
swebb
parents:
diff changeset
69
19b20927172d Uploaded
swebb
parents:
diff changeset
70 .. class:: infomark
19b20927172d Uploaded
swebb
parents:
diff changeset
71
19b20927172d Uploaded
swebb
parents:
diff changeset
72 **pyGTF2bed**
19b20927172d Uploaded
swebb
parents:
diff changeset
73
19b20927172d Uploaded
swebb
parents:
diff changeset
74 pyGTF2bed is part of the pyCRAC_ package. Converts GTF files to the bed 6 format. Gene names present in the GTF file will be included in the bed file.
19b20927172d Uploaded
swebb
parents:
diff changeset
75
19b20927172d Uploaded
swebb
parents:
diff changeset
76
19b20927172d Uploaded
swebb
parents:
diff changeset
77 .. _pyCRAC: http://sandergranneman.bio.ed.ac.uk/Granneman_Lab/pyCRAC_software.html
19b20927172d Uploaded
swebb
parents:
diff changeset
78
19b20927172d Uploaded
swebb
parents:
diff changeset
79 ------
19b20927172d Uploaded
swebb
parents:
diff changeset
80
19b20927172d Uploaded
swebb
parents:
diff changeset
81 **Parameter list**
19b20927172d Uploaded
swebb
parents:
diff changeset
82
19b20927172d Uploaded
swebb
parents:
diff changeset
83 These options can be used to add and modify a track line for the UCSC genome browser::
19b20927172d Uploaded
swebb
parents:
diff changeset
84
19b20927172d Uploaded
swebb
parents:
diff changeset
85 --track
19b20927172d Uploaded
swebb
parents:
diff changeset
86 Use this flag to add a UCSC genome browser track line
19b20927172d Uploaded
swebb
parents:
diff changeset
87 to the beginning of your file
19b20927172d Uploaded
swebb
parents:
diff changeset
88 -n NAME, --name=NAME
19b20927172d Uploaded
swebb
parents:
diff changeset
89 For the USCS track line: provide a track name. Default
19b20927172d Uploaded
swebb
parents:
diff changeset
90 = 'User_supplied_track'
19b20927172d Uploaded
swebb
parents:
diff changeset
91 -d DESCRIPTION, --description=DESCRIPTION
19b20927172d Uploaded
swebb
parents:
diff changeset
92 For the USCS track line: provide a track description.
19b20927172d Uploaded
swebb
parents:
diff changeset
93 Default = 'User_supplied_track'
19b20927172d Uploaded
swebb
parents:
diff changeset
94 -c COLOR, --color=COLOR
19b20927172d Uploaded
swebb
parents:
diff changeset
95 select the track color. Default = black
19b20927172d Uploaded
swebb
parents:
diff changeset
96 -s STRANDS, --colorstrands=STRANDS
19b20927172d Uploaded
swebb
parents:
diff changeset
97 select the colors for each strand. Default =
19b20927172d Uploaded
swebb
parents:
diff changeset
98 'red,blue'
19b20927172d Uploaded
swebb
parents:
diff changeset
99
19b20927172d Uploaded
swebb
parents:
diff changeset
100 File input options::
19b20927172d Uploaded
swebb
parents:
diff changeset
101
19b20927172d Uploaded
swebb
parents:
diff changeset
102 --gtf=Yourfavoritegtf.gtf
19b20927172d Uploaded
swebb
parents:
diff changeset
103 type the path to the gtf file that you want to
19b20927172d Uploaded
swebb
parents:
diff changeset
104 convert. Default is standard input
19b20927172d Uploaded
swebb
parents:
diff changeset
105 </help>
19b20927172d Uploaded
swebb
parents:
diff changeset
106 </tool>
19b20927172d Uploaded
swebb
parents:
diff changeset
107