annotate msi_spectra_plots.xml @ 0:c93ae3463b30 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
author galaxyp
date Mon, 27 Nov 2017 13:50:11 -0500
parents
children 7caaf84a8a51
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
1 <tool id="mass_spectrometry_imaging_mzplots" name="MSI massspectra" version="1.7.0">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
2 <description>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
3 mass spectrometry imaging mass spectra plots
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
4 </description>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
5 <requirements>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
6 <requirement type="package" version="1.7.0">bioconductor-cardinal</requirement>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
7 <requirement type="package" version="2.2.1">r-gridextra</requirement>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
8 <requirement type="package" version="2.23-15">r-kernsmooth</requirement>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
9 </requirements>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
10 <command detect_errors="exit_code">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
11 <![CDATA[
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
12 #if $infile.ext == 'imzml'
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
13 cp '${infile.extra_files_path}/imzml' infile.imzML &&
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
14 cp '${infile.extra_files_path}/ibd' infile.ibd &&
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
15 #elif $infile.ext == 'analyze75'
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
16 cp '${infile.extra_files_path}/hdr' infile.hdr &&
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
17 cp '${infile.extra_files_path}/img' infile.img &&
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
18 cp '${infile.extra_files_path}/t2m' infile.t2m &&
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
19 #else
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
20 ln -s $infile infile.RData &&
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
21 #end if
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
22 cat '${MSI_mzplots}' &&
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
23 Rscript '${MSI_mzplots}'
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
24 ]]>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
25 </command>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
26 <configfiles>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
27 <configfile name="MSI_mzplots"><![CDATA[
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
28 ################################# load libraries and read file #########################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
29
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
30 library(Cardinal)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
31 library(gridExtra)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
32 library(KernSmooth)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
33
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
34 ## Read MALDI Imaging dataset
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
35
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
36 #if $infile.ext == 'imzml'
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
37 msidata <- readMSIData('infile.imzML')
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
38 #elif $infile.ext == 'analyze75'
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
39 msidata <- readMSIData('infile.hdr')
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
40 #else
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
41 load('infile.RData')
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
42 #end if
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
43
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
44 ###################################### file properties in numbers ######################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
45
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
46 ## Number of features (mz)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
47 maxfeatures = length(features(msidata))
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
48 ## Range mz
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
49 minmz = round(min(mz(msidata)), digits=2)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
50 maxmz = round(max(mz(msidata)), digits=2)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
51 ## Number of spectra (pixels)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
52 pixelcount = length(pixels(msidata))
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
53 ## Range x coordinates
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
54 minimumx = min(coord(msidata)[,1])
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
55 maximumx = max(coord(msidata)[,1])
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
56 ## Range y coordinates
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
57 minimumy = min(coord(msidata)[,2])
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
58 maximumy = max(coord(msidata)[,2])
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
59 ## Range of intensities
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
60 minint = round(min(spectra(msidata)[]), digits=2)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
61 maxint = round(max(spectra(msidata)[]), digits=2)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
62 medint = round(median(spectra(msidata)[]), digits=2)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
63 ## Number of intensities > 0
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
64 npeaks= sum(spectra(msidata)[]>0)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
65 ## Spectra multiplied with mz (potential number of peaks)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
66 numpeaks = ncol(spectra(msidata)[])*nrow(spectra(msidata)[])
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
67 ## Percentage of intensities > 0
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
68 percpeaks = round(npeaks/numpeaks*100, digits=2)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
69 ## Number of empty TICs
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
70 TICs = colSums(spectra(msidata)[])
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
71 NumemptyTIC = sum(TICs == 0)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
72
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
73 ## Processing informations
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
74 processinginfo = processingData(msidata)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
75 centroidedinfo = processinginfo@centroided # TRUE or FALSE
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
76
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
77 ## if TRUE write processinginfo if no write FALSE
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
78
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
79 ## normalization
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
80 if (length(processinginfo@normalization) == 0) {
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
81 normalizationinfo='FALSE'
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
82 } else {
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
83 normalizationinfo=processinginfo@normalization
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
84 }
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
85 ## smoothing
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
86 if (length(processinginfo@smoothing) == 0) {
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
87 smoothinginfo='FALSE'
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
88 } else {
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
89 smoothinginfo=processinginfo@smoothing
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
90 }
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
91 ## baseline
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
92 if (length(processinginfo@baselineReduction) == 0) {
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
93 baselinereductioninfo='FALSE'
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
94 } else {
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
95 baselinereductioninfo=processinginfo@baselineReduction
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
96 }
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
97 ## peak picking
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
98 if (length(processinginfo@peakPicking) == 0) {
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
99 peakpickinginfo='FALSE'
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
100 } else {
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
101 peakpickinginfo=processinginfo@peakPicking
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
102 }
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
103
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
104 properties = c("Number of mz features",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
105 "Range of mz values [Da]",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
106 "Number of pixels",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
107 "Range of x coordinates",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
108 "Range of y coordinates",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
109 "Range of intensities",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
110 "Median of intensities",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
111 "Intensities > 0",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
112 "Number of zero TICs",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
113 "Preprocessing",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
114 "Normalization",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
115 "Smoothing",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
116 "Baseline reduction",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
117 "Peak picking",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
118 "Centroided")
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
119
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
120 values = c(paste0(maxfeatures),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
121 paste0(minmz, " - ", maxmz),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
122 paste0(pixelcount),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
123 paste0(minimumx, " - ", maximumx),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
124 paste0(minimumy, " - ", maximumy),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
125 paste0(minint, " - ", maxint),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
126 paste0(medint),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
127 paste0(percpeaks, " %"),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
128 paste0(NumemptyTIC),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
129 paste0(" "),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
130 paste0(normalizationinfo),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
131 paste0(smoothinginfo),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
132 paste0(baselinereductioninfo),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
133 paste0(peakpickinginfo),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
134 paste0(centroidedinfo))
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
135
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
136 property_df = data.frame(properties, values)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
137
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
138
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
139 ######################################## PDF #############################################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
140 ##########################################################################################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
141 ##########################################################################################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
142
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
143
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
144 pdf("mzplots.pdf", fonts = "Times", pointsize = 12)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
145 plot(0,type='n',axes=FALSE,ann=FALSE)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
146
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
147 title(main=paste0("Plotted mass spectra for file: \n\n", "$infile.display_name"))
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
148
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
149
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
150 ############################# I) numbers ####################################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
151 #############################################################################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
152 grid.table(property_df, rows= NULL)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
153
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
154 counting = 2
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
155
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
156 outputmatrix = matrix(mz(msidata), ncol=1, byrow=TRUE)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
157 colnames(outputmatrix) = "m/z"
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
158
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
159 if (npeaks > 0)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
160 {
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
161 pixeldf = data.frame(matrix(ncol = 2, nrow=0))
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
162
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
163 #for $chosenpixel in $repeatpixel:
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
164
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
165
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
166 ### is x and y which was put in to define pixel valid coordinates?
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
167 pixelisvalid = as.character($chosenpixel.inputx %in% coord(msidata)\$x & $chosenpixel.inputy %in% coord(msidata)\$y)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
168 pixelname = paste0("x=", $chosenpixel.inputx,", ", "y=", $chosenpixel.inputy)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
169 pixeldf = rbind(pixeldf, cbind(pixelname, pixelisvalid))
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
170
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
171
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
172 ############################# II) control image #############################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
173 #############################################################################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
174
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
175
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
176 if (pixelisvalid == "TRUE")
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
177 {
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
178
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
179
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
180 image(msidata, mz=$chosenpixel.inputmz,
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
181 ylim = c(maximumy+(0.2*maximumy),minimumy-1),colorkey=FALSE, plusminus = $chosenpixel.plusminusinDalton, contrast.enhance = "histogram",
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
182 main= paste0("x= ",$chosenpixel.inputx, ", y= ", $chosenpixel.inputy))
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
183
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
184 abline(v=$chosenpixel.inputx, col ="$chosenpixel.inputcolour", lty="$chosenpixel.inputtype", lwd=$chosenpixel.inputwidth)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
185 abline(h=$chosenpixel.inputy, col ="$chosenpixel.inputcolour", lty="$chosenpixel.inputtype", lwd=$chosenpixel.inputwidth)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
186
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
187
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
188 ##################### III) plot full mass spectrum ##########################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
189 #############################################################################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
190
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
191 plot(msidata, coord=list(x=$chosenpixel.inputx, y=$chosenpixel.inputy))
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
192
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
193
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
194
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
195 ##################### IV) plot zoom-in mass spectrum ##########################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
196 #############################################################################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
197
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
198 #if $chosenpixel.zoomedplot:
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
199 #for $token in $chosenpixel.zoomedplot:
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
200
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
201 minmasspixel = features(msidata, mz=$token.xlimmin)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
202 maxmasspixel = features(msidata, mz=$token.xlimmax)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
203
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
204 plot(msidata[minmasspixel:maxmasspixel,], coord=list(x=$chosenpixel.inputx, y=$chosenpixel.inputy),
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
205 xlim= c($token.xlimmin,$token.xlimmax))
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
206
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
207 #end for
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
208 #end if
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
209
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
210 ##################### V) Output with mz and intensities #####################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
211 #############################################################################
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
212
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
213
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
214 ### for each repeat a new intensity column for the new pixel is added
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
215 outputmatrix = cbind(outputmatrix, spectra(msidata)[,pixels(msidata, coord=list(x=$chosenpixel.inputx, y=$chosenpixel.inputy))])
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
216 colnames(outputmatrix)[counting] = paste0("x= ",$chosenpixel.inputx, ", y= ", $chosenpixel.inputy, " intensity")
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
217 counting = counting+1
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
218
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
219 }else{
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
220 print("These pixel coordinates did not correspond to a real pixel")}
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
221
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
222 #end for
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
223
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
224 colnames(pixeldf) = c("pixel coordinates", "coordinates were found in this file")
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
225 plot(0,type='n',axes=FALSE,ann=FALSE)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
226 title(main=paste0("Overview of chosen pixel for file:\n", "$infile.display_name"))
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
227 grid.table(pixeldf, rows= NULL)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
228
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
229 dev.off()
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
230
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
231 write.table(outputmatrix, file="$tabularmatrix", quote = FALSE, row.names = FALSE, col.names=TRUE, sep = "\t")
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
232 }else{
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
233 print("Inputfile has no intensities > 0")
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
234 dev.off()
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
235 }
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
236 ]]></configfile>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
237 </configfiles>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
238 <inputs>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
239 <param name="infile" type="data" format="imzml,rdata,analyze75" label="Inputfile as imzML, Analyze7.5 or Cardinal MSImageSet saved as RData"
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
240 help="Upload composite datatype imzml (ibd+imzML) or analyze75 (hdr+img+t2m) or regular upload .RData (Cardinal MSImageSet)"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
241 <repeat name="repeatpixel" title="Plot mass spectra for pixel of interest" min="1" max="20">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
242 <param name="inputx" type="integer" value="" label="x-coordinate of pixel of interest" help="x-value of the pixel of interest"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
243 <param name="inputy" type="integer" value="" label="y-coordinate of pixel of interest" help="y-value of the pixel of interest"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
244 <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"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
245 <param name="plusminusinDalton" value="0.25" type="float" label="mass range for this mz value" help="plusminus mass window in Dalton"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
246 <param name="inputcolour" type="select" label="select the colour for the lines at x and y position">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
247 <option value="white" selected="True">white</option>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
248 <option value="black">black</option>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
249 <option value="grey">grey</option>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
250 <option value="blue">blue</option>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
251 <option value="red">red</option>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
252 <option value="green">green</option>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
253 </param>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
254 <param name="inputtype" type="select" label="select the line type for the lines at x and y position">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
255 <option value="solid" selected="True">solid</option>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
256 <option value="dashed">dashed</option>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
257 <option value="dotted">dotted</option>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
258 <option value="longdash">longdash</option>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
259 </param>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
260 <param name="inputwidth" type="integer" value="2" label="select the width of the lines at x and y position"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
261 <repeat name="zoomedplot" title="Zoomed in plots with mz min and mz max to define the plot window" min="0" max="50">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
262 <param name="xlimmin" type="integer" value="" label="lower boundary in Dalton for plotting window" help="minimum mz for zoomed in window"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
263 <param name="xlimmax" type="integer" value="" label="upper boundary in Dalton for plotting window" help="maximum mz for zoomed in window"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
264 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
265 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
266 </inputs>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
267 <outputs>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
268 <data format="pdf" name="plots" from_work_dir="mzplots.pdf" label = "${tool.name} on $infile.display_name"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
269 <data format="tabular" name="tabularmatrix" label="${tool.name} on $infile.display_name" />
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
270 </outputs>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
271 <tests>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
272 <test>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
273 <param name="infile" value="" ftype="imzml">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
274 <composite_data value="Example_Continuous.imzML"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
275 <composite_data value="Example_Continuous.ibd"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
276 </param>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
277 <repeat name="repeatpixel">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
278 <param name="plusminusinDalton" value="0.25"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
279 <param name="inputx" value="3"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
280 <param name="inputy" value="3"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
281 <repeat name="zoomedplot">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
282 <param name="xlimmin" value="550"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
283 <param name="xlimmax" value="555"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
284 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
285 <repeat name="zoomedplot">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
286 <param name="xlimmin" value="750"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
287 <param name="xlimmax" value="800"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
288 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
289 <repeat name="zoomedplot">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
290 <param name="xlimmin" value="400"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
291 <param name="xlimmax" value="420"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
292 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
293 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
294 <repeat name="repeatpixel">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
295 <param name="plusminusinDalton" value="0.25"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
296 <param name="inputx" value="2"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
297 <param name="inputy" value="2"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
298 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
299 <repeat name="repeatpixel">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
300 <param name="plusminusinDalton" value="0.25"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
301 <param name="inputx" value="1"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
302 <param name="inputy" value="1"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
303 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
304 <output name="plots" file="Plot_imzml.pdf" compare="sim_size" delta="20000"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
305 <output name="tabularmatrix" file="Matrix_imzml.txt"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
306 </test>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
307
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
308 <test>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
309 <param name="infile" value="" ftype="analyze75">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
310 <composite_data value="Analyze75.hdr"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
311 <composite_data value="Analyze75.img"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
312 <composite_data value="Analyze75.t2m"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
313 </param>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
314 <repeat name="repeatpixel">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
315 <param name="plusminusinDalton" value="0.25"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
316 <param name="inputx" value="5"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
317 <param name="inputy" value="2"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
318 <repeat name="zoomedplot">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
319 <param name="xlimmin" value="840"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
320 <param name="xlimmax" value="850"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
321 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
322 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
323 <repeat name="repeatpixel">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
324 <param name="plusminusinDalton" value="0.25"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
325 <param name="inputx" value="2"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
326 <param name="inputy" value="2"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
327 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
328 <output name="plots" file="Plot_analyze75.pdf" compare="sim_size" delta="20000"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
329 <output name="tabularmatrix" file="Matrix_analyze75.txt"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
330 </test>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
331
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
332 <test>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
333 <param name="infile" value="preprocessing_results1.RData" ftype="rdata"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
334 <repeat name="repeatpixel">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
335 <param name="plusminusinDalton" value="0.25"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
336 <param name="inputx" value="2"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
337 <param name="inputy" value="2"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
338 <repeat name="zoomedplot">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
339 <param name="xlimmin" value="222"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
340 <param name="xlimmax" value="244"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
341 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
342 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
343 <output name="plots" file="Plot_rdata.pdf" compare="sim_size" delta="20000"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
344 <output name="tabularmatrix" file="Matrix_rdata.txt"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
345 </test>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
346 <test>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
347 <param name="infile" value="LM8_file16.rdata" ftype="rdata"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
348 <param name="plusminusinDalton" value="0.1"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
349 <param name="inputx" value="1"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
350 <param name="inputy" value="1"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
351 <repeat name="repeatpixel">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
352 <param name="plusminusinDalton" value="0.25"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
353 <param name="inputx" value="2"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
354 <param name="inputy" value="2"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
355 <repeat name="zoomedplot">
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
356 <param name="xlimmin" value="1000"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
357 <param name="xlimmax" value="1050"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
358 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
359 </repeat>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
360 <output name="plots" file="Plot_LM8_file16.pdf" compare="sim_size" delta="20000"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
361 <output name="tabularmatrix" file="Matrix_LM8.txt"/>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
362 </test>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
363 </tests>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
364 <help><![CDATA[
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
365
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
366 Returns a full mass-spectrum plot and peaklist output with masses and intensities for the chosen pixel. Input needs the x and the y coordinates of the pixel of interest.
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
367 Additionally zoom into mass-spectra plots is possible by providing the minimum and maximum mz value to define the limits of the plot.
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
368 To have a visual control that the right pixel was chosen, a heatmap of a mass in Dalton which can be specified will be plotted and two intersecting lines will show where the chosen pixel is located in the ion image.
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
369
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
370 Input data: 3 types of input data can be used:
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
371
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
372 - imzml file (upload imzml and ibd file via the "composite" function) `Introduction to the imzml format <http://ms-imaging.org/wp/introduction/>`_
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
373 - Analyze7.5 (upload hdr, img and t2m file via the "composite" function)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
374 - Cardinal "MSImageSet" data (with variable name "msidata", saved as .RData)
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
375
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
376 The output of this tool contains a heatmap of the mass of interest with two lines intersecting at the pixel of interest. Then the full mass-spectrum plot is obtained and if chosen also several zoomed in mass spectra. A peaklist with masses and intensities for this pixel is exported as tabular file.
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
377
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
378 ]]>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
379 </help>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
380 <citations>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
381 <citation type="doi">10.1093/bioinformatics/btv146</citation>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
382 </citations>
c93ae3463b30 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_spectra_plot commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
383 </tool>