Mercurial > repos > galaxyp > msi_ion_images
annotate msi_ion_images.xml @ 1:ce354a40c13c draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
author | galaxyp |
---|---|
date | Thu, 01 Mar 2018 08:24:01 -0500 |
parents | 8ae9894fc55f |
children | 3ab8917d59cb |
rev | line source |
---|---|
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
1 <tool id="mass_spectrometry_imaging_ion_images" name="MSI ion images" version="1.7.0.1"> |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
2 <description> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
3 mass spectrometry imaging heatmaps |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
4 </description> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
5 <requirements> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
6 <requirement type="package" version="1.7.0">bioconductor-cardinal</requirement> |
8ae9894fc55f
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> |
8ae9894fc55f
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="2.23-15">r-kernsmooth</requirement> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
9 <requirement type="package" version="0.20-35">r-lattice</requirement> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
10 </requirements> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
11 <command detect_errors="aggressive"> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
12 <![CDATA[ |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
13 #if $infile.ext == 'imzml' |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
14 cp '${infile.extra_files_path}/imzml' infile.imzML && |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
15 cp '${infile.extra_files_path}/ibd' infile.ibd && |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
16 #elif $infile.ext == 'analyze75' |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
17 cp '${infile.extra_files_path}/hdr' infile.hdr && |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
18 cp '${infile.extra_files_path}/img' infile.img && |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
19 cp '${infile.extra_files_path}/t2m' infile.t2m && |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
20 #else |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
21 ln -s $infile infile.RData && |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
22 #end if |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
23 cat '${MSI_heatmaps}' && |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
24 Rscript '${MSI_heatmaps}' |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
25 ]]> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
26 </command> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
27 <configfiles> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
28 <configfile name="MSI_heatmaps"><![CDATA[ |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
29 ################################# load libraries and read file ######################### |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
30 |
8ae9894fc55f
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) |
8ae9894fc55f
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) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
33 library(KernSmooth) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
34 library(lattice) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
35 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
36 ## Read MALDI Imaging dataset |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
37 |
8ae9894fc55f
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' |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
39 msidata = readMSIData('infile.imzML') |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
40 #elif $infile.ext == 'analyze75' |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
41 msidata = readMSIData('infile.hdr') |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
42 #else |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
43 load('infile.RData') |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
44 #end if |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
45 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
46 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
47 ###################################### file properties in numbers ###################### |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
48 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
49 ## Number of features (mz) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
50 maxfeatures = length(features(msidata)) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
51 ## Range mz |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
52 minmz = round(min(mz(msidata)), digits=2) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
53 maxmz = round(max(mz(msidata)), digits=2) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
54 ## Number of spectra (pixels) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
55 pixelcount = length(pixels(msidata)) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
56 ## Range x coordinates |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
57 minimumx = min(coord(msidata)[,1]) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
58 maximumx = max(coord(msidata)[,1]) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
59 ## Range y coordinates |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
60 minimumy = min(coord(msidata)[,2]) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
61 maximumy = max(coord(msidata)[,2]) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
62 ## Range of intensities |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
63 minint = round(min(spectra(msidata)[]), digits=2) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
64 maxint = round(max(spectra(msidata)[]), digits=2) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
65 medint = round(median(spectra(msidata)[]), digits=2) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
66 ## Number of intensities > 0 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
67 npeaks= sum(spectra(msidata)[]>0) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
68 ## Spectra multiplied with mz (potential number of peaks) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
69 numpeaks = ncol(spectra(msidata)[])*nrow(spectra(msidata)[]) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
70 ## Percentage of intensities > 0 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
71 percpeaks = round(npeaks/numpeaks*100, digits=2) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
72 ## Number of empty TICs |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
73 TICs = colSums(spectra(msidata)[]) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
74 NumemptyTIC = sum(TICs == 0) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
75 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
76 ## Processing informations |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
77 processinginfo = processingData(msidata) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
78 centroidedinfo = processinginfo@centroided # TRUE or FALSE |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
79 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
80 ## if TRUE write processinginfo if no write FALSE |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
81 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
82 ## normalization |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
83 if (length(processinginfo@normalization) == 0) { |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
84 normalizationinfo='FALSE' |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
85 } else { |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
86 normalizationinfo=processinginfo@normalization |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
87 } |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
88 ## smoothing |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
89 if (length(processinginfo@smoothing) == 0) { |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
90 smoothinginfo='FALSE' |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
91 } else { |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
92 smoothinginfo=processinginfo@smoothing |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
93 } |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
94 ## baseline |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
95 if (length(processinginfo@baselineReduction) == 0) { |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
96 baselinereductioninfo='FALSE' |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
97 } else { |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
98 baselinereductioninfo=processinginfo@baselineReduction |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
99 } |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
100 ## peak picking |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
101 if (length(processinginfo@peakPicking) == 0) { |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
102 peakpickinginfo='FALSE' |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
103 } else { |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
104 peakpickinginfo=processinginfo@peakPicking |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
105 } |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
106 |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
107 #if $massfile: |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
108 ### Read tabular file with peptide masses for plots and heatmap images: |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
109 input_list = read.delim("$massfile", header = FALSE, stringsAsFactors = FALSE) |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
110 if (ncol(input_list) == 1) |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
111 { |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
112 input_list = cbind(input_list, input_list) |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
113 } |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
114 ### calculate how many input masses are valid: |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
115 inputmasses = input_list[input_list[,1]>minmz & input_list[,1]<maxmz,] |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
116 |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
117 inputmz = inputmasses[,1] |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
118 inputnames = inputmasses[,2] |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
119 #else |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
120 input_list = data.frame(0, 0) |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
121 inputmz = 0 |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
122 #end if |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
123 |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
124 |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
125 countpixels = rowSums(spectra(msidata)[features(msidata, mz=inputmz),]>0) |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
126 percentpixels = round(countpixels/pixelcount*100, digits=1) |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
127 valuesdataframe = cbind(inputmz, cbind(countpixels, percentpixels)) |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
128 |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
129 |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
130 write.table(valuesdataframe, file="$pixel_count", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t") |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
131 |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
132 colnames(input_list)[1:2] = c("mz", "name") |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
133 properties = c("Number of mz features", |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
134 "Range of mz values [Da]", |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
135 "Number of pixels", |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
136 "Range of x coordinates", |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
137 "Range of y coordinates", |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
138 "Range of intensities", |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
139 "Median of intensities", |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
140 "Intensities > 0", |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
141 "Number of zero TICs", |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
142 "Preprocessing", |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
143 "Normalization", |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
144 "Smoothing", |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
145 "Baseline reduction", |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
146 "Peak picking", |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
147 "Centroided", |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
148 paste0("# valid masses in ", "$massfile.display_name")) |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
149 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
150 values = c(paste0(maxfeatures), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
151 paste0(minmz, " - ", maxmz), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
152 paste0(pixelcount), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
153 paste0(minimumx, " - ", maximumx), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
154 paste0(minimumy, " - ", maximumy), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
155 paste0(minint, " - ", maxint), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
156 paste0(medint), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
157 paste0(percpeaks, " %"), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
158 paste0(NumemptyTIC), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
159 paste0(" "), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
160 paste0(normalizationinfo), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
161 paste0(smoothinginfo), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
162 paste0(baselinereductioninfo), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
163 paste0(peakpickinginfo), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
164 paste0(centroidedinfo), |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
165 paste0(length(inputmz), "/", length(input_list[,1]))) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
166 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
167 property_df = data.frame(properties, values) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
168 |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
169 |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
170 |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
171 |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
172 ######################################## PDF ############################################# |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
173 ########################################################################################## |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
174 ########################################################################################## |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
175 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
176 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
177 pdf("heatmaps.pdf", fonts = "Times", pointsize = 12) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
178 plot(0,type='n',axes=FALSE,ann=FALSE) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
179 #if not $filename: |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
180 #set $filename = $infile.display_name |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
181 #end if |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
182 title(main=paste("Quality control of MSI data\n\n", "Filename:", "$filename")) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
183 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
184 ############################# I) numbers #################################### |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
185 ############################################################################# |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
186 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
187 grid.table(property_df, rows= NULL) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
188 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
189 if (npeaks > 0) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
190 { |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
191 |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
192 if (length(inputmz) != 0) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
193 { |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
194 |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
195 for (mass in 1:length(inputmz)) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
196 { |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
197 |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
198 |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
199 print(image(msidata, mz=inputmz[mass], strip = strip.custom(bg="lightgrey", par.strip.text=list(col="black", cex=.9)), |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
200 lattice=TRUE, ylim = c(maximumy+1,minimumy-1), plusminus = $plusminus_dalton, contrast.enhance = "$image_contrast", smooth.image = "$image_smoothing", |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
201 main= paste0(mass, ") ", inputnames[mass], " (", round(inputmz[mass], digits = 2)," ± ", $plusminus_dalton, " Da)"))) |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
202 } |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
203 } else {print("The input masses were invalid")} |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
204 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
205 dev.off() |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
206 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
207 }else{ |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
208 print("inputfile has no intensities > 0") |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
209 dev.off() |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
210 } |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
211 ]]></configfile> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
212 </configfiles> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
213 <inputs> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
214 <param name="infile" type="data" format="imzml,rdata,analyze75" label="Inputfile as imzML, Analyze7.5 or Cardinal MSImageSet saved as RData" |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
215 help="Upload composite datatype imzml (ibd+imzML) or analyze75 (hdr+img+t2m) or regular upload .RData (Cardinal MSImageSet)"/> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
216 <param name="filename" type="text" value="" label="Title" help="will appear in the quality report. If nothing given it will take the dataset name."/> |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
217 <param name="massfile" type="data" format="tabular" label="Text file with masses and names" |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
218 help="first column mass (m/z), second column mass name, tab separated file"/> |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
219 <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"> |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
220 <option value="none" selected="True">none</option> |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
221 <option value="suppression">suppression</option> |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
222 <option value="histogram">histogram</option> |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
223 </param> |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
224 <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."> |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
225 <option value="none" selected="True">none</option> |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
226 <option value="gaussian">gaussian</option> |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
227 <option value="adaptive">adaptive</option> |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
228 </param> |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
229 <param name="plusminus_dalton" value="0.25" type="float" label="Mass range" help="plusminus mass window in Dalton"/> |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
230 </inputs> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
231 <outputs> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
232 <data format="pdf" name="plots" from_work_dir="heatmaps.pdf" label = "${tool.name} on $infile.display_name"/> |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
233 <data format="tabular" name="pixel_count" label="Number of pixels per mz with intensity"/> |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
234 </outputs> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
235 <tests> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
236 <test> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
237 <param name="infile" value="" ftype="imzml"> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
238 <composite_data value="Example_Continuous.imzML"/> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
239 <composite_data value="Example_Continuous.ibd"/> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
240 </param> |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
241 <param name="massfile" value="inputpeptides.tabular" ftype="tabular"/> |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
242 <param name="plusminus_dalton" value="0.25"/> |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
243 <param name="filename" value="Testfile_imzml"/> |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
244 <param name="image_contrast" value="histogram"/> |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
245 <output name="plots" file="Heatmaps_imzml.pdf" compare="sim_size" delta="20000"/> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
246 </test> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
247 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
248 <test> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
249 <param name="infile" value="" ftype="analyze75"> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
250 <composite_data value="Analyze75.hdr"/> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
251 <composite_data value="Analyze75.img"/> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
252 <composite_data value="Analyze75.t2m"/> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
253 </param> |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
254 <param name="massfile" value="inputpeptides2.tabular" ftype="tabular"/> |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
255 <param name="plusminus_dalton" value="0.5"/> |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
256 <param name="filename" value="Testfile_analyze75"/> |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
257 <param name="image_smoothing" value="gaussian"/> |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
258 <output name="plots" file="Heatmaps_analyze75.pdf" compare="sim_size" delta="20000"/> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
259 </test> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
260 <test> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
261 <param name="infile" value="preprocessing_results1.RData" ftype="rdata"/> |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
262 <param name="massfile" value="inputpeptides.tabular" ftype="tabular"/> |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
263 <param name="plusminus_dalton" value="0.1"/> |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
264 <param name="filename" value="Testfile_rdata"/> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
265 <output name="plots" file="Heatmaps_rdata.pdf" compare="sim_size" delta="20000"/> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
266 </test> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
267 <test> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
268 <param name="infile" value="LM8_file16.rdata" ftype="rdata"/> |
1
ce354a40c13c
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 name="massfile" value="inputpeptides2.tabular" ftype="tabular"/> |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
270 <param name="plusminus_dalton" value="0.1"/> |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
271 <param name="filename" value="Testfile_rdata"/> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
272 <output name="plots" file="Heatmaps_LM8_file16.pdf" compare="sim_size" delta="20000"/> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
273 </test> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
274 </tests> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
275 <help><![CDATA[ |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
276 |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
277 Heatmaps for different masses in mass-spectrometry imaging data as pdf output. |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
278 |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
279 Input data: |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
280 |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
281 3 types of mass-spectrometry imaging data can be used: |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
282 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
283 - imzml file (upload imzml and ibd file via the "composite" function) `Introduction to the imzml format <http://ms-imaging.org/wp/introduction/>`_ |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
284 - Analyze7.5 (upload hdr, img and t2m file via the "composite" function) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
285 - Cardinal "MSImageSet" data (with variable name "msidata", saved as .RData) |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
286 |
1
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
287 tabular file with masses: |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
288 - tab separated file (.tabular), datatype in Galaxy must be tabular (if Galaxy auto-detection was wrong, datatype can be changed by pressing the pen button) |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
289 - no empty fields or letters are allowed (tool crashes with empty fields and a single letter prohibits generation of images) |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
290 - separate point numbers by point (a single number with comma prohibits generation of images) |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
291 |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
292 Trouble shooting: |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
293 - no heatmaps are plotted when tabular file contains letters or point numbers with commas or when the input MSI file had no intensities > 0 |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
294 - contrast enhance functions need masses with intensities > 0 in about 1.5% of all pixels - tool crashes when contrast enhance is used on too few intensities |
ce354a40c13c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit edbf2a6cb50fb04d0db56a7557a64e3bb7a0806a
galaxyp
parents:
0
diff
changeset
|
295 |
0
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
296 |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
297 ]]> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
298 </help> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
299 <citations> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
300 <citation type="doi">10.1093/bioinformatics/btv146</citation> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
301 </citations> |
8ae9894fc55f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit 6d271de132f364b1e16b0222ad2d6e315586f0dd
galaxyp
parents:
diff
changeset
|
302 </tool> |