# HG changeset patch # User galaxyp # Date 1532422390 14400 # Node ID d77c5228fd1a1ad4de9258af7417f7cce32535ba # Parent 1a3d477bc54a71934c33eedf4beefcae4d1d4167 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit 5bceedc3a11c950790692a4c64bbb83d46897bee diff -r 1a3d477bc54a -r d77c5228fd1a msi_preprocessing.xml --- a/msi_preprocessing.xml Fri Jul 06 14:13:48 2018 -0400 +++ b/msi_preprocessing.xml Tue Jul 24 04:53:10 2018 -0400 @@ -1,4 +1,4 @@ - + mass spectrometry imaging preprocessing @@ -6,6 +6,7 @@ bioconductor-cardinal r-gridextra r-lattice + r-ggplot2 20 && number_combined<40){ + legend_size = 9 + }else if (number_combined>40 && number_combined<60){ + legend_size = 8 + }else if (number_combined>60 && number_combined<100){ + legend_size = 7 + }else{ + legend_size = 6 + } + + position_df = cbind(coord(msidata)[,1:2], msidata\$annotation) + colnames(position_df)[3] = "sample_name" + + combine_plot = ggplot(position_df, aes(x=x, y=y, fill=sample_name))+ + geom_tile() + + coord_fixed()+ + ggtitle("Spatial orientation of annotated data")+ + theme_bw()+ + theme(plot.title = element_text(hjust = 0.5))+ + theme(text=element_text(family="ArialMT", face="bold", size=12))+ + theme(legend.position="bottom",legend.direction="vertical")+ + theme(legend.key.size = unit(0.2, "line"), legend.text = element_text(size = legend_size))+ + guides(fill=guide_legend(ncol=5,byrow=TRUE)) + coord_labels = aggregate(cbind(x,y)~sample_name, data=position_df, mean) + coord_labels\$file_number = gsub( "_.*$", "", coord_labels\$sample_name) + for(file_count in 1:nrow(coord_labels)) + {combine_plot = combine_plot + annotate("text",x=coord_labels[file_count,"x"], + y=coord_labels[file_count,"y"],label=toString(coord_labels[file_count,4]))} + + print(combine_plot) + #end if + dev.off() }else{ @@ -613,6 +676,21 @@ + + + + + + + + + + + + + + @@ -682,6 +760,9 @@ + + + @@ -708,6 +789,14 @@ + + + + + + + + @@ -742,6 +831,9 @@ + + + @@ -763,6 +855,9 @@ + + + @@ -782,6 +877,9 @@ + + + @@ -798,6 +896,7 @@ - imzml file (upload imzml and ibd file via the "composite" function) `Introduction to the imzml format `_ - Analyze7.5 (upload hdr, img and t2m file via the "composite" function) - Cardinal "MSImageSet" data (with variable name "msidata", saved as .RData) +- optional: tabular file with pixel annotations: x and y values in separate columns and the corresponding annotation in a third column Options: @@ -814,8 +913,9 @@ Output: - imzML file, preprocessed -- pdf with key values after each processing step +- pdf with key values after each processing step, in case of loaded annotations file overview plot of pixel annotations - optional: intensity matrix as tabular file (intensities for m/z in rows and pixel in columns) +- optional: summarized intensity matrix: mean, median or standard deviation for each m/z feature; in case pixel annotations are provided the intensity values are summarized for each pixel group Tip: diff -r 1a3d477bc54a -r d77c5228fd1a test-data/inputcalibrantfile1.tabular --- a/test-data/inputcalibrantfile1.tabular Fri Jul 06 14:13:48 2018 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -101.5 -356.7 -555.1 diff -r 1a3d477bc54a -r d77c5228fd1a test-data/inputcalibrantfile2.tabular --- a/test-data/inputcalibrantfile2.tabular Fri Jul 06 14:13:48 2018 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -869.51 mass1 -1001.62 mass2 -1023.6 mass3 diff -r 1a3d477bc54a -r d77c5228fd1a test-data/pixel_annotations.tabular --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/pixel_annotations.tabular Tue Jul 24 04:53:10 2018 -0400 @@ -0,0 +1,12 @@ +1 1 File1 +1 2 File1 +1 3 File1 +3 1 File2 +3 2 File2 +3 3 File2 +4 1 File2 +4 2 File2 +4 3 File2 +8 1 File3 +8 2 File3 +8 3 File3 diff -r 1a3d477bc54a -r d77c5228fd1a test-data/preprocessing_median2.txt --- a/test-data/preprocessing_median2.txt Fri Jul 06 14:13:48 2018 -0400 +++ b/test-data/preprocessing_median2.txt Tue Jul 24 04:53:10 2018 -0400 @@ -1,4 +1,4 @@ - 1_File1 2_File2 3_File3 + File1 File2 NA 101.083335876465 0 0.133186891674995 0.266373783349991 101.666664123535 0 0 0 102.166664123535 0 0 0 diff -r 1a3d477bc54a -r d77c5228fd1a test-data/preprocessing_results1.RData Binary file test-data/preprocessing_results1.RData has changed diff -r 1a3d477bc54a -r d77c5228fd1a test-data/preprocessing_results1.pdf Binary file test-data/preprocessing_results1.pdf has changed diff -r 1a3d477bc54a -r d77c5228fd1a test-data/preprocessing_results2.RData Binary file test-data/preprocessing_results2.RData has changed diff -r 1a3d477bc54a -r d77c5228fd1a test-data/preprocessing_results2.pdf Binary file test-data/preprocessing_results2.pdf has changed diff -r 1a3d477bc54a -r d77c5228fd1a test-data/preprocessing_results3.RData Binary file test-data/preprocessing_results3.RData has changed diff -r 1a3d477bc54a -r d77c5228fd1a test-data/preprocessing_results3.pdf Binary file test-data/preprocessing_results3.pdf has changed diff -r 1a3d477bc54a -r d77c5228fd1a test-data/preprocessing_results4.RData Binary file test-data/preprocessing_results4.RData has changed diff -r 1a3d477bc54a -r d77c5228fd1a test-data/preprocessing_results4.pdf Binary file test-data/preprocessing_results4.pdf has changed diff -r 1a3d477bc54a -r d77c5228fd1a test-data/preprocessing_results5.RData Binary file test-data/preprocessing_results5.RData has changed diff -r 1a3d477bc54a -r d77c5228fd1a test-data/preprocessing_results5.pdf Binary file test-data/preprocessing_results5.pdf has changed diff -r 1a3d477bc54a -r d77c5228fd1a test-data/preprocessing_sd2.txt --- a/test-data/preprocessing_sd2.txt Fri Jul 06 14:13:48 2018 -0400 +++ b/test-data/preprocessing_sd2.txt Tue Jul 24 04:53:10 2018 -0400 @@ -1,4 +1,4 @@ - 1_File1 2_File2 3_File3 + File1 File2 NA 101.083335876465 0.180910895583245 0.284914371691127 0.358878736172051 101.666664123535 0 0 0 102.166664123535 0 0 0