annotate msi_preprocessing.xml @ 8:d77c5228fd1a draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
author galaxyp
date Tue, 24 Jul 2018 04:53:10 -0400
parents 1a3d477bc54a
children 4d5578b57a77
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
1 <tool id="mass_spectrometry_imaging_preprocessing" name="MSI preprocessing" version="1.10.0.5">
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
2 <description>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
3 mass spectrometry imaging preprocessing
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
4 </description>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
5 <requirements>
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
6 <requirement type="package" version="1.10.0">bioconductor-cardinal</requirement>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
7 <requirement type="package" version="2.2.1">r-gridextra</requirement>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
8 <requirement type="package" version="0.20-35">r-lattice</requirement>
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
9 <requirement type="package" version="2.2.1">r-ggplot2</requirement>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
10 </requirements>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
11 <command detect_errors="exit_code">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
12 <![CDATA[
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
13
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
14 #if $infile.ext == 'imzml'
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
15 ln -s '${infile.extra_files_path}/imzml' infile.imzML &&
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
16 ln -s '${infile.extra_files_path}/ibd' infile.ibd &&
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
17 #elif $infile.ext == 'analyze75'
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
18 ln -s '${infile.extra_files_path}/hdr' infile.hdr &&
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
19 ln -s '${infile.extra_files_path}/img' infile.img &&
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
20 ln -s '${infile.extra_files_path}/t2m' infile.t2m &&
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
21 #else
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
22 ln -s '$infile' infile.RData &&
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
23 #end if
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
24 cat '${cardinal_preprocessing}' &&
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
25 Rscript '${cardinal_preprocessing}'
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
26
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
27 ]]>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
28 </command>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
29 <configfiles>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
30 <configfile name="cardinal_preprocessing"><![CDATA[
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
31
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
32 ################################# load libraries and read file #################
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
33
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
34 library(Cardinal)
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
35 library(gridExtra)
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
36 library(lattice)
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
37 library(ggplot2)
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
38
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
39 #if $infile.ext == 'imzml'
6
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
40 #if str($processed_cond.processed_file) == "processed":
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
41 msidata <- readImzML('infile', mass.accuracy=$processed_cond.accuracy, units.accuracy = "$processed_cond.units")
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
42 #else
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
43 msidata <- readImzML('infile', attach.only=TRUE)
6
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
44 #end if
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
45 #elif $infile.ext == 'analyze75'
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
46 msidata = readAnalyze('infile', attach.only=TRUE)
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
47 #else
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
48 load('infile.RData')
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
49 #end if
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
50
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
51 print(paste0("Number of NA in input file: ",sum(is.na(spectra(msidata)[]))))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
52
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
53 ## function to later read RData reference files in
1
c4abf42419c2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents: 0
diff changeset
54
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
55 loadRData <- function(fileName){
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
56 #loads an RData file, and returns it
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
57 load(fileName)
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
58 get(ls()[ls() != "fileName"])
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
59 }
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
60
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
61 if (sum(spectra(msidata)[]>0, na.rm=TRUE)> 0){
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
62 ######################### preparations for QC report #################
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
63
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
64 maxfeatures = length(features(msidata))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
65 medianpeaks = median(colSums(spectra(msidata)[]>0, na.rm=TRUE))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
66 medint = round(median(spectra(msidata)[],na.rm=TRUE), digits=2)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
67 TICs = round(mean(colSums(spectra(msidata)[], na.rm=TRUE)), digits=1)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
68 QC_numbers= data.frame(inputdata = c(maxfeatures, medianpeaks, medint, TICs))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
69 vectorofactions = "inputdata"
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
70
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
71 ############################### Preprocessing steps ###########################
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
72 ###############################################################################
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
73
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
74 #for $method in $methods:
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
75
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
76 ############################### Normalization ###########################
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
77
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
78 #if str( $method.methods_conditional.preprocessing_method ) == 'Normalization':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
79 print('Normalization')
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
80 ##normalization
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
81
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
82 msidata = normalize(msidata, method="tic")
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
83
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
84 ############################### QC ###########################
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
85
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
86 maxfeatures = length(features(msidata))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
87 medianpeaks = median(colSums(spectra(msidata)[]>0, na.rm=TRUE),)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
88 medint = round(median(spectra(msidata)[], na.rm=TRUE), digits=2)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
89 TICs = round(mean(colSums(spectra(msidata)[], na.rm=TRUE)), digits=1)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
90 normalized = c(maxfeatures, medianpeaks, medint, TICs)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
91 QC_numbers= cbind(QC_numbers, normalized)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
92 vectorofactions = append(vectorofactions, "normalized")
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
93
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
94 ############################### Baseline reduction ###########################
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
95
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
96 #elif str( $method.methods_conditional.preprocessing_method ) == 'Baseline_reduction':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
97 print('Baseline_reduction')
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
98 ##baseline reduction
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
99
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
100 msidata = reduceBaseline(msidata, method="median", blocks=$method.methods_conditional.blocks_baseline)
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
101
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
102 ############################### QC ###########################
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
103
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
104 maxfeatures = length(features(msidata))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
105 medianpeaks = median(colSums(spectra(msidata)[]>0, na.rm=TRUE))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
106 medint = round(median(spectra(msidata)[], na.rm=TRUE), digits=2)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
107 TICs = round(mean(colSums(spectra(msidata)[], na.rm=TRUE)), digits=1)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
108 baseline= c(maxfeatures, medianpeaks, medint, TICs)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
109 QC_numbers= cbind(QC_numbers, baseline)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
110 vectorofactions = append(vectorofactions, "baseline red.")
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
111
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
112 ############################### Smoothing ###########################
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
113
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
114 #elif str( $method.methods_conditional.preprocessing_method ) == 'Smoothing':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
115 print('Smoothing')
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
116 ## Smoothing
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
117
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
118 #if str( $method.methods_conditional.methods_for_smoothing.smoothing_method) == 'gaussian':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
119 print('gaussian smoothing')
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
120
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
121 msidata = smoothSignal(msidata, method="$method.methods_conditional.methods_for_smoothing.smoothing_method", window=$method.methods_conditional.window_smoothing, sd = $method.methods_conditional.methods_for_smoothing.sd_gaussian)
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
122
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
123 #elif str( $method.methods_conditional.methods_for_smoothing.smoothing_method) == 'sgolay':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
124 print('sgolay smoothing')
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
125
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
126 msidata = smoothSignal(msidata, method="$method.methods_conditional.methods_for_smoothing.smoothing_method", window=$method.methods_conditional.window_smoothing, order = $method.methods_conditional.methods_for_smoothing.order_of_filters)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
127 #elif str($method.methods_conditional.methods_for_smoothing.smoothing_method) == 'ma':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
128 print('sgolay smoothing')
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
129
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
130 msidata = smoothSignal(msidata, method="$method.methods_conditional.methods_for_smoothing.smoothing_method", window=$method.methods_conditional.window_smoothing, coef = $method.methods_conditional.methods_for_smoothing.coefficients_ma_filter)
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
131
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
132 #end if
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
133
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
134 ############################### QC ###########################
1
c4abf42419c2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents: 0
diff changeset
135
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
136 maxfeatures = length(features(msidata))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
137 medianpeaks = median(colSums(spectra(msidata)[]>0, na.rm=TRUE))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
138 medint = round(median(spectra(msidata)[], na.rm=TRUE), digits=2)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
139 TICs = round(mean(colSums(spectra(msidata)[], na.rm=TRUE)), digits=1)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
140 smoothed= c(maxfeatures, medianpeaks, medint, TICs)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
141 QC_numbers= cbind(QC_numbers, smoothed)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
142 vectorofactions = append(vectorofactions, "smoothed")
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
143
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
144 ############################### Peak picking ###########################
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
145
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
146 #elif str( $method.methods_conditional.preprocessing_method) == 'Peak_picking':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
147 print('Peak_picking')
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
148 ## Peakpicking
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
149
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
150
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
151 ## remove duplicated coordinates, otherwise peak picking will fail
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
152 print(paste0(sum(duplicated(coord(msidata))), " coordinates were removed"))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
153 msidata <- msidata[,!duplicated(coord(msidata))]
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
154
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
155 #if str( $method.methods_conditional.methods_for_picking.picking_method) == 'adaptive':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
156 print('adaptive peakpicking')
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
157
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
158 msidata = peakPick(msidata, window = $method.methods_conditional.window_picking, blocks = $method.methods_conditional.blocks_picking, method='$method.methods_conditional.methods_for_picking.picking_method', SNR=$method.methods_conditional.SNR_picking_method, spar=$method.methods_conditional.methods_for_picking.spar_picking)
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
159
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
160 #elif str( $method.methods_conditional.methods_for_picking.picking_method) == 'limpic':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
161 print('limpic peakpicking')
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
162
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
163 msidata = peakPick(msidata, window = $method.methods_conditional.window_picking, blocks = $method.methods_conditional.blocks_picking, method='$method.methods_conditional.methods_for_picking.picking_method', SNR=$method.methods_conditional.SNR_picking_method, thresh=$method.methods_conditional.methods_for_picking.tresh_picking)
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
164
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
165 #elif str( $method.methods_conditional.methods_for_picking.picking_method) == 'simple':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
166 print('simple peakpicking')
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
167
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
168 msidata = peakPick(msidata, window = $method.methods_conditional.window_picking, blocks = $method.methods_conditional.blocks_picking, method='$method.methods_conditional.methods_for_picking.picking_method', SNR=$method.methods_conditional.SNR_picking_method)
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
169
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
170 #end if
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
171
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
172 ############################### QC ###########################
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
173
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
174 maxfeatures = length(features(msidata))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
175 medianpeaks = median(colSums(spectra(msidata)[]>0, na.rm=TRUE))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
176 medint = round(median(spectra(msidata)[], na.rm=TRUE), digits=2)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
177 TICs = round(mean(colSums(spectra(msidata)[], na.rm=TRUE)), digits=1)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
178 picked= c(maxfeatures, medianpeaks, medint, TICs)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
179 QC_numbers= cbind(QC_numbers, picked)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
180 vectorofactions = append(vectorofactions, "picked")
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
181
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
182 ############################### Peak alignment ###########################
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
183
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
184 #elif str( $method.methods_conditional.preprocessing_method ) == 'Peak_alignment':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
185 print('Peak_alignment')
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
186 ## Peakalignment
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
187
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
188 #if str( $method.methods_conditional.align_ref_type.align_reference_datatype) == 'align_noref':
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
189
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
190 align_peak_reference = msidata
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
191
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
192 #elif str( $method.methods_conditional.align_ref_type.align_reference_datatype) == 'align_table':
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
193
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
194 align_reference_table = read.delim("$method.methods_conditional.align_ref_type.align_peaks_table", header = FALSE, stringsAsFactors = FALSE)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
195 align_reference_column = align_reference_table[,$method.methods_conditional.align_ref_type.align_mass_column]
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
196 align_peak_reference = align_reference_column[align_reference_column>=min(mz(msidata)) & align_reference_column<=max(mz(msidata))]
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
197 if (length(align_peak_reference) == 0)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
198 {align_peak_reference = 0}
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
199
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
200 #elif str( $method.methods_conditional.align_ref_type.align_reference_datatype) == 'align_msidata_ref':
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
201
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
202 align_peak_reference = loadRData('$method.methods_conditional.align_ref_type.align_peaks_msidata')
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
203
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
204 #end if
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
205
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
206 #if str( $method.methods_conditional.methods_for_alignment.alignment_method) == 'diff':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
207 print('diff peakalignment')
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
208
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
209 msidata = peakAlign(msidata, method='$method.methods_conditional.methods_for_alignment.alignment_method',diff.max =$method.methods_conditional.methods_for_alignment.value_diffalignment, units = "$method.methods_conditional.methods_for_alignment.units_diffalignment", ref=align_peak_reference)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
210
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
211 #elif str( $method.methods_conditional.methods_for_alignment.alignment_method) == 'DP':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
212 print('DPpeakalignment')
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
213
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
214 msidata = peakAlign(msidata, method='$method.methods_conditional.methods_for_alignment.alignment_method',gap = $method.methods_conditional.methods_for_alignment.gap_DPalignment, ref=align_peak_reference)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
215
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
216 #end if
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
217
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
218 ############################### QC ###########################
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
219
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
220 maxfeatures = length(features(msidata))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
221 medianpeaks = median(colSums(spectra(msidata)[]>0, na.rm=TRUE))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
222 medint = round(median(spectra(msidata)[], na.rm=TRUE), digits=2)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
223 TICs = round(mean(colSums(spectra(msidata)[], na.rm=TRUE)), digits=1)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
224 aligned= c(maxfeatures, medianpeaks, medint, TICs)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
225 QC_numbers= cbind(QC_numbers, aligned)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
226 vectorofactions = append(vectorofactions, "aligned")
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
227
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
228 ############################### Peak filtering ###########################
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
229
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
230 #elif str( $method.methods_conditional.preprocessing_method) == 'Peak_filtering':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
231 print('Peak_filtering')
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
232
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
233 msidata = peakFilter(msidata, method='freq', freq.min = $method.methods_conditional.frequ_filtering)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
234
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
235 ############################### QC ###########################
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
236
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
237 maxfeatures = length(features(msidata))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
238 medianpeaks = median(colSums(spectra(msidata)[]>0, na.rm=TRUE))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
239 medint = round(median(spectra(msidata)[], na.rm=TRUE), digits=2)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
240 TICs = round(mean(colSums(spectra(msidata)[], na.rm=TRUE)), digits=1)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
241 filtered= c(maxfeatures, medianpeaks, medint, TICs)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
242 QC_numbers= cbind(QC_numbers, filtered)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
243 vectorofactions = append(vectorofactions, "filtered")
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
244
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
245 ############################### Data reduction ###########################
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
246
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
247 #elif str( $method.methods_conditional.preprocessing_method) == 'Data_reduction':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
248 print('Data_reduction')
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
249
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
250 #if str( $method.methods_conditional.methods_for_reduction.reduction_method) == 'bin':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
251 print('bin reduction')
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
252
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
253 msidata = reduceDimension(msidata, method="bin", width=$method.methods_conditional.methods_for_reduction.bin_width, units="$method.methods_conditional.methods_for_reduction.bin_units", fun=$method.methods_conditional.methods_for_reduction.bin_fun)
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
254
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
255 #elif str( $method.methods_conditional.methods_for_reduction.reduction_method) == 'resample':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
256 print('resample reduction')
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
257
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
258 msidata = reduceDimension(msidata, method="resample", step=$method.methods_conditional.methods_for_reduction.resample_step)
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
259
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
260 #elif str( $method.methods_conditional.methods_for_reduction.reduction_method) == 'peaks':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
261 print('peaks reduction')
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
262
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
263 #if str( $method.methods_conditional.methods_for_reduction.ref_type.reference_datatype) == 'table':
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
264
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
265 reference_table = read.delim("$method.methods_conditional.methods_for_reduction.ref_type.peaks_table", header = FALSE, stringsAsFactors = FALSE)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
266 reference_column = reference_table[,$method.methods_conditional.methods_for_reduction.ref_type.mass_column]
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
267 peak_reference = reference_column[reference_column>min(mz(msidata)) & reference_column<max(mz(msidata))]
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
268
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
269 #elif str( $method.methods_conditional.methods_for_reduction.ref_type.reference_datatype) == 'msidata_ref':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
270
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
271 peak_reference = loadRData('$method.methods_conditional.methods_for_reduction.ref_type.peaks_msidata')
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
272
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
273 #end if
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
274
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
275 msidata = reduceDimension(msidata, method="peaks", ref=peak_reference, type="$method.methods_conditional.methods_for_reduction.peaks_type")
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
276 #end if
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
277 ############################### QC ###########################
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
278
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
279 maxfeatures = length(features(msidata))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
280 medianpeaks = median(colSums(spectra(msidata)[]>0, na.rm=TRUE))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
281 medint = round(median(spectra(msidata)[], na.rm=TRUE), digits=2)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
282 TICs = round(mean(colSums(spectra(msidata)[], na.rm=TRUE)), digits=1)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
283 reduced= c(maxfeatures, medianpeaks, medint, TICs)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
284 QC_numbers= cbind(QC_numbers, reduced)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
285 vectorofactions = append(vectorofactions, "reduced")
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
286
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
287 ############################### Transformation ###########################
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
288
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
289 #elif str( $method.methods_conditional.preprocessing_method) == 'Transformation':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
290 print('Transformation')
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
291
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
292 #if str( $method.methods_conditional.transf_conditional.trans_type) == 'log2':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
293 print('log2 transformation')
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
294
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
295 spectra(msidata)[][spectra(msidata)[] ==0] = NA
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
296 print(paste0("Number of 0 which were converted into NA:",sum(is.na(spectra(msidata)[]))))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
297 spectra(msidata)[] = log2(spectra(msidata)[])
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
298
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
299 #elif str( $method.methods_conditional.transf_conditional.trans_type) == 'sqrt':
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
300 print('squareroot transformation')
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
301
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
302 spectra(msidata)[] = sqrt(spectra(msidata)[])
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
303
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
304 #end if
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
305
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
306 ############################### QC ###########################
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
307
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
308 maxfeatures = length(features(msidata))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
309 medianpeaks = median(colSums(spectra(msidata)[]>0, na.rm=TRUE))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
310 medint = round(median(spectra(msidata)[], na.rm=TRUE), digits=2)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
311 TICs = round(mean(colSums(spectra(msidata)[], na.rm=TRUE)), digits=1)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
312 transformed= c(maxfeatures, medianpeaks, medint, TICs)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
313 QC_numbers= cbind(QC_numbers, transformed)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
314 vectorofactions = append(vectorofactions, "transformed")
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
315
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
316 #end if
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
317 #end for
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
318
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
319 ############# Outputs: summar matrix, RData, tabular and QC report #############
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
320 ################################################################################
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
321 ## optional summarized matrix
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
322 print('Summarized matrix')
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
323
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
324 ## optional annotation from tabular file to obtain groups over which to apply mean, median or sd (otherwise all pixels are considered to be sample)
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
325
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
326 #if str($tabular_annotation.load_annotation) == 'yes_annotation':
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
327
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
328 ## read and extract x,y,annotation information
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
329 input_tabular = read.delim("$tabular_annotation.annotation_file", header = $tabular_annotation.tabular_header, stringsAsFactors = FALSE)
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
330 annotation_input = input_tabular[,c($tabular_annotation.column_x, $tabular_annotation.column_y, $tabular_annotation.column_names)]
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
331 colnames(annotation_input) = c("x", "y", "annotation")
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
332
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
333 ## merge with coordinate information of msidata
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
334 msidata_coordinates = cbind(coord(msidata)[,1:2], c(1:ncol(msidata)))
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
335 colnames(msidata_coordinates)[3] = "pixel_index"
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
336 merged_annotation = merge(msidata_coordinates, annotation_input, by=c("x", "y"), all.x=TRUE)
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
337 merged_annotation[is.na(merged_annotation)] = "NA"
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
338 merged_annotation = merged_annotation[order(merged_annotation\$pixel_index),]
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
339 msidata\$annotation = as.factor(merged_annotation[,4])
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
340
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
341 #end if
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
342
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
343 #if "mean" in str($summary_type).split(","):
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
344 print("mean matrix")
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
345 if (!is.null(levels(msidata\$annotation))){
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
346
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
347 sample_matrix = matrix(,ncol=0, nrow=nrow(msidata))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
348 count = 1
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
349 for (subsample in levels(msidata\$annotation)){
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
350 subsample_pixels = msidata[,msidata\$annotation == subsample]
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
351 subsample_calc = apply(spectra(subsample_pixels)[],1,mean, na.rm=TRUE)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
352 sample_matrix = cbind(sample_matrix, subsample_calc)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
353 count = count+1
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
354 }
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
355 rownames(sample_matrix) = mz(msidata)
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
356 colnames(sample_matrix) = levels(msidata\$annotation)
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
357 write.table(sample_matrix, file="$summarized_output_mean", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t")
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
358 }else{
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
359 full_sample_calc = as.data.frame(apply(spectra(msidata)[],1,mean, na.rm=TRUE))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
360 rownames(full_sample_calc) = mz(msidata)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
361 colnames(full_sample_calc) = "$infile.display_name"
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
362 write.table(full_sample_calc, file="$summarized_output_mean", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t")
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
363 }
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
364
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
365 #end if
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
366
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
367 #if "median" in str($summary_type).split(","):
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
368 print("median matrix")
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
369 if (!is.null(levels(msidata\$annotation))){
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
370 sample_matrix = matrix(,ncol=0, nrow=nrow(msidata))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
371 count = 1
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
372 for (subsample in levels(msidata\$annotation)){
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
373
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
374 subsample_pixels = msidata[,msidata\$annotation == subsample] ## no idea why it does not work??? NA problem?!
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
375
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
376 subsample_calc = apply(spectra(subsample_pixels)[],1,median, na.rm=TRUE)
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
377
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
378 sample_matrix = cbind(sample_matrix, subsample_calc)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
379 count = count+1
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
380 }
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
381
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
382 rownames(sample_matrix) = mz(msidata)
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
383 colnames(sample_matrix) = levels(msidata\$annotation)
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
384 write.table(sample_matrix, file="$summarized_output_median", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t")
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
385 }else{
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
386 full_sample_calc = as.data.frame(apply(spectra(msidata)[],1,median, na.rm=TRUE))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
387 rownames(full_sample_calc) = mz(msidata)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
388 colnames(full_sample_calc) = "$infile.display_name"
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
389 write.table(full_sample_calc, file="$summarized_output_median", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t")
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
390 }
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
391 #end if
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
392
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
393 #if "sd" in str($summary_type).split(","):
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
394 print("sd matrix")
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
395 if (!is.null(levels(msidata\$annotation))){
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
396 sample_matrix = matrix(,ncol=0, nrow=nrow(msidata))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
397 count = 1
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
398 for (subsample in levels(msidata\$annotation)){
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
399 subsample_pixels = msidata[,msidata\$annotation == subsample]
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
400 subsample_calc = apply(spectra(subsample_pixels)[],1,sd, na.rm=TRUE)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
401 sample_matrix = cbind(sample_matrix, subsample_calc)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
402 count = count+1
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
403 }
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
404
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
405 rownames(sample_matrix) = mz(msidata)
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
406 colnames(sample_matrix) = levels(msidata\$annotation)
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
407 write.table(sample_matrix, file="$summarized_output_sd", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t")
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
408 }else{
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
409
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
410 full_sample_calc = as.data.frame(apply(spectra(msidata)[],1,sd, na.rm=TRUE))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
411 rownames(full_sample_calc) = mz(msidata)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
412 colnames(full_sample_calc) = "$infile.display_name"
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
413 write.table(full_sample_calc, file="$summarized_output_sd", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t")
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
414 }
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
415 #end if
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
416 print(paste0("Number of NA in output file: ",sum(is.na(spectra(msidata)[]))))
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
417
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
418 ## save as (.RData)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
419 save(msidata, file="$msidata_preprocessed")
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
420
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
421 ## save output matrix
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
422 #if $output_matrix:
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
423
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
424 if (length(features(msidata))> 0 & length(pixels(msidata)) > 0){
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
425 spectramatrix = spectra(msidata)[]
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
426 spectramatrix = cbind(mz(msidata),spectramatrix)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
427 newmatrix = rbind(c("mz | spectra", names(pixels(msidata))), spectramatrix)
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
428 write.table(newmatrix, file="$matrixasoutput", quote = FALSE, row.names = FALSE, col.names=FALSE, sep = "\t")
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
429 }else{
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
430 print("file has no features or pixels left")
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
431 }
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
432 #end if
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
433
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
434 ## save QC report
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
435
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
436 pdf("Preprocessing.pdf", fonts = "Times", pointsize = 12)
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
437 plot(0,type='n',axes=FALSE,ann=FALSE)
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
438 title(main=paste("Quality control during preprocessing \n", "Filename:", "$infile.display_name"))
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
439 rownames(QC_numbers) = c("# features", "median # peaks", "median intensity", "median TIC")
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
440 grid.table(t(QC_numbers))
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
441
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
442 #if str($tabular_annotation.load_annotation) == 'yes_annotation':
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
443
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
444 ## the more annotation groups a file has the smaller will be the legend
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
445 number_combined = length(levels(msidata\$annotation))
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
446 if (number_combined<20){
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
447 legend_size = 10
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
448 }else if (number_combined>20 && number_combined<40){
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
449 legend_size = 9
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
450 }else if (number_combined>40 && number_combined<60){
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
451 legend_size = 8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
452 }else if (number_combined>60 && number_combined<100){
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
453 legend_size = 7
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
454 }else{
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
455 legend_size = 6
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
456 }
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
457
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
458 position_df = cbind(coord(msidata)[,1:2], msidata\$annotation)
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
459 colnames(position_df)[3] = "sample_name"
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
460
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
461 combine_plot = ggplot(position_df, aes(x=x, y=y, fill=sample_name))+
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
462 geom_tile() +
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
463 coord_fixed()+
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
464 ggtitle("Spatial orientation of annotated data")+
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
465 theme_bw()+
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
466 theme(plot.title = element_text(hjust = 0.5))+
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
467 theme(text=element_text(family="ArialMT", face="bold", size=12))+
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
468 theme(legend.position="bottom",legend.direction="vertical")+
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
469 theme(legend.key.size = unit(0.2, "line"), legend.text = element_text(size = legend_size))+
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
470 guides(fill=guide_legend(ncol=5,byrow=TRUE))
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
471 coord_labels = aggregate(cbind(x,y)~sample_name, data=position_df, mean)
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
472 coord_labels\$file_number = gsub( "_.*$", "", coord_labels\$sample_name)
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
473 for(file_count in 1:nrow(coord_labels))
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
474 {combine_plot = combine_plot + annotate("text",x=coord_labels[file_count,"x"],
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
475 y=coord_labels[file_count,"y"],label=toString(coord_labels[file_count,4]))}
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
476
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
477 print(combine_plot)
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
478 #end if
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
479
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
480 dev.off()
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
481
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
482 }else{
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
483 print("inputfile has no intensities > 0")
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
484 }
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
485
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
486 ]]></configfile>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
487 </configfiles>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
488 <inputs>
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
489 <param name="infile" type="data" format="imzml,rdata,analyze75"
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
490 label="MSI data as imzml, analyze7.5 or Cardinal MSImageSet saved as RData"
1
c4abf42419c2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents: 0
diff changeset
491 help="load imzml and ibd file by uploading composite datatype imzml"/>
6
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
492 <conditional name="processed_cond">
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
493 <param name="processed_file" type="select" label="Is the input file a processed imzML file ">
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
494 <option value="no_processed" selected="True">not a processed imzML</option>
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
495 <option value="processed">processed imzML</option>
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
496 </param>
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
497 <when value="no_processed"/>
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
498 <when value="processed">
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
499 <param name="accuracy" type="float" value="50" label="Mass accuracy to which the m/z values will be binned" help="This should be set to the native accuracy of the mass spectrometer, if known"/>
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
500 <param name="units" display="radio" type="select" label="Unit of the mass accuracy" help="either m/z or ppm">
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
501 <option value="mz" >mz</option>
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
502 <option value="ppm" selected="True" >ppm</option>
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
503 </param>
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
504 </when>
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
505 </conditional>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
506 <repeat name="methods" title="Preprocessing" min="1" max="50">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
507 <conditional name="methods_conditional">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
508 <param name="preprocessing_method" type="select" label="Select the preprocessing methods you want to apply">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
509 <option value="Normalization" selected="True">Normalization to TIC</option>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
510 <option value="Baseline_reduction">Baseline Reduction</option>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
511 <option value="Smoothing">Peak smoothing</option>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
512 <option value="Peak_picking">Peak picking</option>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
513 <option value="Peak_alignment">Peak alignment</option>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
514 <option value="Peak_filtering">Peak filtering</option>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
515 <option value="Data_reduction">Data reduction</option>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
516 <option value="Transformation">Transformation</option>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
517 </param>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
518 <when value="Normalization"/>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
519 <when value="Baseline_reduction">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
520 <param name="blocks_baseline" type="integer" value="50"
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
521 label="Blocks"/>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
522 </when>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
523 <when value="Smoothing">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
524 <conditional name="methods_for_smoothing">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
525 <param name="smoothing_method" type="select" label="Smoothing method">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
526 <option value="gaussian" selected="True">gaussian</option>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
527 <option value="sgolay">Savitsky-Golay</option>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
528 <option value="ma">moving average</option>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
529 </param>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
530 <when value="gaussian">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
531 <param name="sd_gaussian" type="float" value="4"
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
532 label="The standard deviation for the Gaussian kernel (window/sd)"/>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
533 </when>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
534 <when value="sgolay">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
535 <param name="order_of_filters" type="integer" value="3"
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
536 label="The order of the smoothing filter"/>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
537 </when>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
538 <when value="ma">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
539 <param name="coefficients_ma_filter" type="integer" value="1"
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
540 label="The coefficients for the moving average filter"/>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
541 </when>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
542 </conditional>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
543 <param name="window_smoothing" type="integer" value="9"
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
544 label="Window size"/>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
545 </when>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
546 <when value="Peak_picking">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
547 <param name="SNR_picking_method" type="integer" value="3"
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
548 label="Signal to noise ratio"
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
549 help="The minimal signal to noise ratio for peaks to be considered as a valid peak."/>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
550 <param name="blocks_picking" type="integer" value="100" label = "Number of blocks"
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
551 help="Number of blocks in which to divide mass spectrum to calculate noise"/>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
552 <param name="window_picking" type="integer" value="5" label= "Window size" help="Window width for seeking local maxima"/>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
553 <conditional name="methods_for_picking">
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
554 <param name="picking_method" type="select" label="Peak picking method" help="only simple works for processed imzML files">
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
555 <option value="adaptive" selected="True">adaptive</option>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
556 <option value="limpic">limpic</option>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
557 <option value="simple">simple</option>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
558 </param>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
559 <when value="adaptive">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
560 <param name="spar_picking" type="float" value="1.0"
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
561 label="Spar value"
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
562 help = "Smoothing parameter for the spline smoothing
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
563 applied to the spectrum in order to decide the cutoffs
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
564 for throwing away false noise spikes that might occur inside peaks"/>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
565 </when>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
566 <when value="limpic">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
567 <param name="tresh_picking" type="float" value="0.75"
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
568 label="thresh value" help="The thresholding quantile to use when comparing slopes in order to throw away peaks that are too flat"/>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
569 </when>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
570 <when value="simple"/>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
571 </conditional>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
572 </when>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
573 <when value="Peak_alignment">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
574 <conditional name="methods_for_alignment">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
575 <param name="alignment_method" type="select" label="Alignment method">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
576 <option value="diff" selected="True">diff</option>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
577 <option value="DP">DP</option>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
578 </param>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
579 <when value="diff">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
580 <param name="value_diffalignment" type="integer" value="200"
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
581 label="diff.max" help="Peaks that differ less than this value will be aligned together"/>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
582 <param name="units_diffalignment" type="select" display = "radio" optional = "False"
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
583 label="units">
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
584 <option value="ppm" selected="True">ppm</option>
6
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
585 <option value="Da">m/z</option>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
586 </param>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
587 </when>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
588 <when value="DP">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
589 <param name="gap_DPalignment" type="integer" value="0"
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
590 label="Gap" help="The gap penalty for the dynamic programming sequence alignment"/>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
591 </when>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
592 </conditional>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
593 <conditional name="align_ref_type">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
594 <param name="align_reference_datatype" type="select" label="Choose reference">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
595 <option value="align_noref" selected="True">no reference</option>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
596 <option value="align_table" >tabular file as reference</option>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
597 <option value="align_msidata_ref">msidata file as reference</option>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
598 </param>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
599 <when value="align_noref"/>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
600 <when value="align_table">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
601 <param name="align_peaks_table" type="data" format="tabular"
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
602 label="Reference m/z values to use for alignment - only these will be kept" help="One column with m/z values (without empty cells or letters)"/>
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
603 <param name="align_mass_column" data_ref="align_peaks_table" label="Column with reference m/z" type="data_column"/>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
604 </when>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
605 <when value="align_msidata_ref">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
606 <param name="align_peaks_msidata" type="data" format="rdata," label="Picked and aligned Cardinal MSImageSet saved as RData"/>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
607 </when>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
608 </conditional>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
609 </when>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
610 <when value="Peak_filtering">
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
611 <param name="frequ_filtering" type="integer" value="1000"
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
612 label="Freq.min" help="Peaks that occur in the dataset fewer times than this will be removed. Number should be between 1 (no filtering) and number of spectra (pixel)"/>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
613 </when>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
614 <when value="Data_reduction">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
615 <conditional name="methods_for_reduction">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
616 <param name="reduction_method" type="select" label="Reduction method">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
617 <option value="bin" selected="True">bin</option>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
618 <option value="resample">resample</option>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
619 <option value="peaks">peaks</option>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
620 </param>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
621 <when value="bin">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
622 <param name="bin_width" type="float" value="1"
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
623 label="The width of a bin in m/z or ppm" help="Width must be greater than range of m/z values divided by number of m/z features"/>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
624 <param name="bin_units" type="select" display="radio"
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
625 label="Unit for bin">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
626 <option value="mz" selected="True">mz</option>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
627 <option value="ppm">ppm</option>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
628 </param>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
629 <param name="bin_fun" type="select" display="radio"
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
630 label="Calculate sum or mean intensity for ions of the same bin">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
631 <option value="mean" selected="True">mean</option>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
632 <option value="sum">sum</option>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
633 </param>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
634 </when>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
635 <when value="resample">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
636 <param name="resample_step" type="float" value="1"
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
637 label="The step size in m/z" help="Step size must be greater than range of m/z values divided by number of m/z features"/>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
638 </when>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
639 <when value="peaks">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
640 <param name="peaks_type" type="select" display="radio"
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
641 label="Should the peak height or area under the curve be taken as the intensity value?">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
642 <option value="height" selected="True">height</option>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
643 <option value="area">area</option>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
644 </param>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
645 <conditional name="ref_type">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
646 <param name="reference_datatype" type="select" label="Choose reference datatype">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
647 <option value="table" selected="True">tabular file</option>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
648 <option value="msidata_ref">msidata file</option>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
649 </param>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
650 <when value="table">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
651 <param name="peaks_table" type="data" format="tabular"
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
652 label="Reference m/z values to use to reduce the dimension" help="One column with m/z values (without empty cells or letters, m/z outside m/z range are not used for filtering)"/>
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
653 <param name="mass_column" data_ref="peaks_table" label="Column with reference m/z" type="data_column"/>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
654 </when>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
655 <when value="msidata_ref">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
656 <param name="peaks_msidata" type="data" format="rdata," label="Picked and aligned Cardinal MSImageSet saved as RData"/>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
657 </when>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
658 </conditional>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
659 </when>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
660 </conditional>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
661 </when>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
662 <when value="Transformation">
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
663 <conditional name="transf_conditional">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
664 <param name="trans_type" type="select" label="Choose which intensity transformation you want to apply" help="logarithm base 2 (log2) or squareroot (sqrt)">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
665 <option value="log2" selected="True">log2</option>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
666 <option value="sqrt">sqrt</option>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
667 </param>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
668 <when value="log2"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
669 <when value="sqrt"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
670 </conditional>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
671 </when>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
672 </conditional>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
673 </repeat>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
674 <param name="summary_type" type="select" display="checkboxes" multiple="true" label="Summarize all pixels of a sample and calculate the mean, median or standard deviation">
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
675 <option value="mean">mean</option>
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
676 <option value="median">median</option>
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
677 <option value="sd">standard deviation</option>
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
678 </param>
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
679 <conditional name="tabular_annotation">
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
680 <param name="load_annotation" type="select" label="Use pixel annotations from tabular file to summarize pixel">
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
681 <option value="no_annotation" selected="True">summarize over all pixels</option>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
682 <option value="yes_annotation">summarize over categories from annotation file</option>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
683 </param>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
684 <when value="yes_annotation">
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
685 <param name="annotation_file" type="data" format="tabular" label="Use annotations from tabular file to summarize pixel"
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
686 help="Tabular file with three columns: x values, y values and pixel annotations"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
687 <param name="column_x" data_ref="annotation_file" label="Column with x values" type="data_column"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
688 <param name="column_y" data_ref="annotation_file" label="Column with y values" type="data_column"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
689 <param name="column_names" data_ref="annotation_file" label="Column with pixel annotations" type="data_column"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
690 <param name="tabular_header" type="boolean" label="Tabular file contains a header line" truevalue="TRUE" falsevalue="FALSE"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
691 </when>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
692 <when value="no_annotation"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
693 </conditional>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
694 <param name="output_matrix" type="boolean" label="Intensity matrix output"/>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
695 </inputs>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
696 <outputs>
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
697 <data format="rdata" name="msidata_preprocessed" label="$infile.display_name preprocessed"/>
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
698 <data format="pdf" name="QC_overview" from_work_dir="Preprocessing.pdf" label = "$infile.display_name preprocessed_QC"/>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
699 <data format="tabular" name="summarized_output_mean" label="$infile.display_name mean_matrix">
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
700 <filter>summary_type and "mean" in summary_type</filter>
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
701 </data>
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
702 <data format="tabular" name="summarized_output_median" label="$infile.display_name median_matrix">
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
703 <filter>summary_type and "median" in summary_type</filter>
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
704 </data>
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
705 <data format="tabular" name="summarized_output_sd" label="$infile.display_name sd_matrix">
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
706 <filter>summary_type and "sd" in summary_type</filter>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
707 </data>
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
708 <data format="tabular" name="matrixasoutput" label="$infile.display_name preprocessed_matrix">
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
709 <filter>output_matrix</filter>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
710 </data>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
711 </outputs>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
712 <tests>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
713 <test expect_num_outputs="3">
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
714 <param name="infile" value="" ftype="imzml">
1
c4abf42419c2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents: 0
diff changeset
715 <composite_data value="Example_Continuous.imzML"/>
c4abf42419c2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents: 0
diff changeset
716 <composite_data value="Example_Continuous.ibd"/>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
717 </param>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
718 <repeat name="methods">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
719 <conditional name="methods_conditional">
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
720 <param name="preprocessing_method" value="Normalization"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
721 </conditional>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
722 </repeat>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
723 <repeat name="methods">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
724 <conditional name="methods_conditional">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
725 <param name="preprocessing_method" value="Smoothing"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
726 <conditional name="methods_for_smoothing">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
727 <param name="smoothing_method" value="gaussian"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
728 </conditional>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
729 </conditional>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
730 </repeat>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
731 <repeat name="methods">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
732 <conditional name="methods_conditional">
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
733 <param name="preprocessing_method" value="Peak_picking"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
734 <conditional name="methods_for_picking">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
735 <param name="picking_method" value="adaptive"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
736 </conditional>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
737 <param name="blocks_picking" value="3"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
738 <param name="window_picking" value="3"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
739 </conditional>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
740 </repeat>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
741 <repeat name="methods">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
742 <conditional name="methods_conditional">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
743 <param name="preprocessing_method" value="Peak_alignment"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
744 <conditional name="methods_for_alignment">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
745 <param name="alignment_method" value="diff"/>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
746 </conditional>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
747 </conditional>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
748 </repeat>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
749 <repeat name="methods">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
750 <conditional name="methods_conditional">
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
751 <param name="preprocessing_method" value="Peak_filtering"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
752 <param name="frequ_filtering" value="2"/>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
753 </conditional>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
754 </repeat>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
755 <repeat name="methods">
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
756 <conditional name="methods_conditional">
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
757 <param name="preprocessing_method" value="Transformation"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
758 <conditional name="transf_conditional">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
759 <param name="trans_type" value="sqrt"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
760 </conditional>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
761 </conditional>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
762 </repeat>
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
763 <conditional name="tabular_annotation">
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
764 <param name="load_annotation" value="no_annotation"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
765 </conditional>
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
766 <param name="output_matrix" value="True"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
767 <output name="msidata_preprocessed" file="preprocessing_results1.RData" compare="sim_size"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
768 <output name="matrixasoutput" file="preprocessing_results1.txt"/>
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
769 <output name="QC_overview" file="preprocessing_results1.pdf" compare="sim_size"/>
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
770 </test>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
771 <test expect_num_outputs="4">
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
772 <param name="infile" value="123_combined.RData" ftype="rdata"/>
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
773 <repeat name="methods">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
774 <conditional name="methods_conditional">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
775 <param name="preprocessing_method" value="Peak_picking"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
776 <param name="blocks_picking" value="3"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
777 <param name="window_picking" value="5"/>
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
778 <param name="SNR_picking_method" value="2"/>
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
779 <conditional name="methods_for_picking">
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
780 <param name="picking_method" value="adaptive"/>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
781 </conditional>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
782 </conditional>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
783 </repeat>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
784 <repeat name="methods">
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
785 <conditional name="methods_conditional">
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
786 <param name="preprocessing_method" value="Peak_alignment"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
787 <conditional name="methods_for_alignment">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
788 <param name="alignment_method" value="DP"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
789 </conditional>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
790 </conditional>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
791 </repeat>
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
792 <conditional name="tabular_annotation">
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
793 <param name="load_annotation" value="yes_annotation"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
794 <param name="annotation_file" value="pixel_annotations.tabular"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
795 <param name="column_x" value="1"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
796 <param name="column_y" value="2"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
797 <param name="column_names" value="3"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
798 <param name="tabular_header" value="FALSE"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
799 </conditional>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
800 <param name="summary_type" value="median,sd"/>
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
801 <output name="msidata_preprocessed" file="preprocessing_results2.RData" compare="sim_size"/>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
802 <output name="summarized_output_median" file="preprocessing_median2.txt" lines_diff="2"/>
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
803 <output name="summarized_output_sd" file="preprocessing_sd2.txt" lines_diff="2"/>
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
804 <output name="QC_overview" file="preprocessing_results2.pdf" compare="sim_size"/>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
805 </test>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
806 <test expect_num_outputs="3">
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
807 <param name="infile" value="" ftype="analyze75">
1
c4abf42419c2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents: 0
diff changeset
808 <composite_data value="Analyze75.hdr"/>
c4abf42419c2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents: 0
diff changeset
809 <composite_data value="Analyze75.img"/>
c4abf42419c2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents: 0
diff changeset
810 <composite_data value="Analyze75.t2m"/>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
811 </param>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
812 <repeat name="methods">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
813 <conditional name="methods_conditional">
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
814 <param name="preprocessing_method" value="Normalization"/>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
815 </conditional>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
816 </repeat>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
817 <repeat name="methods">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
818 <conditional name="methods_conditional">
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
819 <param name="preprocessing_method" value="Peak_picking"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
820 <param name="blocks_picking" value="100"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
821 <param name="window_picking" value="5"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
822 <param name="picking_method" value="limpic"/>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
823 </conditional>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
824 </repeat>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
825 <repeat name="methods">
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
826 <conditional name="methods_conditional">
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
827 <param name="preprocessing_method" value="Peak_alignment"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
828 <conditional name="methods_for_alignment">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
829 <param name="alignment_method" value="diff"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
830 </conditional>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
831 </conditional>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
832 </repeat>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
833 <param name="summary_type" value="mean"/>
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
834 <conditional name="tabular_annotation">
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
835 <param name="load_annotation" value="no_annotation"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
836 </conditional>
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
837 <output name="msidata_preprocessed" file="preprocessing_results3.RData" compare="sim_size"/>
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
838 <output name="QC_overview" file="preprocessing_results3.pdf" compare="sim_size"/>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
839 <output name="summarized_output_mean" file="preprocessing_mean3.txt" lines_diff="2"/>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
840 </test>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
841 <test expect_num_outputs="3">
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
842 <param name="infile" value="" ftype="analyze75">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
843 <composite_data value="Analyze75.hdr"/>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
844 <composite_data value="Analyze75.img"/>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
845 <composite_data value="Analyze75.t2m"/>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
846 </param>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
847 <repeat name="methods">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
848 <conditional name="methods_conditional">
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
849 <param name="preprocessing_method" value="Normalization"/>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
850 </conditional>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
851 </repeat>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
852 <repeat name="methods">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
853 <conditional name="methods_conditional">
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
854 <param name="preprocessing_method" value="Data_reduction"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
855 <param name="bin_width" value="0.1"/>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
856 </conditional>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
857 </repeat>
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
858 <conditional name="tabular_annotation">
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
859 <param name="load_annotation" value="no_annotation"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
860 </conditional>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
861 <param name="output_matrix" value="True"/>
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
862 <output name="msidata_preprocessed" file="preprocessing_results4.RData" compare="sim_size"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
863 <output name="matrixasoutput" file="preprocessing_results4.txt"/>
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
864 <output name="QC_overview" file="preprocessing_results4.pdf" compare="sim_size"/>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
865 </test>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
866 <test expect_num_outputs="2">
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
867 <param name="infile" value="" ftype="imzml">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
868 <composite_data value="Example_Continuous.imzML"/>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
869 <composite_data value="Example_Continuous.ibd"/>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
870 </param>
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
871 <repeat name="methods">
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
872 <conditional name="methods_conditional">
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
873 <param name="preprocessing_method" value="Data_reduction"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
874 <conditional name="methods_for_reduction">
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
875 <param name="reduction_method" value="resample"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
876 <param name="step_width" value="0.1"/>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
877 </conditional>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
878 </conditional>
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
879 </repeat>
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
880 <conditional name="tabular_annotation">
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
881 <param name="load_annotation" value="no_annotation"/>
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
882 </conditional>
5
2fccfd11360d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5
galaxyp
parents: 4
diff changeset
883 <output name="msidata_preprocessed" file="preprocessing_results5.RData" compare="sim_size"/>
7
1a3d477bc54a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents: 6
diff changeset
884 <output name="QC_overview" file="preprocessing_results5.pdf" compare="sim_size"/>
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
885 </test>
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
886 </tests>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
887 <help>
1
c4abf42419c2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents: 0
diff changeset
888 <![CDATA[
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
889
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
890 Cardinal is an R package that implements statistical & computational tools for analyzing mass spectrometry imaging datasets. `More information on Cardinal <http://cardinalmsi.org//>`_
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
891
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
892 This tool provides provides multiple Cardinal functions to preprocess mass spectrometry imaging data.
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
893
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
894 Input data: 3 types of input data can be used:
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
895
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
896 - imzml file (upload imzml and ibd file via the "composite" function) `Introduction to the imzml format <https://ms-imaging.org/wp/imzml/>`_
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
897 - Analyze7.5 (upload hdr, img and t2m file via the "composite" function)
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
898 - Cardinal "MSImageSet" data (with variable name "msidata", saved as .RData)
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
899 - optional: tabular file with pixel annotations: x and y values in separate columns and the corresponding annotation in a third column
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
900
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
901 Options:
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
902
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
903 - Normalization: Normalization of intensities to total ion current (TIC)
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
904 - Baseline reduction: Baseline reduction removes backgroundintensity generated by chemical noise (common in MALDI datasets)
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
905 - Smoothening: Smoothing of the peaks reduces noise and improves peak detection
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
906 - Peak picking: relevant peaks are picked while noise-peaks are removed (needs peak alignment afterwards)
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
907 - Peak alignment: only possible after peak picking, m/z inaccuracies are removed by alignment of same peaks to a common m/z value
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
908 - Peak filtering: works only on centroided data (after peak picking and alignment or data reduction with peak filtering), removes peaks that occur only in a small proportion of pixels. If not sure which cutoff to chose run qualitycontrol first and decide according to the zero value plot.
2
50ba097d03e0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 1
diff changeset
909 - Data reduction: binning, resampling or peak filtering to reduce data
6
d3fd539f477e planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 6d877681b6188999b4f5abb1843b420078b71b92
galaxyp
parents: 5
diff changeset
910 - Transformation: log2 or squareroot transformation of all intensities; when using log2 transformation zero intensities will become NA, this can lead to compatibility problems.
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
911
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
912
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
913 Output:
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
914
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
915 - imzML file, preprocessed
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
916 - pdf with key values after each processing step, in case of loaded annotations file overview plot of pixel annotations
4
42580292d381 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 3
diff changeset
917 - optional: intensity matrix as tabular file (intensities for m/z in rows and pixel in columns)
8
d77c5228fd1a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee
galaxyp
parents: 7
diff changeset
918 - optional: summarized intensity matrix: mean, median or standard deviation for each m/z feature; in case pixel annotations are provided the intensity values are summarized for each pixel group
3
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
919
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
920 Tip:
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
921
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
922 - Peak alignment works only after peak picking
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
923 - Peak filtering works only on centroided data (peak picking and alignment or Data reduction peaks)
b9523950e79d planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 2
diff changeset
924
0
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
925 ]]>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
926 </help>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
927 <citations>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
928 <citation type="doi">10.1093/bioinformatics/btv146</citation>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
929 </citations>
74fcb3c95a53 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff changeset
930 </tool>