annotate msi_ion_images.xml @ 9:3aac627bd3ee draft default tip

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
author galaxyp
date Wed, 22 Aug 2018 13:42:32 -0400
parents 6cd561bbb7ee
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
3aac627bd3ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents: 8
diff changeset
1 <tool id="mass_spectrometry_imaging_ion_images" name="MSI ion images" version="1.10.0.5">
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
2 <description>
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
3 mass spectrometry imaging m/z heatmaps
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
4 </description>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
5 <requirements>
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
6 <requirement type="package" version="1.10.0">bioconductor-cardinal</requirement>
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
7 <requirement type="package" version="2.2.1">r-gridextra</requirement>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
8 <requirement type="package" version="0.20-35">r-lattice</requirement>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
9 </requirements>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
10 <command detect_errors="aggressive">
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
11 <![CDATA[
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
12 #if $infile.ext == 'imzml'
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
13 ln -s '${infile.extra_files_path}/imzml' infile.imzML &&
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
14 ln -s '${infile.extra_files_path}/ibd' infile.ibd &&
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
15 #elif $infile.ext == 'analyze75'
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
16 ln -s '${infile.extra_files_path}/hdr' infile.hdr &&
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
17 ln -s '${infile.extra_files_path}/img' infile.img &&
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
18 ln -s '${infile.extra_files_path}/t2m' infile.t2m &&
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
19 #else
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
20 ln -s $infile infile.RData &&
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
21 #end if
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
22 cat '${MSI_heatmaps}' &&
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
23 Rscript '${MSI_heatmaps}'
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
24 ]]>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
25 </command>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
26 <configfiles>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
27 <configfile name="MSI_heatmaps"><![CDATA[
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
28
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
29 ################################# load libraries and read file #################
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
30
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
31 library(Cardinal)
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
32 library(gridExtra)
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
33 library(lattice)
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
34
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
35 ## Read MALDI Imaging dataset
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
36
7
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
37
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
38 #if $infile.ext == 'imzml'
7
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
39 #if str($processed_cond.processed_file) == "processed":
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
40 msidata <- readImzML('infile', mass.accuracy=$processed_cond.accuracy, units.accuracy = "$processed_cond.units")
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
41 #else
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
42 msidata <- readImzML('infile', attach.only=TRUE)
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
43 #end if
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
44 #elif $infile.ext == 'analyze75'
7
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
45 msidata = readAnalyze('infile', attach.only=TRUE)
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
46 #else
9
3aac627bd3ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents: 8
diff changeset
47 loadRData <- function(fileName){
3aac627bd3ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents: 8
diff changeset
48 load(fileName)
3aac627bd3ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents: 8
diff changeset
49 get(ls()[ls() != "fileName"])
3aac627bd3ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents: 8
diff changeset
50 }
3aac627bd3ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents: 8
diff changeset
51 msidata = loadRData('infile.RData')
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
52 #end if
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
53
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
54
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
55 ###################################### file properties in numbers ##############
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
56
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
57 ## Number of features (m/z)
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
58 maxfeatures = length(features(msidata))
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
59 ## Range m/z
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
60 minmz = round(min(mz(msidata)), digits=2)
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
61 maxmz = round(max(mz(msidata)), digits=2)
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
62 ## Number of spectra (pixels)
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
63 pixelcount = length(pixels(msidata))
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
64 ## Range x coordinates
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
65 minimumx = min(coord(msidata)[,1])
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
66 maximumx = max(coord(msidata)[,1])
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
67 ## Range y coordinates
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
68 minimumy = min(coord(msidata)[,2])
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
69 maximumy = max(coord(msidata)[,2])
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
70 ## Range of intensities
7
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
71 minint = round(min(spectra(msidata)[], na.rm=TRUE), digits=2)
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
72 maxint = round(max(spectra(msidata)[], na.rm=TRUE), digits=2)
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
73 medint = round(median(spectra(msidata)[], na.rm=TRUE), digits=2)
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
74 ## Number of intensities > 0
7
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
75 npeaks= sum(spectra(msidata)[]>0, na.rm=TRUE)
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
76 ## Spectra multiplied with m/z (potential number of peaks)
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
77 numpeaks = ncol(spectra(msidata)[])*nrow(spectra(msidata)[])
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
78 ## Percentage of intensities > 0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
79 percpeaks = round(npeaks/numpeaks*100, digits=2)
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
80 ## Number of empty TICs
7
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
81 TICs = colSums(spectra(msidata)[], na.rm=TRUE)
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
82 NumemptyTIC = sum(TICs == 0)
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
83
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
84 ## Processing informations
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
85 processinginfo = processingData(msidata)
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
86 centroidedinfo = processinginfo@centroided # TRUE or FALSE
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
87
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
88 ## if TRUE write processinginfo if no write FALSE
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
89
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
90 ## normalization
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
91 if (length(processinginfo@normalization) == 0) {
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
92 normalizationinfo='FALSE'
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
93 } else {
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
94 normalizationinfo=processinginfo@normalization
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
95 }
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
96 ## smoothing
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
97 if (length(processinginfo@smoothing) == 0) {
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
98 smoothinginfo='FALSE'
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
99 } else {
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
100 smoothinginfo=processinginfo@smoothing
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
101 }
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
102 ## baseline
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
103 if (length(processinginfo@baselineReduction) == 0) {
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
104 baselinereductioninfo='FALSE'
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
105 } else {
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
106 baselinereductioninfo=processinginfo@baselineReduction
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
107 }
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
108 ## peak picking
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
109 if (length(processinginfo@peakPicking) == 0) {
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
110 peakpickinginfo='FALSE'
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
111 } else {
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
112 peakpickinginfo=processinginfo@peakPicking
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
113 }
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
114
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
115 ##################################### read and filter input m/z ##############
2
b2ad54eabcca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit ed7d3e6f1a09c78c8f71cc1bdc1a20249767f646
galaxyp
parents: 1
diff changeset
116
b2ad54eabcca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit ed7d3e6f1a09c78c8f71cc1bdc1a20249767f646
galaxyp
parents: 1
diff changeset
117 input_list = read.delim("$massfile", header = FALSE, stringsAsFactors = FALSE)
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
118
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
119 ### in case input file had only one column with m/z values but not names, duplicate m/z values and use as names:
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
120 if (ncol(input_list) == 1){
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
121 input_list = cbind(input_list, input_list)}
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
122
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
123 ### calculate how many input m/z are valid:
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
124 inputmasses = input_list[input_list[,1]>minmz & input_list[,1]<maxmz,]
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
125 inputmz = as.numeric(inputmasses[,1])
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
126 inputnames = as.character(inputmasses[,2])
2
b2ad54eabcca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit ed7d3e6f1a09c78c8f71cc1bdc1a20249767f646
galaxyp
parents: 1
diff changeset
127
1
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
128
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
129 ############################## PDF #############################################
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
130 ################################################################################
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
131
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
132 pdf("heatmaps.pdf", fonts = "Times", pointsize = 12)
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
133 plot(0,type='n',axes=FALSE,ann=FALSE)
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
134 #if not $filename:
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
135 #set $filename = $infile.display_name
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
136 #end if
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
137 title(main=paste("\nHeatmap images\n\n", "Filename:\n", "$filename"))
1
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
138
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
139 ############################# I) numbers ####################################
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
140
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
141 properties = c("Number of m/z features",
6
5a5b5a8fa8a0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 5
diff changeset
142 "Range of m/z values",
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
143 "Number of pixels",
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
144 "Range of x coordinates",
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
145 "Range of y coordinates",
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
146 "Range of intensities",
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
147 "Median of intensities",
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
148 "Intensities > 0",
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
149 "Number of zero TICs",
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
150 "Preprocessing",
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
151 "Normalization",
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
152 "Smoothing",
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
153 "Baseline reduction",
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
154 "Peak picking",
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
155 "Centroided",
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
156 paste0("# valid m/z in \n", "$massfile.display_name"))
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
157
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
158 values = c(paste0(maxfeatures),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
159 paste0(minmz, " - ", maxmz),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
160 paste0(pixelcount),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
161 paste0(minimumx, " - ", maximumx),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
162 paste0(minimumy, " - ", maximumy),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
163 paste0(minint, " - ", maxint),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
164 paste0(medint),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
165 paste0(percpeaks, " %"),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
166 paste0(NumemptyTIC),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
167 paste0(" "),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
168 paste0(normalizationinfo),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
169 paste0(smoothinginfo),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
170 paste0(baselinereductioninfo),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
171 paste0(peakpickinginfo),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
172 paste0(centroidedinfo),
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
173 paste0(length(inputmz), "/", length(input_list[,1])))
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
174
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
175 property_df = data.frame(properties, values)
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
176
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
177 grid.table(property_df, rows= NULL)
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
178
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
179 ############################# II) images ####################################
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
180
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
181 ### only plot images when file has peaks and valid input m/z:
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
182
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
183 if (npeaks > 0){
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
184 if (length(inputmz) != 0){
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
185 for (mass in 1:length(inputmz)){
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
186
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
187 ###standard image
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
188
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
189 #if str($image_cond.image_type) == "standard_image":
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
190 print("standard image")
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
191
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
192 print(image(msidata, mz=inputmz[mass],plusminus = $plusminus_dalton, contrast.enhance = "$image_contrast",
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
193 smooth.image = "$image_smoothing", strip=$strip, colorkey=$colorkey,ylim= c(maximumy+0.1*maximumy,minimumy-0.1*minimumy),
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
194 main= paste0(inputnames[mass], " (", round(inputmz[mass], digits = 2)," ± ", $plusminus_dalton, " Da)")))}
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
195
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
196
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
197 ###lattice image
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
198
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
199 #elif str($image_cond.image_type) == "lattice_image":
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
200 print("lattice image")
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
201
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
202 #if str($strip) =="TRUE":
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
203
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
204 print(image(msidata, mz=inputmz[mass], strip = strip.custom(bg="lightgrey", par.strip.text=list(col="black", cex=.9)),
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
205 lattice=TRUE, plusminus = $plusminus_dalton, contrast.enhance = "$image_contrast", smooth.image = "$image_smoothing",
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
206 colorkey=$colorkey,ylim= c(maximumy+0.1*maximumy,minimumy-0.1*minimumy),
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
207 main= paste0(inputnames[mass], " (", round(inputmz[mass], digits = 2)," ± ", $plusminus_dalton, " Da)")))}
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
208
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
209 #elif str($strip) =="FALSE":
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
210
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
211 print(image(msidata, mz=inputmz[mass], strip = $strip,
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
212 lattice=TRUE, plusminus = $plusminus_dalton, contrast.enhance = "$image_contrast", smooth.image = "$image_smoothing",
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
213 colorkey=$colorkey,
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
214 main= paste0(inputnames[mass], " (", round(inputmz[mass], digits = 2)," ± ", $plusminus_dalton, " Da)")))}
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
215
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
216 #end if
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
217
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
218 #end if
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
219
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
220 ## optional svg output with original coordinates
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
221 #if str($svg_cond.svg_pixelimage) == "yes_svg":
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
222 print("svg pixel image")
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
223
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
224 svg(file="svg_pixel_output.svg")
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
225 par(mar=c(0,0,0,0))
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
226 image(msidata, mz = inputmz[1],strip=FALSE, ylim=c(maximumy, minimumy), plusminus = $plusminus_dalton,colorkey = FALSE,axes=FALSE, xlab=NA, ylab=NA,contrast.enhance = "$image_contrast", smooth.image = "$image_smoothing")
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
227 dev.off()
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
228 #end if
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
229
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
230 } else {print("The input m/z were invalid")}
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
231 dev.off()
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
232 }else{
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
233 print("inputfile has no intensities > 0")
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
234 dev.off()
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
235 }
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
236
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
237
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
238 ]]></configfile>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
239 </configfiles>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
240 <inputs>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
241 <param name="infile" type="data" format="imzml,rdata,analyze75" label="Inputfile as imzML, Analyze7.5 or Cardinal MSImageSet saved as RData"
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
242 help="Upload composite datatype imzml (ibd+imzML) or analyze75 (hdr+img+t2m) or regular upload .RData (Cardinal MSImageSet)"/>
7
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
243 <conditional name="processed_cond">
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
244 <param name="processed_file" type="select" label="Is the input file a processed imzML file ">
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
245 <option value="no_processed" selected="True">not a processed imzML</option>
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
246 <option value="processed">processed imzML</option>
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
247 </param>
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
248 <when value="no_processed"/>
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
249 <when value="processed">
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
250 <param name="accuracy" type="float" value="50" label="Mass accuracy to which the m/z values will be binned" help="This should be set to the native accuracy of the mass spectrometer, if known"/>
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
251 <param name="units" display="radio" type="select" label="Unit of the mass accuracy" help="either m/z or ppm">
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
252 <option value="mz" >mz</option>
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
253 <option value="ppm" selected="True" >ppm</option>
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
254 </param>
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
255 </when>
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
256 </conditional>
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
257 <param name="filename" type="text" value="" label="Title" help="will appear in the pdf output. If nothing given it will take the dataset name"/>
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
258 <param name="massfile" type="data" format="tabular" label="Tabular file with m/z and names"
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
259 help="first column m/z, second column m/z name, tab separated file"/>
2
b2ad54eabcca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit ed7d3e6f1a09c78c8f71cc1bdc1a20249767f646
galaxyp
parents: 1
diff changeset
260 <param name="image_contrast" type="select" label="Select a contrast enhancement function for the heatmap images" help="The 'histogram' equalization method flatterns the distribution of intensities. The hotspot 'suppression' method uses thresholding to reduce the intensities of hotspots">
1
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
261 <option value="none" selected="True">none</option>
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
262 <option value="suppression">suppression</option>
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
263 <option value="histogram">histogram</option>
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
264 </param>
2
b2ad54eabcca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit ed7d3e6f1a09c78c8f71cc1bdc1a20249767f646
galaxyp
parents: 1
diff changeset
265 <param name="image_smoothing" type="select" label="Select an image smoothing function for the heatmap images" help="The 'gaussian' smoothing method smooths images with a simple gaussian kernel. The 'adaptive' method uses bilateral filtering to preserve edges">
1
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
266 <option value="none" selected="True">none</option>
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
267 <option value="gaussian">gaussian</option>
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
268 <option value="adaptive">adaptive</option>
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
269 </param>
9
3aac627bd3ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents: 8
diff changeset
270 <param name="plusminus_dalton" value="0.25" type="float" label="M/z range" help="plusminus m/z window"/>
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
271 <param name="strip" type="boolean" checked="True" display="radio" truevalue="TRUE" falsevalue="FALSE" label="Display m/z value in plot"/>
7
db0cf8eb4395 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
272 <param name="colorkey" type="boolean" checked="True" display="radio" truevalue="TRUE" falsevalue="FALSE" label="Display colorkey in plot"/>
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
273 <conditional name="image_cond">
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
274 <param name="image_type" type="select" label="Select the image type">
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
275 <option value="standard_image" selected="True">standard</option>
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
276 <option value="lattice_image">lattice</option>
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
277 </param>
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
278 <when value="standard_image"/>
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
279 <when value="lattice_image"/>
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
280 </conditional>
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
281 <conditional name="svg_cond">
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
282 <param name="svg_pixelimage" type="select" label="Do you want to export a heatmap with the original coordinates as svg image, the first valid m/z from tabular file is used">
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
283 <option value="no_svg" selected="True">No svg image export</option>
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
284 <option value="yes_svg">Export svg image</option>
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
285 </param>
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
286 <when value="no_svg"/>
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
287 <when value="yes_svg"/>
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
288 </conditional>
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
289 </inputs>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
290 <outputs>
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
291 <data format="pdf" name="plots" from_work_dir="heatmaps.pdf" label = "$infile.display_name heatmaps"/>
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
292 <data format="svg" name="svg_output" from_work_dir="svg_pixel_output.svg" label="$infile.display_name svg">
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
293 <filter>svg_cond['svg_pixelimage'] == 'yes_svg'</filter>
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
294 </data>
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
295 </outputs>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
296 <tests>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
297 <test>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
298 <param name="infile" value="" ftype="imzml">
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
299 <composite_data value="Example_Continuous.imzML"/>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
300 <composite_data value="Example_Continuous.ibd"/>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
301 </param>
1
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
302 <param name="massfile" value="inputpeptides.tabular" ftype="tabular"/>
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
303 <param name="plusminus_dalton" value="0.25"/>
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
304 <param name="filename" value="Testfile_imzml"/>
1
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
305 <param name="image_contrast" value="histogram"/>
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
306 <param name="strip" value="True"/>
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
307 <param name="colorkey" value="True"/>
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
308 <param name="image_type" value="lattice_image"/>
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
309 <output name="plots" file="Heatmaps_imzml.pdf" compare="sim_size" delta="20000"/>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
310 </test>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
311 <test>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
312 <param name="infile" value="" ftype="analyze75">
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
313 <composite_data value="Analyze75.hdr"/>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
314 <composite_data value="Analyze75.img"/>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
315 <composite_data value="Analyze75.t2m"/>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
316 </param>
1
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
317 <param name="massfile" value="inputpeptides2.tabular" ftype="tabular"/>
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
318 <param name="plusminus_dalton" value="0.5"/>
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
319 <param name="filename" value="Testfile_analyze75"/>
1
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
320 <param name="image_smoothing" value="gaussian"/>
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
321 <param name="strip" value="False"/>
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
322 <param name="colorkey" value="True"/>
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
323 <conditional name="svg_cond">
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
324 <param name="svg_pixelimage" value="yes_svg"/>
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
325 </conditional>
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
326 <output name="plots" file="Heatmaps_analyze75.pdf" compare="sim_size" delta="20000"/>
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
327 <output name="svg_output" file="analyze75.svg" compare="sim_size" delta="20000"/>
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
328 </test>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
329 <test>
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
330 <param name="infile" value="preprocessed.rdata" ftype="rdata"/>
1
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
331 <param name="massfile" value="inputpeptides.tabular" ftype="tabular"/>
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
332 <param name="plusminus_dalton" value="0.5"/>
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
333 <param name="strip" value="True"/>
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
334 <param name="colorkey" value="True"/>
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
335 <param name="image_type" value="lattice_image"/>
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
336 <param name="filename" value="Testfile_rdata"/>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
337 <output name="plots" file="Heatmaps_rdata.pdf" compare="sim_size" delta="20000"/>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
338 </test>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
339 <test>
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
340 <param name="infile" value="empty_spectra.rdata" ftype="rdata"/>
1
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
341 <param name="massfile" value="inputpeptides2.tabular" ftype="tabular"/>
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
342 <param name="plusminus_dalton" value="0.5"/>
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
343 <param name="strip" value="True"/>
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
344 <param name="colorkey" value="False"/>
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
345 <param name="filename" value="Testfile_rdata"/>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
346 <output name="plots" file="Heatmaps_LM8_file16.pdf" compare="sim_size" delta="20000"/>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
347 </test>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
348 </tests>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
349 <help><![CDATA[
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
350
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
351
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
352 Cardinal is an R package that implements statistical & computational tools for analyzing mass spectrometry imaging datasets. `More information on Cardinal <http://cardinalmsi.org//>`_
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
353
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
354 This tool uses the Cardinal image function to plot the intensity distribution of interesting m/z of mass spectrometry imaging data.
1
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
355 Input data:
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
356
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
357 3 types of mass spectrometry imaging data can be used:
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
358
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
359 - imzml file (upload imzml and ibd file via the "composite" function) `Introduction to the imzml format <https://ms-imaging.org/wp/imzml/>`_
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
360 - Analyze7.5 (upload hdr, img and t2m file via the "composite" function)
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
361 - Cardinal "MSImageSet" data (with variable name "msidata", saved as .RData)
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
362
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
363 Tabular file with m/z:
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
364
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
365 - tab separated file (.tabular), datatype in Galaxy must be tabular otherwise file will not appear in selection window (if Galaxy auto-detection was wrong, datatype can be changed by pressing button with the pen (edit attributes))
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
366 - first column must contain m/z (separate point numbers by point, not comma)
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
367 - optionally a second column with names for the m/z can be provided
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
368 - no empty fields or letters are allowed in the first column
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
369
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
370 Output:
1
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
371
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
372 - Pdf with the heatmap images
8
6cd561bbb7ee planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 620a469e20836b921b6c0147421c8a4268b66ebd
galaxyp
parents: 7
diff changeset
373 - optional svg file of a mass-spectrometry imaging m/z heatmap
1
845fee459824 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents: 0
diff changeset
374
4
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
375 Troubleshooting:
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
376
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
377 - no heatmaps are plotted when tabular file doesn't fulfill the criteria described above
9746576123c9 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 3
diff changeset
378 - no heatmaps are plotted when the input mass spectrometry imaging file has no intensities > 0
5
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
379 - the contrast enhance and image smoothing functions require a certain number of m/z with intensities > 0 (empirical value > 2% of spectra)
2b9fa240e261 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 4
diff changeset
380 - the standard image function should work for all files while the lattice function works not on every file (nicely)
0
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
381
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
382 ]]>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
383 </help>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
384 <citations>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
385 <citation type="doi">10.1093/bioinformatics/btv146</citation>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
386 </citations>
385e8a4accd9 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff changeset
387 </tool>