# HG changeset patch # User galaxyp # Date 1601972189 0 # Node ID ecaebe7c7b544c192833fd8d0f087b450f1f03f6 # Parent f396c176f3663567dc8520f4e4b606bbcdd47969 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit 0c667acd7cc0d0ef6c4e979ca29372b8c0d92c23" diff -r f396c176f366 -r ecaebe7c7b54 quality_report.xml --- a/quality_report.xml Sun Sep 27 11:11:53 2020 +0000 +++ b/quality_report.xml Tue Oct 06 08:16:29 2020 +0000 @@ -1,4 +1,4 @@ - + mass spectrometry imaging QC @@ -67,7 +67,6 @@ ###################### calculation of data properties ################################ @DATA_PROPERTIES_INRAM@ - ## Median intensities medint = round(median(int_matrix), digits=2) ## Spectra multiplied with m/z (potential number of peaks) @@ -83,6 +82,8 @@ ## Median and sd # peaks per spectrum medpeaks = round(median(colSums(spectra(msidata)>0, na.rm=TRUE), na.rm=TRUE), digits=0) sdpeaks = round(sd(colSums(spectra(msidata)>0, na.rm=TRUE), na.rm=TRUE), digits=0) +##max window size +max_window = round(mz(msidata)[nrow(msidata)]-mz(msidata)[nrow(msidata)-1], digits=2) ## Processing informations centroidedinfo = centroided(msidata) @@ -138,6 +139,7 @@ "Number of empty spectra", "Median TIC ± sd", "Median # peaks per spectrum ± sd", + "maximum m/z window size", "Centroided", paste0("input m/z (#valid/#input) in \n", "$calibrant_file.display_name")) @@ -146,6 +148,7 @@ paste0(NumemptyTIC), paste0(medTIC, " ± ", sdTIC), paste0(medpeaks, " ± ",sdpeaks), + paste0(max_window), paste0(centroidedinfo), paste0(number_calibrants_valid, " / ", number_calibrants_in)) @@ -222,7 +225,7 @@ pixelxyarray=data.frame(coord(msidata)\$x, coord(msidata)\$y,pixelnumber) colnames(pixelxyarray) = c("x", "y", "pixelnumber") gg_title = "Pixel order" - + print(ggplot(pixelxyarray, aes(x=x, y=y, fill=pixelnumber))+ geom_tile() + coord_fixed()+ ggtitle(gg_title) + theme_bw()+ @@ -755,6 +758,7 @@ if (length(inputcalibrantmasses) != 0){ + ### calculate plusminus values in m/z for each calibrant, this is used for all following plots plusminusvalues = rep($plusminus_ppm/1000000, length(inputcalibrantmasses)) * inputcalibrantmasses @@ -767,6 +771,17 @@ maxmasspixel2 = features(msidata_no_NA, mz=inputcalibrantmasses[mass]+0.5) minmasspixel3 = features(msidata_no_NA, mz=inputcalibrantmasses[mass]-1.5) maxmasspixel3 = features(msidata_no_NA, mz=inputcalibrantmasses[mass]+3) + + ## test if some values are lower than min(mz) + minmasspixel1 = ifelse(length(minmasspixel1)>0, minmasspixel1, 1) + minmasspixel2 = ifelse(length(minmasspixel2)>0, minmasspixel2, 1) + minmasspixel3 = ifelse(length(minmasspixel3)>0, minmasspixel3, 1) + + ## test if min and max are same (more likely for centroided data): + maxmasspixel1 = ifelse(minmasspixel1 != maxmasspixel1, maxmasspixel1, maxmasspixel1 + 1) + maxmasspixel2 = ifelse(minmasspixel2 != maxmasspixel2, maxmasspixel2, maxmasspixel1 + 1) + maxmasspixel3 = ifelse(minmasspixel3 != maxmasspixel3, maxmasspixel3, maxmasspixel1 + 1) + ### find m/z with the highest mean intensity in m/z range (red line in plot 16) and calculate ppm difference for plot 17 filtered_data = msidata_no_NA[mz(msidata_no_NA) >= inputcalibrantmasses[mass]-plusminusvalues[mass] & mz(msidata_no_NA) <= inputcalibrantmasses[mass]+plusminusvalues[mass],] @@ -837,8 +852,10 @@ ### plot the ppm difference calculated above: theor. m/z value to highest m/z value: calibrant_names = as.character(inputcalibrants[,2]) + diff_df = data.frame(differencevector, calibrant_names) + if (sum(is.na(diff_df[,1])) == nrow(diff_df)){ plot(0,type='n',axes=FALSE,ann=FALSE) title(main=paste("plot 17: no peaks in the chosen region, repeat with higher ppm range")) diff -r f396c176f366 -r ecaebe7c7b54 test-data/QC_analyze75.pdf Binary file test-data/QC_analyze75.pdf has changed diff -r f396c176f366 -r ecaebe7c7b54 test-data/QC_empty_spectra.pdf Binary file test-data/QC_empty_spectra.pdf has changed diff -r f396c176f366 -r ecaebe7c7b54 test-data/QC_imzml.pdf Binary file test-data/QC_imzml.pdf has changed diff -r f396c176f366 -r ecaebe7c7b54 test-data/QC_rdata.pdf Binary file test-data/QC_rdata.pdf has changed diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results1.ibd Binary file test-data/preprocessing_results1.ibd has changed diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results1.imzml --- a/test-data/preprocessing_results1.imzml Sun Sep 27 11:11:53 2020 +0000 +++ b/test-data/preprocessing_results1.imzml Tue Oct 06 08:16:29 2020 +0000 @@ -9,8 +9,8 @@ - - + + @@ -42,7 +42,7 @@ - + diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results1.imzml.txt --- a/test-data/preprocessing_results1.imzml.txt Sun Sep 27 11:11:53 2020 +0000 +++ b/test-data/preprocessing_results1.imzml.txt Tue Oct 06 08:16:29 2020 +0000 @@ -1,4 +1,4 @@ imzML file: total 24 --rw-r--r-- 1 meli meli 216 Mai 10 17:37 ibd --rw-r--r-- 1 meli meli 18090 Mai 10 17:37 imzml +-rw-rw-r-- 1 meli meli 216 Oct 5 19:57 ibd +-rw-rw-r-- 1 meli meli 18090 Oct 5 19:57 imzml diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results1.pdf Binary file test-data/preprocessing_results1.pdf has changed diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results2.ibd Binary file test-data/preprocessing_results2.ibd has changed diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results2.imzml --- a/test-data/preprocessing_results2.imzml Sun Sep 27 11:11:53 2020 +0000 +++ b/test-data/preprocessing_results2.imzml Tue Oct 06 08:16:29 2020 +0000 @@ -9,8 +9,8 @@ - - + + @@ -42,7 +42,7 @@ - + diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results2.imzml.txt --- a/test-data/preprocessing_results2.imzml.txt Sun Sep 27 11:11:53 2020 +0000 +++ b/test-data/preprocessing_results2.imzml.txt Tue Oct 06 08:16:29 2020 +0000 @@ -1,4 +1,4 @@ imzML file: total 64 --rw-r--r-- 1 meli meli 37404 Mai 10 17:38 ibd --rw-r--r-- 1 meli meli 22796 Mai 10 17:38 imzml +-rw-rw-r-- 1 meli meli 37404 Oct 5 19:57 ibd +-rw-rw-r-- 1 meli meli 22796 Oct 5 19:57 imzml diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results2.pdf Binary file test-data/preprocessing_results2.pdf has changed diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results3.ibd Binary file test-data/preprocessing_results3.ibd has changed diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results3.imzml --- a/test-data/preprocessing_results3.imzml Sun Sep 27 11:11:53 2020 +0000 +++ b/test-data/preprocessing_results3.imzml Tue Oct 06 08:16:29 2020 +0000 @@ -9,8 +9,8 @@ - - + + @@ -42,7 +42,7 @@ - + diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results3.imzml.txt --- a/test-data/preprocessing_results3.imzml.txt Sun Sep 27 11:11:53 2020 +0000 +++ b/test-data/preprocessing_results3.imzml.txt Tue Oct 06 08:16:29 2020 +0000 @@ -1,4 +1,4 @@ imzML file: total 24 --rw-r--r-- 1 meli meli 960 Mai 10 17:39 ibd --rw-r--r-- 1 meli meli 18112 Mai 10 17:39 imzml +-rw-rw-r-- 1 meli meli 960 Oct 5 19:58 ibd +-rw-rw-r-- 1 meli meli 18112 Oct 5 19:58 imzml diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results3.pdf Binary file test-data/preprocessing_results3.pdf has changed diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results4.ibd Binary file test-data/preprocessing_results4.ibd has changed diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results4.imzml --- a/test-data/preprocessing_results4.imzml Sun Sep 27 11:11:53 2020 +0000 +++ b/test-data/preprocessing_results4.imzml Tue Oct 06 08:16:29 2020 +0000 @@ -9,8 +9,8 @@ - - + + diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results4.imzml.txt --- a/test-data/preprocessing_results4.imzml.txt Sun Sep 27 11:11:53 2020 +0000 +++ b/test-data/preprocessing_results4.imzml.txt Tue Oct 06 08:16:29 2020 +0000 @@ -1,4 +1,4 @@ imzML file: total 84 --rw-rw-r-- 1 meli meli 62696 Sep 20 11:48 ibd --rw-rw-r-- 1 meli meli 18199 Sep 20 11:48 imzml +-rw-rw-r-- 1 meli meli 62696 Oct 5 19:58 ibd +-rw-rw-r-- 1 meli meli 18199 Oct 5 19:58 imzml diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results4.pdf Binary file test-data/preprocessing_results4.pdf has changed diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results5.ibd Binary file test-data/preprocessing_results5.ibd has changed diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results5.imzml --- a/test-data/preprocessing_results5.imzml Sun Sep 27 11:11:53 2020 +0000 +++ b/test-data/preprocessing_results5.imzml Tue Oct 06 08:16:29 2020 +0000 @@ -9,8 +9,8 @@ - - + + @@ -42,7 +42,7 @@ - + diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results5.imzml.txt --- a/test-data/preprocessing_results5.imzml.txt Sun Sep 27 11:11:53 2020 +0000 +++ b/test-data/preprocessing_results5.imzml.txt Tue Oct 06 08:16:29 2020 +0000 @@ -1,4 +1,4 @@ imzML file: total 428 --rw-r--r-- 1 meli meli 415936 Mai 10 17:40 ibd --rw-r--r-- 1 meli meli 18569 Mai 10 17:40 imzml +-rw-rw-r-- 1 meli meli 415936 Oct 5 19:59 ibd +-rw-rw-r-- 1 meli meli 18569 Oct 5 19:59 imzml diff -r f396c176f366 -r ecaebe7c7b54 test-data/preprocessing_results5.pdf Binary file test-data/preprocessing_results5.pdf has changed