annotate colocalization.xml @ 2:8ad8061e18c4 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:40:58 +0000
parents d3ca64dafdef
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
8ad8061e18c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 0
diff changeset
1 <tool id="cardinal_colocalization" name="MSI colocalization" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05">
0
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
2 <description>mass spectrometry imaging colocalization</description>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
3 <macros>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
4 <import>macros.xml</import>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
5 </macros>
2
8ad8061e18c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 91e77c139cb3b7c6d67727dc39140dd79355fa0c
galaxyp
parents: 0
diff changeset
6 <expand macro="requirements"/>
0
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
7 <command detect_errors="exit_code">
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
8 <![CDATA[
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
9
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
10 @INPUT_LINKING@
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
11 cat '${MSI_colocalization}' &&
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
12 Rscript '${MSI_colocalization}'
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
13
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
14 ]]>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
15 </command>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
16 <configfiles>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
17 <configfile name="MSI_colocalization"><![CDATA[
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
18
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
19 ################################# load libraries and read file #################
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
20
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
21 library(Cardinal)
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
22 library(gridExtra)
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
23
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
24 @READING_MSIDATA_FULLY_COMPATIBLE@
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
25
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
26 #if str($reference_type.reference) == "roi_ref":
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
27 ## read and extract x,y,annotation information
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
28 input_tabular <- read.delim("$reference_type.annotation_file", header = $reference_type.tabular_header, stringsAsFactors = FALSE)
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
29 annotation_input <- input_tabular[,c($reference_type.column_x, $reference_type.column_y, $reference_type.column_names)]
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
30 annotation_name <- colnames(annotation_input)[3] ##extract header for annotations to later export tabular with same name
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
31 colnames(annotation_input) <- c("x", "y", "annotation") ## rename annotations header to default name "annotation"
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
32
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
33 ## merge with coordinate information of msidata
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
34 msidata_coordinates <- data.frame(coord(msidata)\$x, coord(msidata)\$y, c(1:ncol(msidata)))
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
35 colnames(msidata_coordinates) <- c("x", "y", "pixel_index")
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
36 merged_annotation <- merge(msidata_coordinates, annotation_input, by=c("x", "y"), all.x=TRUE)
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
37 merged_annotation[is.na(merged_annotation)] <- "NA"
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
38 merged_annotation <- merged_annotation[order(merged_annotation\$pixel_index),]
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
39 msidata\$annotation <- as.character(merged_annotation[,4])
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
40 reference_group <- msidata\$annotation == "$reference_type.ref_name"
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
41 #end if
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
42
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
43 ## remove duplicated coordinates
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
44 msidata <- msidata[,!duplicated(coord(msidata))]
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
45
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
46
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
47 @DATA_PROPERTIES_INRAM@
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
48
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
49
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
50 ######################################## PDF ###################################
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
51 ################################################################################
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
52 ################################################################################
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
53
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
54
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
55 pdf("colocalization.pdf", fonts = "Times", pointsize = 12)
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
56 plot(0,type='n',axes=FALSE,ann=FALSE)
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
57
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
58 title(main=paste0("Colocalization for file: \n\n", "$infile.display_name"))
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
59
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
60 grid.table(property_df, rows= NULL)
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
61
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
62
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
63 if (npeaks > 0 && sum(is.na(spectra(msidata)))==0)
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
64 {
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
65
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
66 ## colocalization analysis
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
67 col_results <- colocalized(msidata,
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
68 #if str($reference_type.reference) == "mz_ref":
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
69 mz = $reference_type.mz_value,
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
70 #else
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
71 ref = reference_group,
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
72 #end if
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
73 n = $n_tophits,
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
74 sort.by = "$sort_by",
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
75 threshold = median)
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
76
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
77 ## Summary results table
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
78 col_results_df <- as.data.frame(col_results)
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
79
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
80 write.table(col_results_df, file="$coloc_results", quote = FALSE, row.names = FALSE, col.names=TRUE, sep = "\t")
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
81
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
82 ## visualize top 10 m/z features
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
83
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
84 if (nrow(col_results_df) <= 10)
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
85 {
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
86 for (mass in col_results_df\$mz){
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
87 par(oma=c(0,0,0,1))## margin for image legend
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
88 print(image(msidata, mz=mass, plusminus=0.25,
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
89 main= paste0(round(mass, digits = 2)),
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
90 contrast.enhance = "histogram", strip=FALSE, ylim= c(maximumy,minimumy)))
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
91 }
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
92 }else{
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
93 for (mass in col_results_df\$mz[1:10]){
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
94 par(oma=c(0,0,0,1))## margin for image legend
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
95 print(image(msidata, mz=mass, plusminus=0.25,
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
96 main= paste0(round(mass, digits = 2)),
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
97 contrast.enhance = "histogram", strip=FALSE, ylim= c(maximumy,minimumy)))
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
98 }
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
99 }
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
100
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
101
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
102 dev.off()
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
103
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
104 }else{
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
105 print("Inputfile has no intensities > 0")
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
106 }
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
107
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
108 ]]></configfile>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
109 </configfiles>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
110 <inputs>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
111 <expand macro="reading_msidata"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
112 <conditional name="reference_type">
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
113 <param name="reference" type="select" label="Reference type" help="Region of interest (selected spectra) or m/z feature.">
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
114 <option value="mz_ref" selected="True">m/z feature</option>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
115 <option value="roi_ref">Region of interest (spectra)</option>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
116 </param>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
117 <when value="mz_ref">
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
118 <param name="mz_value" type="float" value="1000" label="m/z feature" help="The m/z closest to this m/z value will be used as a reference."/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
119 </when>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
120 <when value="roi_ref">
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
121 <expand macro="reading_pixel_annotations"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
122 <param name="ref_name" type="text" value="reference" label="Reference name" help="Name has to match exactly on of the annotation names in the annotation file"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
123 </when>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
124 </conditional>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
125 <param name="n_tophits" type="integer" value="10" label="Top hits" help="The number of top-ranked colocalized features to return in the tabular file." />
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
126 <param name="sort_by" type="select" display="radio"
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
127 label="sort.by" help="The colocalization measure used to rank colocalized features. Possible options
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
128 include Pearson’s correlation and Manders’ colocalization coefficients.">
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
129 <option value="correlation" selected="True">Pearson's correlation</option>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
130 <option value="M1">Manders' colocalization coefficient 1</option>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
131 <option value="M2">Manders' colocalization coefficient 2</option>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
132 </param>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
133 </inputs>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
134 <outputs>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
135 <data format="pdf" name="coloc_pdf" from_work_dir="colocalization.pdf" label = "${tool.name} on ${on_string}: results"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
136 <data format="tabular" name="coloc_results" label="${tool.name} on ${on_string}: summary"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
137 </outputs>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
138 <tests>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
139 <test>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
140 <param name="infile" value="" ftype="imzml">
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
141 <composite_data value="spatial_DGMM_input.imzML"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
142 <composite_data value="spatial_DGMM_input.ibd"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
143 </param>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
144 <conditional name="reference_type">
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
145 <param name="reference" value="mz_ref"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
146 <param name="mz_value" value="1000"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
147 </conditional>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
148 <output name="coloc_pdf" file="coloc1.pdf" compare="sim_size" delta="2000"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
149 <output name="coloc_results" file="coloc_table1.tabular"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
150 </test>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
151 <test>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
152 <param name="infile" value="" ftype="imzml">
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
153 <composite_data value="spatial_DGMM_input.imzML"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
154 <composite_data value="spatial_DGMM_input.ibd"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
155 </param>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
156 <conditional name="reference_type">
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
157 <param name="reference" value="roi_ref"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
158 <param name="annotation_file" value="DGMM_annotations.tabular"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
159 <param name="column_x" value="1"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
160 <param name="column_y" value="2"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
161 <param name="column_names" value="3"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
162 <param name="tabular_header" value="True"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
163 <param name="ref_name" value="circle"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
164 </conditional>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
165 <param name="n_tophits" value="5"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
166 <param name="sort_by" value="M2"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
167 <output name="coloc_pdf" file="coloc2.pdf" compare="sim_size" delta="2000"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
168 <output name="coloc_results" file="coloc_table2.tabular"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
169 </test>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
170 <test>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
171 <param name="infile" value="123_combined.RData" ftype="rdata"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
172 <conditional name="reference_type">
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
173 <param name="reference" value="mz_ref"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
174 <param name="mz_value" value="102.0"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
175 </conditional>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
176 <param name="n_tophits" value="50"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
177 <param name="sort_by" value="correlation"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
178 <output name="coloc_pdf" file="coloc3.pdf" compare="sim_size" delta="2000"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
179 <output name="coloc_results" file="coloc_table3.tabular"/>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
180 </test>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
181 </tests>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
182 <help>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
183 <![CDATA[
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
184
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
185 @CARDINAL_DESCRIPTION@
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
186
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
187 -----
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
188
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
189 This tool finds colocalized features in an imaging dataset. Use it to find m/z features that are colocalized with another m/z feature or regions of interests.
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
190
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
191 @MSIDATA_INPUT_DESCRIPTION@
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
192
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
193 - NA intensities are not allowed
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
194 - duplicated coordinates will be removed
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
195 - it is highly recommended to use a dataset that is reduced for the number of m/z features e.g. pre-processed and optionally filtered for m/z of interest in order to keep computational times reasonable.
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
196
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
197
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
198 **Options**
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
199
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
200 - The reference can be either a single m/z feature or a region of interest provided via the annotation file.
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
201
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
202 - For single m/z features the closest m/z to the m/z value that is used as reference is used
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
203 - For regions of interest as a reference the name of the region that should be used as a reference has to be written exactly in the way in which it appears in the annotation file input.
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
204 @SPECTRA_TABULAR_INPUT_DESCRIPTION@
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
205
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
206 - By default, pearson correlation is used to rank the colocalized features. Manders’ colocalization coefficients (M1 and M2) are also provided.
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
207
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
208 **Output**
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
209
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
210 - Pdf with file info and the ion images of the top 10 m/z features (to plot the ion images for more m/z features use the MSI mz images tool)
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
211 - Tabular file with the top m/z features and their correlation values (pearson, Manders 1 and Manders 2) with the reference
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
212
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
213
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
214 ]]>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
215 </help>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
216 <citations>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
217 <citation type="doi">10.1093/bioinformatics/btv146</citation>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
218 </citations>
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
219
d3ca64dafdef "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit badc51fcd74ba0c14cd1ae64d5f524291fa11441"
galaxyp
parents:
diff changeset
220 </tool>