Mercurial > repos > galaxyp > msi_spectra_plot
comparison msi_spectra_plots.xml @ 3:fe28ca73548a draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_spectra_plots commit a7be47698f53eb4f00961192327d93e8989276a7
author | galaxyp |
---|---|
date | Mon, 11 Jun 2018 17:34:44 -0400 |
parents | ea4f1c516368 |
children | 9eef2792afa4 |
comparison
equal
deleted
inserted
replaced
2:ea4f1c516368 | 3:fe28ca73548a |
---|---|
1 <tool id="mass_spectrometry_imaging_mzplots" name="MSI plot spectra" version="1.10.0.0"> | 1 <tool id="mass_spectrometry_imaging_mzplots" name="MSI plot spectra" version="1.10.0.1"> |
2 <description> | 2 <description> |
3 mass spectrometry imaging mass spectra plots | 3 mass spectrometry imaging mass spectra plots |
4 </description> | 4 </description> |
5 <requirements> | 5 <requirements> |
6 <requirement type="package" version="1.10.0">bioconductor-cardinal</requirement> | 6 <requirement type="package" version="1.10.0">bioconductor-cardinal</requirement> |
22 Rscript '${MSI_mzplots}' | 22 Rscript '${MSI_mzplots}' |
23 ]]> | 23 ]]> |
24 </command> | 24 </command> |
25 <configfiles> | 25 <configfiles> |
26 <configfile name="MSI_mzplots"><![CDATA[ | 26 <configfile name="MSI_mzplots"><![CDATA[ |
27 | |
27 ################################# load libraries and read file ################# | 28 ################################# load libraries and read file ################# |
28 | 29 |
29 library(Cardinal) | 30 library(Cardinal) |
30 library(gridExtra) | 31 library(gridExtra) |
31 | 32 |
39 load('infile.RData') | 40 load('infile.RData') |
40 #end if | 41 #end if |
41 | 42 |
42 ###################################### file properties in numbers ############## | 43 ###################################### file properties in numbers ############## |
43 | 44 |
44 ## Number of features (mz) | 45 ## Number of features (m/z) |
45 maxfeatures = length(features(msidata)) | 46 maxfeatures = length(features(msidata)) |
46 ## Range mz | 47 ## Range m/z |
47 minmz = round(min(mz(msidata)), digits=2) | 48 minmz = round(min(mz(msidata)), digits=2) |
48 maxmz = round(max(mz(msidata)), digits=2) | 49 maxmz = round(max(mz(msidata)), digits=2) |
49 ## Number of spectra (pixels) | 50 ## Number of spectra (pixels) |
50 pixelcount = length(pixels(msidata)) | 51 pixelcount = length(pixels(msidata)) |
51 ## Range x coordinates | 52 ## Range x coordinates |
58 minint = round(min(spectra(msidata)[]), digits=2) | 59 minint = round(min(spectra(msidata)[]), digits=2) |
59 maxint = round(max(spectra(msidata)[]), digits=2) | 60 maxint = round(max(spectra(msidata)[]), digits=2) |
60 medint = round(median(spectra(msidata)[]), digits=2) | 61 medint = round(median(spectra(msidata)[]), digits=2) |
61 ## Number of intensities > 0 | 62 ## Number of intensities > 0 |
62 npeaks= sum(spectra(msidata)[]>0) | 63 npeaks= sum(spectra(msidata)[]>0) |
63 ## Spectra multiplied with mz (potential number of peaks) | 64 ## Spectra multiplied with m/z (potential number of peaks) |
64 numpeaks = ncol(spectra(msidata)[])*nrow(spectra(msidata)[]) | 65 numpeaks = ncol(spectra(msidata)[])*nrow(spectra(msidata)[]) |
65 ## Percentage of intensities > 0 | 66 ## Percentage of intensities > 0 |
66 percpeaks = round(npeaks/numpeaks*100, digits=2) | 67 percpeaks = round(npeaks/numpeaks*100, digits=2) |
67 ## Number of empty TICs | 68 ## Number of empty TICs |
68 TICs = colSums(spectra(msidata)[]) | 69 TICs = colSums(spectra(msidata)[]) |
97 peakpickinginfo='FALSE' | 98 peakpickinginfo='FALSE' |
98 } else { | 99 } else { |
99 peakpickinginfo=processinginfo@peakPicking | 100 peakpickinginfo=processinginfo@peakPicking |
100 } | 101 } |
101 | 102 |
102 properties = c("Number of mz features", | 103 properties = c("Number of m/z features", |
103 "Range of mz values [Da]", | 104 "Range of m/z values [Da]", |
104 "Number of pixels", | 105 "Number of pixels", |
105 "Range of x coordinates", | 106 "Range of x coordinates", |
106 "Range of y coordinates", | 107 "Range of y coordinates", |
107 "Range of intensities", | 108 "Range of intensities", |
108 "Median of intensities", | 109 "Median of intensities", |
131 paste0(peakpickinginfo), | 132 paste0(peakpickinginfo), |
132 paste0(centroidedinfo)) | 133 paste0(centroidedinfo)) |
133 | 134 |
134 property_df = data.frame(properties, values) | 135 property_df = data.frame(properties, values) |
135 | 136 |
136 print("before pdf") | |
137 | |
138 ######################################## PDF ################################### | 137 ######################################## PDF ################################### |
139 ################################################################################ | 138 ################################################################################ |
140 ################################################################################ | 139 ################################################################################ |
141 | 140 |
142 | 141 |
143 pdf("mzplots.pdf", fonts = "Times", pointsize = 12) | 142 pdf("mzplots.pdf", fonts = "Times", pointsize = 12) |
144 plot(0,type='n',axes=FALSE,ann=FALSE) | 143 plot(0,type='n',axes=FALSE,ann=FALSE) |
145 | 144 #if not $filename: |
146 title(main=paste0("Plotted mass spectra for file: \n\n", "$infile.display_name")) | 145 #set $filename = $infile.display_name |
146 #end if | |
147 title(main=paste0("Plotted mass spectra for file: \n\n","$filename")) | |
147 | 148 |
148 | 149 |
149 ############################# I) numbers ###################################### | 150 ############################# I) numbers ###################################### |
150 ############################################################################### | 151 ############################################################################### |
151 | 152 |
152 print("in pdf") | |
153 grid.table(property_df, rows= NULL) | 153 grid.table(property_df, rows= NULL) |
154 | 154 |
155 | 155 if (npeaks > 0){ |
156 | 156 |
157 if (npeaks > 0) | |
158 { | |
159 pixeldf = data.frame(matrix(ncol = 2, nrow=0)) | 157 pixeldf = data.frame(matrix(ncol = 2, nrow=0)) |
160 | 158 |
159 ############################# single pixel ################################ | |
160 ########################################################################### | |
161 | 161 |
162 #if str( $pixel_conditional.pixel_type) == 'single_pixel': | 162 #if str( $pixel_conditional.pixel_type) == 'single_pixel': |
163 print("single_pixel") | 163 print("single_pixel") |
164 | 164 |
165 #for $chosenpixel in $pixel_conditional.repeatpixel: | 165 #for $chosenpixel in $pixel_conditional.repeatpixel: |
166 | |
167 | 166 |
168 pixelisvalid = as.character($chosenpixel.inputx %in% coord(msidata)\$x & $chosenpixel.inputy %in% coord(msidata)\$y) | 167 pixelisvalid = as.character($chosenpixel.inputx %in% coord(msidata)\$x & $chosenpixel.inputy %in% coord(msidata)\$y) |
169 pixelname = paste0("x=", $chosenpixel.inputx,", ", "y=", $chosenpixel.inputy) | 168 pixelname = paste0("x=", $chosenpixel.inputx,", ", "y=", $chosenpixel.inputy) |
170 print(pixelname) | |
171 print(colnames(pixeldf)) | |
172 print(colnames(cbind(pixelname, pixelisvalid))) | |
173 pixeldf = rbind(pixeldf, cbind(pixelname, pixelisvalid)) | 169 pixeldf = rbind(pixeldf, cbind(pixelname, pixelisvalid)) |
174 print(colnames(pixeldf)) | |
175 | 170 |
176 ############################# II) control image #################### | 171 ############################# II) control image #################### |
177 #################################################################### | 172 |
178 | 173 if (pixelisvalid == "TRUE"){ |
179 | 174 print(pixelisvalid) |
180 if (pixelisvalid == "TRUE") | 175 |
181 { | 176 image(msidata, mz=$chosenpixel.inputmz, ylim = c(maximumy+(0.2*maximumy),minimumy-1), |
182 | 177 colorkey=FALSE, plusminus = $chosenpixel.plusminusinDalton, contrast.enhance = "histogram", |
183 print(pixelisvalid) | 178 main= paste0("x= ",$chosenpixel.inputx, ", y= ", $chosenpixel.inputy)) |
184 | |
185 | |
186 image(msidata, mz=$chosenpixel.inputmz, | |
187 ylim = c(maximumy+(0.2*maximumy),minimumy-1),colorkey=FALSE, plusminus = $chosenpixel.plusminusinDalton, contrast.enhance = "histogram", | |
188 main= paste0("x= ",$chosenpixel.inputx, ", y= ", $chosenpixel.inputy)) | |
189 | 179 |
190 abline(v=$chosenpixel.inputx, col ="$chosenpixel.inputcolour", lty="$chosenpixel.inputtype", lwd=$chosenpixel.inputwidth) | 180 abline(v=$chosenpixel.inputx, col ="$chosenpixel.inputcolour", lty="$chosenpixel.inputtype", lwd=$chosenpixel.inputwidth) |
191 abline(h=$chosenpixel.inputy, col ="$chosenpixel.inputcolour", lty="$chosenpixel.inputtype", lwd=$chosenpixel.inputwidth) | 181 abline(h=$chosenpixel.inputy, col ="$chosenpixel.inputcolour", lty="$chosenpixel.inputtype", lwd=$chosenpixel.inputwidth) |
192 | 182 |
193 | |
194 ##################### III) plot full mass spectrum ################# | 183 ##################### III) plot full mass spectrum ################# |
195 #################################################################### | |
196 | 184 |
197 plot(msidata, coord=list(x=$chosenpixel.inputx, y=$chosenpixel.inputy)) | 185 plot(msidata, coord=list(x=$chosenpixel.inputx, y=$chosenpixel.inputy)) |
198 | 186 |
199 ##################### IV) plot zoom-in mass spectrum ############### | 187 ##################### IV) plot zoom-in mass spectrum ############### |
200 #################################################################### | |
201 | 188 |
202 #if $chosenpixel.zoomedplot: | 189 #if $chosenpixel.zoomedplot: |
203 #for $token in $chosenpixel.zoomedplot: | 190 #for $token in $chosenpixel.zoomedplot: |
204 | 191 |
205 minmasspixel = features(msidata, mz=$token.xlimmin) | 192 minmasspixel = features(msidata, mz=$token.xlimmin) |
208 plot(msidata[minmasspixel:maxmasspixel,], coord=list(x=$chosenpixel.inputx, y=$chosenpixel.inputy), | 195 plot(msidata[minmasspixel:maxmasspixel,], coord=list(x=$chosenpixel.inputx, y=$chosenpixel.inputy), |
209 xlim= c($token.xlimmin,$token.xlimmax)) | 196 xlim= c($token.xlimmin,$token.xlimmax)) |
210 | 197 |
211 #end for | 198 #end for |
212 #end if | 199 #end if |
213 | |
214 }else{ | 200 }else{ |
215 print("The pixel coordinates did not correspond to a real pixel")} | 201 print("The pixel coordinates did not correspond to a real pixel")} |
216 | |
217 #end for | 202 #end for |
218 | 203 |
219 colnames(pixeldf) = c("pixel coordinates", "coordinates were found in this file") | 204 colnames(pixeldf) = c("pixel coordinates", "coordinates were found in this file") |
220 | 205 |
206 | |
207 ############################# sample pixel ################################ | |
208 ########################################################################### | |
209 | |
221 #elif str( $pixel_conditional.pixel_type) == 'sample_pixel': | 210 #elif str( $pixel_conditional.pixel_type) == 'sample_pixel': |
222 print("sample_pixel") | 211 print("sample_pixel") |
223 | 212 |
224 ##################### I) Sample: plot full mass spectrum ########### | 213 ##################### I) Sample: plot full mass spectrum ############## |
225 plot(msidata, pixel=1:ncol(msidata), pixel.groups=pData(msidata)\$sample, key=TRUE, col=c("blue", "orange", "green", "red", "yellow", "grey"), superpose=TRUE) | 214 |
226 | 215 plot(msidata, pixel=1:ncol(msidata), pixel.groups=msidata\$combined_sample, key=TRUE, col=c("blue", "orange", "green", "red", "yellow", "grey"), superpose=TRUE) |
227 ##################### II) Sample: plot zoom-in mass spectrum ####### | 216 |
217 ##################### II) Sample: plot zoom-in mass spectrum ########## | |
228 | 218 |
229 #if $pixel_conditional.zoomed_sample: | 219 #if $pixel_conditional.zoomed_sample: |
230 #for $token in $pixel_conditional.zoomed_sample: | 220 #for $token in $pixel_conditional.zoomed_sample: |
231 | 221 |
232 minmasspixel = features(msidata, mz=$token.xlimmin) | 222 minmasspixel = features(msidata, mz=$token.xlimmin) |
233 maxmasspixel = features(msidata, mz=$token.xlimmax) | 223 maxmasspixel = features(msidata, mz=$token.xlimmax) |
234 plot(msidata[minmasspixel:maxmasspixel,], pixel=1:ncol(msidata), xlim= c($token.xlimmin,$token.xlimmax),pixel.groups=pData(msidata)\$sample, key=TRUE,col=c("blue", "orange", "green", "red", "yellow", "grey"), superpose=TRUE) | 224 |
225 plot(msidata[minmasspixel:maxmasspixel,], pixel=1:ncol(msidata), | |
226 xlim= c($token.xlimmin,$token.xlimmax),pixel.groups=msidata\$combined_sample, | |
227 key=TRUE,col=c("blue", "orange", "green", "red", "yellow", "grey"), superpose=TRUE) | |
235 | 228 |
236 #end for | 229 #end for |
237 #end if | 230 #end if |
238 | 231 |
239 pixeldf = data.frame(table(pData(msidata)\$sample)) | 232 pixeldf = data.frame(table(msidata\$combined_sample)) |
240 colnames(pixeldf) = c("sample name", "number of pixels") | 233 colnames(pixeldf) = c("sample name", "number of pixels") |
241 | 234 |
242 #end if | 235 #end if |
243 | 236 |
244 plot(0,type='n',axes=FALSE,ann=FALSE) | 237 plot(0,type='n',axes=FALSE,ann=FALSE) |
245 title(main="Overview of chosen pixel:") | 238 title(main="Overview of chosen pixel:") |
246 grid.table(pixeldf, rows= NULL) | 239 grid.table(pixeldf, rows= NULL) |
247 | 240 |
248 dev.off() | 241 dev.off() |
249 | |
250 | 242 |
251 }else{ | 243 }else{ |
252 print("Inputfile has no intensities > 0") | 244 print("Inputfile has no intensities > 0") |
253 dev.off() | 245 dev.off() |
254 } | 246 } |
255 ]]></configfile> | 247 ]]></configfile> |
256 </configfiles> | 248 </configfiles> |
257 <inputs> | 249 <inputs> |
258 <param name="infile" type="data" format="imzml,rdata,analyze75" label="Inputfile as imzML, Analyze7.5 or Cardinal MSImageSet saved as RData" | 250 <param name="infile" type="data" format="imzml,rdata,analyze75" label="Inputfile as imzML, Analyze7.5 or Cardinal MSImageSet saved as RData" |
259 help="Upload composite datatype imzml (ibd+imzML) or analyze75 (hdr+img+t2m) or regular upload .RData (Cardinal MSImageSet)"/> | 251 help="Upload composite datatype imzml (ibd+imzML) or analyze75 (hdr+img+t2m) or regular upload .RData (Cardinal MSImageSet)"/> |
252 <param name="filename" type="text" value="" label="Title" help="will appear in the pdf output. If nothing given it will take the dataset name"/> | |
260 <conditional name="pixel_conditional"> | 253 <conditional name="pixel_conditional"> |
261 <param name="pixel_type" type="select" label="Select if you want to plot the mass spectrum of a single pixel or of all pixels of a sample"> | 254 <param name="pixel_type" type="select" label="Select if you want to plot the mass spectrum of a single pixel or of all pixels of a sample"> |
262 <option value="single_pixel" selected="True">Single pixel</option> | 255 <option value="single_pixel" selected="True">Single pixel</option> |
263 <option value="sample_pixel">All pixels of a sample</option> | 256 <option value="sample_pixel">All pixels of a sample</option> |
264 </param> | 257 </param> |
265 <when value="single_pixel"> | 258 <when value="single_pixel"> |
266 <repeat name="repeatpixel" title="Plot mass spectra for pixel of interest" min="1" max="20"> | 259 <repeat name="repeatpixel" title="Plot mass spectra for pixel of interest" min="1" max="20"> |
267 <param name="inputx" type="integer" value="" label="x-coordinate of pixel of interest" help="x-value of the pixel of interest"/> | 260 <param name="inputx" type="integer" value="" label="x-coordinate of pixel of interest" help="x-value of the pixel of interest"/> |
268 <param name="inputy" type="integer" value="" label="y-coordinate of pixel of interest" help="y-value of the pixel of interest"/> | 261 <param name="inputy" type="integer" value="" label="y-coordinate of pixel of interest" help="y-value of the pixel of interest"/> |
269 <param name="inputmz" type="float" value="1296.7" label="Next parameters are to control heatmap image which will be plotted, here mz in Dalton" help="mz will be displayed as heatmap and the pixel of interest will be visualized by the intersection of two lines"/> | 262 <param name="inputmz" type="float" value="1296.7" label="Next parameters are to control heatmap image which will be plotted, here m/z in Dalton" help="m/z will be displayed as heatmap and the pixel of interest will be visualized by the intersection of two lines"/> |
270 <param name="plusminusinDalton" value="0.25" type="float" label="mass range for this mz value" help="plusminus mass window in Dalton"/> | 263 <param name="plusminusinDalton" value="0.25" type="float" label="m/z range for this m/z value" help="plusminus m/z window in Dalton"/> |
271 <param name="inputcolour" type="select" label="select the colour for the lines at x and y position"> | 264 <param name="inputcolour" type="select" label="select the colour for the lines at x and y position"> |
272 <option value="white" selected="True">white</option> | 265 <option value="white" selected="True">white</option> |
273 <option value="black">black</option> | 266 <option value="black">black</option> |
274 <option value="grey">grey</option> | 267 <option value="grey">grey</option> |
275 <option value="blue">blue</option> | 268 <option value="blue">blue</option> |
281 <option value="dashed">dashed</option> | 274 <option value="dashed">dashed</option> |
282 <option value="dotted">dotted</option> | 275 <option value="dotted">dotted</option> |
283 <option value="longdash">longdash</option> | 276 <option value="longdash">longdash</option> |
284 </param> | 277 </param> |
285 <param name="inputwidth" type="integer" value="2" label="select the width of the lines at x and y position"/> | 278 <param name="inputwidth" type="integer" value="2" label="select the width of the lines at x and y position"/> |
286 <repeat name="zoomedplot" title="Zoomed in plots with mz min and mz max to define the plot window" min="0" max="50"> | 279 <repeat name="zoomedplot" title="Zoomed in plots with m/z min and m/z max to define the plot window" min="0" max="50"> |
287 <param name="xlimmin" type="integer" value="" label="lower boundary in Dalton for plotting window" help="minimum mz for zoomed in window"/> | 280 <param name="xlimmin" type="integer" value="" label="lower boundary in Dalton for plotting window" help="minimum m/z for zoomed in window"/> |
288 <param name="xlimmax" type="integer" value="" label="upper boundary in Dalton for plotting window" help="maximum mz for zoomed in window"/> | 281 <param name="xlimmax" type="integer" value="" label="upper boundary in Dalton for plotting window" help="maximum m/z for zoomed in window"/> |
289 </repeat> | 282 </repeat> |
290 </repeat> | 283 </repeat> |
291 </when> | 284 </when> |
292 <when value="sample_pixel"> | 285 <when value="sample_pixel"> |
293 <repeat name="zoomed_sample" title="Zoomed in plots with mz min and mz max to define the plot window" min="0" max="50"> | 286 <repeat name="zoomed_sample" title="Zoomed in plots with m/z min and m/z max to define the plot window" min="0" max="50"> |
294 <param name="xlimmin" type="integer" value="" label="lower boundary in Dalton for plotting window" help="minimum mz for zoomed in window"/> | 287 <param name="xlimmin" type="integer" value="" label="lower boundary in Dalton for plotting window" help="minimum m/z for zoomed in window"/> |
295 <param name="xlimmax" type="integer" value="" label="upper boundary in Dalton for plotting window" help="maximum mz for zoomed in window"/> | 288 <param name="xlimmax" type="integer" value="" label="upper boundary in Dalton for plotting window" help="maximum m/z for zoomed in window"/> |
296 </repeat> | 289 </repeat> |
297 </when> | 290 </when> |
298 </conditional> | 291 </conditional> |
299 </inputs> | 292 </inputs> |
300 <outputs> | 293 <outputs> |
301 <data format="pdf" name="plots" from_work_dir="mzplots.pdf" label = "${tool.name} ${on_string}"/> | 294 <data format="pdf" name="plots" from_work_dir="mzplots.pdf" label = "$infile.display_name mass_spectra"/> |
302 </outputs> | 295 </outputs> |
303 <tests> | 296 <tests> |
304 <test> | 297 <test> |
305 <param name="infile" value="" ftype="imzml"> | 298 <param name="infile" value="" ftype="imzml"> |
306 <composite_data value="Example_Continuous.imzML"/> | 299 <composite_data value="Example_Continuous.imzML"/> |
311 <repeat name="repeatpixel"> | 304 <repeat name="repeatpixel"> |
312 <param name="plusminusinDalton" value="0.25"/> | 305 <param name="plusminusinDalton" value="0.25"/> |
313 <param name="inputx" value="3"/> | 306 <param name="inputx" value="3"/> |
314 <param name="inputy" value="3"/> | 307 <param name="inputy" value="3"/> |
315 <repeat name="zoomedplot"> | 308 <repeat name="zoomedplot"> |
316 <param name="xlimmin" value="550"/> | 309 <param name="xlimmin" value="310"/> |
317 <param name="xlimmax" value="555"/> | 310 <param name="xlimmax" value="320"/> |
318 </repeat> | 311 </repeat> |
319 <repeat name="zoomedplot"> | 312 <repeat name="zoomedplot"> |
320 <param name="xlimmin" value="750"/> | 313 <param name="xlimmin" value="350"/> |
321 <param name="xlimmax" value="800"/> | 314 <param name="xlimmax" value="400"/> |
322 </repeat> | 315 </repeat> |
323 <repeat name="zoomedplot"> | 316 <repeat name="zoomedplot"> |
324 <param name="xlimmin" value="400"/> | 317 <param name="xlimmin" value="400"/> |
325 <param name="xlimmax" value="420"/> | 318 <param name="xlimmax" value="420"/> |
326 </repeat> | 319 </repeat> |
362 </repeat> | 355 </repeat> |
363 </conditional> | 356 </conditional> |
364 <output name="plots" file="Plot_analyze75.pdf" compare="sim_size" delta="20000"/> | 357 <output name="plots" file="Plot_analyze75.pdf" compare="sim_size" delta="20000"/> |
365 </test> | 358 </test> |
366 <test> | 359 <test> |
367 <param name="infile" value="123_combined.rdata" ftype="rdata"/> | 360 <param name="infile" value="123_combined.RData" ftype="rdata"/> |
368 <conditional name="pixel_conditional"> | 361 <conditional name="pixel_conditional"> |
369 <param name="pixel_type" value="sample_pixel"/> | 362 <param name="pixel_type" value="sample_pixel"/> |
370 <repeat name="zoomed_sample"> | 363 <repeat name="zoomed_sample"> |
371 <param name="xlimmin" value="350"/> | 364 <param name="xlimmin" value="350"/> |
372 <param name="xlimmax" value="360"/> | 365 <param name="xlimmax" value="360"/> |
393 </tests> | 386 </tests> |
394 <help><![CDATA[ | 387 <help><![CDATA[ |
395 | 388 |
396 Cardinal is an R package that implements statistical & computational tools for analyzing mass spectrometry imaging datasets. `More information on Cardinal <http://cardinalmsi.org//>`_ | 389 Cardinal is an R package that implements statistical & computational tools for analyzing mass spectrometry imaging datasets. `More information on Cardinal <http://cardinalmsi.org//>`_ |
397 | 390 |
398 This tool uses the Cardinal plot function to generate (zoomed in) mass spectra plots of mass-spectrometry imaging data. | 391 This tool uses the Cardinal plot function to generate (zoomed in) mass spectra plots of mass spectrometry imaging data. |
399 | 392 |
400 Input data: 3 types of input data can be used: | 393 Input data: 3 types of input data can be used: |
401 | 394 |
402 - imzml file (upload imzml and ibd file via the "composite" function) `Introduction to the imzml format <https://ms-imaging.org/wp/imzml/>`_ | 395 - imzml file (upload imzml and ibd file via the "composite" function) `Introduction to the imzml format <https://ms-imaging.org/wp/imzml/>`_ |
403 - Analyze7.5 (upload hdr, img and t2m file via the "composite" function) | 396 - Analyze7.5 (upload hdr, img and t2m file via the "composite" function) |
404 - Cardinal "MSImageSet" data (with variable name "msidata", saved as .RData) | 397 - Cardinal "MSImageSet" data (with variable name "msidata", saved as .RData) |
405 | 398 |
406 Options: | 399 Options: |
407 | 400 |
408 - "single pixel": Returns a full mass-spectrum plot for one pixel, which is defined by its x- and y-coordinates | 401 - "single pixel": Returns a full mass spectrum plot for one pixel, which is defined by its x- and y-coordinates |
409 | 402 |
410 - Enter the x and y coordinates of your pixel of interest | 403 - Enter the x and y coordinates of your pixel of interest |
411 - To have a visual control for the selected pixel, a heatmap of a mass of interest will be drawn. Two intersecting lines will show the pixel location. This procedure requires an mass of interest together with a mass range and for the lines the colour and type. | 404 - To have a visual control for the selected pixel, a heatmap of a m/z of interest will be drawn. Two intersecting lines will show the pixel location. This procedure requires an m/z of interest together with a m/z range and for the lines the colour and type. |
412 - Additionally zoom into mass-spectra plots is possible by providing the minimum and maximum mass value to define the limits of the plot | 405 - Additionally zoom into mass spectra plots is possible by providing the minimum and maximum m/z value to define the limits of the plot |
413 - "All pixels of a sample": Returns a full average mass-spectrum plot with different colours for each subfile | 406 - "All pixels of a sample": Returns a full average mass spectrum plot with different colours for each subfile |
414 | 407 |
415 - This option only works on files that have previosly been combined in the combine tool | 408 - This option only works on files that have previosly been combined in the combine tool |
416 - Additionally zoom into mass-spectra plots is possible by providing the minimum and maximum mass value to define the limits of the plot | 409 - Additionally zoom into mass spectra plots is possible by providing the minimum and maximum m/z value to define the limits of the plot |
417 | 410 |
418 Output: | 411 Output: |
419 | 412 |
420 - Pdf with the selected mass-spectra plots and additional control plots | 413 - Pdf with the selected mass spectra plots and additional control plots |
421 | 414 |
422 Tip: | 415 Tip: |
423 | 416 |
424 - Corresponding peaklists with masses and their intensities can be obtained with the filtering tool option "ranges for x and y" | 417 - Corresponding mass spectra with m/z intensity pairs as tabular output can be obtained with the filtering tool option "ranges for x and y" |
425 | 418 |
426 | 419 |
427 ]]> | 420 ]]> |
428 </help> | 421 </help> |
429 <citations> | 422 <citations> |