annotate loadandplot.xml @ 38:fcc0eb90fb07 draft

Uploaded 20170531
author fabio
date Wed, 31 May 2017 12:50:22 -0400
parents 7e5e94fe6b1f
children 2920f5342d4d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
1 <tool id="loadandplot" name="IWTomics Load" version="@VERSION@.0">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
2 <description>Smooth and Plot</description>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
3 <macros>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
4 <import>macros.xml</import>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
5 </macros>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
6 <expand macro="requirements" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
7 <stdio>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
8 <exit_code range="255" source="both" level="fatal" description="Missing IWTomics package. Please be sure to have it installed before using this tool." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
9 <exit_code range="10" source="both" level="fatal" description="An error has occurred reading the header file for regions. Please try again." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
10 <exit_code range="11" source="both" level="fatal" description="Not all region files are present in the first column of header file for regions." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
11 <exit_code range="20" source="both" level="fatal" description="An error has occurred reading the header file for features. Please try again." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
12 <exit_code range="21" source="both" level="fatal" description="Not all feature files are present in the first column of header file for features." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
13 <exit_code range="30" source="both" level="fatal" description="An error has occurred reading the data. Please try again." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
14 <exit_code range="31" source="both" level="fatal" description="Not enough columns in input file." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
15 <exit_code range="32" source="both" level="fatal" description="Duplicated regions in region file." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
16 <exit_code range="33" source="both" level="fatal" description="Duplicated windows in feature file." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
17 <exit_code range="34" source="both" level="fatal" description="Overlapping windows in feature file." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
18 <exit_code range="35" source="both" level="fatal" description="Windows in feature files do not cover all regions in region files." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
19 <exit_code range="36" source="both" level="fatal" description="All windows in a feature file must have the same size." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
20 <exit_code range="40" source="both" level="fatal" description="An error has occurred smoothing the data. Please try again." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
21 <regex match="Error" source="both" level="fatal" description="An error has occurred. Please try again." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
22 </stdio>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
23
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
24 <command>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
25 <![CDATA[
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
26 Rscript $__tool_directory__/loadandplot.R outrdata="${outrdata}" outregions="${outregions}" outfeatures="${outfeatures}" outpdf="${outpdf}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
27
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
28 #set region_paths = '"\\|"'.join( [ str( $r ) for $r in $regions ] )
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
29 regionspaths="${region_paths}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
30 #set region_galaxyids = '","'.join( [ str( $r.hid ) for $r in $regions ] )
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
31 regionsgalaxyids="c(${region_galaxyids})"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
32 #set region_names = '"\\|"'.join( [ str( $r.name ) for $r in $regions ] )
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
33 regionsfilenames="${region_names}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
34 #set region_header = '"\\|"'.join( [ str( $rh.regionsheader ) for $rh in $regionsheaderrepeat ] )
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
35 #if $region_header != "":
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
36 regionsheaderfile="${region_header}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
37 #end if
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
38
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
39 #set feature_paths = '"\\|"'.join( [ str( $f ) for $f in $features ] )
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
40 featurespaths="${feature_paths}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
41 #set feature_galaxyids = '","'.join( [ str( $f.hid ) for $f in $features ] )
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
42 featuresgalaxyids="c(${feature_galaxyids})"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
43 #set feature_names = '"\\|"'.join( [ str( $f.name ) for $f in $features ] )
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
44 featuresfilenames="${feature_names}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
45 #set feature_header = '"\\|"'.join( [ str( $fh.featuresheader ) for $fh in $featuresheaderrepeat ] )
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
46 #if $feature_header != "":
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
47 featuresheaderfile="${feature_header}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
48 #end if
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
49
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
50 smoothing="'${conditionaltype.smoothing}'"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
51 start.are.0based="${zerobased}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
52 #if $conditionaltype.smoothing == 'no':
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
53 alignment="'${conditionaltype.alignment}'"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
54 #elif $conditionaltype.smoothing == 'locpoly':
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
55 alignment="'${conditionaltype.locpolyconditionalscale.alignment}'"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
56 #if $conditionaltype.locpolyconditionalscale.alignment == 'scale':
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
57 scale="${conditionaltype.locpolyconditionalscale.scalegrid}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
58 #end if
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
59 bandwidth="${conditionaltype.locpolybandwidth}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
60 degree="${conditionaltype.locpolydegree}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
61 fill_gaps="${conditionaltype.fillgaps}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
62 #elif $conditionaltype.smoothing == 'kernel':
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
63 alignment="'${conditionaltype.kernelconditionalscale.alignment}'"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
64 #if $conditionaltype.kernelconditionalscale.alignment == 'scale':
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
65 scale="${conditionaltype.kernelconditionalscale.scalegrid}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
66 #end if
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
67 bandwidth="${conditionaltype.kernelbandwidth}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
68 fill_gaps="${conditionaltype.fillgaps}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
69 #elif $conditionaltype.smoothing == 'splines':
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
70 alignment="'${conditionaltype.splinesconditionalscale.alignment}'"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
71 #if $conditionaltype.splinesconditionalscale.alignment == 'scale':
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
72 scale="${conditionaltype.splinesconditionalscale.scalegrid}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
73 #end if
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
74 degree="${conditionaltype.splinesdegree}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
75 dist_knots="${conditionaltype.splinesdistknots}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
76 fill_gaps="${conditionaltype.fillgaps}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
77 #end if
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
78
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
79 average="${plotres.average}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
80 size="${plotres.size}"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
81 plottype="'${plotres.conditionalplottype.plottype}'"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
82 #if $plotres.conditionalplottype.plottype == 'boxplot':
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
83 #set probs = '","'.join( [ str( $p.prob ) for $p in $plotres.conditionalplottype.probabilitiessection.probabilities ] )
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
84 #if $probs != "":
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
85 probs="c(${plotres.conditionalplottype.probabilitiessection.prob0},${plotres.conditionalplottype.probabilitiessection.prob1},${plotres.conditionalplottype.probabilitiessection.prob2},${probs})"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
86 #else:
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
87 probs="c(${plotres.conditionalplottype.probabilitiessection.prob0},${plotres.conditionalplottype.probabilitiessection.prob1},${plotres.conditionalplottype.probabilitiessection.prob2})"
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
88 #end if
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
89 #end if
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
90
34
7e5e94fe6b1f Uploaded 20170531
fabio
parents: 18
diff changeset
91 2> "${stackerr}"
18
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
92 ]]>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
93 <!--
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
94 to print the stack add the following line at the end of the command and enable the corresponding entry in output
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
95 2> "${stackerr}"
34
7e5e94fe6b1f Uploaded 20170531
fabio
parents: 18
diff changeset
96 >& /dev/null
18
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
97 -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
98 </command>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
99
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
100 <inputs>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
101 <!-- regions -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
102 <param format="tabular" name="regions" type="data" label="Select region files" multiple="true" help="" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
103 <repeat name="regionsheaderrepeat" title="Header file for regions (optional)" min="0" max="1" help="Tabular file. Column 1: names of the region files; Column 2: unique identifiers of the region datasets (spaces and special characters are not allowed); Column 3: name of the region datasets to be used in the output.">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
104 <param format="tabular" name="regionsheader" type="data" label="Select header file" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
105 </repeat>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
106
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
107 <!-- features -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
108 <param format="tabular" name="features" type="data" label="Select feature files" multiple="true" help="" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
109 <repeat name="featuresheaderrepeat" title="Header file for features (optional)" min="0" max="1" help="Tabular file. Column 1: names of the feature files; Column 2: unique identifiers of the features (spaces and special characters are not allowed); Column 3: name of the features to be used in the output.">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
110 <param format="tabular" name="featuresheader" type="data" label="Select header file" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
111 </repeat>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
112
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
113 <!-- zero-base one-base -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
114 <param name="zerobased" type="select" label="Start positions are:" multiple="false" help="">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
115 <option value="TRUE">0-based</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
116 <option value="FALSE">1-based</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
117 </param>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
118
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
119 <!-- conditional smoothing -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
120 <conditional name="conditionaltype">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
121 <!-- smoothing -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
122 <param name="smoothing" type="select" label="Smoothing" help="Type of smoothing to be applied to the feature curves.">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
123 <option value="no">No</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
124 <option value="locpoly">Local Polynomials</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
125 <option value="kernel">Gaussian Kernel</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
126 <option value="splines">B-Splines</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
127 </param>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
128 <!-- conditional choice: smoothing=no -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
129 <when value="no">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
130 <param name="alignment" type="select" label="Region alignment" help="">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
131 <option value="center">Center - Alignment on the central position</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
132 <option value="left">Left - Alignment on the starting position</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
133 <option value="right">Right - Alignment on the ending position</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
134 </param>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
135 </when>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
136 <!-- conditional choice: smoothing=locpoly -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
137 <when value="locpoly">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
138 <!-- conditional region alignment -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
139 <conditional name="locpolyconditionalscale">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
140 <param name="alignment" type="select" label="Region alignment" help="">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
141 <option value="center">Center - Alignment on the central position</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
142 <option value="left">Left - Alignment on the starting position</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
143 <option value="right">Right - Alignment on the ending position</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
144 <option value="scale">Scale - Scaling all regions to the same length</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
145 </param>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
146 <when value="scale">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
147 <param name="scalegrid" type="integer" value="0" min="0" label="Number of grid points" help="Number of equally-spaced grid points over which the smoothed curves are evaluated." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
148 </when>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
149 </conditional>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
150
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
151 <param name="locpolybandwidth" type="integer" value="5" min="2" label="Bandwidth for smoothing" help="" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
152 <param name="locpolydegree" type="integer" value="3" min="0" label="Degree of local polynomial" help="" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
153
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
154 <!-- fill gaps -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
155 <param name="fillgaps" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="True" label="Use smoothing to fill gaps (NA measurements)" help="" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
156 </when>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
157 <!-- conditional choice: smoothing=kernel -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
158 <when value="kernel">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
159 <!-- conditional region alignment -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
160 <conditional name="kernelconditionalscale">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
161 <param name="alignment" type="select" label="Region alignment" help="">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
162 <option value="center">Center - Alignment on the central position</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
163 <option value="left">Left - Alignment on the starting position</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
164 <option value="right">Right - Alignment on the ending position</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
165 <option value="scale">Scale - Scaling all regions to the same length</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
166 </param>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
167 <when value="scale">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
168 <param name="scalegrid" type="integer" value="0" min="0" label="Number of grid points" help="Number of equally-spaced grid points over which the smoothed curves are evaluated." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
169 </when>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
170 </conditional>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
171
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
172 <param name="kernelbandwidth" type="integer" value="5" min="2" label="Bandwidth for smoothing" help="" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
173
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
174 <!-- fill gaps -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
175 <param name="fillgaps" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="True" label="Use smoothing to fill gaps (NA measurements)" help="" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
176 </when>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
177 <!-- conditional choice: smoothing=splines -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
178 <when value="splines">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
179 <!-- conditional region alignment -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
180 <conditional name="splinesconditionalscale">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
181 <param name="alignment" type="select" label="Region alignment" help="">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
182 <option value="center">Center - Alignment on the central position</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
183 <option value="left">Left - Alignment on the starting position</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
184 <option value="right">Right - Alignment on the ending position</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
185 <option value="scale">Scale - Scaling all regions to the same length</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
186 </param>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
187 <when value="scale">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
188 <param name="scalegrid" type="integer" value="0" min="0" label="Number of grid points" help="Number of equally-spaced grid points over which the smoothed curves are evaluated." />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
189 </when>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
190 </conditional>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
191
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
192 <param name="splinesdegree" type="integer" value="3" min="0" label="Degree of B-splines" help="" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
193 <param name="splinesdistknots" type="integer" value="10" min="2" label="Distance between nodes (approximate)" help="" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
194
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
195 <!-- fill gaps -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
196 <param name="fillgaps" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="True" label="Use smoothing to fill gaps (NA measurements)" help="" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
197 </when>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
198 </conditional>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
199
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
200 <!-- plot IWTomics results -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
201 <section name="plotres" title="Plot data" expanded="True">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
202 <!-- average -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
203 <param name="average" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="True" label="Plot the mean curves" help="" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
204 <!-- sample size in each position -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
205 <param name="size" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="True" label="Plot sample size in each position" help="" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
206 <!-- conditional plot type -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
207 <conditional name="conditionalplottype">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
208 <!-- plot type -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
209 <param name="plottype" type="select" label="Plot type" help="">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
210 <option value="boxplot">Pointwise quantile curves (boxplot)</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
211 <option value="curves">Curves (aligned)</option>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
212 </param>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
213 <!-- conditional choice: plottype=boxplot -->
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
214 <when value="boxplot">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
215 <section name="probabilitiessection" title="Probabilities" expanded="True" help="Probabilities corresponding to the quantile curves to be drawn.">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
216 <param name="prob0" size="3" type="float" value="0.25" min="0.0" max="1.0" label="Probability" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
217 <param name="prob1" size="3" type="float" value="0.5" min="0.0" max="1.0" label="Probability" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
218 <param name="prob2" size="3" type="float" value="0.75" min="0.0" max="1.0" label="Probability" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
219 <repeat name="probabilities" title="Probabilities">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
220 <param name="prob" size="3" type="float" value="0.5" min="0.0" max="1.0" label="Probability" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
221 </repeat>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
222 </section>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
223 </when>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
224 </conditional>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
225 </section>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
226 </inputs>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
227
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
228 <outputs>
34
7e5e94fe6b1f Uploaded 20170531
fabio
parents: 18
diff changeset
229 <data format="txt" name="stackerr" label="iwtomics.loadandplot.stackerr.txt" from_work_dir="iwtomics.loadandplot.stackerr.txt" />
18
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
230 <data format="rdata" name="outrdata" label="${tool.name} on ${on_string}: IWTomicsData Object" from_work_dir="iwtomics.loadandplot.RData" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
231 <data format="tabular" name="outregions" label="${tool.name} on ${on_string}: Region Dataset IDs" from_work_dir="iwtomics.loadandplot.regions.txt" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
232 <data format="tabular" name="outfeatures" label="${tool.name} on ${on_string}: Feature IDs" from_work_dir="iwtomics.loadandplot.features.txt" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
233 <data format="pdf" name="outpdf" label="${tool.name} on ${on_string}: Plotted Data" from_work_dir="iwtomics.loadandplot.pdf" />
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
234 </outputs>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
235
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
236 <help>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
237 This tool imports a collection of genomic region datasets, and associates to each region
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
238 multiple genomic feature measurements. It allows to align the regions in multiple ways
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
239 (center, left, right or scale alignment), to smooth the feature curves (possibly filling gaps in the
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
240 measurements) and to create a graphical representation of the feature measurements in each
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
241 region datasets (aligned curves or pointwise quantile curves).
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
242
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
243 -----
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
244
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
245 **Region datasets**
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
246
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
247 Each region dataset can be provided as a BED or Tabular file with tab delimited columns chr
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
248 start end (extra columns present in the input file are ignored). Regions can be of different
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
249 length::
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
250
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
251 chr2 49960150 50060150
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
252 chr2 55912445 56012445
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
253 ...
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
254
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
255 -----
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
256
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
257 **Feature measurements**
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
258
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
259 Feature measurements corresponding to all the regions can be provided as a BED or Tabular
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
260 file with tab delimited columns chr start end value::
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
261
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
262 chr2 49960150 49962150 0.9426
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
263 chr2 49962150 49964150 0.7816
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
264 ...
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
265
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
266 Each feature must be measured in windows of a fixed size inside all the regions (missing
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
267 values must be indicated as NA). Another way to import feature measurements is from a
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
268 Tabular file with the first three columns chr start end corresponding to the different genomic
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
269 regions, followed on the same row by all the measurements in fixed-size windows::
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
270
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
271 chr2 49960150 50060150 0.9426 0.7816 0.8921 ... ... 1.2063
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
272 chr2 55912445 56012445 0.8719 0.9975 1.1619 ... ... 0.9601
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
273 ...
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
274
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
275 -----
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
276
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
277 **Output**
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
278
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
279 The tool returns:
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
280
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
281 1. RData with the IWTomicsData object, that stores the aligned genomic region datasets, and their associated feature measurements;
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
282 2. Region dataset identifiers;
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
283 3. Feature identifiers;
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
284 4. PDF file with the plotted data.
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
285
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
286 1-3 can be used as input of the tool *IWTomics Test and Plot*
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
287
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
288 -----
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
289
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
290 .. class:: infomark
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
291
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
292 **Notes**
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
293
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
294 This Galaxy tool has been developed by Fabio Cumbo (Third University of Rome, Italy) and Marzia A. Cremona (The Pennsylvania State University, USA).
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
295
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
296 It implements a simplified version of the methods *smooth* and *plot* for *IWTomicsData* objects.
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
297 The complete version can be found in the *R/Bioconductor* package *IWTomics* (see vignette_).
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
298
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
299 .. _vignette: https://bioconductor.org/packages/release/bioc/vignettes/IWTomics/inst/doc/IWTomics.pdf
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
300 </help>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
301
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
302 <citations>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
303 <citation type="bibtex">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
304 @ARTICLE{
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
305 iwt-functional-data,
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
306 author = {Pini, Alessia and Vantini, Simone},
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
307 title = {Interval-Wise Testing for functional data},
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
308 journal = {Journal of Nonparametric Statistics},
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
309 year = {2017},
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
310 volume = {29},
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
311 number = {2},
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
312 pages = {407-424}
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
313 }
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
314 </citation>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
315 <citation type="bibtex">
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
316 @MANUAL{
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
317 iwtomics,
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
318 author = {Cremona, Marzia A and Pini, Alessia and Chiaromonte, Francesca and Vantini, Simone},
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
319 title = {IWTomics: Interval-Wise Testing for Omics Data},
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
320 note = {R package version 0.99.12},
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
321 year = {2017}
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
322 }
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
323 </citation>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
324 </citations>
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
325
565118df598a Uploaded 20170531
fabio
parents:
diff changeset
326 </tool>