Mercurial > repos > galaxyp > msi_preprocessing
annotate msi_preprocessing.xml @ 2:50ba097d03e0 draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
author | galaxyp |
---|---|
date | Mon, 23 Apr 2018 17:19:16 -0400 |
parents | c4abf42419c2 |
children | b9523950e79d |
rev | line source |
---|---|
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
1 <tool id="mass_spectrometry_imaging_preprocessing" name="MSI preprocessing" version="1.7.0.2"> |
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> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
6 <requirement type="package" version="1.7.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> |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
9 </requirements> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
10 <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
|
11 <![CDATA[ |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
12 |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
13 #if $infile.ext == 'imzml' |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
14 cp '${infile.extra_files_path}/imzml' infile.imzML && |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
15 cp '${infile.extra_files_path}/ibd' infile.ibd && |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
16 #elif $infile.ext == 'analyze75' |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
17 cp '${infile.extra_files_path}/hdr' infile.hdr && |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
18 cp '${infile.extra_files_path}/img' infile.img && |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
19 cp '${infile.extra_files_path}/t2m' infile.t2m && |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
20 #else |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
21 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
|
22 #end if |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
23 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
|
24 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
|
25 |
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 </command> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
28 <configfiles> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
29 <configfile name="cardinal_preprocessing"><![CDATA[ |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
30 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
|
31 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
|
32 library(lattice) |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
33 |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
34 #if $infile.ext == 'imzml' |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
35 msidata <- readMSIData('infile.imzML') |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
36 #elif $infile.ext == 'analyze75' |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
37 msidata <- readMSIData('infile.hdr') |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
38 #else |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
39 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
|
40 #end if |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
41 |
1
c4abf42419c2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents:
0
diff
changeset
|
42 |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
43 ##################################### Preparations for QC report ####################################################################################### |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
44 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
45 #if $outputs.outputs_select == "quality_control": |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
46 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
47 ### values for QC table: |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
48 maxfeatures = length(features(msidata)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
49 medianpeaks = median(colSums(spectra(msidata)[]>0)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
50 medint = round(median(spectra(msidata)[]), digits=2) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
51 TICs = round(mean(colSums(spectra(msidata)[])), digits=1) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
52 QC_numbers= data.frame(rawdata = c(maxfeatures, medianpeaks, medint, TICs)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
53 vectorofactions = "rawdata" |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
54 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
55 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
56 ### Read tabular file with calibrant masses: |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
57 calibrant_list = read.delim("$outputs.calibrant_file", header = FALSE, na.strings=c("","NA"), stringsAsFactors = FALSE) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
58 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
59 ### calculate how many input calibrant masses are valid: |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
60 inputcalibrants = calibrant_list[calibrant_list[,$outputs.calibrants_column]>min(mz(msidata)) & calibrant_list[,$outputs.calibrants_column]<max(mz(msidata)),$outputs.calibrants_column] |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
61 number_calibrants_in = length(calibrant_list[,$outputs.calibrants_column]) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
62 number_calibrants_valid = length(inputcalibrants) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
63 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
64 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
65 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
66 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
67 ### Quality control report |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
68 |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
69 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
70 pdf("Preprocessing.pdf", fonts = "Times", pointsize = 12) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
71 plot(0,type='n',axes=FALSE,ann=FALSE) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
72 title(main=paste("Quality control during preprocessing \n", "Filename:", "$infile.display_name")) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
73 title(main=paste0("\n\n\n\n Number valid masses in ", "$outputs.calibrant_file.display_name",": ", number_calibrants_valid, "/", number_calibrants_in)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
74 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
75 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
76 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
77 for (calibrant in inputcalibrants) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
78 { |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
79 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
80 currentimage = image(msidata , mz=calibrant, strip = strip.custom(bg="lightgrey", |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
81 par.strip.text=list(col="black", cex=.9)),lattice=TRUE, |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
82 scales = list(draw = FALSE), plusminus = $outputs.plusminus_dalton, main="raw") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
83 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
84 assign(paste("rawdata",calibrant, sep="_"), currentimage) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
85 } |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
86 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
87 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
88 current_plot_raw <- vector(length(inputcalibrants), mode='list') |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
89 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
90 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
91 #end if |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
92 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
93 ################################################### Preprocessing steps ####################################################################################### |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
94 #for $method in $methods: |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
95 #if str( $method.methods_conditional.preprocessing_method ) == 'Normalization': |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
96 print('Normalization') |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
97 ##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
|
98 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
99 msidata <- normalize(msidata, method="tic") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
100 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
101 #if $outputs.outputs_select == "quality_control": |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
102 ### values for QC table: |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
103 maxfeatures = length(features(msidata)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
104 medianpeaks = median(colSums(spectra(msidata)[]>0)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
105 medint = round(median(spectra(msidata)[]), digits=2) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
106 TICs = round(mean(colSums(spectra(msidata)[])), digits=1) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
107 normalized = c(maxfeatures, medianpeaks, medint, TICs) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
108 QC_numbers= cbind(QC_numbers, normalized) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
109 ### preparation for QC plots |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
110 vectorofactions = append(vectorofactions, "normalized") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
111 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
112 for (calibrant in inputcalibrants) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
113 { |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
114 currentimage = image(msidata , mz=calibrant, strip = strip.custom(bg="lightgrey", |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
115 par.strip.text=list(col="black", cex=.9)),lattice=TRUE, |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
116 scales = list(draw = FALSE), plusminus = $outputs.plusminus_dalton, main="normalized") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
117 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
118 assign(paste("normalized",calibrant, sep="_"), currentimage) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
119 } |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
120 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
121 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
122 #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
|
123 |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
124 #elif str( $method.methods_conditional.preprocessing_method ) == 'Baseline_reduction': |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
125 print('Baseline_reduction') |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
126 ##baseline reduction |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
127 msidata = reduceBaseline(msidata, method="median", blocks=$method.methods_conditional.blocks_baseline) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
128 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
129 #if $outputs.outputs_select == "quality_control": |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
130 maxfeatures = length(features(msidata)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
131 medianpeaks = median(colSums(spectra(msidata)[]>0)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
132 medint = round(median(spectra(msidata)[]), digits=2) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
133 TICs = round(mean(colSums(spectra(msidata)[])), digits=1) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
134 baseline= c(maxfeatures, medianpeaks, medint, TICs) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
135 QC_numbers= cbind(QC_numbers, baseline) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
136 ### preparation for QC plots |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
137 vectorofactions = append(vectorofactions, "baseline_rem") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
138 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
139 for (calibrant in inputcalibrants) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
140 { |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
141 currentimage = image(msidata , mz=calibrant, strip = strip.custom(bg="lightgrey", |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
142 par.strip.text=list(col="black", cex=.9)),lattice=TRUE, |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
143 scales = list(draw = FALSE), plusminus = $outputs.plusminus_dalton, main="baseline removed") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
144 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
145 assign(paste("baseline_rem",calibrant, sep="_"), currentimage) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
146 } |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
147 #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
|
148 |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
149 #elif str( $method.methods_conditional.preprocessing_method ) == 'Smoothing': |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
150 print('Smoothing') |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
151 ## Smoothing |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
152 |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
153 #if str( $method.methods_conditional.methods_for_smoothing.smoothing_method) == 'gaussian': |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
154 print('gaussian smoothing') |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
155 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) |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
156 #elif str( $method.methods_conditional.methods_for_smoothing.smoothing_method) == 'sgolay': |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
157 print('sgolay smoothing') |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
158 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) |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
159 #elif str($method.methods_conditional.methods_for_smoothing.smoothing_method) == 'ma': |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
160 print('sgolay smoothing') |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
161 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) |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
162 #end if |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
163 |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
164 #if $outputs.outputs_select == "quality_control": |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
165 maxfeatures = length(features(msidata)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
166 medianpeaks = median(colSums(spectra(msidata)[]>0)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
167 medint = round(median(spectra(msidata)[]), digits=2) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
168 TICs = round(mean(colSums(spectra(msidata)[])), digits=1) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
169 smoothed= c(maxfeatures, medianpeaks, medint, TICs) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
170 QC_numbers= cbind(QC_numbers, smoothed) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
171 ### preparation for QC plots |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
172 vectorofactions = append(vectorofactions, "smoothed") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
173 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
174 for (calibrant in inputcalibrants) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
175 { |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
176 currentimage = image(msidata , mz=calibrant, strip = strip.custom(bg="lightgrey", |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
177 par.strip.text=list(col="black", cex=.9)),lattice=TRUE, |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
178 scales = list(draw = FALSE), plusminus = $outputs.plusminus_dalton, main="smoothed") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
179 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
180 assign(paste("smoothed",calibrant, sep="_"), currentimage) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
181 } |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
182 #end if |
1
c4abf42419c2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents:
0
diff
changeset
|
183 |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
184 #elif str( $method.methods_conditional.preprocessing_method) == 'Peak_picking': |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
185 print('Peak_picking') |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
186 ## Peakpicking |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
187 |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
188 #if str( $method.methods_conditional.methods_for_picking.picking_method) == 'adaptive': |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
189 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
|
190 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) |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
191 |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
192 #elif str( $method.methods_conditional.methods_for_picking.picking_method) == 'limpic': |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
193 print('limpic 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
|
194 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) |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
195 |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
196 #elif str( $method.methods_conditional.methods_for_picking.picking_method) == 'simple': |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
197 print('simple 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
|
198 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) |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
199 #end if |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
200 |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
201 #if $outputs.outputs_select == "quality_control": |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
202 maxfeatures = length(features(msidata)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
203 medianpeaks = median(colSums(spectra(msidata)[]>0)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
204 medint = round(median(spectra(msidata)[]), digits=2) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
205 TICs = round(mean(colSums(spectra(msidata)[])), digits=1) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
206 picked= c(maxfeatures, medianpeaks, medint, TICs) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
207 QC_numbers= cbind(QC_numbers, picked) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
208 ### preparation for QC plots |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
209 vectorofactions = append(vectorofactions, "picked") |
1
c4abf42419c2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents:
0
diff
changeset
|
210 |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
211 for (calibrant in inputcalibrants) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
212 { |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
213 currentimage = image(msidata , mz=calibrant, strip = strip.custom(bg="lightgrey", |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
214 par.strip.text=list(col="black", cex=.9)),lattice=TRUE, |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
215 scales = list(draw = FALSE), plusminus = $outputs.plusminus_dalton, main="picked") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
216 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
217 assign(paste("picked",calibrant, sep="_"), currentimage) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
218 } |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
219 #end if |
1
c4abf42419c2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents:
0
diff
changeset
|
220 |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
221 #elif str( $method.methods_conditional.preprocessing_method ) == 'Peak_alignment': |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
222 print('Peak_alignment') |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
223 ## Peakalignment |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
224 |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
225 #if str( $method.methods_conditional.align_ref_type.align_reference_datatype) == '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
|
226 align_peak_reference = msidata |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
227 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
228 #elif str( $method.methods_conditional.align_ref_type.align_reference_datatype) == '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
|
229 align_reference_table = read.delim("$method.methods_conditional.align_ref_type.align_peaks_table", header = FALSE, na.strings=c("","NA"), stringsAsFactors = FALSE) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
230 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
231 align_reference_column = align_reference_table[,$method.methods_conditional.align_ref_type.align_mass_column] |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
232 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
233 align_peak_reference = align_reference_column[align_reference_column>=min(mz(msidata)) & align_reference_column<=max(mz(msidata))] |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
234 if (length(align_peak_reference) == 0) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
235 {align_peak_reference = 0 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
236 } |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
237 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
238 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
239 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
240 #### if length <0: align_peak_reference = 0 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
241 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
242 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
243 #elif str( $method.methods_conditional.align_ref_type.align_reference_datatype) == '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
|
244 loadRData <- function(fileName){ |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
245 #loads an RData file, and returns it |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
246 load(fileName) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
247 get(ls()[ls() != "fileName"]) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
248 } |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
249 align_peak_reference = loadRData('$method.methods_conditional.align_ref_type.align_peaks_msidata') |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
250 #end if |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
251 |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
252 #if str( $method.methods_conditional.methods_for_alignment.alignment_method) == 'diff': |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
253 print('diff peakalignment') |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
254 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) |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
255 |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
256 #elif str( $method.methods_conditional.methods_for_alignment.alignment_method) == 'DP': |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
257 print('DPpeakalignment') |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
258 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) |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
259 #end if |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
260 |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
261 #if $outputs.outputs_select == "quality_control": |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
262 maxfeatures = length(features(msidata)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
263 medianpeaks = median(colSums(spectra(msidata)[]>0)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
264 medint = round(median(spectra(msidata)[]), digits=2) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
265 TICs = round(mean(colSums(spectra(msidata)[])), digits=1) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
266 aligned= c(maxfeatures, medianpeaks, medint, TICs) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
267 QC_numbers= cbind(QC_numbers, aligned) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
268 ### preparation for QC plots |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
269 vectorofactions = append(vectorofactions, "aligned") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
270 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
271 for (calibrant in inputcalibrants) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
272 { |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
273 currentimage = image(msidata , mz=calibrant, strip = strip.custom(bg="lightgrey", |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
274 par.strip.text=list(col="black", cex=.9)),lattice=TRUE, |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
275 scales = list(draw = FALSE), plusminus = $outputs.plusminus_dalton, main="aligned") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
276 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
277 assign(paste("aligned",calibrant, sep="_"), currentimage) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
278 } |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
279 #end if |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
280 |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
281 #elif str( $method.methods_conditional.preprocessing_method) == 'Peak_filtering': |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
282 print('Peak_filtering') |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
283 msidata = peakFilter(msidata, method='freq', freq.min = $method.methods_conditional.frequ_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
|
284 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
285 #if $outputs.outputs_select == "quality_control": |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
286 maxfeatures = length(features(msidata)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
287 medianpeaks = median(colSums(spectra(msidata)[]>0)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
288 medint = round(median(spectra(msidata)[]), digits=2) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
289 TICs = round(mean(colSums(spectra(msidata)[])), digits=1) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
290 filtered= c(maxfeatures, medianpeaks, medint, TICs) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
291 QC_numbers= cbind(QC_numbers, filtered) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
292 ### preparation for QC plots |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
293 vectorofactions = append(vectorofactions, "filtered") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
294 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
295 for (calibrant in inputcalibrants) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
296 { |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
297 currentimage = image(msidata , mz=calibrant, strip = strip.custom(bg="lightgrey", |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
298 par.strip.text=list(col="black", cex=.9)),lattice=TRUE, |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
299 scales = list(draw = FALSE), plusminus = $outputs.plusminus_dalton, main="filtered") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
300 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
301 assign(paste("filtered",calibrant, sep="_"), currentimage) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
302 } |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
303 #end if |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
304 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
305 #elif str( $method.methods_conditional.preprocessing_method) == '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
|
306 print('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
|
307 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
308 #if str( $method.methods_conditional.methods_for_reduction.reduction_method) == 'bin': |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
309 print('bin reduction') |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
310 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) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
311 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
312 #elif str( $method.methods_conditional.methods_for_reduction.reduction_method) == 'resample': |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
313 print('resample reduction') |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
314 msidata = reduceDimension(msidata, method="resample", step=$method.methods_conditional.methods_for_reduction.resample_step) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
315 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
316 #elif str( $method.methods_conditional.methods_for_reduction.reduction_method) == 'peaks': |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
317 print('peaks reduction') |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
318 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
319 #if str( $method.methods_conditional.methods_for_reduction.ref_type.reference_datatype) == 'table': |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
320 reference_table = read.delim("$method.methods_conditional.methods_for_reduction.ref_type.peaks_table", header = FALSE, na.strings=c("","NA"), stringsAsFactors = FALSE) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
321 reference_column = reference_table[,$method.methods_conditional.methods_for_reduction.ref_type.mass_column] |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
322 peak_reference = reference_column[reference_column>min(mz(msidata)) & reference_column<max(mz(msidata))] |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
323 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
324 #elif str( $method.methods_conditional.methods_for_reduction.ref_type.reference_datatype) == '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
|
325 loadRData <- function(fileName){ |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
326 #loads an RData file, and returns it |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
327 load(fileName) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
328 get(ls()[ls() != "fileName"]) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
329 } |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
330 peak_reference = loadRData('$method.methods_conditional.methods_for_reduction.ref_type.peaks_msidata') |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
331 #end if |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
332 msidata = reduceDimension(msidata, method="peaks", ref=peak_reference, type="$method.methods_conditional.methods_for_reduction.peaks_type") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
333 #end if |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
334 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
335 #if $outputs.outputs_select == "quality_control": |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
336 maxfeatures = length(features(msidata)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
337 medianpeaks = median(colSums(spectra(msidata)[]>0)) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
338 medint = round(median(spectra(msidata)[]), digits=2) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
339 TICs = round(mean(colSums(spectra(msidata)[])), digits=1) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
340 reduced= c(maxfeatures, medianpeaks, medint, TICs) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
341 QC_numbers= cbind(QC_numbers, reduced) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
342 ### preparation for QC plots |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
343 vectorofactions = append(vectorofactions, "reduced") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
344 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
345 for (calibrant in inputcalibrants) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
346 { |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
347 currentimage = image(msidata , mz=calibrant, strip = strip.custom(bg="lightgrey", |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
348 par.strip.text=list(col="black", cex=.9)),lattice=TRUE, |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
349 scales = list(draw = FALSE), plusminus = $outputs.plusminus_dalton, main="reduced") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
350 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
351 assign(paste("reduced",calibrant, sep="_"), currentimage) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
352 } |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
353 #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
|
354 #end if |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
355 #end for |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
356 |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
357 ####################################################### Outputs: RData, tabular and QC report ###################################################### |
1
c4abf42419c2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents:
0
diff
changeset
|
358 |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
359 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
360 ## save 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
|
361 save(msidata, file="$msidata_preprocessed") |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
362 |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
363 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
364 #if $output_matrix: |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
365 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
366 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
367 if (length(features(msidata))> 0) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
368 { |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
369 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
370 ## save as intensity matrix |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
371 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
372 spectramatrix = spectra(msidata) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
373 rownames(spectramatrix) = mz(msidata) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
374 newmatrix = rbind(pixels(msidata), spectramatrix) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
375 write.table(newmatrix[2:nrow(newmatrix),], file="$matrixasoutput", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
376 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
377 }else{ |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
378 print("file has no features left") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
379 write.table(matrix(rownames(coord(msidata)), ncol=ncol(msidata), nrow=1), file="$matrixasoutput", quote = FALSE, row.names = FALSE, col.names=FALSE, sep = "\t") |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
380 } |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
381 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
382 #end if |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
383 |
1
c4abf42419c2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents:
0
diff
changeset
|
384 |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
385 #if $outputs.outputs_select == "quality_control": |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
386 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
387 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
|
388 grid.table(t(QC_numbers)) |
1
c4abf42419c2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents:
0
diff
changeset
|
389 |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
390 for (calibrant in inputcalibrants) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
391 { |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
392 imagelist = list() |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
393 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
394 for (numberprepro in 1:length(vectorofactions)){ |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
395 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
396 imagelist[[numberprepro]] = get(paste(vectorofactions[numberprepro],calibrant, sep="_")) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
397 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
398 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
399 } |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
400 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
401 do.call(grid.arrange,imagelist) |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
402 } |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
403 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
404 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
405 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
|
406 |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
407 #end if |
1
c4abf42419c2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents:
0
diff
changeset
|
408 |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
409 |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
410 ]]></configfile> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
411 </configfiles> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
412 <inputs> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
413 <param name="infile" type="data" format="imzml,rdata,analyze75" |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
414 label="MSI rawdata 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
|
415 help="load imzml and ibd file by uploading composite datatype imzml"/> |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
416 <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
|
417 <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
|
418 <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
|
419 <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
|
420 <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
|
421 <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
|
422 <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
|
423 <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
|
424 <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
|
425 <option value="Data_reduction">Data reduction</option> |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
426 </param> |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
427 |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
428 <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
|
429 <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
|
430 <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
|
431 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
|
432 </when> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
433 <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
|
434 <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
|
435 <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
|
436 <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
|
437 <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
|
438 <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
|
439 </param> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
440 <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
|
441 <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
|
442 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
|
443 </when> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
444 <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
|
445 <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
|
446 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
|
447 </when> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
448 <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
|
449 <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
|
450 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
|
451 </when> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
452 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
453 <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
|
454 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
|
455 </when> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
456 <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
|
457 <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
|
458 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
|
459 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
|
460 <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
|
461 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
|
462 <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
|
463 <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
|
464 <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
|
465 <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
|
466 <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
|
467 <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
|
468 </param> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
469 <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
|
470 <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
|
471 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
|
472 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
|
473 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
|
474 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
|
475 </when> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
476 <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
|
477 <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
|
478 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
|
479 </when> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
480 <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
|
481 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
482 </when> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
483 <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
|
484 <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
|
485 <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
|
486 <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
|
487 <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
|
488 </param> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
489 <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
|
490 <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
|
491 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
|
492 <param name="units_diffalignment" type="select" display = "radio" optional = "False" |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
493 label="units" help="The coefficients for the moving average filter"> |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
494 <option value="ppm" selected="True">ppm</option> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
495 <option value="Da">Da</option> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
496 </param> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
497 </when> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
498 <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
|
499 <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
|
500 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
|
501 </when> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
502 </conditional> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
503 <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
|
504 <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
|
505 <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
|
506 <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
|
507 <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
|
508 </param> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
509 <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
|
510 <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
|
511 <param name="align_peaks_table" type="data" format="tabular" |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
512 label="Reference mz values to use for alignment - only these will be kept" help="One column with mz values (without empty cells or letters)"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
513 <param name="align_mass_column" data_ref="align_peaks_table" label="Column with reference mz" type="data_column"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
514 </when> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
515 <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
|
516 <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
|
517 </when> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
518 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
519 </when> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
520 <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
|
521 <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
|
522 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
|
523 </when> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
524 <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
|
525 <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
|
526 <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
|
527 <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
|
528 <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
|
529 <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
|
530 </param> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
531 <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
|
532 <param name="bin_width" type="float" value="1" |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
533 label="The width of a bin in mz or ppm" help="Width must be greater than Range of mz values/Number of mz features"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
534 <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
|
535 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
|
536 <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
|
537 <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
|
538 </param> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
539 <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
|
540 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
|
541 <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
|
542 <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
|
543 </param> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
544 </when> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
545 <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
|
546 <param name="resample_step" type="float" value="1" |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
547 label="The step size in mz" help="Step size must be greater than Range of mz values/Number of mz features"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
548 </when> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
549 <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
|
550 <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
|
551 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
|
552 <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
|
553 <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
|
554 </param> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
555 <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
|
556 <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
|
557 <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
|
558 <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
|
559 </param> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
560 <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
|
561 <param name="peaks_table" type="data" format="tabular" |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
562 label="Reference mz values to use to reduce the dimension" help="One column with mz values (without empty cells or letters, mz outside mz range are not used for filtering)"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
563 <param name="mass_column" data_ref="peaks_table" label="Column with reference mz" type="data_column"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
564 </when> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
565 <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
|
566 <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
|
567 </when> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
568 </conditional> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
569 </when> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
570 </conditional> |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
571 </when> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
572 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
573 </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
|
574 <conditional name="outputs"> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
575 <param name="outputs_select" type="select" label="Quality control output"> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
576 <option value="quality_control" selected="True">yes</option> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
577 <option value="no_quality_control">no</option> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
578 </param> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
579 <when value="quality_control"> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
580 <param name="calibrant_file" type="data" format="tabular" |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
581 label="Provide a list of masses which will be plotted in the quality control report" |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
582 help="Use internal calibrant masses"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
583 <param name="calibrants_column" data_ref="calibrant_file" label="Column with masses" type="data_column"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
584 <param name="plusminus_dalton" value="0.25" type="text" label="Mass range" help="Plusminus mass window in Dalton"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
585 </when> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
586 <when value="no_quality_control"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
587 </conditional> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
588 <param name="output_matrix" type="boolean" display="radio" 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
|
589 </inputs> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
590 <outputs> |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
591 <data format="rdata" name="msidata_preprocessed" label="Preprocessed ${on_string}"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
592 <data format="pdf" name="QC_plots" from_work_dir="Preprocessing.pdf" label = "QC preprocessing report on ${on_string}"> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
593 <filter>outputs["outputs_select"] == "quality_control"</filter> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
594 </data> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
595 <data format="tabular" name="matrixasoutput" label="Intensity matrix ${on_string}"> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
596 <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
|
597 </data> |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
598 </outputs> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
599 <tests> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
600 <test> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
601 <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
|
602 <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
|
603 <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
|
604 </param> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
605 <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
|
606 <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
|
607 <param name="preprocessing_method" value="Normalization" /> |
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 </repeat> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
610 <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
|
611 <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
|
612 <param name="preprocessing_method" value="Smoothing" /> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
613 <conditional name="methods_for_smoothing"> |
1
c4abf42419c2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents:
0
diff
changeset
|
614 <param name="smoothing_method" value="gaussian" /> |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
615 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
616 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
617 </repeat> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
618 <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
|
619 <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
|
620 <param name="preprocessing_method" 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
|
621 <conditional name="methods_for_picking"> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
622 <param name="picking_method" value="adaptive" /> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
623 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
624 <param name="blocks_picking" value="3" /> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
625 <param name="window_picking" value="3" /> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
626 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
627 </repeat> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
628 <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
|
629 <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
|
630 <param name="preprocessing_method" 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
|
631 <conditional name="methods_for_alignment"> |
1
c4abf42419c2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents:
0
diff
changeset
|
632 <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
|
633 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
634 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
635 </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
|
636 <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
|
637 <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
|
638 <param name="preprocessing_method" 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
|
639 <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
|
640 </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
|
641 </repeat> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
642 <param name="outputs_select" value="no_quality_control"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
643 <param name="output_matrix" value="True"/> |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
644 <output name="msidata_preprocessed" file="preprocessing_results1.RData" compare="sim_size" /> |
1
c4abf42419c2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents:
0
diff
changeset
|
645 <output name="matrixasoutput" file="preprocessing_results1.txt" /> |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
646 </test> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
647 <test> |
1
c4abf42419c2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents:
0
diff
changeset
|
648 <param name="infile" value="example_continous.RData" ftype="rdata"/> |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
649 <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
|
650 <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
|
651 <param name="preprocessing_method" 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
|
652 <param name="blocks_picking" value="3" /> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
653 <param name="window_picking" value="5" /> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
654 <param name="methods_for_picking" value="simple" /> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
655 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
656 </repeat> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
657 <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
|
658 <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
|
659 <param name="preprocessing_method" 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
|
660 <param name="methods_for_alignment" value="DP" /> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
661 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
662 </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
|
663 <param name="outputs_select" value="quality_control"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
664 <param name="calibrant_file" ftype="tabular" value="inputcalibrantfile2.tabular"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
665 <param name="calibrants_column" value="1"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
666 <param name="plusminus_dalton" value="0.25"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
667 <param name="output_matrix" value="True"/> |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
668 <output name="msidata_preprocessed" file="preprocessing_results2.RData" compare="sim_size" /> |
1
c4abf42419c2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit a8eebad4ad469908f64c25e1e2c705eb637e3cae
galaxyp
parents:
0
diff
changeset
|
669 <output name="matrixasoutput" file="preprocessing_results2.txt" lines_diff="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
|
670 <output name="QC_plots" 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
|
671 </test> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
672 <test> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
673 <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
|
674 <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
|
675 <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
|
676 <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
|
677 </param> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
678 <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
|
679 <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
|
680 <param name="preprocessing_method" value="Normalization" /> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
681 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
682 </repeat> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
683 <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
|
684 <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
|
685 <param name="preprocessing_method" 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
|
686 <param name="blocks_picking" value="3" /> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
687 <param name="window_picking" value="5" /> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
688 <param name="methods_for_picking" value="limpic" /> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
689 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
690 </repeat> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
691 <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
|
692 <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
|
693 <param name="preprocessing_method" 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
|
694 <param name="methods_for_alignment" value="diff" /> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
695 </conditional> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
696 </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
|
697 <param name="outputs_select" value="quality_control"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
698 <param name="calibrant_file" ftype="tabular" value="inputcalibrantfile2.tabular"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
699 <param name="calibrants_column" value="1"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
700 <param name="plusminus_dalton" value="0.25"/> |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
701 <output name="msidata_preprocessed" file="preprocessing_results3.RData" 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
|
702 <output name="QC_plots" file="preprocessing_results3.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
|
703 </test> |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
704 <test> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
705 <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
|
706 <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
|
707 <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
|
708 <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
|
709 </param> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
710 <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
|
711 <conditional name="methods_conditional"> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
712 <param name="preprocessing_method" value="Normalization" /> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
713 </conditional> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
714 </repeat> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
715 <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
|
716 <conditional name="methods_conditional"> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
717 <param name="preprocessing_method" 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
|
718 <param name="bin_width" value="0.1" /> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
719 </conditional> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
720 </repeat> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
721 <param name="outputs_select" value="no_quality_control"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
722 <param name="output_matrix" value="True"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
723 <output name="msidata_preprocessed" file="preprocessing_results4.RData" compare="sim_size" /> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
724 <output name="matrixasoutput" file="preprocessing_results4.txt" /> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
725 </test> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
726 <test> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
727 <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
|
728 <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
|
729 <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
|
730 </param> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
731 <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
|
732 <conditional name="methods_conditional"> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
733 <param name="preprocessing_method" 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
|
734 <param name="step_width" value="0.1" /> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
735 </conditional> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
736 </repeat> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
737 <param name="outputs_select" value="quality_control"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
738 <param name="calibrant_file" ftype="tabular" value="inputcalibrantfile1.tabular"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
739 <param name="calibrants_column" value="1"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
740 <param name="plusminus_dalton" value="0.25"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
741 <param name="output_matrix" value="True"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
742 <output name="msidata_preprocessed" file="preprocessing_results5.RData" compare="sim_size" /> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
743 <output name="matrixasoutput" file="preprocessing_results5.txt" /> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
744 <output name="QC_plots" file="preprocessing_results5.pdf" compare="sim_size"/> |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
745 </test> |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
746 </tests> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
747 <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
|
748 <![CDATA[ |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
749 Cardinal is an R package that implements statistical & computational tools for analyzing mass spectrometry imaging datasets. |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
750 |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
751 **Preprocessing steps:** |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
752 |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
753 - Smoothening: Smoothing of the mass peaks reduces noise and improves peak detection |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
754 - 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
|
755 - Baseline reduction: Baseline reduction removes backgroundintensity generated by chemical noise (common in MALDI datasets) |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
756 - Peak picking: relevant peaks are picked while noise-peaks are removed |
2
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
757 - Peak alignment: after peak picking, mz inaccuracies are removed by alignment of same peaks to a common mz value |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
758 - Peak filtering: after peak picking and alignment, removes peaks that occur infrequently, such as those which only occur in a small proportion of pixels. If not sure which cutoff to chose run qualitycontrol first and decide according to the zero value plot. |
50ba097d03e0
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents:
1
diff
changeset
|
759 - Data reduction: binning, resampling or peak filtering to reduce data |
0
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
760 ]]> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
761 </help> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
762 <citations> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
763 <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
|
764 </citations> |
74fcb3c95a53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_preprocessing commit c4e490c83537b39418b5f09d624f7d4da3f3ad55
galaxyp
parents:
diff
changeset
|
765 </tool> |