annotate msi_filtering.xml @ 3:d51c3c814d57 draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
author galaxyp
date Mon, 11 Jun 2018 17:33:40 -0400
parents 22db5eb94e50
children bf61fc662615
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
1 <tool id="mass_spectrometry_imaging_filtering" name="MSI filtering" version="1.10.0.1">
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
2 <description>tool for filtering mass spectrometry imaging data</description>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
3 <requirements>
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
4 <requirement type="package" version="1.10.0">bioconductor-cardinal</requirement>
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
5 <requirement type="package" version="2.2.1">r-gridextra</requirement>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
6 </requirements>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
7 <command detect_errors="exit_code">
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
8 <![CDATA[
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
9
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
10 #if $infile.ext == 'imzml'
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
11 ln -s '${infile.extra_files_path}/imzml' infile.imzML &&
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
12 ln -s '${infile.extra_files_path}/ibd' infile.ibd &&
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
13 #elif $infile.ext == 'analyze75'
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
14 ln -s '${infile.extra_files_path}/hdr' infile.hdr &&
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
15 ln -s '${infile.extra_files_path}/img' infile.img &&
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
16 ln -s '${infile.extra_files_path}/t2m' infile.t2m &&
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
17 #else
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
18 ln -s $infile infile.RData &&
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
19 #end if
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
20 cat '${MSI_subsetting}' &&
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
21 echo ${MSI_subsetting} &&
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
22 Rscript '${MSI_subsetting}'
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
23
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
24 ]]>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
25 </command>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
26 <configfiles>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
27 <configfile name="MSI_subsetting"><![CDATA[
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
28
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
29
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
30 ################################# load libraries and read file #################
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
31
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
32
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
33 library(Cardinal)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
34 library(gridExtra)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
35
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
36 #if $infile.ext == 'imzml'
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
37 msidata = readImzML('infile')
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
38 #elif $infile.ext == 'analyze75'
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
39 msidata = readAnalyze('infile')
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
40 #else
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
41 load('infile.RData')
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
42 #end if
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
43
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
44 ########################### optional QC numbers ########################
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
45
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
46 #if $outputs.outputs_select == "quality_control":
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
47
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
48 ## Number of features (m/z)
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
49 maxfeatures = length(features(msidata))
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
50 ## Range m/z
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
51 minmz = round(min(mz(msidata)), digits=2)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
52 maxmz = round(max(mz(msidata)), digits=2)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
53 ## Number of spectra (pixels)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
54 pixelcount = length(pixels(msidata))
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
55 ## Range x coordinates
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
56 minimumx = min(coord(msidata)[,1])
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
57 maximumx = max(coord(msidata)[,1])
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
58 ## Range y coordinates
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
59 minimumy = min(coord(msidata)[,2])
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
60 maximumy = max(coord(msidata)[,2])
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
61 ## Number of intensities > 0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
62 npeaks= sum(spectra(msidata)[]>0)
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
63 ## Spectra multiplied with m/z (potential number of peaks)
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
64 numpeaks = ncol(spectra(msidata)[])*nrow(spectra(msidata)[])
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
65 ## Percentage of intensities > 0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
66 percpeaks = round(npeaks/numpeaks*100, digits=2)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
67 ## Number of empty TICs
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
68 TICs = colSums(spectra(msidata)[])
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
69 NumemptyTIC = sum(TICs == 0)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
70 ## median TIC
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
71 medint = round(median(TICs), digits=2)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
72 ## Store features for QC plot
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
73 featuresinfile = mz(msidata)
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
74
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
75 #end if
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
76
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
77 ###################################### Filtering of pixels #####################
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
78 ################################################################################
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
79
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
80 #################### Pixels in the one column format "x=,y=" #####################
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
81
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
82 #if str($pixels_cond.pixel_filtering) == "single_column":
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
83 print("single column")
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
84
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
85 input_list = read.delim("$pixels_cond.single_pixels", header = FALSE, stringsAsFactors = FALSE)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
86 numberpixels = length(input_list[,$pixels_cond.pixel_column])
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
87 valid_entries = input_list[,$pixels_cond.pixel_column] %in% names(pixels(msidata))
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
88 validpixels = sum(valid_entries)
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
89
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
90 if (validpixels != 0){
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
91 pixelsofinterest = pixels(msidata)[names(pixels(msidata)) %in% input_list[valid_entries,$pixels_cond.pixel_column]]
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
92 msidata = msidata[,pixelsofinterest]
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
93 }else{
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
94 msidata = msidata[,0]
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
95 validpixels=0}
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
96
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
97 ############ Pixels in two columns format: x and y in different columns #############
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
98
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
99 #elif str($pixels_cond.pixel_filtering) == "two_columns":
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
100 print("two columns")
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
101
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
102 input_list = read.delim("$pixels_cond.two_columns_pixel", header = FALSE,
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
103 stringsAsFactors = FALSE)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
104 numberpixels = length(input_list[,$pixels_cond.pixel_column_x])
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
105
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
106 inputpixel_x = input_list[,$pixels_cond.pixel_column_x]
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
107 inputpixel_y = input_list[,$pixels_cond.pixel_column_y]
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
108 inputpixels = cbind(inputpixel_x, inputpixel_y)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
109 colnames(inputpixels) = c("x", "y")
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
110 valid_rows = merge(inputpixels, coord(msidata)[,1:2])
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
111 validpixels = nrow(valid_rows)
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
112
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
113 if (validpixels != 0){
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
114 pixelvector = character()
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
115 for (pixel in 1:nrow(valid_rows)){
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
116 pixelvector[pixel] = paste0("x = ", valid_rows[pixel,1],", ", "y = ", valid_rows[pixel,2])}
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
117 pixelsofinterest= pixels(msidata)[names(pixels(msidata)) %in% pixelvector]
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
118 msidata = msidata[,pixelsofinterest]
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
119 }else{
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
120 validpixels=0}
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
121
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
122 ########### Pixels wihin x and y minima and maxima are kept ###################
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
123
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
124 #elif str($pixels_cond.pixel_filtering) == "pixel_range":
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
125 print("pixel range")
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
126
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
127 numberpixels = "range"
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
128 validpixels = "range"
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
129
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
130 ## only filter pixels if at least one pixel will be left
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
131
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
132 if (sum(coord(msidata)\$x <= $pixels_cond.max_x_range & coord(msidata)\$x >= $pixels_cond.min_x_range) > 0 & sum(coord(msidata)\$y <= $pixels_cond.max_y_range & coord(msidata)\$y >= $pixels_cond.min_y_range) > 0){
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
133 msidata = msidata[, coord(msidata)\$x <= $pixels_cond.max_x_range & coord(msidata)\$x >= $pixels_cond.min_x_range]
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
134 msidata = msidata[, coord(msidata)\$y <= $pixels_cond.max_y_range & coord(msidata)\$y >= $pixels_cond.min_y_range]
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
135 }else{
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
136 msidata = msidata[,0]
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
137 print("no valid pixel found")}
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
138
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
139 #elif str($pixels_cond.pixel_filtering) == "none":
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
140 print("no pixel filtering")
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
141
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
142 numberpixels = 0
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
143 validpixels = 0
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
144
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
145 #end if
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
146
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
147
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
148 ###################################### filtering of features ######################
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
149 ##################################################################################
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
150
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
151 ######################## Keep m/z from tabular file #########################
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
152
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
153 #if str($features_cond.features_filtering) == "features_list":
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
154 print("feature list")
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
155
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
156 input_features = read.delim("$inputfeatures", header = FALSE, stringsAsFactors = FALSE)
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
157 startingrow = $features_cond.feature_header+1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
158 extracted_features = input_features[startingrow:nrow(input_features),$features_cond.feature_column]
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
159 numberfeatures = length(extracted_features)
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
160
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
161 if (grepl("m/z = ", input_features[startingrow,$features_cond.feature_column])==FALSE){
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
162
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
163 ### if input is in numeric format
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
164 if (class(extracted_features) == "numeric"){
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
165 ### max digits given in the input file will be used to match m/z
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
166 max_digits = max(nchar(matrix(unlist(strsplit(as.character(extracted_features), "\\.")), ncol=2, byrow=TRUE)[,2]))
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
167 validfeatures = extracted_features %in% round(mz(msidata),max_digits)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
168 featuresofinterest = features(msidata)[round(mz(msidata), digits = max_digits) %in% extracted_features[validfeatures]]
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
169 validmz = length(unique(featuresofinterest))
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
170 }else{
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
171 validmz = 0
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
172 featuresofinterest = 0}
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
173
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
174 ### if input is already in character format (m/z = 800.01)
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
175
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
176 }else{
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
177 validfeatures = extracted_features %in% names(features(msidata))
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
178 featuresofinterest = features(msidata)[names(features(msidata)) %in% extracted_features[validfeatures]]
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
179 validmz = sum(validfeatures)}
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
180
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
181 ### filter msidata for valid features
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
182
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
183 msidata = msidata[featuresofinterest,]
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
184
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
185 ############### features within a given range are kept #########################
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
186
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
187 #elif str($features_cond.features_filtering) == "features_range":
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
188 print("feature range")
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
189
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
190 numberfeatures = "range"
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
191 validmz = "range"
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
192
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
193 if (sum(mz(msidata) >= $features_cond.min_mz & mz(msidata) <= $features_cond.max_mz)> 0){
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
194 msidata = msidata[mz(msidata) >= $features_cond.min_mz & mz(msidata) <= $features_cond.max_mz,]
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
195 }else{
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
196 msidata = msidata[0,]
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
197 print("no valid mz range")}
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
198
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
199 ############### Remove m/z from tabular file #########################
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
200
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
201 #elif str($features_cond.features_filtering) == "remove_features":
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
202 print("remove features")
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
203
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
204 ### Tabular file contains mz either as numbers or in the format mz = 800.01
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
205
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
206 input_features = read.delim("$inputfeatures_removal", header = FALSE, stringsAsFactors = FALSE)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
207 startingrow = $features_cond.removal_header+1
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
208 extracted_features = input_features[startingrow:nrow(input_features),$features_cond.removal_column]
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
209 numberfeatures = length(extracted_features)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
210
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
211 if (grepl("m/z = ", input_features[startingrow,$features_cond.removal_column])==TRUE){
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
212
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
213 ### if input is mz = 800 character format
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
214 print("input is in format mz = 400")
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
215 validfeatures = extracted_features %in% names(features(msidata))
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
216 validmz = sum(validfeatures)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
217 filtered_features = features(msidata)[names(features(msidata)) %in% extracted_features[validfeatures]]
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
218 featuresofinterest = mz(msidata)[filtered_features]
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
219
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
220 ### if input is numeric:
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
221 }else{
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
222 if (class(extracted_features) == "numeric"){
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
223 print("input is numeric")
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
224 featuresofinterest = extracted_features
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
225 validmz = sum(featuresofinterest <= max(mz(msidata))& featuresofinterest >= min(mz(msidata)))
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
226 }else{featuresofinterest = 0
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
227 validmz = 0}
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
228 }
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
229
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
230 ### Here starts removal of features:
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
231
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
232 plusminus = $features_cond.removal_plusminus
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
233
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
234 mass_to_remove = numeric()
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
235 if (sum(featuresofinterest) > 0){
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
236 for (masses in featuresofinterest){
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
237 #if str($features_cond.units_removal) == "ppm":
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
238 plusminus = masses * $features_cond.removal_plusminus/1000000
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
239 #end if
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
240 current_mass = which(c(mz(msidata) <= masses + plusminus & mz(msidata) >= masses - plusminus))
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
241 mass_to_remove = append(mass_to_remove, current_mass)}
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
242 msidata= msidata[-mass_to_remove, ]
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
243 }else{print("No features were removed as they were not fitting to m/z values and/or range")}
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
244
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
245
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
246 #elif str($features_cond.features_filtering) == "none":
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
247
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
248 print("no feature filtering")
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
249 validmz = 0
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
250 numberfeatures = 0
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
251
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
252 #end if
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
253
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
254 ## save msidata as Rfile
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
255 save(msidata, file="$msidata_filtered")
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
256
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
257 #################### optional QC numbers #######################
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
258
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
259 #if $outputs.outputs_select == "quality_control":
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
260
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
261 ## Number of features (m/z)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
262 maxfeatures2 = length(features(msidata))
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
263 ## Range m/z
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
264 minmz2 = round(min(mz(msidata)), digits=2)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
265 maxmz2 = round(max(mz(msidata)), digits=2)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
266 ## Number of spectra (pixels)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
267 pixelcount2 = length(pixels(msidata))
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
268 ## Range x coordinates
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
269 minimumx2 = min(coord(msidata)[,1])
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
270 maximumx2 = max(coord(msidata)[,1])
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
271 ## Range y coordinates
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
272 minimumy2 = min(coord(msidata)[,2])
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
273 maximumy2 = max(coord(msidata)[,2])
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
274 ## Number of intensities > 0
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
275 npeaks2= sum(spectra(msidata)[]>0)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
276 ## Spectra multiplied with m/z (potential number of peaks)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
277 numpeaks2 = ncol(spectra(msidata)[])*nrow(spectra(msidata)[])
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
278 ## Percentage of intensities > 0
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
279 percpeaks2 = round(npeaks2/numpeaks2*100, digits=2)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
280 ## Number of empty TICs
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
281 TICs2 = colSums(spectra(msidata)[])
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
282 NumemptyTIC2 = sum(TICs2 == 0)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
283 ## median TIC
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
284 medint2 = round(median(TICs2), digits=2)
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
285
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
286 properties = c("Number of m/z features",
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
287 "Range of m/z values [Da]",
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
288 "Number of pixels",
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
289 "Range of x coordinates",
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
290 "Range of y coordinates",
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
291 "Intensities > 0",
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
292 "Median TIC per pixel",
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
293 "Number of zero TICs",
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
294 "pixel overview",
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
295 "feature overview")
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
296
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
297 before = c(paste0(maxfeatures),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
298 paste0(minmz, " - ", maxmz),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
299 paste0(pixelcount),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
300 paste0(minimumx, " - ", maximumx),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
301 paste0(minimumy, " - ", maximumy),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
302 paste0(percpeaks, " %"),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
303 paste0(medint),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
304 paste0(NumemptyTIC),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
305 paste0("input pixels: ", numberpixels),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
306 paste0("input mz: ", numberfeatures))
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
307
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
308 filtered = c(paste0(maxfeatures2),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
309 paste0(minmz2, " - ", maxmz2),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
310 paste0(pixelcount2),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
311 paste0(minimumx2, " - ", maximumx2),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
312 paste0(minimumy2, " - ", maximumy2),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
313 paste0(percpeaks2, " %"),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
314 paste0(medint2),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
315 paste0(NumemptyTIC2),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
316 paste0("valid pixels: ", validpixels),
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
317 paste0("valid mz: ", validmz))
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
318
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
319 property_df = data.frame(properties, before, filtered)
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
320
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
321 ############################### optional PDF QC ################################
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
322
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
323 pdf("filtertool_QC.pdf", fonts = "Times", pointsize = 12)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
324 plot(0,type='n',axes=FALSE,ann=FALSE)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
325 title(main=paste0("Qualitycontrol of filtering tool for file: \n\n", "$infile.display_name"))
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
326 grid.table(property_df, rows= NULL)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
327
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
328 ### heatmap image as visual pixel control
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
329 if (length(features(msidata))> 0 & length(pixels(msidata)) > 0){
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
330 image(msidata, mz=$outputs.inputmz, plusminus = $outputs.plusminus_dalton, contrast.enhance = "none",
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
331 main= paste0($outputs.inputmz," ± ", $outputs.plusminus_dalton, " Da"), ylim = c(maximumy2+0.2*maximumy2,minimumy2-0.2*minimumy2))
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
332
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
333 ### control features which are left
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
334 plot(featuresinfile, rep(1,length(featuresinfile)), yaxt="n", ylab=NA, xlab="m/z values", col="red", ylim=c(0.8, 1.1), main="Distribution of m/z values")
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
335 lines(mz(msidata),rep(0.9, length(mz(msidata))), col="green", type="p")
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
336 legend("top", horiz=TRUE, legend = c("before", "filtered"), fill = c("red", "green"))
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
337 }else{
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
338 print("file has no features or pixels left")}
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
339
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
340 dev.off()
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
341
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
342 #end if
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
343
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
344 ############################### optional intensity matrix ######################
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
345
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
346 #if $output_matrix:
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
347
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
348 if (length(features(msidata))> 0 & length(pixels(msidata)) > 0){
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
349 spectramatrix = spectra(msidata)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
350 rownames(spectramatrix) = mz(msidata)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
351 newmatrix = rbind(pixels(msidata), spectramatrix)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
352 write.table(newmatrix[2:nrow(newmatrix),], file="$matrixasoutput", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t")
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
353 }else{
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
354 print("file has no features or pixels left")}
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
355
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
356 #end if
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
357
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
358
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
359 ]]></configfile>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
360 </configfiles>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
361 <inputs>
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
362 <param name="infile" type="data" format="imzml,rdata,analyze75"
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
363 label="Inputfile as imzML, Analyze7.5 or Cardinal MSImageSet saved as RData"
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
364 help="Upload composite datatype imzML (ibd+imzML) or analyze75 (hdr+img+t2m) or regular upload .RData (Cardinal MSImageSet)"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
365 <conditional name="pixels_cond">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
366 <param name="pixel_filtering" type="select" label="Select pixel filtering option">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
367 <option value="none" selected="True">none</option>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
368 <option value="single_column">tabular file with single column (x = 1, y = 1)</option>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
369 <option value="two_columns">tabular file with separate columns for x and y values</option>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
370 <option value="pixel_range">ranges for x and y</option>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
371 </param>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
372 <when value="none"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
373 <when value="single_column">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
374 <param name="single_pixels" type="data" format="tabular" label="Pixels in single column for filtering of MSI data"
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
375 help="tabular file with pixels of interest in the form x = 1, y = 1"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
376 <param name="pixel_column" data_ref="single_pixels" label="Column with pixels" type="data_column"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
377 </when>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
378 <when value="two_columns">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
379 <param name="two_columns_pixel" type="data" format="tabular" label="Pixels in two columns for filtering of MSI data"
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
380 help="tabular file with pixels of interest in two separate columns"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
381 <param name="pixel_column_x" data_ref="two_columns_pixel" label="Column with x values" type="data_column"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
382 <param name="pixel_column_y" data_ref="two_columns_pixel" label="Column with y values" type="data_column"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
383 </when>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
384 <when value="pixel_range">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
385 <param name="min_x_range" type="integer" value="0" label="Minimum value for x"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
386 <param name="max_x_range" type="integer" value="100" label="Maximum value for x"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
387 <param name="min_y_range" type="integer" value="0" label="Minimum value for y"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
388 <param name="max_y_range" type="integer" value="100" label="Maximum value for y"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
389 </when>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
390 </conditional>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
391 <conditional name="features_cond">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
392 <param name="features_filtering" type="select" label="Select feature filtering option">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
393 <option value="none" selected="True">none</option>
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
394 <option value="features_list">keep features (tabular input)</option>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
395 <option value="features_range">keep features within a range (manual input)</option>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
396 <option value="remove_features">remove features (tabular input)</option>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
397 </param>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
398 <when value="none"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
399 <when value="features_list">
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
400 <param name="inputfeatures" type="data" format="tabular" label="Features for filtering of MSI data" help="tabular file with m/z of interest either as numbers (800.05) or in the form m/z = 800.05"/>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
401 <param name="feature_column" data_ref="inputfeatures" label="Column with features" type="data_column"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
402 <param name="feature_header" label="Number of header lines to skip" value="0" type="integer"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
403 </when>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
404 <when value="features_range">
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
405 <param name="min_mz" type="float" value="1" label="Minimum value for m/z"/>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
406 <param name="max_mz" type="float" value="100" label="Maximum value for m/z"/>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
407 </when>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
408 <when value="remove_features">
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
409 <param name="inputfeatures_removal" type="data" format="tabular" label="Features for filtering of MSI data" help="tabular file with m/z to be removed either as numbers (800.05) or in the form m/z = 800.05"/>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
410 <param name="removal_column" data_ref="inputfeatures_removal" label="Column with features" type="data_column"/>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
411 <param name="removal_header" label="Number of header lines to skip" value="0" type="integer"/>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
412 <param name="removal_plusminus" type="float" value="20" label="Window in which m/z will be removed" help="This value will be added and substracted from the given input value"/>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
413 <param name="units_removal" type="select" display = "radio" optional = "False" label="units">
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
414 <option value="ppm" selected="True">ppm</option>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
415 <option value="Da">Da</option>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
416 </param>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
417 </when>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
418 </conditional>
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
419 <conditional name="outputs">
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
420 <param name="outputs_select" type="select" label="Quality control output">
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
421 <option value="quality_control" selected="True">yes</option>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
422 <option value="no_quality_control">no</option>
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
423 </param>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
424 <when value="quality_control">
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
425 <param name="inputmz" type="float" value="1296.7" label="M/z for which a heatmap image will be drawn" help="Use a m/z which is still present in all pixels to control if the pixel filtering went well"/>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
426 <param name="plusminus_dalton" value="0.25" type="float" label="Range for m/z value" help="plusminus m/z window"/>
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
427 </when>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
428 <when value="no_quality_control"/>
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
429 </conditional>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
430 <param name="output_matrix" type="boolean" display="radio" label="Intensity matrix output"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
431 </inputs>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
432 <outputs>
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
433 <data format="rdata" name="msidata_filtered" label="$infile.display_name filtered"/>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
434 <data format="pdf" name="filtering_qc" from_work_dir="filtertool_QC.pdf" label = "$infile.display_name filtered_QC">
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
435 <filter>outputs["outputs_select"] == "quality_control"</filter>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
436 </data>
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
437 <data format="tabular" name="matrixasoutput" label="$infile.display_name filtered_matrix">
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
438 <filter>output_matrix</filter>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
439 </data>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
440 </outputs>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
441 <tests>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
442 <test expect_num_outputs="2">
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
443 <param name="infile" value="" ftype="imzml">
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
444 <composite_data value="Example_Continuous.imzML"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
445 <composite_data value="Example_Continuous.ibd"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
446 </param>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
447 <param name="pixel_filtering" value="single_column"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
448 <param name="single_pixels" ftype="tabular" value = "inputpixels.tabular"/>
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
449 <param name="pixel_column" value="1"/>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
450 <param name="features_filtering" value="features_list"/>
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
451 <param name="inputfeatures" ftype="tabular" value = "inputfeatures.tabular"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
452 <param name="feature_column" value="2"/>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
453 <param name="feature_header" value="1"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
454 <param name="outputs_select" value="quality_control"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
455 <param name="inputmz" value="328.9"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
456 <param name="plusminus_dalton" value="0.25"/>
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
457 <output name="filtering_qc" file="imzml_filtered.pdf" compare="sim_size" delta="20000"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
458 <output name="msidata_filtered" file="imzml_filtered.RData" compare="sim_size" />
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
459 </test>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
460 <test expect_num_outputs="2">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
461 <param name="infile" value="" ftype="imzml">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
462 <composite_data value="Example_Continuous.imzML"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
463 <composite_data value="Example_Continuous.ibd"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
464 </param>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
465 <param name="pixel_filtering" value="pixel_range"/>
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
466 <param name="min_x_range" value="10"/>
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
467 <param name="max_x_range" value="20"/>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
468 <param name="min_y_range" value="2"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
469 <param name="max_y_range" value="2"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
470 <param name="outputs_select" value="quality_control"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
471 <param name="inputmz" value="328.9"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
472 <param name="plusminus_dalton" value="0.25"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
473 <output name="filtering_qc" file="imzml_filtered2.pdf" compare="sim_size" delta="20000"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
474 <output name="msidata_filtered" file="imzml_filtered2.RData" compare="sim_size" />
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
475 </test>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
476 <test expect_num_outputs="3">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
477 <param name="infile" value="" ftype="imzml">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
478 <composite_data value="Example_Continuous.imzML"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
479 <composite_data value="Example_Continuous.ibd"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
480 </param>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
481 <param name="pixel_filtering" value="pixel_range"/>
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
482 <param name="min_x_range" value="1"/>
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
483 <param name="max_x_range" value="20"/>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
484 <param name="min_y_range" value="2"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
485 <param name="max_y_range" value="2"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
486 <param name="features_filtering" value="features_range"/>
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
487 <param name="min_mz" value="350" />
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
488 <param name="max_mz" value="500"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
489 <param name="outputs_select" value="quality_control"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
490 <param name="inputmz" value="328.9"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
491 <param name="plusminus_dalton" value="0.25"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
492 <param name="output_matrix" value="True"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
493 <output name="filtering_qc" file="imzml_filtered3.pdf" compare="sim_size" delta="20000"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
494 <output name="msidata_filtered" file="imzml_filtered3.RData" compare="sim_size" />
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
495 <output name="matrixasoutput" file="imzml_matrix3.tabular"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
496 </test>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
497 <test expect_num_outputs="2">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
498 <param name="infile" value="" ftype="imzml">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
499 <composite_data value="Example_Continuous.imzML"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
500 <composite_data value="Example_Continuous.ibd"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
501 </param>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
502 <param name="pixel_filtering" value="two_columns"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
503 <param name="two_columns_pixel" ftype="tabular" value = "inputpixels_2column.tabular"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
504 <param name="pixel_column_x" value="1"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
505 <param name="pixel_column_y" value="3"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
506 <param name="features_filtering" value="features_list"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
507 <param name="inputfeatures" ftype="tabular" value = "inputcalibrantfile2.txt"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
508 <param name="feature_column" value="1"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
509 <param name="feature_header" value="0"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
510 <param name="outputs_select" value="quality_control"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
511 <param name="inputmz" value="328.9"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
512 <param name="plusminus_dalton" value="0.25"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
513 <output name="filtering_qc" file="imzml_filtered4.pdf" compare="sim_size" delta="20000"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
514 <output name="msidata_filtered" file="imzml_filtered4.RData" compare="sim_size" />
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
515 </test>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
516 <test expect_num_outputs="2">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
517 <param name="infile" value="" ftype="imzml">
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
518 <composite_data value="Example_Continuous.imzML"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
519 <composite_data value="Example_Continuous.ibd"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
520 </param>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
521 <param name="pixel_filtering" value="pixel_range"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
522 <param name="min_x_range" value="0"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
523 <param name="max_x_range" value="10"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
524 <param name="min_y_range" value="2"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
525 <param name="max_y_range" value="20"/>
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
526 <param name="features_filtering" value="features_list"/>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
527 <param name="inputfeatures" ftype="tabular" value = "featuresofinterest5.tabular"/>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
528 <param name="feature_column" value="1"/>
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
529 <param name="feature_header" value="0"/>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
530 <param name="outputs_select" value="quality_control"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
531 <param name="inputmz" value="328.9"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
532 <param name="plusminus_dalton" value="0.25"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
533 <output name="filtering_qc" file="imzml_filtered5.pdf" compare="sim_size" delta="20000"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
534 <output name="msidata_filtered" file="imzml_filtered5.RData" compare="sim_size" />
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
535 </test>
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
536 <test expect_num_outputs="3">
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
537 <param name="infile" value="" ftype="analyze75">
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
538 <composite_data value="Analyze75.hdr"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
539 <composite_data value="Analyze75.img"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
540 <composite_data value="Analyze75.t2m"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
541 </param>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
542 <param name="pixel_filtering" value="single_column"/>
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
543 <param name="single_pixels" ftype="tabular" value = "inputpixels2.tabular"/>
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
544 <param name="pixel_column" value="1"/>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
545 <param name="features_filtering" value="features_list"/>
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
546 <param name="inputfeatures" ftype="tabular" value = "featuresofinterest2.tabular"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
547 <param name="feature_column" value="1"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
548 <conditional name="outputs">
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
549 <param name="outputs_select" value="quality_control"/>
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
550 <param name="inputmz" value="1200"/>
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
551 <param name="plusminus_dalton" value="0.25"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
552 </conditional>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
553 <param name="output_matrix" value="True"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
554 <output name="filtering_qc" file="analyze_filtered.pdf" compare="sim_size" delta="20000"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
555 <output name="msidata_filtered" file="analyze_filtered.RData" compare="sim_size" />
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
556 <output name="matrixasoutput" file="analyze_matrix.tabular"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
557 </test>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
558 <test expect_num_outputs="2">
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
559 <param name="infile" value="" ftype="analyze75">
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
560 <composite_data value="Analyze75.hdr"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
561 <composite_data value="Analyze75.img"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
562 <composite_data value="Analyze75.t2m"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
563 </param>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
564 <conditional name="outputs">
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
565 <param name="outputs_select" value="quality_control"/>
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
566 <param name="inputmz" value="1200"/>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
567 <param name="plusminus_dalton" value="0.25"/>
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
568 </conditional>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
569 <output name="filtering_qc" file="analyze75_filtered2.pdf" compare="sim_size" delta="20000"/>
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
570 <output name="msidata_filtered" file="analyze_filteredoutside.RData" compare="sim_size" />
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
571 </test>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
572 <test expect_num_outputs="2">
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
573 <param name="infile" value="preprocessed.RData" ftype="rdata"/>
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
574 <conditional name="outputs">
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
575 <param name="outputs_select" value="no_quality_control"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
576 </conditional>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
577 <param name="output_matrix" value="True"/>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
578 <output name="matrixasoutput" file="rdata_matrix.tabular"/>
1
98c101b19f3c planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 06c2b45d8644b1d7fc01622a5c59dcbf8886d0f1
galaxyp
parents: 0
diff changeset
579 <output name="msidata_filtered" file="rdata_notfiltered.RData" compare="sim_size" />
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
580 </test>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
581 </tests>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
582 <help>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
583 <![CDATA[
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
584
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
585 Cardinal is an R package that implements statistical & computational tools for analyzing mass spectrometry imaging datasets. `More information on Cardinal <http://cardinalmsi.org//>`_
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
586
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
587 This tool provides provides options to filter (subset) pixels and m/z features of mass spectrometry imaging data.
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
588
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
589 Input data: 3 types of input data can be used:
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
590
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
591 - imzml file (upload imzml and ibd file via the "composite" function) `Introduction to the imzml format <https://ms-imaging.org/wp/imzml/>`_
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
592 - Analyze7.5 (upload hdr, img and t2m file via the "composite" function)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
593 - Cardinal "MSImageSet" data (with variable name "msidata", saved as .RData)
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
594
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
595
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
596 Options:
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
597
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
598 - pixel filtering: can use a tabular file containing x and y coordinates or by defining a range for x and y by hand
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
599 - m/z feature filtering: can use a tabular file containing m/z of interest or by defining a range for the m/z values (! numeric input will be rounded to 2 digits before matching to m/z!)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
600 - m/z feature removing: infering m/z such as matrix contaminants can be removed by specifying their m/z in a tabular file and optionally set a window (window in ppm or Da in which peaks should be removed)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
601
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
602
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
603 Output:
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
604
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
605 - imzML file filtered for pixels and/or m/z
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
606 - optional: pdf with heatmap showing the pixels that are left after filtering and plot of m/z before and after filtering
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
607 - optional: intensity matrix as tabular file (intensities for m/z in rows and pixel in columns)
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
608
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
609
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
610 Tip:
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
611
3
d51c3c814d57 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit a7be47698f53eb4f00961192327d93e8989276a7
galaxyp
parents: 2
diff changeset
612 - It is recommended to use the filtering tool only for m/z which have been extracted from the same dataset. If you have m/z from dataset A and you want to use them to filter dataset B, first find the corresponding (closest) features in dataset B by using the tool "Join two files on column allowing a small difference". Afterwards use the corresponding feature m/z from dataset A to filter dataset B.
2
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
613
22db5eb94e50 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 1c808d60243bb1eeda0cd26cb4b0a17ab05de2c0
galaxyp
parents: 1
diff changeset
614
0
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
615 ]]>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
616 </help>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
617 <citations>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
618 <citation type="doi">10.1093/bioinformatics/btv146</citation>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
619 </citations>
f17d3f1a065f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_filtering commit 3363c40790b0d64a085f980980f4289165eed27f
galaxyp
parents:
diff changeset
620 </tool>