annotate macros.xml @ 18:ba92b59cd529 draft default tip

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
author galaxyp
date Thu, 04 Jul 2024 13:46:28 +0000
parents 12dde78d554b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
1 <macros>
18
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
2 <token name="@TOOL_VERSION@">3.4.3</token>
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
3 <token name="@VERSION_SUFFIX@">0</token>
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
4
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
5 <xml name="requirements">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
6 <requirements>
18
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
7 <requirement type="package" version="@TOOL_VERSION@">bioconductor-cardinal</requirement>
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
8 <requirement type="package" version="2.3">r-gridextra</requirement>
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
9 <requirement type="package" version="3.5.1">r-ggplot2</requirement>
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
10 <requirement type="package" version="0.14.1">r-maldiquantforeign</requirement>
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
11 <requirement type="package" version="1.22.2">r-maldiquant</requirement>
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
12 <requirement type="package" version="3.50.0">bioconductor-sva</requirement>
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
13 <requirement type="package" version="1.1.0.1">r-randomcolor</requirement>
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
14 <requirement type="package" version="1.1_3">r-rcolorbrewer</requirement>
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
15 <requirement type="package" version="2.23_24">r-kernsmooth</requirement>
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
16 <requirement type="package" version="1.3.0">r-scales</requirement>
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
17 <requirement type="package" version="1.0.12">r-pheatmap</requirement>
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
18 <yield/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
19 </requirements>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
20 </xml>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
21
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
22 <xml name="print_version">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
23 <version_command><![CDATA[
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
24 echo $(R --version | grep version | grep -v GNU)", Cardinal version" $(R --vanilla --slave -e "library(Cardinal); cat(sessionInfo()\$otherPkgs\$Cardinal\$Version)" 2> /dev/null | grep -v -i "WARNING: ")
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
25 ]]></version_command>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
26 </xml>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
27
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
28 <token name="@INPUT_LINKING@"><![CDATA[
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
29 #if $infile.ext == 'imzml'
18
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
30 cp '${infile.extra_files_path}/imzml' infile.imzML &&
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
31 cp '${infile.extra_files_path}/ibd' infile.ibd &&
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
32 #elif $infile.ext == 'analyze75'
18
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
33 cp '${infile.extra_files_path}/hdr' infile.hdr &&
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
34 cp '${infile.extra_files_path}/img' infile.img &&
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
35 cp '${infile.extra_files_path}/t2m' infile.t2m &&
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
36 #else
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
37 ln -s $infile infile.RData &&
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
38 #end if
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
39 ]]></token>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
40
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
41
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
42 <token name="@READING_MSIDATA@"><![CDATA[
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
43 ## importing MSI data files
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
44
8
ebb7de263d49 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit d008f6ea0f5c8435fb975a34cb99ea4d42c5ebd2"
galaxyp
parents: 7
diff changeset
45 ## read RData files (MSI and other data) independent of filename
ebb7de263d49 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit d008f6ea0f5c8435fb975a34cb99ea4d42c5ebd2"
galaxyp
parents: 7
diff changeset
46 loadRData <- function(fileName){
ebb7de263d49 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit d008f6ea0f5c8435fb975a34cb99ea4d42c5ebd2"
galaxyp
parents: 7
diff changeset
47 load(fileName)
ebb7de263d49 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit d008f6ea0f5c8435fb975a34cb99ea4d42c5ebd2"
galaxyp
parents: 7
diff changeset
48 get(ls()[ls() != "fileName"])
ebb7de263d49 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit d008f6ea0f5c8435fb975a34cb99ea4d42c5ebd2"
galaxyp
parents: 7
diff changeset
49 }
ebb7de263d49 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit d008f6ea0f5c8435fb975a34cb99ea4d42c5ebd2"
galaxyp
parents: 7
diff changeset
50
18
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
51
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
52 #if $infile.ext == 'imzml'
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
53 #if str($processed_cond.processed_file) == "processed":
7
64ea4507e0bd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit f986c51abe33c7f622d429a3c4a79ee24b33c1f3"
galaxyp
parents: 6
diff changeset
54 msidata <- readImzML('infile', resolution=$processed_cond.accuracy, attach.only=TRUE, units = "$processed_cond.units")
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
55 centroided(msidata) = $centroids
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
56 #else
18
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
57 msidata <- readImzML('infile')
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
58 centroided(msidata) = $centroids
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
59 #end if
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
60 #elif $infile.ext == 'analyze75'
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
61 msidata = readAnalyze('infile', attach.only=TRUE)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
62 centroided(msidata) = $centroids
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
63 #else
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
64 msidata = loadRData('infile.RData')
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
65 #end if
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
66
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
67 ]]></token>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
68
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
69 <token name="@DATA_PROPERTIES@"><![CDATA[
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
70 ## Number of features (mz)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
71 maxfeatures = length(features(msidata))
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
72 ## Range mz
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
73 minmz = round(min(mz(msidata)), digits=2)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
74 maxmz = round(max(mz(msidata)), digits=2)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
75 ## Number of spectra (pixels)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
76 pixelcount = length(pixels(msidata))
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
77 ## Range x coordinates
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
78 minimumx = min(coord(msidata)[,1])
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
79 maximumx = max(coord(msidata)[,1])
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
80 ## Range y coordinates
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
81 minimumy = min(coord(msidata)[,2])
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
82 maximumy = max(coord(msidata)[,2])
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
83
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
84
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
85 properties = c("Number of m/z features",
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
86 "Range of m/z values",
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
87 "Number of pixels",
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
88 "Range of x coordinates",
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
89 "Range of y coordinates")
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
90
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
91 values = c(paste0(maxfeatures),
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
92 paste0(minmz, " - ", maxmz),
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
93 paste0(pixelcount),
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
94 paste0(minimumx, " - ", maximumx),
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
95 paste0(minimumy, " - ", maximumy))
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
96
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
97 property_df = data.frame(properties, values)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
98 ]]></token>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
99
7
64ea4507e0bd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit f986c51abe33c7f622d429a3c4a79ee24b33c1f3"
galaxyp
parents: 6
diff changeset
100 <token name="@READING_MSIDATA_FULLY_COMPATIBLE@"><![CDATA[
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
101 ## importing MSI data files
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
102
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
103 #if $infile.ext == 'imzml'
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
104 #if str($processed_cond.processed_file) == "processed":
7
64ea4507e0bd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit f986c51abe33c7f622d429a3c4a79ee24b33c1f3"
galaxyp
parents: 6
diff changeset
105 msidata <- readImzML('infile', resolution=$processed_cond.accuracy, units = "$processed_cond.units", attach.only=TRUE)
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
106 centroided(msidata) = $centroids
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
107 #else
18
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
108 msidata <- readImzML('infile')
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
109 centroided(msidata) = $centroids
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
110 #end if
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
111 #elif $infile.ext == 'analyze75'
7
64ea4507e0bd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit f986c51abe33c7f622d429a3c4a79ee24b33c1f3"
galaxyp
parents: 6
diff changeset
112 msidata = readAnalyze('infile', attach.only=TRUE)
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
113 centroided(msidata) = $centroids
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
114 #else
7
64ea4507e0bd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit f986c51abe33c7f622d429a3c4a79ee24b33c1f3"
galaxyp
parents: 6
diff changeset
115 ## function to read RData files independent of filename
64ea4507e0bd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit f986c51abe33c7f622d429a3c4a79ee24b33c1f3"
galaxyp
parents: 6
diff changeset
116 loadRData <- function(fileName){
64ea4507e0bd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit f986c51abe33c7f622d429a3c4a79ee24b33c1f3"
galaxyp
parents: 6
diff changeset
117 load(fileName)
64ea4507e0bd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit f986c51abe33c7f622d429a3c4a79ee24b33c1f3"
galaxyp
parents: 6
diff changeset
118 get(ls()[ls() != "fileName"])
64ea4507e0bd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit f986c51abe33c7f622d429a3c4a79ee24b33c1f3"
galaxyp
parents: 6
diff changeset
119 }
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
120 msidata = loadRData('infile.RData')
7
64ea4507e0bd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit f986c51abe33c7f622d429a3c4a79ee24b33c1f3"
galaxyp
parents: 6
diff changeset
121 msidata = as(msidata, "MSImagingExperiment")
64ea4507e0bd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit f986c51abe33c7f622d429a3c4a79ee24b33c1f3"
galaxyp
parents: 6
diff changeset
122 run(msidata) = "infile"
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
123 #end if
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
124
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
125 ]]></token>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
126
7
64ea4507e0bd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit f986c51abe33c7f622d429a3c4a79ee24b33c1f3"
galaxyp
parents: 6
diff changeset
127 <token name="@DATA_PROPERTIES_INRAM@"><![CDATA[
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
128 ########################### QC numbers ########################
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
129 ## including intensity calculations which need data in RAM
10
fdbf4de09a91 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit ca89f8e007c6b17f7c30066729e05b8686ab975a"
galaxyp
parents: 9
diff changeset
130 int_matrix = as.matrix(spectra(msidata)) ## only load once into RAM, then re-use
fdbf4de09a91 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit ca89f8e007c6b17f7c30066729e05b8686ab975a"
galaxyp
parents: 9
diff changeset
131 ## Number of NA in spectra matrix
fdbf4de09a91 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit ca89f8e007c6b17f7c30066729e05b8686ab975a"
galaxyp
parents: 9
diff changeset
132 NAcount = sum(is.na(int_matrix))
fdbf4de09a91 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit ca89f8e007c6b17f7c30066729e05b8686ab975a"
galaxyp
parents: 9
diff changeset
133 ## replace NA with zero to calculate data properties based on intensity matrix, no change in msidata
fdbf4de09a91 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit ca89f8e007c6b17f7c30066729e05b8686ab975a"
galaxyp
parents: 9
diff changeset
134 int_matrix[is.na(int_matrix)] <- 0
18
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
135
ba92b59cd529 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 16
diff changeset
136
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
137 ## Number of features (mz)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
138 maxfeatures = length(features(msidata))
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
139 ## Range mz
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
140 minmz = round(min(mz(msidata)), digits=2)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
141 maxmz = round(max(mz(msidata)), digits=2)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
142 ## Number of spectra (pixels)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
143 pixelcount = length(pixels(msidata))
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
144 ## Range x coordinates
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
145 minimumx = min(coord(msidata)[,1])
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
146 maximumx = max(coord(msidata)[,1])
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
147 ## Range y coordinates
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
148 minimumy = min(coord(msidata)[,2])
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
149 maximumy = max(coord(msidata)[,2])
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
150 ## Range of intensities
10
fdbf4de09a91 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit ca89f8e007c6b17f7c30066729e05b8686ab975a"
galaxyp
parents: 9
diff changeset
151 minint = round(min(int_matrix), digits=2)
fdbf4de09a91 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit ca89f8e007c6b17f7c30066729e05b8686ab975a"
galaxyp
parents: 9
diff changeset
152 maxint = round(max(int_matrix), digits=2)
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
153 ## Number of intensities > 0, for if conditions
10
fdbf4de09a91 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit ca89f8e007c6b17f7c30066729e05b8686ab975a"
galaxyp
parents: 9
diff changeset
154 npeaks= sum(int_matrix>0)
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
155 ## Number of NA in spectra matrix
10
fdbf4de09a91 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit ca89f8e007c6b17f7c30066729e05b8686ab975a"
galaxyp
parents: 9
diff changeset
156 infcount = sum(is.infinite(int_matrix))
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
157 ## Number of duplicated coordinates
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
158 dupl_coord = sum(duplicated(coord(msidata)))
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
159 properties = c("Number of m/z features",
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
160 "Range of m/z values",
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
161 "Number of pixels",
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
162 "Range of x coordinates",
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
163 "Range of y coordinates",
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
164 "Range of intensities",
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
165 "Number of NA intensities",
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
166 "Number of Inf intensities",
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
167 "Number of duplicated coordinates")
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
168
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
169 values = c(paste0(maxfeatures),
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
170 paste0(minmz, " - ", maxmz),
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
171 paste0(pixelcount),
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
172 paste0(minimumx, " - ", maximumx),
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
173 paste0(minimumy, " - ", maximumy),
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
174 paste0(minint, " - ", maxint),
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
175 paste0(NAcount),
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
176 paste0(infcount),
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
177 paste0(dupl_coord))
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
178
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
179 property_df = data.frame(properties, values)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
180 ]]></token>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
181
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
182 <token name="@CARDINAL_DESCRIPTION@"><![CDATA[
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
183 Cardinal is an R package that implements statistical & computational tools for analyzing mass spectrometry imaging datasets.
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
184 `More information on Cardinal <http://cardinalmsi.org/>`_
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
185 ]]></token>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
186 <token name="@MSIDATA_INPUT_DESCRIPTION@"><![CDATA[
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
187 **Input data**
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
188
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
189 - MSI data: 3 types of input data can be used:
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
190
16
12dde78d554b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents: 15
diff changeset
191 - imzml file (upload imzml and ibd file via the "composite" function) `Introduction to the imzml format <https://ms-imaging.org/imzml/>`_
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
192 - Analyze7.5 (upload hdr, img and t2m file via the "composite" function)
9
0b7e00e5b9d2 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 6e8b69ee3aff3c93f745a5de11cc9169130f2e5e"
galaxyp
parents: 8
diff changeset
193 - Cardinal "MSImageSet" or "MSImagingExperiment" saved as .RData
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
194 ]]></token>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
195 <token name="@MZ_TABULAR_INPUT_DESCRIPTION@"><![CDATA[
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
196 - Optional tabular file with m/z values:
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
197
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
198 - One column with numeric m/z values (without empty fields or letters)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
199 - The file is allowed to have any column names as header (in this case set "Tabular file contains a header line" to yes)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
200 - m/z features outside the m/z range of the input file are ignored
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
201
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
202
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
203 ::
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
204
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
205 m/z
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
206 100.0
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
207 100.01
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
208 100.02
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
209 ...
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
210 ...
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
211
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
212 ]]></token>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
213 <token name="@MZ_2COLS_TABULAR_INPUT_DESCRIPTION@"><![CDATA[
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
214 - Tabular file with m/z values:
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
215
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
216 - One column with numeric m/z values (without empty fields or letters), another column with names for the m/z (m/z column can also be used as name)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
217 - The file is allowed to have any column names as header (in this case set "Tabular file contains a header line" to yes)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
218 - m/z features outside the m/z range of the input file are ignored
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
219
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
220
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
221 ::
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
222
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
223 m/z name
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
224 100.0 analyte1
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
225 100.01 analyte2
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
226 100.02 analyte3
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
227 ...
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
228 ...
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
229
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
230 ]]></token>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
231 <token name="@SPECTRA_TABULAR_INPUT_DESCRIPTION@"><![CDATA[
16
12dde78d554b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents: 15
diff changeset
232 - Optional file with pixel coordinates and annotation:
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
233
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
234 - Tabular file: One column with x values, one column with y values and one column with annotations
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
235 - The file is allowed to have any column names as header (in this case set "Tabular file contains a header line" to yes)
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
236 - Pixel with coordinates outside the coordinates of the input file are ignored
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
237
16
12dde78d554b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents: 15
diff changeset
238
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
239 ::
16
12dde78d554b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents: 15
diff changeset
240
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
241 x_coord y_coord annotation
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
242 1 1 healthy
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
243 2 1 healthy
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
244 3 1 disease
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
245 ...
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
246 ...
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
247 ]]></token>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
248
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
249 <xml name="reading_msidata">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
250 <param name="infile" type="data" format="imzml,rdata,analyze75"
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
251 label="MSI data"
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
252 help="Input file as imzML (composite upload), Analyze7.5 (composite upload) or Cardinal MSImageSet saved as RData (regular upload)"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
253 <param name="centroids" type="boolean" label="Centroided input" help="Choose Yes if peak detection has already been done." truevalue="TRUE" falsevalue="FALSE"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
254 <conditional name="processed_cond">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
255 <param name="processed_file" type="select" label="Processed imzML file" help="Choose no if your input is an Analyze7.5 or continuous imzML file">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
256 <option value="no_processed" selected="True">no</option>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
257 <option value="processed">yes</option>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
258 </param>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
259 <when value="no_processed"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
260 <when value="processed">
9
0b7e00e5b9d2 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 6e8b69ee3aff3c93f745a5de11cc9169130f2e5e"
galaxyp
parents: 8
diff changeset
261 <param name="accuracy" type="float" value="50" label="Mass accuracy to which the m/z values will be binned"/>
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
262 <param name="units" display="radio" type="select" label="Unit of the mass accuracy" help="either m/z or ppm">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
263 <option value="mz" >mz</option>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
264 <option value="ppm" selected="True" >ppm</option>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
265 </param>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
266 </when>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
267 </conditional>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
268 </xml>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
269
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
270 <xml name="pdf_filename">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
271 <param name="filename" type="text" value="" label="Title" help="Will appear in the pdf output, if nothing given it will take the dataset name">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
272 <sanitizer invalid_char="">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
273 <valid initial="string.ascii_letters,string.digits">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
274 <add value="_"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
275 <add value=" "/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
276 </valid>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
277 </sanitizer>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
278 </param>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
279 </xml>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
280
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
281 <xml name="sanitizer_multiple_digits">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
282 <sanitizer invalid_char="">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
283 <valid initial="string.digits">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
284 <add value=":" />
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
285 <add value="," />
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
286 </valid>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
287 </sanitizer>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
288 </xml>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
289
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
290 <xml name="reading_1_column_mz_tabular" token_label="Tabular file with m/z features">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
291 <param name="mz_tabular" type="data" format="tabular" label="@LABEL@" help="Only numeric m/z values are allowed"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
292 <param name="feature_column" data_ref="mz_tabular" label="Column with features" type="data_column"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
293 <param name="feature_header" type="boolean" label="Tabular file contains a header line" truevalue="TRUE" falsevalue="FALSE"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
294 </xml>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
295
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
296 <xml name="reading_2_column_mz_tabular" token_optional="false">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
297 <param name="calibrant_file" type="data" optional="@OPTIONAL@" format="tabular"
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
298 label="m/z of interest (e.g. internal Calibrants)" help="one column with m/z values, optional second column with names (m/z values can also be selected as name)"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
299 <param name="mz_column" data_ref="calibrant_file" optional="@OPTIONAL@" label="Column with m/z values" type="data_column"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
300 <param name="name_column" data_ref="calibrant_file" optional="@OPTIONAL@" label="Column with name of m/z values" type="data_column"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
301 <param name="calibrant_header" type="boolean" optional="@OPTIONAL@" label="Tabular file contains a header line" truevalue="TRUE" falsevalue="FALSE"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
302 </xml>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
303
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
304 <xml name="reading_pixel_annotations">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
305 <param name="annotation_file" type="data" format="tabular" label="Tabular file with pixel coordinates and annotation"
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
306 help="Tabular file with three columns: x values, y values and pixel annotations"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
307 <param name="column_x" data_ref="annotation_file" label="Column with x values" type="data_column"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
308 <param name="column_y" data_ref="annotation_file" label="Column with y values" type="data_column"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
309 <param name="column_names" data_ref="annotation_file" label="Column with pixel annotations" type="data_column"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
310 <param name="tabular_header" type="boolean" label="Tabular file contains a header line" truevalue="TRUE" falsevalue="FALSE"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
311 </xml>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
312
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
313 <xml name="citations">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
314 <citations>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
315 <citation type="doi">10.1093/bioinformatics/btv146</citation>
7
64ea4507e0bd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit f986c51abe33c7f622d429a3c4a79ee24b33c1f3"
galaxyp
parents: 6
diff changeset
316 <citation type="doi">10.1093/gigascience/giz143</citation>
6
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
317 </citations>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
318 </xml>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
319 <xml name="infile_analyze75">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
320 <param name="infile" value="" ftype="analyze75">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
321 <composite_data value="Analyze75.hdr"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
322 <composite_data value="Analyze75.img"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
323 <composite_data value="Analyze75.t2m"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
324 </param>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
325 </xml>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
326 <xml name="infile_imzml">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
327 <param name="infile" value="" ftype="imzml">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
328 <composite_data value="Example_Continuous.imzML"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
329 <composite_data value="Example_Continuous.ibd"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
330 </param>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
331 </xml>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
332 <xml name="processed_infile_imzml">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
333 <param name="infile" value="" ftype="imzml">
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
334 <composite_data value="Example_Processed.imzML"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
335 <composite_data value="Example_Processed.ibd"/>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
336 </param>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
337 </xml>
043f9c91f686 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 15e24b1f0143679647906bc427654f66b417a45c"
galaxyp
parents: 4
diff changeset
338 </macros>