annotate loadandplot.xml @ 11:3a56f8e72534 draft

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