6
|
1 <tool id="getDistribution" name="get distribution">
|
31
|
2 <description>Get Distribution: Get the distribution of the genomic coordinates on a genome.</description>
|
6
|
3 <command interpreter="python">
|
|
4 ../Java/Python/GetDistribution.py -i $formatType.inputFileName
|
|
5 #if $formatType.FormatInputFileName == 'bed':
|
|
6 -f bed
|
|
7 #elif $formatType.FormatInputFileName == 'gff':
|
|
8 -f gff
|
|
9 #elif $formatType.FormatInputFileName == 'gff2':
|
|
10 -f gff2
|
|
11 #elif $formatType.FormatInputFileName == 'gff3':
|
|
12 -f gff3
|
31
|
13 #elif $formatType.FormatInputFileName == 'csv':
|
|
14 -f csv
|
6
|
15 #elif $formatType.FormatInputFileName == 'sam':
|
|
16 -f sam
|
|
17 #elif $formatType.FormatInputFileName == 'gtf':
|
|
18 -f gtf
|
|
19 #end if
|
|
20
|
|
21 -r $refFile
|
|
22
|
|
23 #if $optionNbBin.Nb == 'Yes':
|
|
24 -b $optionNbBin.nbBins
|
|
25 #end if
|
|
26
|
|
27 #if $optionStart.start == 'Yes':
|
|
28 -s $optionStart.startValue
|
|
29 #end if
|
|
30
|
|
31 #if $optionEnd.end == 'Yes':
|
|
32 -e $optionEnd.endValue
|
|
33 #end if
|
|
34
|
|
35 #if $optionHeight.height == 'Yes':
|
|
36 -H $optionHeight.heightValue
|
|
37 #end if
|
|
38
|
|
39 #if $optionWidth.width == 'Yes':
|
|
40 -W $optionWidth.widthValue
|
|
41 #end if
|
|
42
|
|
43 #if $optionYMin.YMin == 'Yes':
|
|
44 -y $optionYMin.YMinValue
|
|
45 #end if
|
|
46
|
|
47 #if $optionYMax.YMax == 'Yes':
|
|
48 -Y $optionYMax.YMaxValue
|
|
49 #end if
|
|
50
|
|
51 #if $optionChrom.chrom == 'Yes':
|
|
52 -c $optionChrom.chromValue
|
|
53 #end if
|
|
54
|
|
55 #if $optionColor.color == 'Yes':
|
|
56 -l $optionColor.colorValue
|
|
57 #end if
|
|
58
|
|
59 $bothStrands
|
|
60 $average
|
|
61 $normalize
|
31
|
62 $csv $outputCSV
|
|
63 $gff $outputGFF
|
6
|
64 -m
|
|
65 -o $outputFile
|
|
66
|
|
67 </command>
|
|
68
|
|
69 <inputs>
|
|
70 <conditional name="formatType">
|
|
71 <param name="FormatInputFileName" type="select" label="Input File Format">
|
|
72 <option value="bed">bed</option>
|
|
73 <option value="gff">gff</option>
|
|
74 <option value="gff2">gff2</option>
|
|
75 <option value="gff3">gff3</option>
|
31
|
76 <option value="csv">csv</option>
|
6
|
77 <option value="sam">sam</option>
|
|
78 <option value="gtf">gtf</option>
|
|
79 </param>
|
|
80 <when value="bed">
|
|
81 <param name="inputFileName" format="bed" type="data" label="Input File"/>
|
|
82 </when>
|
|
83 <when value="gff">
|
|
84 <param name="inputFileName" format="gff" type="data" label="Input File"/>
|
|
85 </when>
|
|
86 <when value="gff2">
|
|
87 <param name="inputFileName" format="gff2" type="data" label="Input File"/>
|
|
88 </when>
|
|
89 <when value="gff3">
|
|
90 <param name="inputFileName" format="gff3" type="data" label="Input File"/>
|
|
91 </when>
|
31
|
92 <when value="csv">
|
|
93 <param name="inputFileName" format="csv" type="data" label="Input File"/>
|
|
94 </when>
|
6
|
95 <when value="sam">
|
|
96 <param name="inputFileName" format="sam" type="data" label="Input File"/>
|
|
97 </when>
|
|
98 <when value="gtf">
|
|
99 <param name="inputFileName" format="gtf" type="data" label="Input File"/>
|
|
100 </when>
|
|
101 </conditional>
|
|
102
|
|
103 <param name="refFile" format="fasta" type="data" label="reference genome file"/>
|
|
104
|
|
105 <conditional name="optionNbBin">
|
31
|
106 <param name="Nb" type="select" label="number of bins">
|
6
|
107 <option value="Yes">Yes</option>
|
|
108 <option value="No" selected="true">No</option>
|
|
109 </param>
|
|
110 <when value="Yes">
|
|
111 <param name="nbBins" type="integer" value="1000" />
|
|
112 </when>
|
|
113 <when value="No">
|
|
114 </when>
|
|
115 </conditional>
|
|
116
|
|
117 <conditional name="optionStart">
|
31
|
118 <param name="start" type="select" label="start from a given region">
|
6
|
119 <option value="Yes">Yes</option>
|
|
120 <option value="No" selected="true">No</option>
|
|
121 </param>
|
|
122 <when value="Yes">
|
|
123 <param name="startValue" type="integer" value="0" />
|
|
124 </when>
|
|
125 <when value="No">
|
|
126 </when>
|
|
127 </conditional>
|
|
128
|
|
129 <conditional name="optionEnd">
|
31
|
130 <param name="end" type="select" label="end from a given region">
|
6
|
131 <option value="Yes">Yes</option>
|
|
132 <option value="No" selected="true">No</option>
|
|
133 </param>
|
|
134 <when value="Yes">
|
|
135 <param name="endValue" type="integer" value="0" />
|
|
136 </when>
|
|
137 <when value="No">
|
|
138 </when>
|
|
139 </conditional>
|
|
140
|
|
141 <conditional name="optionHeight">
|
31
|
142 <param name="height" type="select" label="height of the graphics">
|
6
|
143 <option value="Yes">Yes</option>
|
|
144 <option value="No" selected="true">No</option>
|
|
145 </param>
|
|
146 <when value="Yes">
|
|
147 <param name="heightValue" type="integer" value="300" />
|
|
148 </when>
|
|
149 <when value="No">
|
|
150 </when>
|
|
151 </conditional>
|
|
152
|
|
153 <conditional name="optionWidth">
|
31
|
154 <param name="width" type="select" label="width of the graphics">
|
6
|
155 <option value="Yes">Yes</option>
|
|
156 <option value="No" selected="true">No</option>
|
|
157 </param>
|
|
158 <when value="Yes">
|
|
159 <param name="widthValue" type="integer" value="1000" />
|
|
160 </when>
|
|
161 <when value="No">
|
|
162 </when>
|
|
163 </conditional>
|
|
164
|
|
165 <conditional name="optionYMin">
|
|
166 <param name="YMin" type="select" label="minimum value on the y-axis to plot">
|
|
167 <option value="Yes">Yes</option>
|
|
168 <option value="No" selected="true">No</option>
|
|
169 </param>
|
|
170 <when value="Yes">
|
|
171 <param name="YMinValue" type="integer" value="1000" />
|
|
172 </when>
|
|
173 <when value="No">
|
|
174 </when>
|
|
175 </conditional>
|
|
176
|
|
177 <conditional name="optionYMax">
|
|
178 <param name="YMax" type="select" label="maximum value on the y-axis to plot">
|
|
179 <option value="Yes">Yes</option>
|
|
180 <option value="No" selected="true">No</option>
|
|
181 </param>
|
|
182 <when value="Yes">
|
|
183 <param name="YMaxValue" type="integer" value="1000" />
|
|
184 </when>
|
|
185 <when value="No">
|
|
186 </when>
|
|
187 </conditional>
|
|
188
|
31
|
189 <conditional name="optionChrom">
|
|
190 <param name="chrom" type="select" label="plot only one given chromosome">
|
|
191 <option value="Yes">Yes</option>
|
|
192 <option value="No" selected="true">No</option>
|
|
193 </param>
|
|
194 <when value="Yes">
|
|
195 <param name="chromValue" type="text" value="chromName" />
|
|
196 </when>
|
|
197 <when value="No">
|
|
198 </when>
|
|
199 </conditional>
|
|
200
|
6
|
201 <conditional name="optionColor">
|
|
202 <param name="color" type="select" label="color of the lines (separated by commas and no space)">
|
|
203 <option value="Yes">Yes</option>
|
|
204 <option value="No" selected="true">No</option>
|
|
205 </param>
|
|
206 <when value="Yes">
|
|
207 <param name="colorValue" type="text" value="red,blue" />
|
|
208 </when>
|
|
209 <when value="No">
|
|
210 </when>
|
|
211 </conditional>
|
|
212
|
31
|
213
|
15
|
214 <param name="bothStrands" type="boolean" truevalue="-2" falsevalue="" checked="false" label="plot one curve per strand"/>
|
31
|
215 <param name="average" type="boolean" truevalue="-a" falsevalue="" checked="false" label="plot plot average (instead of sum)"/>
|
6
|
216
|
15
|
217 <conditional name="optionNames">
|
|
218 <param name="names" type="select" label="name for the tags (separated by commas and no space)">
|
|
219 <option value="Yes">Yes</option>
|
|
220 <option value="No" selected="true">No</option>
|
|
221 </param>
|
|
222 <when value="Yes">
|
|
223 <param name="namesValue" type="text" value="nbElements" />
|
|
224 </when>
|
|
225 <when value="No">
|
|
226 </when>
|
|
227 </conditional>
|
|
228
|
31
|
229 <param name="normalize" type="boolean" truevalue="-z" falsevalue="" checked="false" label="normalize data (when panels are different)"/>
|
|
230 <param name="csv" type="boolean" truevalue="-x" falsevalue="" checked="false" label="write a .csv file."/>
|
|
231 <param name="gff" type="boolean" truevalue="-g" falsevalue="" checked="false" label="write a .gff file."/>
|
6
|
232 </inputs>
|
|
233
|
|
234 <outputs>
|
31
|
235 <data name="outputFile" format="png" label="[getDistribution] out png file"/>
|
|
236 <data name="outputCSV" format="csv" label="[getDistribution] output csv file">
|
|
237 <filter>csv</filter>
|
|
238 </data>
|
|
239
|
|
240 <data name="outputGFF" format="gff" label="[getDistribution] output gff file">
|
|
241 <filter>gff</filter>
|
|
242 </data>
|
6
|
243 </outputs>
|
|
244
|
|
245 <help>
|
31
|
246 This script gives a .tar out file, if you want to take look at the results, you have to download it.
|
6
|
247 </help>
|
|
248 </tool>
|