Mercurial > repos > galaxyp > msi_classification
annotate msi_classification.xml @ 0:f0b415eb3bcf draft default tip
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
author | galaxyp |
---|---|
date | Fri, 06 Jul 2018 14:12:51 -0400 |
parents | |
children |
rev | line source |
---|---|
0
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1 <tool id="mass_spectrometry_imaging_classification" name="MSI classification" version="1.10.0.0"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
2 <description>spatial classification of mass spectrometry imaging data</description> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
3 <requirements> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
4 <requirement type="package" version="1.10.0">bioconductor-cardinal</requirement> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
5 <requirement type="package" version="2.2.1">r-gridextra</requirement> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
6 <requirement type="package" version="0.20-35">r-lattice</requirement> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
7 <requirement type="package" version="2.2.1">r-ggplot2</requirement> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
8 </requirements> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
9 <command detect_errors="exit_code"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
10 <![CDATA[ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
11 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
12 #if $infile.ext == 'imzml' |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
13 ln -s '${infile.extra_files_path}/imzml' infile.imzML && |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
14 ln -s '${infile.extra_files_path}/ibd' infile.ibd && |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
15 #elif $infile.ext == 'analyze75' |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
16 ln -s '${infile.extra_files_path}/hdr' infile.hdr && |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
17 ln -s '${infile.extra_files_path}/img' infile.img && |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
18 ln -s '${infile.extra_files_path}/t2m' infile.t2m && |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
19 #else |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
20 ln -s $infile infile.RData && |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
21 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
22 cat '${MSI_segmentation}' && |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
23 echo ${MSI_segmentation} && |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
24 Rscript '${MSI_segmentation}' |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
25 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
26 ]]> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
27 </command> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
28 <configfiles> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
29 <configfile name="MSI_segmentation"><![CDATA[ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
30 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
31 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
32 ################################# load libraries and read file ######################### |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
33 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
34 library(Cardinal) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
35 library(gridExtra) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
36 library(lattice) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
37 library(ggplot2) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
38 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
39 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
40 #if $infile.ext == 'imzml' |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
41 #if str($processed_cond.processed_file) == "processed": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
42 msidata <- readImzML('infile', mass.accuracy=$processed_cond.accuracy, units.accuracy = "$processed_cond.units") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
43 #else |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
44 msidata <- readImzML('infile') |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
45 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
46 #elif $infile.ext == 'analyze75' |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
47 msidata = readAnalyze('infile') |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
48 #else |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
49 load('infile.RData') |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
50 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
51 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
52 ## function to later read RData reference files in |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
53 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
54 loadRData <- function(fileName){ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
55 #loads an RData file, and returns it |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
56 load(fileName) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
57 get(ls()[ls() != "fileName"]) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
58 } |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
59 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
60 ## create full matrix to make processed imzML files compatible with classification |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
61 iData(msidata) <- iData(msidata)[] |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
62 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
63 ###################################### file properties in numbers ############## |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
64 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
65 ## Number of features (mz) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
66 maxfeatures = length(features(msidata)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
67 ## Range mz |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
68 minmz = round(min(mz(msidata)), digits=2) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
69 maxmz = round(max(mz(msidata)), digits=2) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
70 ## Number of spectra (pixels) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
71 pixelcount = length(pixels(msidata)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
72 ## Range x coordinates |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
73 minimumx = min(coord(msidata)[,1]) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
74 maximumx = max(coord(msidata)[,1]) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
75 ## Range y coordinates |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
76 minimumy = min(coord(msidata)[,2]) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
77 maximumy = max(coord(msidata)[,2]) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
78 ## Range of intensities |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
79 minint = round(min(spectra(msidata)[]), digits=2) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
80 maxint = round(max(spectra(msidata)[]), digits=2) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
81 medint = round(median(spectra(msidata)[]), digits=2) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
82 ## Number of intensities > 0 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
83 npeaks= sum(spectra(msidata)[]>0) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
84 ## Spectra multiplied with mz (potential number of peaks) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
85 numpeaks = ncol(spectra(msidata)[])*nrow(spectra(msidata)[]) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
86 ## Percentage of intensities > 0 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
87 percpeaks = round(npeaks/numpeaks*100, digits=2) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
88 ## Number of empty TICs |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
89 TICs = colSums(spectra(msidata)[]) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
90 NumemptyTIC = sum(TICs == 0) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
91 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
92 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
93 ## Processing informations |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
94 processinginfo = processingData(msidata) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
95 centroidedinfo = processinginfo@centroided # TRUE or FALSE |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
96 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
97 ## if TRUE write processinginfo if no write FALSE |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
98 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
99 ## normalization |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
100 if (length(processinginfo@normalization) == 0) { |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
101 normalizationinfo='FALSE' |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
102 } else { |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
103 normalizationinfo=processinginfo@normalization |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
104 } |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
105 ## smoothing |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
106 if (length(processinginfo@smoothing) == 0) { |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
107 smoothinginfo='FALSE' |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
108 } else { |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
109 smoothinginfo=processinginfo@smoothing |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
110 } |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
111 ## baseline |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
112 if (length(processinginfo@baselineReduction) == 0) { |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
113 baselinereductioninfo='FALSE' |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
114 } else { |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
115 baselinereductioninfo=processinginfo@baselineReduction |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
116 } |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
117 ## peak picking |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
118 if (length(processinginfo@peakPicking) == 0) { |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
119 peakpickinginfo='FALSE' |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
120 } else { |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
121 peakpickinginfo=processinginfo@peakPicking |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
122 } |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
123 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
124 ############################################################################# |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
125 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
126 properties = c("Number of mz features", |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
127 "Range of mz values", |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
128 "Number of pixels", |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
129 "Range of x coordinates", |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
130 "Range of y coordinates", |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
131 "Range of intensities", |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
132 "Median of intensities", |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
133 "Intensities > 0", |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
134 "Number of empty spectra", |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
135 "Preprocessing", |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
136 "Normalization", |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
137 "Smoothing", |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
138 "Baseline reduction", |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
139 "Peak picking", |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
140 "Centroided") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
141 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
142 values = c(paste0(maxfeatures), |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
143 paste0(minmz, " - ", maxmz), |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
144 paste0(pixelcount), |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
145 paste0(minimumx, " - ", maximumx), |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
146 paste0(minimumy, " - ", maximumy), |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
147 paste0(minint, " - ", maxint), |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
148 paste0(medint), |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
149 paste0(percpeaks, " %"), |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
150 paste0(NumemptyTIC), |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
151 paste0(" "), |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
152 paste0(normalizationinfo), |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
153 paste0(smoothinginfo), |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
154 paste0(baselinereductioninfo), |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
155 paste0(peakpickinginfo), |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
156 paste0(centroidedinfo)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
157 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
158 property_df = data.frame(properties, values) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
159 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
160 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
161 ######################################## PDF ################################### |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
162 ################################################################################ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
163 ################################################################################ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
164 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
165 Title = "Prediction" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
166 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
167 #if str( $type_cond.type_method) == "training": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
168 #if str( $type_cond.method_cond.class_method) == "PLS": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
169 Title = "PLS" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
170 #elif str( $type_cond.method_cond.class_method) == "OPLS": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
171 Title = "OPLS" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
172 #elif str( $type_cond.method_cond.class_method) == "spatialShrunkenCentroids": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
173 Title = "SSC" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
174 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
175 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
176 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
177 pdf("classificationpdf.pdf", fonts = "Times", pointsize = 12) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
178 plot(0,type='n',axes=FALSE,ann=FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
179 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
180 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
181 title(main=paste0(Title," for file: \n\n", "$infile.display_name")) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
182 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
183 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
184 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
185 ##################### I) numbers and control plots ############################# |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
186 ############################################################################### |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
187 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
188 ## table with values |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
189 grid.table(property_df, rows= NULL) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
190 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
191 if (npeaks > 0){ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
192 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
193 opar <- par() |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
194 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
195 ######################## II) Training ############################# |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
196 ############################################################################# |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
197 #if str( $type_cond.type_method) == "training": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
198 print("training") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
199 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
200 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
201 ## load y response (will be needed in every training scenario) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
202 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
203 #if str($type_cond.y_cond.y_vector) == "y_internal": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
204 y_vector = msidata\$$type_cond.y_cond.y_name |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
205 #elif str($type_cond.y_cond.y_vector) == "y_external": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
206 y_tabular = read.delim("$type_cond.y_cond.y_data", header = FALSE, stringsAsFactors = FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
207 y_vector = as.factor(y_tabular[,$type_cond.y_cond.y_column]) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
208 number_pixels = length(y_vector) ## should be same as in data |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
209 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
210 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
211 ## plot of y vector |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
212 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
213 position_df = cbind(coord(msidata)[,1:2], y_vector) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
214 y_plot = ggplot(position_df, aes(x=x, y=y, fill=y_vector))+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
215 geom_tile() + |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
216 coord_fixed()+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
217 ggtitle("Distribution of the response variable y")+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
218 theme_bw()+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
219 theme(text=element_text(family="ArialMT", face="bold", size=15))+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
220 theme(legend.position="bottom",legend.direction="vertical")+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
221 guides(fill=guide_legend(ncol=4,byrow=TRUE)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
222 coord_labels = aggregate(cbind(x,y)~y_vector, data=position_df, mean, na.rm=TRUE, na.action="na.pass") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
223 coord_labels\$file_number = gsub( "_.*$", "", coord_labels\$y_vector) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
224 print(y_plot) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
225 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
226 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
227 ######################## PLS ############################# |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
228 #if str( $type_cond.method_cond.class_method) == "PLS": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
229 print("PLS") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
230 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
231 ######################## PLS - CV ############################# |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
232 #if str( $type_cond.method_cond.analysis_cond.PLS_method) == "cvapply": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
233 print("PLS cv") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
234 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
235 ## folds |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
236 #if str($type_cond.method_cond.analysis_cond.fold_cond.fold_vector) == "fold_internal": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
237 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
238 fold_vector = msidata\$$type_cond.method_cond.analysis_cond.fold_cond.fold_name |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
239 #elif str($type_cond.method_cond.analysis_cond.fold_cond.fold_vector) == "fold_external": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
240 fold_tabular = read.delim("$type_cond.method_cond.analysis_cond.fold_cond.fold_data", header = FALSE, stringsAsFactors = FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
241 fold_vector = as.factor(fold_tabular[,$type_cond.method_cond.analysis_cond.fold_cond.fold_column]) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
242 number_pixels = length(fold_vector) ## should be same as in data |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
243 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
244 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
245 ## plot of folds |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
246 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
247 position_df = cbind(coord(msidata)[,1:2], fold_vector) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
248 fold_plot = ggplot(position_df, aes(x=x, y=y, fill=fold_vector))+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
249 geom_tile() + |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
250 coord_fixed()+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
251 ggtitle("Distribution of the fold variable")+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
252 theme_bw()+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
253 theme(text=element_text(family="ArialMT", face="bold", size=15))+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
254 theme(legend.position="bottom",legend.direction="vertical")+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
255 guides(fill=guide_legend(ncol=4,byrow=TRUE)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
256 coord_labels = aggregate(cbind(x,y)~fold_vector, data=position_df, mean, na.rm=TRUE, na.action="na.pass") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
257 coord_labels\$file_number = gsub( "_.*$", "", coord_labels\$fold_vector) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
258 print(fold_plot) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
259 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
260 ## number of components |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
261 components = c($type_cond.method_cond.analysis_cond.plscv_comp) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
262 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
263 ## PLS-cvApply: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
264 msidata.cv.pls <- cvApply(msidata, .y = y_vector, .fold = fold_vector, .fun = "PLS", ncomp = components) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
265 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
266 ## create table with summary |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
267 count = 1 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
268 summary_plscv = list() |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
269 accuracy_vector = numeric() |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
270 for (iteration in components){ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
271 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
272 summary_iteration = summary(msidata.cv.pls)\$accuracy[[paste0("ncomp = ", iteration)]] |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
273 summary_iteration = cbind(rownames(summary_iteration), summary_iteration) ## include rownames in table |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
274 accuracy_vector[count] = summary_iteration[1,2] ## vector with accuracies to find later maximum for plot |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
275 empty_row = c(paste0("ncomp = ", iteration), rep( "", length(levels(y_vector)))) ## add line with ncomp for each iteration |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
276 ##rownames(labeled_iteration)[1] = paste0("ncomp = ", iteration) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
277 ##labeled_iteration = cbind(rownames(labeled_iteration), labeled_iteration) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
278 labeled_iteration = rbind(empty_row, summary_iteration) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
279 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
280 summary_plscv[[count]] = labeled_iteration |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
281 count = count+1} ## create list with summary table for each component |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
282 ## create dataframe from list |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
283 summary_plscv = do.call(rbind, summary_plscv) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
284 summary_df = as.data.frame(summary_plscv) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
285 rownames(summary_df) = NULL |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
286 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
287 ## plots |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
288 ## plot to find ncomp with highest accuracy |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
289 plot(summary(msidata.cv.pls), main="Accuracy of PLS classification") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
290 ncomp_max = components[which.max(accuracy_vector)] ## find ncomp with max. accuracy |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
291 ## one image for each sample/fold, 4 images per page |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
292 image(msidata.cv.pls, model = list(ncomp = ncomp_max), layout = c(2, 2)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
293 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
294 par(opar) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
295 ## print table with summary in pdf |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
296 plot(0,type='n',axes=FALSE,ann=FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
297 title(main="Summary for the different components\n", adj=0.5) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
298 ## summary for 4 components (20 rows) fits in one page: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
299 if (length(components)<5){ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
300 grid.table(summary_df, rows= NULL) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
301 }else{ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
302 grid.table(summary_df[1:20,], rows= NULL) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
303 mincount = 21 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
304 maxcount = 40 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
305 for (count20 in 1:(ceiling(nrow(summary_df)/20)-1)){ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
306 plot(0,type='n',axes=FALSE,ann=FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
307 if (maxcount <= nrow(summary_df)){ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
308 grid.table(summary_df[mincount:maxcount,], rows= NULL) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
309 mincount = mincount+20 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
310 maxcount = maxcount+20 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
311 }else{### stop last page with last sample otherwise NA in table |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
312 grid.table(summary_df[mincount:nrow(summary_df),], rows= NULL)} |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
313 } |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
314 } |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
315 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
316 ## optional output as .RData |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
317 #if $output_rdata: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
318 save(msidata.cv.pls, file="$classification_rdata") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
319 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
320 ######################## PLS - analysis ########################### |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
321 #elif str( $type_cond.method_cond.analysis_cond.PLS_method) == "PLS_analysis": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
322 print("PLS analysis") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
323 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
324 ## number of components |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
325 component = c($type_cond.method_cond.analysis_cond.pls_comp) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
326 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
327 ### pls analysis |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
328 msidata.pls <- PLS(msidata, y = y_vector, ncomp = component, scale=$type_cond.method_cond.analysis_cond.pls_scale) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
329 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
330 ### plot of PLS coefficients |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
331 plot(msidata.pls, main="PLS coefficients per m/z") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
332 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
333 ### summary table of PLS |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
334 summary_table = summary(msidata.pls)\$accuracy[[paste0("ncomp = ",component)]] |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
335 summary_table = cbind(rownames(summary_table), data.frame(summary_table)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
336 rownames(summary_table) = NULL |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
337 print(summary_table) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
338 ###plot(0,type='n',axes=FALSE,ann=FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
339 ###grid.table(test, rows= TRUE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
340 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
341 ### image of the best m/z |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
342 print(image(msidata, mz = topLabels(msidata.pls)[1,1], normalize.image = "linear", contrast.enhance = "histogram",smooth.image="gaussian", main="best m/z heatmap")) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
343 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
344 ## m/z and pixel information output |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
345 pls_classes = data.frame(msidata.pls\$classes[[1]]) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
346 rownames(pls_classes) = names(pixels(msidata)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
347 colnames(pls_classes) = "predicted diagnosis" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
348 pls_toplabels = topLabels(msidata.pls, n=$type_cond.method_cond.analysis_cond.pls_toplabels) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
349 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
350 write.table(pls_toplabels, file="$mzfeatures", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
351 write.table(pls_classes, file="$pixeloutput", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
352 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
353 ## optional output as .RData |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
354 #if $output_rdata: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
355 save(msidata.pls, file="$classification_rdata") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
356 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
357 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
358 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
359 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
360 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
361 ######################## OPLS ############################# |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
362 #elif str( $type_cond.method_cond.class_method) == "OPLS": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
363 print("OPLS") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
364 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
365 ######################## OPLS -CV ############################# |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
366 #if str( $type_cond.method_cond.opls_analysis_cond.opls_method) == "opls_cvapply": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
367 print("OPLS cv") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
368 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
369 ## folds |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
370 #if str($type_cond.method_cond.opls_analysis_cond.opls_fold_cond.opls_fold_vector) == "opls_fold_internal": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
371 fold_vector = msidata\$$type_cond.method_cond.opls_analysis_cond.opls_fold_cond.opls_fold_name |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
372 #elif str($type_cond.method_cond.opls_analysis_cond.opls_fold_cond.opls_fold_vector) == "opls_fold_external": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
373 fold_tabular = read.delim("$type_cond.method_cond.opls_analysis_cond.opls_fold_cond.opls_fold_data", header = FALSE, stringsAsFactors = FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
374 fold_vector = as.factor(fold_tabular[,$type_cond.method_cond.opls_analysis_cond.opls_fold_cond.opls_fold_column]) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
375 number_pixels = length(fold_vector) ## should be same as in data |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
376 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
377 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
378 ## plot of folds |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
379 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
380 position_df = cbind(coord(msidata)[,1:2], fold_vector) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
381 fold_plot = ggplot(position_df, aes(x=x, y=y, fill=fold_vector))+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
382 geom_tile() + |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
383 coord_fixed()+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
384 ggtitle("Distribution of the fold variable")+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
385 theme_bw()+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
386 theme(text=element_text(family="ArialMT", face="bold", size=15))+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
387 theme(legend.position="bottom",legend.direction="vertical")+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
388 guides(fill=guide_legend(ncol=4,byrow=TRUE)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
389 coord_labels = aggregate(cbind(x,y)~fold_vector, data=position_df, mean, na.rm=TRUE, na.action="na.pass") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
390 coord_labels\$file_number = gsub( "_.*$", "", coord_labels\$fold_vector) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
391 print(fold_plot) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
392 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
393 ## number of components |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
394 components = c($type_cond.method_cond.opls_analysis_cond.opls_cvcomp) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
395 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
396 ## OPLS-cvApply: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
397 msidata.cv.opls <- cvApply(msidata, .y = y_vector, .fold = fold_vector, .fun = "OPLS", ncomp = components, keep.Xnew = $type_cond.method_cond.opls_analysis_cond.xnew_cv) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
398 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
399 ## create table with summary |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
400 count = 1 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
401 summary_oplscv = list() |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
402 accuracy_vector = numeric() |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
403 for (iteration in components){ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
404 summary_iteration = summary(msidata.cv.opls)\$accuracy[[paste0("ncomp = ", iteration)]] |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
405 summary_iteration = cbind(rownames(summary_iteration), summary_iteration) ## include rownames in table |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
406 accuracy_vector[count] = summary_iteration[1,2] ## vector with accuracies to find later maximum for plot |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
407 empty_row = c(paste0("ncomp = ", iteration), rep( "", length(levels(y_vector)))) ## add line with ncomp for each iteration |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
408 ##rownames(labeled_iteration)[1] = paste0("ncomp = ", iteration) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
409 ##labeled_iteration = cbind(rownames(labeled_iteration), labeled_iteration) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
410 labeled_iteration = rbind(empty_row, summary_iteration) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
411 summary_oplscv[[count]] = labeled_iteration ## create list with summary table for each component |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
412 count = count+1} |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
413 ## create dataframe from list |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
414 summary_oplscv = do.call(rbind, summary_oplscv) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
415 summary_df = as.data.frame(summary_oplscv) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
416 rownames(summary_df) = NULL |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
417 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
418 ## plots |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
419 ## plot to find ncomp with highest accuracy |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
420 plot(summary(msidata.cv.opls), main="Accuracy of OPLS classification") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
421 ncomp_max = components[which.max(accuracy_vector)] ## find ncomp with max. accuracy |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
422 ## one image for each sample/fold, 4 images per page |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
423 image(msidata.cv.opls, model = list(ncomp = ncomp_max), layout = c(2, 2)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
424 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
425 par(opar) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
426 ## print table with summary in pdf |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
427 plot(0,type='n',axes=FALSE,ann=FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
428 title(main="Summary for the different components\n", adj=0.5) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
429 ## summary for 4 components (20 rows) fits in one page: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
430 if (length(components)<5){ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
431 grid.table(summary_df, rows= NULL) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
432 }else{ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
433 grid.table(summary_df[1:20,], rows= NULL) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
434 mincount = 21 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
435 maxcount = 40 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
436 for (count20 in 1:(ceiling(nrow(summary_df)/20)-1)){ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
437 plot(0,type='n',axes=FALSE,ann=FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
438 if (maxcount <= nrow(summary_df)){ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
439 grid.table(summary_df[mincount:maxcount,], rows= NULL) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
440 mincount = mincount+20 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
441 maxcount = maxcount+20 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
442 }else{### stop last page with last sample otherwise NA in table |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
443 grid.table(summary_df[mincount:nrow(summary_df),], rows= NULL)} |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
444 } |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
445 } |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
446 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
447 ## optional output as .RData |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
448 #if $output_rdata: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
449 save(msidata.cv.opls, file="$classification_rdata") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
450 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
451 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
452 ######################## OPLS -analysis ########################### |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
453 #elif str( $type_cond.method_cond.opls_analysis_cond.opls_method) == "opls_analysis": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
454 print("OPLS analysis") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
455 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
456 ## number of components |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
457 component = c($type_cond.method_cond.opls_analysis_cond.opls_comp) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
458 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
459 ### opls analysis |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
460 msidata.opls <- PLS(msidata, y = y_vector, ncomp = component, scale=$type_cond.method_cond.opls_analysis_cond.opls_scale, keep.Xnew = $type_cond.method_cond.opls_analysis_cond.xnew) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
461 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
462 ### plot of OPLS coefficients |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
463 plot(msidata.opls, main="OPLS coefficients per m/z") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
464 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
465 ### summary table of OPLS |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
466 summary_table = summary(msidata.opls)\$accuracy[[paste0("ncomp = ",component)]] |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
467 summary_table = cbind(rownames(summary_table), summary_table) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
468 rownames(summary_table) = NULL |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
469 summary_table = data.frame(summary_table) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
470 print(summary_table) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
471 ###plot(0,type='n',axes=FALSE,ann=FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
472 ###grid.table(test, rows= TRUE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
473 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
474 ### image of the best m/z |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
475 print(image(msidata, mz = topLabels(msidata.opls)[1,1], normalize.image = "linear", contrast.enhance = "histogram",smooth.image="gaussian", main="best m/z heatmap")) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
476 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
477 ## m/z and pixel information output |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
478 opls_classes = data.frame(msidata.opls\$classes[[1]]) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
479 rownames(opls_classes) = names(pixels(msidata)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
480 colnames(opls_classes) = "predicted diagnosis" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
481 opls_toplabels = topLabels(msidata.opls, n=$type_cond.method_cond.opls_analysis_cond.opls_toplabels) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
482 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
483 write.table(opls_toplabels, file="$mzfeatures", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
484 write.table(opls_classes, file="$pixeloutput", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
485 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
486 ## optional output as .RData |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
487 #if $output_rdata: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
488 save(msidata.opls, file="$classification_rdata") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
489 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
490 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
491 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
492 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
493 ######################## SSC ############################# |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
494 #elif str( $type_cond.method_cond.class_method) == "spatialShrunkenCentroids": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
495 print("SSC") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
496 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
497 ######################## SSC - CV ############################# |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
498 #if str( $type_cond.method_cond.ssc_analysis_cond.ssc_method) == "ssc_cvapply": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
499 print("SSC cv") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
500 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
501 ## folds |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
502 #if str($type_cond.method_cond.ssc_analysis_cond.ssc_fold_cond.ssc_fold_vector) == "ssc_fold_internal": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
503 fold_vector = msidata\$$type_cond.method_cond.ssc_analysis_cond.ssc_fold_cond.ssc_fold_name |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
504 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
505 #elif str($type_cond.method_cond.ssc_analysis_cond.ssc_fold_cond.ssc_fold_vector) == "ssc_fold_external": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
506 fold_tabular = read.delim("$type_cond.method_cond.ssc_analysis_cond.ssc_fold_cond.ssc_fold_data", header = FALSE, stringsAsFactors = FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
507 fold_vector = as.factor(fold_tabular[,$type_cond.method_cond.ssc_analysis_cond.ssc_fold_cond.ssc_fold_column]) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
508 number_pixels = length(fold_vector) ## should be same as in data |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
509 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
510 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
511 ## plot of folds |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
512 position_df = cbind(coord(msidata)[,1:2], fold_vector) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
513 fold_plot = ggplot(position_df, aes(x=x, y=y, fill=fold_vector))+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
514 geom_tile() + |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
515 coord_fixed()+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
516 ggtitle("Distribution of the fold variable")+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
517 theme_bw()+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
518 theme(text=element_text(family="ArialMT", face="bold", size=15))+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
519 theme(legend.position="bottom",legend.direction="vertical")+ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
520 guides(fill=guide_legend(ncol=4,byrow=TRUE)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
521 coord_labels = aggregate(cbind(x,y)~fold_vector, data=position_df, mean, na.rm=TRUE, na.action="na.pass") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
522 coord_labels\$file_number = gsub( "_.*$", "", coord_labels\$fold_vector) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
523 print(fold_plot) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
524 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
525 ## SSC-cvApply: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
526 msidata.cv.ssc <- cvApply(msidata, .y = y_vector,.fold = fold_vector,.fun = "spatialShrunkenCentroids", r = c($type_cond.method_cond.ssc_r), s = c($type_cond.method_cond.ssc_s), method = "$type_cond.method_cond.ssc_kernel_method") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
527 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
528 ## create table with summary |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
529 count = 1 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
530 summary_ssccv = list() |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
531 accuracy_vector = numeric() |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
532 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
533 for (iteration in names(msidata.cv.ssc@resultData[[1]][,1])){ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
534 summary_iteration = summary(msidata.cv.ssc)\$accuracy[[iteration]] |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
535 summary_iteration = cbind(rownames(summary_iteration), summary_iteration) ## include rownames in table |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
536 accuracy_vector[count] = summary_iteration[1,2] ## vector with accuracies to find later maximum for plot |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
537 empty_row = c(iteration, rep( "", length(levels(y_vector)))) ## add line with ncomp for each iteration |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
538 labeled_iteration = rbind(empty_row, summary_iteration) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
539 summary_ssccv[[count]] = labeled_iteration ## create list with summary table for each component |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
540 count = count+1 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
541 } |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
542 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
543 ##create dataframe from list |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
544 summary_ssccv = do.call(rbind, summary_ssccv) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
545 summary_df = as.data.frame(summary_ssccv) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
546 rownames(summary_df) = NULL |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
547 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
548 ## plot to find parameters with highest accuracy |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
549 plot(summary(msidata.cv.ssc), main="Accuracy of SSC classification") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
550 best_params = names(msidata.cv.ssc@resultData[[1]][,1])[which.max(accuracy_vector)] ## find parameters with max. accuracy |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
551 r_value = as.numeric(substring(unlist(strsplit(best_params, ","))[1], 4)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
552 s_value = as.numeric(substring(unlist(strsplit(best_params, ","))[3], 5)) ## remove space |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
553 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
554 image(msidata.cv.ssc, model = list( r = r_value, s = s_value ), layout=c(2,2)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
555 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
556 par(opar) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
557 ## print table with summary in pdf |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
558 plot(0,type='n',axes=FALSE,ann=FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
559 title(main="Summary for the different parameters\n", adj=0.5) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
560 ## summary for 4 parameters (20 rows) fits in one page: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
561 if (length(names(msidata.cv.ssc@resultData[[1]][,1]))<5){ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
562 grid.table(summary_df, rows= NULL) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
563 }else{ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
564 grid.table(summary_df[1:20,], rows= NULL) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
565 mincount = 21 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
566 maxcount = 40 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
567 for (count20 in 1:(ceiling(nrow(summary_df)/20)-1)){ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
568 plot(0,type='n',axes=FALSE,ann=FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
569 if (maxcount <= nrow(summary_df)){ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
570 grid.table(summary_df[mincount:maxcount,], rows= NULL) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
571 mincount = mincount+20 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
572 maxcount = maxcount+20 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
573 }else{### stop last page with last sample otherwise NA in table |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
574 grid.table(summary_df[mincount:nrow(summary_df),], rows= NULL)} |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
575 } |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
576 } |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
577 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
578 ## optional output as .RData |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
579 #if $output_rdata: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
580 save(msidata.cv.opls, file="$classification_rdata") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
581 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
582 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
583 ######################## SSC -analysis ########################### |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
584 #elif str( $type_cond.method_cond.ssc_analysis_cond.ssc_method) == "ssc_analysis": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
585 print("SSC analysis") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
586 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
587 ## SSC analysis |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
588 msidata.ssc <- spatialShrunkenCentroids(msidata, y = y_vector, .fold = fold_vector, |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
589 r = c($type_cond.method_cond.ssc_r), s = c($type_cond.method_cond.ssc_s), method = "$type_cond.method_cond.ssc_kernel_method") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
590 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
591 plot(msidata.ssc, mode = "tstatistics", model = list("r" = c($type_cond.method_cond.ssc_r), "s" = c($type_cond.method_cond.ssc_s))) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
592 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
593 ### summary table SSC |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
594 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
595 ##summary(msidata.ssc)\$accuracy[[names(msidata.ssc@resultData)]] |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
596 summary_table = summary(msidata.ssc) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
597 print(summary_table) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
598 ##summary_table = cbind(rownames(summary_table), summary_table) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
599 ##rownames(summary_table) = NULL |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
600 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
601 ###plot(0,type='n',axes=FALSE,ann=FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
602 ###grid.table(summary_table, rows= TRUE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
603 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
604 ### image of the best m/z |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
605 print(image(msidata, mz = topLabels(msidata.ssc)[1,1], normalize.image = "linear", contrast.enhance = "histogram",smooth.image="gaussian", main="best m/z heatmap")) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
606 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
607 ## m/z and pixel information output |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
608 ssc_classes = data.frame(msidata.ssc\$classes[[1]]) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
609 rownames(ssc_classes) = names(pixels(msidata)) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
610 colnames(ssc_classes) = "predicted diagnosis" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
611 ssc_toplabels = topLabels(msidata.ssc) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
612 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
613 write.table(ssc_toplabels, file="$mzfeatures", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
614 write.table(ssc_classes, file="$pixeloutput", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
615 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
616 ## optional output as .RData |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
617 #if $output_rdata: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
618 save(msidata.ssc, file="$classification_rdata") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
619 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
620 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
621 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
622 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
623 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
624 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
625 ######################## II) Prediction ############################# |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
626 ############################################################################# |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
627 #elif str( $type_cond.type_method) == "prediction": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
628 print("prediction") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
629 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
630 #if str($type_cond.new_y.new_y_values) == "no_new_y": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
631 new_y_vector = FALSE |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
632 #elif str($type_cond.new_y.new_y_values) == "new_y_internal": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
633 new_y_vector = msidata\$$type_cond.new_y.new_y_name |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
634 #elif str($type_cond.new_y.new_y_values) == "new_y_external": |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
635 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
636 new_y_tabular = read.delim("$type_cond.new_y.new_y_data", header = FALSE, stringsAsFactors = FALSE) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
637 new_y_vector = new_y_tabular[,$type_cond.new_y.new_y_column] |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
638 number_pixels = length(new_y_vector) ## should be same as in data |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
639 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
640 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
641 training_data = loadRData("$type_cond.training_result") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
642 prediction = predict(training_data,msidata, newy = new_y_vector) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
643 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
644 ## optional output as .RData |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
645 #if $output_rdata: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
646 msidata = prediction |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
647 save(msidata, file="$classification_rdata") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
648 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
649 #end if |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
650 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
651 dev.off() |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
652 }else{ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
653 print("Inputfile has no intensities > 0") |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
654 dev.off() |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
655 } |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
656 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
657 ]]></configfile> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
658 </configfiles> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
659 <inputs> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
660 <param name="infile" type="data" format="imzml, rdata, analyze75" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
661 label="Inputfile as imzML, Analyze7.5 or Cardinal MSImageSet saved as RData" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
662 help="Upload composite datatype imzml (ibd+imzML) or analyze75 (hdr+img+t2m) or regular upload .RData (Cardinal MSImageSet)"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
663 <conditional name="processed_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
664 <param name="processed_file" type="select" label="Is the input file a processed imzML file "> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
665 <option value="no_processed" selected="True">not a processed imzML</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
666 <option value="processed">processed imzML</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
667 </param> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
668 <when value="no_processed"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
669 <when value="processed"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
670 <param name="accuracy" type="float" value="50" label="Mass accuracy to which the m/z values will be binned" help="This should be set to the native accuracy of the mass spectrometer, if known"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
671 <param name="units" display="radio" type="select" label="Unit of the mass accuracy" help="either m/z or ppm"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
672 <option value="mz" >mz</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
673 <option value="ppm" selected="True" >ppm</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
674 </param> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
675 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
676 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
677 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
678 <conditional name="type_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
679 <param name="type_method" type="select" label="Analysis step to perform"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
680 <option value="training" selected="True">training</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
681 <option value="prediction">prediction</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
682 </param> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
683 <when value="training"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
684 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
685 <conditional name="method_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
686 <param name="class_method" type="select" label="Select the method for classification"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
687 <option value="PLS" selected="True">PLS</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
688 <option value="OPLS">OPLS</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
689 <option value="spatialShrunkenCentroids">spatial shrunken centroids</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
690 </param> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
691 <when value="PLS"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
692 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
693 <conditional name="analysis_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
694 <param name="PLS_method" type="select" label="Crossvalidation or analysis"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
695 <option value="cvapply" selected="True">cvApply</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
696 <option value="PLS_analysis">PLS analysis</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
697 </param> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
698 <when value="cvapply"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
699 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
700 <param name="plscv_comp" type="text" value="1:2" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
701 label="The number of PLS components" help="Multiple values are allowed (e.g. 1,2,3 or 2:5)"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
702 <conditional name="fold_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
703 <param name="fold_vector" type="select" label="Define the fold variable"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
704 <option value="fold_internal" selected="True">dataset contains already fold</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
705 <option value="fold_external">use fold from tabular file</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
706 </param> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
707 <when value="fold_internal"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
708 <param name="fold_name" type="text" value="sample" label="Name of the pData slot where fold is stored" help="each fold must contain pixels of all categories"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
709 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
710 <when value="fold_external"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
711 <param name="fold_data" type="data" format="tabular" label="Tabular file with column for folds" help="Number of rows must be number of pixels"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
712 <param name="fold_column" data_ref="fold_data" label="Column with folds" type="data_column"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
713 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
714 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
715 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
716 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
717 <when value="PLS_analysis"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
718 <param name="pls_comp" type="integer" value="5" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
719 label="The optimal number of PLS components as indicated by cross-validations" help="Run cvApply first to optain optiaml number of PLS components"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
720 <param name="pls_scale" type="boolean" display="radio" label="data scaling" truevalue="TRUE" falsevalue="FALSE"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
721 <param name="pls_toplabels" type="integer" value="100" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
722 label="Number of toplabels (masses) which should be written in tabular output"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
723 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
724 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
725 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
726 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
727 <when value="OPLS"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
728 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
729 <conditional name="opls_analysis_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
730 <param name="opls_method" type="select" label="Analysis step to perform"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
731 <option value="opls_cvapply" selected="True">cvApply</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
732 <option value="opls_analysis">OPLS analysis</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
733 </param> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
734 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
735 <when value="opls_cvapply"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
736 <param name="opls_cvcomp" type="text" value="1:2" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
737 label="The number of OPLS components" help="Multiple values are allowed (e.g. 1,2,3 or 2:5)"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
738 <param name="xnew_cv" type="boolean" display="radio" truevalue="TRUE" falsevalue="FALSE" label="Keep new matrix"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
739 <conditional name="opls_fold_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
740 <param name="opls_fold_vector" type="select" label="Define the fold variable"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
741 <option value="opls_fold_internal" selected="True">dataset contains already fold</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
742 <option value="opls_fold_external">use fold from tabular file</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
743 </param> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
744 <when value="opls_fold_internal"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
745 <param name="opls_fold_name" type="text" value="sample" label="Name of the pData slot where fold is stored" help="each fold must contain pixels of all categories"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
746 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
747 <when value="opls_fold_external"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
748 <param name="opls_fold_data" type="data" format="tabular" label="Tabular file with column for folds" help="Number of rows must be number of pixels"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
749 <param name="opls_fold_column" data_ref="opls_fold_data" label="Column with folds" type="data_column"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
750 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
751 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
752 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
753 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
754 <when value="opls_analysis"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
755 <param name="opls_comp" type="integer" value="5" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
756 label="The optimal number of PLS components as indicated by cross-validations" help="Run cvApply first to optain optiaml number of PLS components"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
757 <param name="xnew" type="boolean" display="radio" truevalue="TRUE" falsevalue="FALSE" label="Keep new matrix"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
758 <param name="opls_scale" type="select" label="data scaling" display="radio" optional="False"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
759 <option value="TRUE">yes</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
760 <option value="FALSE" selected="True">no</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
761 </param> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
762 <param name="opls_toplabels" type="integer" value="100" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
763 label="Number of toplabels (features) which should be written in tabular output"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
764 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
765 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
766 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
767 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
768 <when value="spatialShrunkenCentroids"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
769 <conditional name="ssc_analysis_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
770 <param name="ssc_method" type="select" label="Analysis step to perform"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
771 <option value="ssc_cvapply" selected="True">cvApply</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
772 <option value="ssc_analysis">spatial shrunken centroids analysis</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
773 </param> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
774 <when value="ssc_cvapply"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
775 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
776 <conditional name="ssc_fold_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
777 <param name="ssc_fold_vector" type="select" label="Define the fold variable"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
778 <option value="ssc_fold_internal" selected="True">dataset contains already fold</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
779 <option value="ssc_fold_external">use fold from tabular file</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
780 </param> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
781 <when value="ssc_fold_internal"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
782 <param name="ssc_fold_name" type="text" value="sample" label="Name of the pData slot where fold is stored" help="each fold must contain pixels of all categories"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
783 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
784 <when value="ssc_fold_external"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
785 <param name="ssc_fold_data" type="data" format="tabular" label="Tabular file with column for folds" help="Number of rows must be number of pixels"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
786 <param name="ssc_fold_column" data_ref="ssc_fold_data" label="Column with folds" type="data_column"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
787 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
788 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
789 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
790 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
791 <when value="ssc_analysis"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
792 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
793 <param name="ssc_toplabels" type="integer" value="100" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
794 label="Number of toplabels (features) which should be written in tabular output"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
795 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
796 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
797 <param name="ssc_r" type="text" value="2" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
798 label="The spatial neighborhood radius of nearby pixels to consider (r)" help="For cvapply multiple values are allowed (e.g. 1,2,3 or 2:5)"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
799 <param name="ssc_s" type="text" value="2" |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
800 label="The sparsity thresholding parameter by which to shrink the t-statistics (s)" help="For cvapply multiple values are allowed (e.g. 1,2,3 or 2:5)"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
801 <param name="ssc_kernel_method" type="select" display="radio" label = "The method to use to calculate the spatial smoothing kernels for the embedding. The 'gaussian' method refers to spatially-aware (SA) weights, and 'adaptive' refers to spatially-aware structurally-adaptive (SASA) weights"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
802 <option value="gaussian">gaussian</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
803 <option value="adaptive" selected="True">adaptive</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
804 </param> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
805 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
806 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
807 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
808 <conditional name="y_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
809 <param name="y_vector" type="select" label="Define the response variable y"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
810 <option value="y_internal" selected="True">dataset contains already y</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
811 <option value="y_external">use y from tabular file</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
812 </param> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
813 <when value="y_internal"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
814 <param name="y_name" type="text" value="combined_sample" label="Name of the pData slot where y is stored" help="Outputs of MSI_combine tool have 'combined_sample' as name"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
815 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
816 <when value="y_external"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
817 <param name="y_data" type="data" format="tabular" label="Tabular file with column for y response"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
818 <param name="y_column" data_ref="y_data" label="Column with y response" type="data_column"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
819 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
820 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
821 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
822 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
823 <when value="prediction"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
824 <param name="training_result" type="data" format="rdata" label="Result from previous classification training"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
825 <conditional name="new_y"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
826 <param name="new_y_values" type="select" label="Define the new response y"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
827 <option value="no_new_y" >no new y response</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
828 <option value="new_y_internal" selected="True">dataset contains already y</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
829 <option value="new_y_external">use y from tabular file</option> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
830 </param> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
831 <when value="no_new_y"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
832 <when value="new_y_internal"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
833 <param name="new_y_name" type="text" value="combined_sample" label="Name of the pData slot where y is stored" help="data merged with MSI_combine tool has 'combined_sample' as name"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
834 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
835 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
836 <when value="new_y_external"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
837 <param name="new_y_data" type="data" format="tabular" label="Tabular file with column for y response"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
838 <param name="new_y_column" data_ref="new_y_data" label="Column with y response" type="data_column"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
839 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
840 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
841 </when> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
842 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
843 <param name="output_rdata" type="boolean" display="radio" label="Results as .RData output"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
844 </inputs> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
845 <outputs> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
846 <data format="pdf" name="classification_images" from_work_dir="classificationpdf.pdf" label = "$infile.display_name classification"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
847 <data format="tabular" name="mzfeatures" label="$infile.display_name features"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
848 <data format="tabular" name="pixeloutput" label="$infile.display_name pixels"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
849 <data format="rdata" name="classification_rdata" label="$infile.display_name classification"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
850 <filter>output_rdata</filter> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
851 </data> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
852 </outputs> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
853 <tests> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
854 <test expect_num_outputs="3"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
855 <param name="infile" value="testfile_squares.rdata" ftype="rdata"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
856 <conditional name="type_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
857 <param name="type_method" value="training"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
858 <conditional name="method_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
859 <param name="class_method" value="PLS"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
860 <conditional name="analysis_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
861 <param name="PLS_method" value="cvapply"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
862 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
863 <param name="plscv_comp" value="2:4"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
864 <conditional name="fold_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
865 <param name="fold_vector" value="fold_external"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
866 <param name="fold_data" value="pixel_annotation_file1.tabular" ftype="tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
867 <param name="fold_column" value="1"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
868 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
869 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
870 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
871 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
872 <conditional name="y_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
873 <param name="y_vector" value="y_external"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
874 <param name="y_data" value="pixel_annotation_file1.tabular" ftype="tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
875 <param name="y_column" value="2"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
876 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
877 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
878 <output name="mzfeatures" file="features_test1.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
879 <output name="pixeloutput" file="pixels_test1.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
880 <output name="classification_images" file="test1.pdf" compare="sim_size" delta="20000"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
881 </test> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
882 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
883 <test expect_num_outputs="4"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
884 <param name="infile" value="testfile_squares.rdata" ftype="rdata"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
885 <conditional name="type_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
886 <param name="type_method" value="training"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
887 <conditional name="method_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
888 <param name="class_method" value="PLS"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
889 <conditional name="analysis_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
890 <param name="PLS_method" value="PLS_analysis"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
891 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
892 <param name="pls_comp" value="2"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
893 <param name="pls_scale" value="TRUE"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
894 <param name="pls_toplabels" value="100"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
895 <conditional name="fold_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
896 <param name="fold_vector" value="fold_external"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
897 <param name="fold_data" value="pixel_annotation_file1.tabular" ftype="tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
898 <param name="fold_column" value="1"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
899 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
900 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
901 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
902 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
903 <conditional name="y_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
904 <param name="y_vector" value="y_external"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
905 <param name="y_data" value="pixel_annotation_file1.tabular" ftype="tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
906 <param name="y_column" value="2"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
907 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
908 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
909 <param name="output_rdata" value="True"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
910 <output name="mzfeatures" file="features_test2.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
911 <output name="pixeloutput" file="pixels_test2.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
912 <output name="classification_images" file="test2.pdf" compare="sim_size" delta="20000"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
913 <output name="classification_rdata" file="test2.rdata" compare="sim_size" /> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
914 </test> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
915 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
916 <test expect_num_outputs="3"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
917 <param name="infile" value="testfile_squares.rdata" ftype="rdata"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
918 <conditional name="type_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
919 <param name="type_method" value="training"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
920 <conditional name="method_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
921 <param name="class_method" value="OPLS"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
922 <conditional name="opls_analysis_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
923 <param name="opls_method" value="opls_analysis"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
924 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
925 <param name="opls_cvcomp" value="1:2"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
926 <param name="xnew_cv" value="FALSE"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
927 <conditional name="opls_fold_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
928 <param name="opls_fold_vector" value="opls_fold_external"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
929 <param name="opls_fold_data" ftype="tabular" value="random_factors.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
930 <param name="opls_fold_column" value="1"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
931 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
932 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
933 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
934 <conditional name="y_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
935 <param name="y_vector" value="y_external"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
936 <param name="y_data" value="random_factors.tabular" ftype="tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
937 <param name="y_column" value="2"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
938 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
939 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
940 <output name="mzfeatures" file="features_test3.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
941 <output name="pixeloutput" file="pixels_test3.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
942 <output name="classification_images" file="test3.pdf" compare="sim_size" delta="20000"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
943 </test> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
944 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
945 <test expect_num_outputs="4"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
946 <param name="infile" value="testfile_squares.rdata" ftype="rdata"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
947 <conditional name="type_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
948 <param name="type_method" value="training"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
949 <conditional name="method_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
950 <param name="class_method" value="OPLS"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
951 <conditional name="opls_analysis_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
952 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
953 <param name="opls_method" value="opls_analysis"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
954 <param name="opls_comp" value="3"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
955 <param name="xnew" value="FALSE"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
956 <param name="opls_scale" value="FALSE"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
957 <param name="opls_toplabels" value="100"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
958 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
959 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
960 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
961 <conditional name="y_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
962 <param name="y_vector" value="y_external"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
963 <param name="y_data" value="random_factors.tabular" ftype="tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
964 <param name="y_column" value="2"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
965 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
966 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
967 <param name="output_rdata" value="True"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
968 <output name="mzfeatures" file="features_test4.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
969 <output name="pixeloutput" file="pixels_test4.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
970 <output name="classification_images" file="test4.pdf" compare="sim_size" delta="20000"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
971 <output name="classification_rdata" file="test4.rdata" compare="sim_size" /> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
972 </test> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
973 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
974 <test expect_num_outputs="3"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
975 <param name="infile" value="testfile_squares.rdata" ftype="rdata"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
976 <conditional name="type_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
977 <param name="type_method" value="training"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
978 <conditional name="method_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
979 <param name="class_method" value="spatialShrunkenCentroids"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
980 <conditional name="ssc_analysis_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
981 <param name="ssc_method" value="ssc_cvapply"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
982 <conditional name="ssc_fold_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
983 <param name="ssc_fold_vector" value="ssc_fold_external"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
984 <param name="ssc_fold_data" value="pixel_annotation_file1.tabular" ftype="tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
985 <param name="ssc_fold_column" value="1"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
986 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
987 <param name="ssc_r" value="1:2"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
988 <param name="ssc_s" value="2:3"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
989 <param name="ssc_kernel_method" value="adaptive"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
990 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
991 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
992 <conditional name="y_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
993 <param name="y_vector" value="y_external"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
994 <param name="y_data" value="pixel_annotation_file1.tabular" ftype="tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
995 <param name="y_column" value="2"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
996 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
997 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
998 <output name="mzfeatures" file="features_test5.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
999 <output name="pixeloutput" file="pixels_test5.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1000 <output name="classification_images" file="test5.pdf" compare="sim_size" delta="20000"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1001 </test> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1002 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1003 <test expect_num_outputs="4"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1004 <param name="infile" value="testfile_squares.rdata" ftype="rdata"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1005 <conditional name="type_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1006 <param name="type_method" value="training"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1007 <conditional name="method_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1008 <param name="class_method" value="spatialShrunkenCentroids"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1009 <conditional name="ssc_analysis_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1010 <param name="ssc_method" value="ssc_analysis"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1011 <param name="ssc_toplabels" value="100"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1012 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1013 <param name="ssc_r" value="2"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1014 <param name="ssc_s" value="2"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1015 <param name="ssc_kernel_method" value="adaptive"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1016 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1017 <conditional name="y_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1018 <param name="y_vector" value="y_external"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1019 <param name="y_data" value="random_factors.tabular" ftype="tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1020 <param name="y_column" value="2"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1021 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1022 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1023 <param name="output_rdata" value="True"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1024 <output name="mzfeatures" file="features_test6.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1025 <output name="pixeloutput" file="pixels_test6.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1026 <output name="classification_images" file="test6.pdf" compare="sim_size" delta="20000"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1027 <output name="classification_rdata" file="test6.rdata" compare="sim_size" /> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1028 </test> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1029 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1030 <test expect_num_outputs="4"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1031 <param name="infile" value="testfile_squares.rdata" ftype="rdata"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1032 <conditional name="type_cond"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1033 <param name="type_method" value="prediction"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1034 <param name="training_result" value="test2.rdata" ftype="rdata"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1035 <conditional name="new_y"> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1036 <param name="new_y_values" value="new_y_external"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1037 <param name="new_y_data" value="pixel_annotation_file1.tabular" ftype="tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1038 <param name="new_y_column" value="2"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1039 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1040 </conditional> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1041 <param name="output_rdata" value="True"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1042 <output name="mzfeatures" file="features_test7.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1043 <output name="pixeloutput" file="pixels_test7.tabular"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1044 <output name="classification_images" file="test7.pdf" compare="sim_size" delta="20000"/> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1045 <output name="classification_rdata" file="test7.rdata" compare="sim_size" /> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1046 </test> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1047 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1048 </tests> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1049 <help> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1050 <![CDATA[ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1051 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1052 Cardinal is an R package that implements statistical & computational tools for analyzing mass spectrometry imaging datasets. `More information on Cardinal <http://cardinalmsi.org//>`_ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1053 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1054 This tool provides three different Cardinal functions for supervised classification of mass-spectrometry imaging data. |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1055 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1056 Input data: 3 types of input data can be used: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1057 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1058 - imzml file (upload imzml and ibd file via the "composite" function) `Introduction to the imzml format <https://ms-imaging.org/wp/imzml/>`_ |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1059 - Analyze7.5 (upload hdr, img and t2m file via the "composite" function) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1060 - Cardinal "MSImageSet" data (with variable name "msidata", saved as .RData) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1061 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1062 Options: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1063 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1064 - PLS(-DA): partial least square (discriminant analysis) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1065 - O-PLS(-DA): Orthogonal partial least squares (discriminant analysis) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1066 - Spatial shrunken centroids |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1067 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1068 Output: |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1069 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1070 - Pdf with the heatmaps and plots for the classification |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1071 - Tabular file with information on masses and pixels: toplabels/classes (PLS, spatial shrunken centroids) |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1072 - optional RData output to further explore the results with Cardinal in R |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1073 |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1074 ]]> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1075 </help> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1076 <citations> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1077 <citation type="doi">10.1093/bioinformatics/btv146</citation> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1078 </citations> |
f0b415eb3bcf
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_classification commit 8087490eb4dcaf4ead0f03eae4126780d21e5503
galaxyp
parents:
diff
changeset
|
1079 </tool> |