annotate SMART/galaxy/modifyGenomicCoordinates.xml @ 56:97aa2e42bfdf

Uploaded
author m-zytnicki
date Wed, 05 Feb 2014 11:51:11 -0500
parents 2c0c0a89fad7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
1 <tool id="modifyGenomicCoordinates" name="modify genomic coordinates">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
2 <description>Extend or shrink a list of genomic coordinates.</description>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
3 <requirements>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
4 <requirement type="set_environment">PYTHONPATH</requirement>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
5 </requirements>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
6 <command interpreter="python"> ../Java/Python/modifyGenomicCoordinates.py -i $formatType.inputFileName
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
7 #if $formatType.FormatInputFileName == 'bed':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
8 -f bed
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
9 #elif $formatType.FormatInputFileName == 'gff':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
10 -f gff
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
11 #elif $formatType.FormatInputFileName == 'gff2':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
12 -f gff2
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
13 #elif $formatType.FormatInputFileName == 'gff3':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
14 -f gff3
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
15 #elif $formatType.FormatInputFileName == 'sam':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
16 -f sam
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
17 #elif $formatType.FormatInputFileName == 'gtf':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
18 -f gtf
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
19 #end if
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
20
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
21 #if $OptionStart.start == "Yes":
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
22 -s $OptionStart.startValue
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
23 #end if
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
24
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
25 #if $OptionEnd.end == "Yes":
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
26 -e $OptionEnd.endValue
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
27 #end if
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
28
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
29 #if $OptionFivePrim.five == "Yes":
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
30 -5 $OptionFivePrim.fivePValue
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
31 #end if
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
32
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
33 #if $OptionTroisP.TroisP == "Yes":
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
34 -3 $OptionTroisP.ThreePValue
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
35 #end if
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
36
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
37 -o $outputFile
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
38 </command>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
39
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
40
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
41 <inputs>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
42 <conditional name="formatType">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
43 <param name="FormatInputFileName" type="select" label="Input File Format">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
44 <option value="bed">bed</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
45 <option value="gff">gff</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
46 <option value="gff2">gff2</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
47 <option value="gff3">gff3</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
48 <option value="sam">sam</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
49 <option value="gtf">gtf</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
50 </param>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
51 <when value="bed">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
52 <param name="inputFileName" format="bed" type="data" label="Input File"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
53 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
54 <when value="gff">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
55 <param name="inputFileName" format="gff" type="data" label="Input File"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
56 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
57 <when value="gff2">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
58 <param name="inputFileName" format="gff2" type="data" label="Input File"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
59 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
60 <when value="gff3">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
61 <param name="inputFileName" format="gff3" type="data" label="Input File"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
62 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
63 <when value="sam">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
64 <param name="inputFileName" format="sam" type="data" label="Input File"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
65 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
66 <when value="gtf">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
67 <param name="inputFileName" format="gtf" type="data" label="Input File"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
68 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
69 </conditional>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
70
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
71 <conditional name="OptionStart">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
72 <param name="start" type="select" label="shrink to the start of the feature">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
73 <option value="Yes">Yes</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
74 <option value="No" selected="true">No</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
75 </param>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
76 <when value="Yes">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
77 <param name="startValue" type="integer" value="0"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
78 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
79 <when value="No">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
80 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
81 </conditional>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
82
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
83 <conditional name="OptionEnd">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
84 <param name="end" type="select" label="shrink to the end of the feature">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
85 <option value="Yes">Yes</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
86 <option value="No" selected="true">No</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
87 </param>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
88 <when value="Yes">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
89 <param name="endValue" type="integer" value="0"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
90 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
91 <when value="No">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
92 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
93 </conditional>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
94
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
95
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
96 <conditional name="OptionFivePrim">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
97 <param name="five" type="select" label="extend to the 5' direction">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
98 <option value="Yes">Yes</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
99 <option value="No" selected="true">No</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
100 </param>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
101 <when value="Yes">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
102 <param name="fivePValue" type="integer" value="0"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
103 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
104 <when value="No">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
105 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
106 </conditional>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
107
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
108 <conditional name="OptionTroisP">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
109 <param name="TroisP" type="select" label="extend to the 3' direction">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
110 <option value="Yes">Yes</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
111 <option value="No" selected="true">No</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
112 </param>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
113 <when value="Yes">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
114 <param name="ThreePValue" type="integer" value="0"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
115 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
116 <when value="No">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
117 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
118 </conditional>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
119
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
120
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
121 </inputs>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
122
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
123 <outputs>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
124 <data format="gff3" name="outputFile" label="[modify genomic coordinates] output file"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
125 </outputs>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
126
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
127 <help>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
128 This tool reads a list of transcripts and modifies each feature by:
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
129
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
130 - shrinking it to the *n* first nucleotides or the *n* last nucleotides, or
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
131
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
132 - extending it to *n* nucleotides towards the 5' direction (upstream) or the 3' direction (downstream).
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
133
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
134 Note that the 5' or 3' direction depends on the orientation of the feature (the 5' end of a transcript located on the minus strand is on the right hand of this transcript!).
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
135
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
136 The tool needs a transcript file, its format, and outputs a new transcript file.
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
137 </help>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
138 </tool>