6
|
1 <tool id="getDistribution" name="get distribution">
|
15
|
2 <description>Get Distribution: Get the distribution of the genomic coordinates along 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
|
|
13 #elif $formatType.FormatInputFileName == 'csv':
|
|
14 -f csv
|
|
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
|
|
62 $csv $outputCSV
|
|
63 $gff $outputGFF
|
|
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>
|
|
76 <option value="sam">sam</option>
|
|
77 <option value="gtf">gtf</option>
|
|
78 </param>
|
|
79 <when value="bed">
|
|
80 <param name="inputFileName" format="bed" type="data" label="Input File"/>
|
|
81 </when>
|
|
82 <when value="gff">
|
|
83 <param name="inputFileName" format="gff" type="data" label="Input File"/>
|
|
84 </when>
|
|
85 <when value="gff2">
|
|
86 <param name="inputFileName" format="gff2" type="data" label="Input File"/>
|
|
87 </when>
|
|
88 <when value="gff3">
|
|
89 <param name="inputFileName" format="gff3" type="data" label="Input File"/>
|
|
90 </when>
|
|
91 <when value="sam">
|
|
92 <param name="inputFileName" format="sam" type="data" label="Input File"/>
|
|
93 </when>
|
|
94 <when value="gtf">
|
|
95 <param name="inputFileName" format="gtf" type="data" label="Input File"/>
|
|
96 </when>
|
|
97 </conditional>
|
|
98
|
|
99 <param name="refFile" format="fasta" type="data" label="reference genome file"/>
|
|
100
|
|
101 <conditional name="optionNbBin">
|
15
|
102 <param name="Nb" type="select" label="number of points">
|
6
|
103 <option value="Yes">Yes</option>
|
|
104 <option value="No" selected="true">No</option>
|
|
105 </param>
|
|
106 <when value="Yes">
|
|
107 <param name="nbBins" type="integer" value="1000" />
|
|
108 </when>
|
|
109 <when value="No">
|
|
110 </when>
|
|
111 </conditional>
|
|
112
|
15
|
113 <conditional name="optionChrom">
|
|
114 <param name="chrom" type="select" label="if you wish to plot only one chromosome, mention the chromosome name">
|
|
115 <option value="Yes">Yes</option>
|
|
116 <option value="No" selected="true">No</option>
|
|
117 </param>
|
|
118 <when value="Yes">
|
|
119 <param name="chromValue" type="text" value="chromName" />
|
|
120 </when>
|
|
121 <when value="No">
|
|
122 </when>
|
|
123 </conditional>
|
|
124
|
6
|
125 <conditional name="optionStart">
|
15
|
126 <param name="start" type="select" label="if you wish to plot only one locus, mention its start position">
|
6
|
127 <option value="Yes">Yes</option>
|
|
128 <option value="No" selected="true">No</option>
|
|
129 </param>
|
|
130 <when value="Yes">
|
|
131 <param name="startValue" type="integer" value="0" />
|
|
132 </when>
|
|
133 <when value="No">
|
|
134 </when>
|
|
135 </conditional>
|
|
136
|
|
137 <conditional name="optionEnd">
|
15
|
138 <param name="end" type="select" label="if you wish to plot only one locus, mention its end position">
|
6
|
139 <option value="Yes">Yes</option>
|
|
140 <option value="No" selected="true">No</option>
|
|
141 </param>
|
|
142 <when value="Yes">
|
|
143 <param name="endValue" type="integer" value="0" />
|
|
144 </when>
|
|
145 <when value="No">
|
|
146 </when>
|
|
147 </conditional>
|
|
148
|
|
149 <conditional name="optionHeight">
|
15
|
150 <param name="height" type="select" label="height of the figure">
|
6
|
151 <option value="Yes">Yes</option>
|
|
152 <option value="No" selected="true">No</option>
|
|
153 </param>
|
|
154 <when value="Yes">
|
|
155 <param name="heightValue" type="integer" value="300" />
|
|
156 </when>
|
|
157 <when value="No">
|
|
158 </when>
|
|
159 </conditional>
|
|
160
|
|
161 <conditional name="optionWidth">
|
15
|
162 <param name="width" type="select" label="width of the figure">
|
6
|
163 <option value="Yes">Yes</option>
|
|
164 <option value="No" selected="true">No</option>
|
|
165 </param>
|
|
166 <when value="Yes">
|
|
167 <param name="widthValue" type="integer" value="1000" />
|
|
168 </when>
|
|
169 <when value="No">
|
|
170 </when>
|
|
171 </conditional>
|
|
172
|
|
173 <conditional name="optionYMin">
|
|
174 <param name="YMin" type="select" label="minimum value on the y-axis to plot">
|
|
175 <option value="Yes">Yes</option>
|
|
176 <option value="No" selected="true">No</option>
|
|
177 </param>
|
|
178 <when value="Yes">
|
|
179 <param name="YMinValue" type="integer" value="1000" />
|
|
180 </when>
|
|
181 <when value="No">
|
|
182 </when>
|
|
183 </conditional>
|
|
184
|
|
185 <conditional name="optionYMax">
|
|
186 <param name="YMax" type="select" label="maximum value on the y-axis to plot">
|
|
187 <option value="Yes">Yes</option>
|
|
188 <option value="No" selected="true">No</option>
|
|
189 </param>
|
|
190 <when value="Yes">
|
|
191 <param name="YMaxValue" type="integer" value="1000" />
|
|
192 </when>
|
|
193 <when value="No">
|
|
194 </when>
|
|
195 </conditional>
|
|
196
|
|
197 <conditional name="optionColor">
|
|
198 <param name="color" type="select" label="color of the lines (separated by commas and no space)">
|
|
199 <option value="Yes">Yes</option>
|
|
200 <option value="No" selected="true">No</option>
|
|
201 </param>
|
|
202 <when value="Yes">
|
|
203 <param name="colorValue" type="text" value="red,blue" />
|
|
204 </when>
|
|
205 <when value="No">
|
|
206 </when>
|
|
207 </conditional>
|
|
208
|
15
|
209 <param name="bothStrands" type="boolean" truevalue="-2" falsevalue="" checked="false" label="plot one curve per strand"/>
|
|
210 <param name="average" type="boolean" truevalue="-a" falsevalue="" checked="false" label="plot the number of element per bin (instead of sum)"/>
|
6
|
211
|
15
|
212 <conditional name="optionNames">
|
|
213 <param name="names" type="select" label="name for the tags (separated by commas and no space)">
|
|
214 <option value="Yes">Yes</option>
|
|
215 <option value="No" selected="true">No</option>
|
|
216 </param>
|
|
217 <when value="Yes">
|
|
218 <param name="namesValue" type="text" value="nbElements" />
|
|
219 </when>
|
|
220 <when value="No">
|
|
221 </when>
|
|
222 </conditional>
|
|
223
|
|
224 <param name="normalize" type="boolean" truevalue="-z" falsevalue="" checked="false" label="normalize data (when panel sizes are different)"/>
|
6
|
225 </inputs>
|
|
226
|
|
227 <outputs>
|
|
228 <data name="outputFile" format="png" label="[getDistribution] out png file"/>
|
|
229 </outputs>
|
|
230
|
|
231 <help>
|
15
|
232 This script gives a .tar out file, if you want to take look at the results, you have to download it.
|
|
233
|
|
234 Print a density profile of the data for each chromosome, see Figure~\ref{fig:getDistribution}. You have to provide the reference genome, to know the sizes of the chromosomes. You can also provide the number of points (called *bins*) you want per chromosome.
|
|
235
|
|
236 By default, only one curve is plotted per chromosome, but you can plot one curve per strand and per chromosome (the minus strand will be plotted with non-positive values on the *y*-axis).
|
|
237
|
|
238 If you want, you can also plot a specific region, by mentionning the chromosome, the start and the end positions of the region.
|
6
|
239 </help>
|
|
240 </tool>
|