# HG changeset patch # User galaxyp # Date 1520779030 14400 # Node ID 3ab8917d59cbddb02880bd1d78d3c34a79191ea5 # Parent ce354a40c13c8fb75d053766ed52e8bbccf9c149 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_ion_images commit ed7d3e6f1a09c78c8f71cc1bdc1a20249767f646 diff -r ce354a40c13c -r 3ab8917d59cb msi_ion_images.xml --- a/msi_ion_images.xml Thu Mar 01 08:24:01 2018 -0500 +++ b/msi_ion_images.xml Sun Mar 11 10:37:10 2018 -0400 @@ -1,4 +1,4 @@ - + mass spectrometry imaging heatmaps @@ -104,25 +104,28 @@ peakpickinginfo=processinginfo@peakPicking } -#if $massfile: - ### Read tabular file with peptide masses for plots and heatmap images: - input_list = read.delim("$massfile", header = FALSE, stringsAsFactors = FALSE) - if (ncol(input_list) == 1) - { - input_list = cbind(input_list, input_list) - } - ### calculate how many input masses are valid: - inputmasses = input_list[input_list[,1]>minmz & input_list[,1]minmz & input_list[,1]0) + }else { + countpixels = rowSums(spectra(msidata)[features(msidata, mz=inputmz),] >0) + } -countpixels = rowSums(spectra(msidata)[features(msidata, mz=inputmz),]>0) percentpixels = round(countpixels/pixelcount*100, digits=1) valuesdataframe = cbind(inputmz, cbind(countpixels, percentpixels)) @@ -145,7 +148,7 @@ "Baseline reduction", "Peak picking", "Centroided", - paste0("# valid masses in ", "$massfile.display_name")) + paste0("# valid masses in \n", "$massfile.display_name")) values = c(paste0(maxfeatures), paste0(minmz, " - ", maxmz), @@ -213,15 +216,15 @@ - + - + - + @@ -243,8 +246,8 @@ + - @@ -256,6 +259,7 @@ + @@ -263,6 +267,7 @@ + @@ -270,6 +275,7 @@ + 0 diff -r ce354a40c13c -r 3ab8917d59cb test-data/Heatmaps_LM8_file16.pdf Binary file test-data/Heatmaps_LM8_file16.pdf has changed diff -r ce354a40c13c -r 3ab8917d59cb test-data/Heatmaps_analyze75.pdf Binary file test-data/Heatmaps_analyze75.pdf has changed diff -r ce354a40c13c -r 3ab8917d59cb test-data/Heatmaps_imzml.pdf Binary file test-data/Heatmaps_imzml.pdf has changed diff -r ce354a40c13c -r 3ab8917d59cb test-data/Heatmaps_rdata.pdf Binary file test-data/Heatmaps_rdata.pdf has changed diff -r ce354a40c13c -r 3ab8917d59cb test-data/inputpeptides2.tabular --- a/test-data/inputpeptides2.tabular Thu Mar 01 08:24:01 2018 -0500 +++ b/test-data/inputpeptides2.tabular Sun Mar 11 10:37:10 2018 -0400 @@ -1,3 +1,1 @@ 854.5 -1296.7 -2000.8 diff -r ce354a40c13c -r 3ab8917d59cb test-data/tabular_LM8file16.tabular --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/tabular_LM8file16.tabular Sun Mar 11 10:37:10 2018 -0400 @@ -0,0 +1,2 @@ + inputmz countpixels percentpixels +1 854.5 0 0 diff -r ce354a40c13c -r 3ab8917d59cb test-data/tabular_analyze75.tabular --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/tabular_analyze75.tabular Sun Mar 11 10:37:10 2018 -0400 @@ -0,0 +1,2 @@ + inputmz countpixels percentpixels +1 854.5 2 22.2 diff -r ce354a40c13c -r 3ab8917d59cb test-data/tabular_imzml.tabular --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/tabular_imzml.tabular Sun Mar 11 10:37:10 2018 -0400 @@ -0,0 +1,4 @@ + inputmz countpixels percentpixels +1 152 9 100 +2 328.9 9 100 +3 185.2 6 66.7 diff -r ce354a40c13c -r 3ab8917d59cb test-data/tabular_rdata.tabular --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/tabular_rdata.tabular Sun Mar 11 10:37:10 2018 -0400 @@ -0,0 +1,4 @@ + inputmz countpixels percentpixels +1 152 9 100 +2 328.9 9 100 +3 185.2 6 66.7