comparison mz_images.xml @ 9:08ebd8da780c draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 6e8b69ee3aff3c93f745a5de11cc9169130f2e5e"
author galaxyp
date Thu, 24 Sep 2020 11:35:54 +0000
parents 5e6f8fb2df07
children a95a82eb4d50
comparison
equal deleted inserted replaced
8:a69865da6f80 9:08ebd8da780c
62 if (ncol(msidata)>0 & nrow(msidata) >0){ 62 if (ncol(msidata)>0 & nrow(msidata) >0){
63 if (length(inputmz) != 0){ 63 if (length(inputmz) != 0){
64 for (mass in 1:length(inputmz)){ 64 for (mass in 1:length(inputmz)){
65 65
66 print(image(msidata, mz=inputmz[mass],plusminus = $plusminus_dalton, normalize.image="$normalize_image", contrast.enhance = "$image_contrast", 66 print(image(msidata, mz=inputmz[mass],plusminus = $plusminus_dalton, normalize.image="$normalize_image", contrast.enhance = "$image_contrast",
67 smooth.image = "$image_smoothing", strip=$strip, colorkey=$colorkey, colorscale=$colorscale, ylim= c(maximumy,minimumy)))} 67 smooth.image = "$image_smoothing", colorkey=$colorkey, colorscale=$colorscale, ylim= c(maximumy,minimumy)))
68 title(inputnames[mass], adj = 0.5, line = 1)}
68 69
69 70
70 ## optional svg output with original coordinates 71 ## optional svg output with original coordinates
71 #if $svg_pixelimage: 72 #if $svg_pixelimage:
72 print("svg pixel image") 73 print("svg pixel image")
97 key=FALSE, 98 key=FALSE,
98 ylim= c(maximumy,minimumy))) 99 ylim= c(maximumy,minimumy)))
99 100
100 legend("$overlay_cond.legend_position", 101 legend("$overlay_cond.legend_position",
101 fill=colourvector, 102 fill=colourvector,
102 legend=as.numeric(sort(as.character(inputmz)))) 103 legend=as.numeric(inputmz))
103 #end if 104 #end if
104 105
105 } else {print("The input m/z were invalid")} 106 } else {print("The input m/z were invalid")}
106 dev.off() 107 dev.off()
107 }else{ 108 }else{
132 <option value="viridis" selected="True">viridis</option> 133 <option value="viridis" selected="True">viridis</option>
133 <option value="magma">magma</option> 134 <option value="magma">magma</option>
134 <option value="plasma">plasma</option> 135 <option value="plasma">plasma</option>
135 <option value="inferno">inferno</option> 136 <option value="inferno">inferno</option>
136 </param> 137 </param>
137 <param name="strip" type="boolean" checked="True" truevalue="TRUE" falsevalue="FALSE" label="Display m/z value in plot"/>
138 <param name="colorkey" type="boolean" checked="True" truevalue="TRUE" falsevalue="FALSE" label="Display colorkey in plot"/> 138 <param name="colorkey" type="boolean" checked="True" truevalue="TRUE" falsevalue="FALSE" label="Display colorkey in plot"/>
139 <param name="normalize_image" type="boolean" truevalue="linear" falsevalue="none" label="Linear normalization of image"/> 139 <param name="normalize_image" type="boolean" truevalue="linear" falsevalue="none" label="Linear normalization of image"/>
140 <param name="svg_pixelimage" type="boolean" label="Export first valid m/z from tabular file as SVG"/> 140 <param name="svg_pixelimage" type="boolean" label="Export first valid m/z from tabular file as SVG"/>
141 <conditional name="overlay_cond"> 141 <conditional name="overlay_cond">
142 <param name="overlay_selection" type="select" label="Overlay image"> 142 <param name="overlay_selection" type="select" label="Overlay image">
180 <param name="mz_column" value="1"/> 180 <param name="mz_column" value="1"/>
181 <param name="name_column" value="2"/> 181 <param name="name_column" value="2"/>
182 <param name="plusminus_dalton" value="0.25"/> 182 <param name="plusminus_dalton" value="0.25"/>
183 <param name="filename" value="Testfile_imzml"/> 183 <param name="filename" value="Testfile_imzml"/>
184 <param name="image_contrast" value="histogram"/> 184 <param name="image_contrast" value="histogram"/>
185 <param name="strip" value="True"/>
186 <param name="colorkey" value="True"/> 185 <param name="colorkey" value="True"/>
187 <output name="plots" file="Heatmaps_imzml.pdf" ftype="pdf" compare="sim_size"/> 186 <output name="plots" file="Heatmaps_imzml.pdf" ftype="pdf" compare="sim_size"/>
188 </test> 187 </test>
189 <test> 188 <test>
190 <expand macro="infile_analyze75"/> 189 <expand macro="infile_analyze75"/>
193 <param name="name_column" value="1"/> 192 <param name="name_column" value="1"/>
194 <param name="plusminus_dalton" value="0.5"/> 193 <param name="plusminus_dalton" value="0.5"/>
195 <param name="filename" value="Testfile_analyze75"/> 194 <param name="filename" value="Testfile_analyze75"/>
196 <param name="colorscale" value="magma"/> 195 <param name="colorscale" value="magma"/>
197 <param name="image_smoothing" value="gaussian"/> 196 <param name="image_smoothing" value="gaussian"/>
198 <param name="strip" value="False"/>
199 <param name="colorkey" value="True"/> 197 <param name="colorkey" value="True"/>
200 <param name="svg_pixelimage" value="True"/> 198 <param name="svg_pixelimage" value="True"/>
201 <output name="plots" file="Heatmaps_analyze75.pdf" ftype="pdf" compare="sim_size"/> 199 <output name="plots" file="Heatmaps_analyze75.pdf" ftype="pdf" compare="sim_size"/>
202 <output name="svg_output" file="analyze75.svg" ftype="svg" compare="sim_size"/> 200 <output name="svg_output" file="analyze75.svg" ftype="svg" compare="sim_size"/>
203 </test> 201 </test>
205 <param name="infile" value="preprocessed.RData" ftype="rdata"/> 203 <param name="infile" value="preprocessed.RData" ftype="rdata"/>
206 <param name="calibrant_file" value="inputpeptides.tabular" ftype="tabular"/> 204 <param name="calibrant_file" value="inputpeptides.tabular" ftype="tabular"/>
207 <param name="mz_column" value="1"/> 205 <param name="mz_column" value="1"/>
208 <param name="name_column" value="2"/> 206 <param name="name_column" value="2"/>
209 <param name="plusminus_dalton" value="0.5"/> 207 <param name="plusminus_dalton" value="0.5"/>
210 <param name="strip" value="True"/>
211 <param name="colorkey" value="True"/> 208 <param name="colorkey" value="True"/>
212 <param name="filename" value="Testfile_rdata"/> 209 <param name="filename" value="Testfile_rdata"/>
213 <output name="plots" file="Heatmaps_rdata.pdf" ftype="pdf" compare="sim_size"/> 210 <output name="plots" file="Heatmaps_rdata.pdf" ftype="pdf" compare="sim_size"/>
214 </test> 211 </test>
215 <test> 212 <test>
217 <param name="calibrant_file" value="inputpeptides2.tabular" ftype="tabular"/> 214 <param name="calibrant_file" value="inputpeptides2.tabular" ftype="tabular"/>
218 <param name="mz_column" value="1"/> 215 <param name="mz_column" value="1"/>
219 <param name="name_column" value="1"/> 216 <param name="name_column" value="1"/>
220 <param name="plusminus_dalton" value="0.5"/> 217 <param name="plusminus_dalton" value="0.5"/>
221 <param name="colorscale" value="plasma"/> 218 <param name="colorscale" value="plasma"/>
222 <param name="strip" value="True"/>
223 <param name="colorkey" value="False"/> 219 <param name="colorkey" value="False"/>
224 <param name="filename" value="Testfile_rdata"/> 220 <param name="filename" value="Testfile_rdata"/>
225 <output name="plots" file="Heatmaps_LM8_file16.pdf" ftype="pdf" compare="sim_size"/> 221 <output name="plots" file="Heatmaps_LM8_file16.pdf" ftype="pdf" compare="sim_size"/>
226 </test> 222 </test>
227 <test> 223 <test>
228 <expand macro="processed_infile_imzml"/> 224 <expand macro="processed_infile_imzml"/>
229 <conditional name="processed_cond"> 225 <conditional name="processed_cond">
230 <param name="processed_file" value="processed"/> 226 <param name="processed_file" value="processed"/>
231 <param name="accuracy" value="100"/> 227 <param name="accuracy" value="200"/>
232 <param name="units" value="ppm"/> 228 <param name="units" value="ppm"/>
233 </conditional> 229 </conditional>
234 <param name="calibrant_file" value="inputpeptides.tabular" ftype="tabular"/> 230 <param name="calibrant_file" value="inputpeptides.tabular" ftype="tabular"/>
235 <param name="mz_column" value="1"/> 231 <param name="mz_column" value="1"/>
236 <param name="name_column" value="2"/> 232 <param name="name_column" value="2"/>