annotate maldi_quant_peakdetection.xml @ 0:01212bf66f61 draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
author galaxyp
date Wed, 22 Aug 2018 11:49:29 -0400
parents
children eaaa73b043e6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
1 <tool id="maldi_quant_peak_detection" name="MALDIquant peak detection" version="1.18.0.0">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
2 <description>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
3 Peak detection, binning and filtering for mass-spectrometry imaging data
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
4 </description>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
5 <macros>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
6 <import>maldi_macros.xml</import>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
7 </macros>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
8 <expand macro="requirements"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
9 <command detect_errors="exit_code">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
10 <![CDATA[
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
11 #if $infile.ext == 'imzml'
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
12 cp '${infile.extra_files_path}/imzml' infile.imzML &&
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
13 cp '${infile.extra_files_path}/ibd' infile.ibd &&
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
14 #elif $infile.ext == 'analyze75'
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
15 cp '${infile.extra_files_path}/hdr' infile.hdr &&
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
16 cp '${infile.extra_files_path}/img' infile.img &&
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
17 cp '${infile.extra_files_path}/t2m' infile.t2m &&
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
18 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
19 Rscript '${maldi_quant_peak_detection}'&&
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
20 mkdir $outfile_imzml.files_path &&
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
21 mv ./out.imzMl "${os.path.join($outfile_imzml.files_path, 'imzml')}" | true &&
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
22 mv ./out.ibd "${os.path.join($outfile_imzml.files_path, 'ibd')}" | true &&
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
23 echo "imzML file:" > $outfile_imzml &&
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
24 ls -l "$outfile_imzml.files_path" >> $outfile_imzml
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
25 ]]>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
26 </command>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
27 <configfiles>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
28 <configfile name="maldi_quant_peak_detection"><![CDATA[
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
29
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
30 @R_IMPORTS@
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
31
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
32 summarized_spectra = FALSE
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
33
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
34 #if $restriction_conditional.restriction == 'restrict':
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
35
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
36 print('Reading mask region')
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
37 ## Import imzML file
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
38 coordinate_matrix = as.matrix(read.delim("$restriction_conditional.coordinates_file", header = FALSE, stringsAsFactors = FALSE))[,1:2]
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
39
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
40 maldi_data <- importImzMl('infile.imzML',
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
41 coordinates = coordinate_matrix, centroided = $centroids)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
42 pixelnames = paste0("x = ", coordinates(maldi_data)[,1],", y = ", coordinates(maldi_data)[,2])
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
43
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
44 #else:
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
45
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
46 print('Reading entire file')
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
47 ## Import imzML file
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
48
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
49
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
50 #if $infile.ext == 'imzml'
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
51
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
52 #if str($centroids) == "TRUE"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
53 peaks <- importImzMl('infile.imzML', centroided = $centroids)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
54 pixelnames = paste0("x = ", coordinates(peaks)[,1],", y = ", coordinates(peaks)[,2])
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
55
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
56 #else
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
57 maldi_data <- importImzMl('infile.imzML', centroided = $centroids)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
58 pixelnames = paste0("x = ", coordinates(maldi_data)[,1],", y = ", coordinates(maldi_data)[,2])
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
59 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
60 #elif $infile.ext == 'tabular'
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
61
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
62 peak_tabular = read.delim("$infile", header = TRUE, stringsAsFactors = FALSE)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
63 peak_list = split(peak_tabular, f = peak_tabular\$spectrum) ## will be ordered according to spectrum
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
64 pixelnames = unique(peak_tabular\$spectrum)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
65
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
66 peaks = list()
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
67 for (spectra in 1:length(peak_list))
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
68 {
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
69 single_peaks = createMassPeaks(peak_list[[spectra]]\$mass, peak_list[[spectra]]\$intensity, snr=peak_list[[spectra]]\$snr)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
70 peaks[[spectra]] = single_peaks
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
71 }
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
72
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
73 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
74
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
75
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
76 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
77
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
78 ## Quality control plots during peak detection
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
79
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
80 pdf("peaks_qc_plot.pdf", fonts = "Times", pointsize = 12)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
81 plot(0,type='n',axes=FALSE,ann=FALSE)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
82
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
83 ## if no filename is given, name of file in Galaxy history is used
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
84 #set $filename = $infile.display_name
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
85
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
86 title(main=paste("$filename"))
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
87
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
88 ## plot input file spectrum:
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
89 #if $infile.ext == 'imzml'
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
90
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
91 #if str($centroids) == "TRUE"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
92 plot(peaks[[1]], main="First spectrum of input file")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
93 #else
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
94 avgSpectra <- averageMassSpectra(maldi_data,method="mean")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
95 plot(avgSpectra, main="Average spectrum of input file")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
96 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
97 #elif $infile.ext == 'tabular'
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
98 plot(peaks[[1]], main="First spectrum of input file")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
99 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
100
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
101
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
102 #if str($tabular_annotation.load_annotation) == 'yes_annotation':
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
103
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
104 ## read and extract x,y,annotation information
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
105 input_tabular = read.delim("$tabular_annotation.annotation_file", header = $tabular_annotation.tabular_header, stringsAsFactors = FALSE)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
106 annotation_input = input_tabular[,c($tabular_annotation.column_x, $tabular_annotation.column_y, $tabular_annotation.column_names)]
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
107 colnames(annotation_input) = c("x", "y", "annotation") ## rename annotations header to default name "annotation"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
108
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
109 ## merge with coordinate information of MSI data
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
110
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
111 coordinates_st = cbind(coordinates(maldi_data)[,1:2], c(1:length(maldi_data)))
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
112 colnames(coordinates_st)[3] = "pixel_index"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
113 merged_annotation = merge(coordinates_st, annotation_input, by=c("x", "y"), all.x=TRUE)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
114 merged_annotation[is.na(merged_annotation)] = "NA"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
115 merged_annotation = merged_annotation[order(merged_annotation\$pixel_index),]
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
116 samples = as.factor(merged_annotation\$annotation)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
117
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
118 ## print annotation overview into PDF output
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
119
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
120 ## the more annotation groups a file has the smaller will be the legend
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
121 number_combined = length(levels(as.factor(merged_annotation\$annotation)))
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
122 if (number_combined<20){
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
123 legend_size = 10
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
124 }else if (number_combined>20 && number_combined<40){
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
125 legend_size = 9
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
126 }else if (number_combined>40 && number_combined<60){
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
127 legend_size = 8
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
128 }else if (number_combined>60 && number_combined<100){
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
129 legend_size = 7
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
130 }else{
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
131 legend_size = 6
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
132 }
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
133
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
134 combine_plot = ggplot(merged_annotation, aes(x=x, y=y, fill=annotation))+
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
135 geom_tile() +
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
136 coord_fixed()+
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
137 ggtitle("Spatial orientation of annotated data")+
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
138 theme_bw()+
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
139 theme(plot.title = element_text(hjust = 0.5))+
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
140 theme(text=element_text(family="ArialMT", face="bold", size=12))+
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
141 theme(legend.position="bottom",legend.direction="vertical")+
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
142 theme(legend.key.size = unit(0.2, "line"), legend.text = element_text(size = legend_size))+
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
143 guides(fill=guide_legend(ncol=5,byrow=TRUE))
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
144
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
145 print(combine_plot)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
146
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
147 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
148
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
149
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
150 #################### Preprocessing methods #####################################
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
151
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
152 #for $method in $methods:
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
153
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
154
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
155 #if str( $method.methods_conditional.method ) == 'Peak_detection':
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
156 print('peak detection')
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
157 ##peak detection
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
158
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
159 #if $method.methods_conditional.use_annotations:
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
160 maldi_data <- averageMassSpectra(maldi_data, labels=samples,method="mean") ## use average spectra for peak picking
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
161 pixelnames = merged_annotation\$annotation
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
162 summarized_spectra = TRUE
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
163
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
164 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
165
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
166 peaks <- detectPeaks(maldi_data, method="$method.methods_conditional.peak_method",
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
167 halfWindowSize=$method.methods_conditional.halfWindowSize,SNR=$method.methods_conditional.snr)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
168
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
169 ## QC plot
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
170 plot(peaks[[1]], main="First spectrum after peak detection")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
171
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
172 if (length(peaks[!sapply(peaks, isEmpty)])>0){
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
173 #if $infile.ext == 'imzml'
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
174 #if str($centroids) == "FALSE"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
175 featureMatrix <- intensityMatrix(peaks, maldi_data)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
176 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
177 #else
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
178 featureMatrix <- intensityMatrix(peaks)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
179 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
180 featureMatrix2 =cbind(pixelnames, featureMatrix)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
181 colnames(featureMatrix2)[1] = c("mz | spectra")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
182 featureMatrix2 = t(featureMatrix2)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
183 write.table(featureMatrix2, file="$intensity_matrix", quote = FALSE, row.names = TRUE, col.names=FALSE, sep = "\t")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
184 }else{print("There are no spectra with peaks left")}
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
185
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
186
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
187 #elif str( $method.methods_conditional.method ) == 'monoisotopic_peaks':
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
188
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
189 print('monoisotopic peaks')
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
190 ##monoisotopic peaks
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
191
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
192 peaks = monoisotopicPeaks(peaks, minCor=$method.methods_conditional.minCor, tolerance=$method.methods_conditional.tolerance, distance=$method.methods_conditional.distance, size=$method.methods_conditional.size)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
193
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
194 ## QC plot
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
195 plot(peaks[[1]], main="First spectrum after monoisotopic peaks detection")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
196
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
197 if (length(peaks[!sapply(peaks, isEmpty)])>0){
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
198 #if $infile.ext == 'imzml'
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
199 #if str($centroids) == "FALSE"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
200 featureMatrix <- intensityMatrix(peaks, maldi_data)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
201 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
202 #else
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
203 featureMatrix <- intensityMatrix(peaks)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
204 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
205 featureMatrix2 =cbind(pixelnames, featureMatrix)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
206 colnames(featureMatrix2)[1] = c("mz | spectra")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
207 featureMatrix2 = t(featureMatrix2)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
208 write.table(featureMatrix2, file="$intensity_matrix", quote = FALSE, row.names = TRUE, col.names=FALSE, sep = "\t")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
209 }else{print("There are no spectra with peaks left")}
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
210
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
211 #elif str( $method.methods_conditional.method ) == 'Binning':
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
212
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
213 print('binning')
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
214 ##m/z binning
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
215
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
216 peaks <- binPeaks(peaks, tolerance=$method.methods_conditional.bin_tolerance)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
217 ## QC plot
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
218 plot(peaks[[1]], main="First spectrum after binning")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
219
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
220 if (length(peaks[!sapply(peaks, isEmpty)])>0){
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
221 #if $infile.ext == 'imzml'
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
222 #if str($centroids) == "FALSE"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
223 featureMatrix <- intensityMatrix(peaks, maldi_data)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
224 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
225 #if str($centroids) == "TRUE"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
226 featureMatrix <- intensityMatrix(peaks)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
227 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
228 #else
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
229 featureMatrix <- intensityMatrix(peaks)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
230 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
231 featureMatrix2 =cbind(pixelnames, featureMatrix)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
232 colnames(featureMatrix2)[1] = c("mz | spectra")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
233 featureMatrix2 = t(featureMatrix2)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
234 write.table(featureMatrix2, file="$intensity_matrix", quote = FALSE, row.names = TRUE, col.names=FALSE, sep = "\t")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
235 }else{print("There are no spectra with peaks left")}
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
236
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
237
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
238 #elif str( $method.methods_conditional.method ) == 'Filtering':
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
239
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
240 print('filtering')
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
241 ##m/z filtering
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
242
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
243 ## filtering on all pixels or on pixel groups:
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
244 #if str($method.methods_conditional.filter_annot_groups ) == 'FALSE':
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
245
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
246 peaks <- filterPeaks(peaks,
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
247 minFrequency=$method.methods_conditional.minFrequency,
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
248 minNumber=$method.methods_conditional.minNumber,
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
249 mergeWhitelists=$method.methods_conditional.mergeWhitelists)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
250
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
251 #elif str( $method.methods_conditional.filter_annot_groups ) == 'TRUE':
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
252
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
253 peaks <- filterPeaks(peaks,
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
254 minFrequency=$method.methods_conditional.minFrequency,
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
255 minNumber=$method.methods_conditional.minNumber,
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
256 mergeWhitelists=$method.methods_conditional.mergeWhitelists, label = samples)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
257 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
258
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
259 ##QC plot
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
260 plot(peaks[[1]], main="First spectrum after m/z filtering")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
261
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
262 if (length(peaks[!sapply(peaks, isEmpty)])>0){
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
263 #if $infile.ext == 'imzml'
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
264 #if str($centroids) == "FALSE"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
265 featureMatrix <- intensityMatrix(peaks, maldi_data)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
266 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
267 #else
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
268 featureMatrix <- intensityMatrix(peaks)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
269 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
270 featureMatrix2 =cbind(pixelnames, featureMatrix)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
271 colnames(featureMatrix2)[1] = c("mz | spectra")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
272 featureMatrix2 = t(featureMatrix2)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
273 write.table(featureMatrix2, file="$intensity_matrix", quote = FALSE, row.names = TRUE, col.names=FALSE, sep = "\t")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
274 }else{print("There are no spectra with peaks left")}
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
275
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
276 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
277 #end for
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
278
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
279 if (length(peaks[!sapply(peaks, isEmpty)])>0){
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
280 ## mass peaks output
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
281 mass_peaks = data.frame(matrix(,ncol=3, nrow=0))
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
282 for (spectrum in 1:length(peaks)){
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
283 spectrum_df = data.frame(peaks[[spectrum]]@snr, peaks[[spectrum]]@mass, peaks[[spectrum]]@intensity)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
284 spectrum_df\$spectrum_id = rep(pixelnames[[spectrum]], length(peaks[[spectrum]]@mass))
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
285 mass_peaks = rbind(mass_peaks,spectrum_df)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
286 }
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
287 colnames(mass_peaks) = c("snr", "mass", "intensity", "spectrum")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
288 write.table(mass_peaks, file="$masspeaks", quote = FALSE, row.names = FALSE, col.names=TRUE, sep = "\t")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
289 }else{print("There are no spectra with peaks left")}
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
290
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
291 dev.off()
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
292
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
293 if (summarized_spectra == FALSE){
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
294 #if $infile.ext == 'imzml'
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
295 exportImzMl(peaks, file="out.imzMl", processed=$export_processed)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
296 #elif $infile.ext == 'tabular'
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
297 masspeaks_coordinates = matrix(unlist(strsplit(as.character(pixelnames), "\\,")), ncol=2, byrow=TRUE)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
298 ## extract x and y values and create the coordinate matrix in case tabular was input
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
299 peaklist_coordinates = unique(cbind(as.numeric(substring(masspeaks_coordinates[,1], 5, last = 1000000L)), as.numeric(substring(masspeaks_coordinates[,2], 5, last = 1000000L))))
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
300 exportImzMl(peaks, file="out.imzMl", processed=$export_processed, coordinates=peaklist_coordinates)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
301 #end if
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
302 }
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
303
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
304 ]]>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
305 </configfile>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
306 </configfiles>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
307 <inputs>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
308 <param name="infile" type="data" format="imzml,tabular" label="MS metadata" help="This file is in imzML or tabular format (peak list, peak detection cannot be run again)"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
309 <param name="centroids" type="boolean" label="Is the imzML data centroided (picked)" help="Choose Yes if peak detection has already been done. Peak detection cannot be run again on centroided data" truevalue="TRUE" falsevalue="FALSE"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
310 <conditional name="restriction_conditional">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
311 <param name="restriction" type="select" label="Restrict the preprocessing to coordinates of interest">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
312 <option value="no_restriction" selected="True">Calculate on entire file</option>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
313 <option value="restrict">Restrict to coordinates of interest</option>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
314 </param>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
315 <when value="restrict">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
316 <param name="coordinates_file" type="data" format="tabular" label="Tabular file with coordinates which should be read" help="x-values in first column, y-values in second column"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
317 </when>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
318 <when value="no_restriction"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
319 </conditional>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
320
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
321 <conditional name="tabular_annotation">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
322 <param name="load_annotation" type="select" label="Use pixel annotation from tabular file - select in peak detection or filtering step where you want to apply the annotation information">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
323 <option value="no_annotation" selected="True">pixels belong into one group only</option>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
324 <option value="yes_annotation">use pixel annotation from a tabular file</option>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
325 </param>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
326 <when value="yes_annotation">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
327 <param name="annotation_file" type="data" format="tabular" label="Use annotations from tabular file"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
328 help="Tabular file with three columns: x values, y values and pixel annotations"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
329 <param name="column_x" data_ref="annotation_file" label="Column with x values" type="data_column"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
330 <param name="column_y" data_ref="annotation_file" label="Column with y values" type="data_column"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
331 <param name="column_names" data_ref="annotation_file" label="Column with pixel annotations" type="data_column"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
332 <param name="tabular_header" type="boolean" label="Tabular file contains a header line" truevalue="TRUE" falsevalue="FALSE"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
333 </when>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
334 <when value="no_annotation"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
335 </conditional>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
336 <repeat name="methods" title="Method" min="1">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
337 <conditional name="methods_conditional">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
338 <param name="method" type="select" label="Select the method you want to apply">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
339 <option value="Peak_detection">Peak detection</option>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
340 <option value="monoisotopic_peaks">Keep only monoisotopic peaks</option>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
341 <option value="Binning">Binning</option>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
342 <option value="Filtering">Filtering</option>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
343 </param>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
344 <when value="Peak_detection">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
345 <param name="peak_method" type="select" label="Noise estimation function">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
346 <option value="MAD" selected="True">MAD</option>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
347 <option value="SuperSmoother">SuperSmoother</option>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
348 </param>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
349 <param name="halfWindowSize" type="integer" value="20"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
350 label="Half window size"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
351 help="The resulting window reaches from
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
352 mass[currentIndex-halfWindowSize] to mass[currentIndex+halfWindowSize]
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
353 (window size is 2*halfWindowSize+1).
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
354 The best size differs depending on the selected smoothing method."/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
355 <param name="snr" type="integer" value="2" label="Signal-to-noise-ratio" help=""/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
356 <param name="use_annotations" type="boolean" label="Generate average mass spectra for each annotation group" help="Spectra with same annotation are summarized, no imzML export possible" truevalue="TRUE" falsevalue="FALSE"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
357 </when>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
358 <when value="monoisotopic_peaks">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
359 <param name="minCor" type="float" value="0.95" label="minimal correlation"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
360 help="double , minimal correlation between the peak pattern generated by the model and the experimental peaks in the MassPeaks object to be recognized as isotopic pattern"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
361 <param name="tolerance" type="float" label="tolerance" value="0.0004"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
362 help="double, maximal relative deviation of peaks position (mass) to be considered as isotopic distance"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
363 <param name="distance" type="float" label="distance" value="1.00235" help="double, distance between two consecutive peaks in an isotopic pattern"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
364 <param name="size" type="integer" label="size" value="3" help="double, size (length) of isotopic pattern, longer patterns are prefered over shorter ones"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
365 </when>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
366 <when value="Binning">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
367 <param name="bin_tolerance" type="float" value="0.002" label="Peak binning tolerance"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
368 help="After the alignment the peak positions (mass) are very similar but not identical. The binning is needed to make similar peak mass values identical."/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
369 </when>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
370 <when value="Filtering">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
371 <param name="minFrequency" type="float" value="0.25"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
372 label="Remove all peaks which occur in less than minFrequency spectra" help="It is a relative threshold."/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
373 <param name="minNumber" type="float" value="1.0"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
374 label="remove all peaks which occur in less than minNumber spectra" help="It is an absolute threshold."/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
375 <param name="filter_annot_groups" type="boolean" label="Group wise filtering with pixel annotations. If not specified a single group is assumed or when filtering has been done group wise it will automatically be group wise when selecting filtering on all pixel" truevalue="TRUE" falsevalue="FALSE"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
376 <param name="mergeWhitelists" type="boolean" truevalue="TRUE" falsevalue="FALSE"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
377 label="mergeWhitelists" help="if FALSE the filtering criteria are applied groupwise. If TRUE peaks that survive the filtering in one group (level of labels) these peaks are also kept in other groups even if their frequencies are below minFrequency"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
378 </when>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
379 </conditional>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
380 </repeat>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
381 <param name="export_processed" type="boolean" label="Export file as processed imzML" help="otherwise continuous imzML will be exported" checked="true" truevalue="TRUE" falsevalue="FALSE"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
382 </inputs>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
383 <outputs>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
384 <data format="imzml" name="outfile_imzml" label="$infile.display_name peaks" />
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
385 <data format="pdf" name="plots" from_work_dir="peaks_qc_plot.pdf" label = "$infile.display_name peakdetection QC"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
386 <data format="tabular" name="masspeaks" label="$infile.display_name mass_peaks"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
387 <data format="tabular" name="intensity_matrix" label="intensity_matrix"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
388 </outputs>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
389 <tests>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
390 <test>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
391 <param name="infile" value="" ftype="imzml">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
392 <composite_data value="Example_Continuous.imzML"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
393 <composite_data value="Example_Continuous.ibd"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
394 </param>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
395 <conditional name="tabular_annotation">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
396 <param name="load_annotation" value="yes_annotation"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
397 <param name="annotation_file" value="pixel_annotations.tabular"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
398 <param name="column_x" value="1"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
399 <param name="column_y" value="2"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
400 <param name="column_names" value="3"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
401 <param name="tabular_header" value="TRUE"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
402 </conditional>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
403 <repeat name="methods">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
404 <conditional name="methods_conditional">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
405 <param name="method" value="Peak_detection"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
406 <param name="peak_method" value="SuperSmoother"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
407 <param name="halfWindowSize" value="1"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
408 <param name="snr" value="5"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
409 <param name="use_annotations" value="TRUE"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
410 </conditional>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
411 </repeat>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
412 <output name="plots" file="peakdetection1_QC.pdf" compare="sim_size"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
413 <output name="masspeaks" file="masspeaks1.tabular"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
414 <output name="intensity_matrix" file="int1.tabular"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
415 </test>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
416 <test>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
417 <param name="infile" value="masspeaks1_forinput.tabular"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
418 <param name="centroids" value="TRUE"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
419 <repeat name="methods">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
420 <conditional name="methods_conditional">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
421 <param name="method" value="monoisotopic_peaks"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
422 <param name="minCor" value="0.60"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
423 <param name="tolerance" value="0.0001"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
424 </conditional>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
425 </repeat>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
426 <output name="plots" file="peakdetection2_QC.pdf" compare="sim_size"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
427 <output name="masspeaks" file="masspeaks2.tabular"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
428 <output name="intensity_matrix" file="int2.tabular"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
429 </test>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
430 <test>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
431 <param name="infile" value="" ftype="imzml">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
432 <composite_data value="Example_Continuous.imzML"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
433 <composite_data value="Example_Continuous.ibd"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
434 </param>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
435 <conditional name="tabular_annotation">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
436 <param name="load_annotation" value="yes_annotation"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
437 <param name="annotation_file" value="pixel_annotations.tabular"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
438 <param name="column_x" value="1"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
439 <param name="column_y" value="2"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
440 <param name="column_names" value="3"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
441 <param name="tabular_header" value="TRUE"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
442 </conditional>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
443 <repeat name="methods">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
444 <conditional name="methods_conditional">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
445 <param name="method" value="Peak_detection"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
446 <param name="peak_method" value="MAD"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
447 <param name="halfWindowSize" value="1"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
448 <param name="snr" value="2"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
449 </conditional>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
450 </repeat>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
451 <repeat name="methods">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
452 <conditional name="methods_conditional">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
453 <param name="method" value="Binning"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
454 <param name="bin_tolerance" value="0.01"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
455 </conditional>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
456 </repeat>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
457 <repeat name="methods">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
458 <conditional name="methods_conditional">
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
459 <param name="method" value="Filtering"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
460 <param name="bin_tolerance" value="0.01"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
461 <param name="minFrequency" value="0.5"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
462 <param name="minNumber" value="3"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
463 <param name="filter_annot_groups" value="TRUE"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
464 <param name="mergeWhitelists" value="FALSE"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
465 </conditional>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
466 </repeat>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
467 <output name="plots" file="peakdetection3_QC.pdf" compare="sim_size"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
468 <output name="intensity_matrix" file="intensity_matrix3.tabular"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
469 <output name="masspeaks" file="masspeaks3.tabular"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
470 </test>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
471 </tests>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
472 <help>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
473 <![CDATA[
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
474
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
475 MALDIquant_ provides a complete analysis pipeline for MALDI-TOF and other mass spectrometry data. So far we have only implemented the functionalities for mass spectrometry imaging data.
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
476
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
477 Input data:
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
478
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
479 - MSI data as imzML or file (upload via the "composite" function) `Introduction to the imzml format <https://ms-imaging.org/wp/imzml/>`_
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
480 - or MSI data as peak list (tabular file) with the columns named "snr", "mass", "intensity" and "spectrum". To obtain a valid imzML output file spectrum should contain the pixel coordinates in the format: "x = 1, y = 1"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
481 - optinal tabular file with pixel coordinates to restrict reading of imzML file to coordinates of interest
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
482 - optional tabular file with pixel annotations. The annotations can be used to summarize pixels of an imzML file which belong to the same group and detect peaks on average spectra, further steps will be done on average spectra as well and average spectra are exported. If this option was not chosen the filtering tool can use the annotations to filter for peaks within pixel groups (select "Group wise filtering")
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
483
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
484
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
485 Options:
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
486
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
487 - Peak detection: detection of peaks, only possible with imzML input
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
488 - Monoisotopic peaks: detection of monoisotopic peaks
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
489 - Peak binning: After the alignment the peak positions (mass) are very similar but not identical. The binning is needed to make similar peak mass values identical.
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
490 - Peak filtering: Removal of less frequent peaks (either with a minimum ratio or with an absolute minimum number of spectra in which the peak has to occur)
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
491
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
492
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
493 Output:
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
494
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
495 - centroided processed or continuous imzML file
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
496 - pdf with mass spectra after each preprocessing step
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
497 - peak list (tabular file) with the columns "snr", "mass", "intensity" and "spectrum"
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
498 - tabular file with intensity matrix (m/z in rows and spectra in columns). If the input file was imzML in profile mode the intensities before peak picking are also stored in the matrix . For all other inputs not picked values are set to NA.
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
499
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
500 .. _MALDIquant: http://strimmerlab.org/software/maldiquant/
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
501
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
502 ]]>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
503 </help>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
504 <expand macro="citation"/>
01212bf66f61 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/MALDIquant commit 5feaf3d0e0da8cef1241fecc1f4d6f81324594e6
galaxyp
parents:
diff changeset
505 </tool>