# HG changeset patch # User galaxyp # Date 1519494508 18000 # Node ID f6aa0cff777c9a07c1b2b793f4a46e9660457712 # Parent 1ccbda92b76b53a6e4ebe1ed6e6ca2f7ca9b88cd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/msi_qualitycontrol commit 9f8984da558d0a307fed3ff3af9313829d2e5baa diff -r 1ccbda92b76b -r f6aa0cff777c msi_qualitycontrol.xml --- a/msi_qualitycontrol.xml Fri Nov 24 18:08:38 2017 -0500 +++ b/msi_qualitycontrol.xml Sat Feb 24 12:48:28 2018 -0500 @@ -1,4 +1,4 @@ - + mass spectrometry imaging QC @@ -159,7 +159,7 @@ "Baseline reduction", "Peak picking", "Centroided", - "# valid input masses") + paste0("# valid masses in ", "$filename")) values = c(paste0(maxfeatures), paste0(minmz, " - ", maxmz), @@ -176,7 +176,7 @@ paste0(baselinereductioninfo), paste0(peakpickinginfo), paste0(centroidedinfo), - paste0(length(inputmasses))) + paste0(length(inputmasses), "/", length(calibrant_list[,1])+length(input_list[,1]))) property_df = data.frame(properties, values) @@ -287,6 +287,12 @@ mass2 = $foldchanges.mass2 distance = $foldchanges.distance + #if not str($foldchanges.filenameratioplot).strip(): + #set $label = "Fold change %s Da / %s Da" % ($foldchanges.mass1, $foldchanges.mass2) + #else: + #set $label = $foldchanges.filenameratioplot + #end if + ### find rows which contain masses: mzrowdown1 = features(msidata, mz = mass1-distance) @@ -339,8 +345,8 @@ ratiomatrix = cbind(foldchange, coord(msidata)) print(ggplot(ratiomatrix, aes(x=x, y=y, fill=foldchange), colour=colo) - +scale_y_reverse() + geom_tile() + coord_fixed() - + ggtitle(paste0("Fold change ", mass1, " Da / ", mass2, " Da")) + + geom_tile() + coord_fixed() + + ggtitle("$label") + theme_bw() + theme(text=element_text(family="ArialMT", face="bold", size=12)) + scale_fill_gradientn(colours = c("blue", "purple" , "red","orange") @@ -350,11 +356,12 @@ ## 3) Calibrant images: + par(mfrow=c(1,1), mar=c(5.1, 4.1, 4.1, 2.1), mgp=c(3, 1, 0), las=0) if (length(inputmasses) != 0) { for (mass in 1:length(inputmasses)) { image(msidata, mz=inputmasses[mass], plusminus=$plusminusinDalton, - main= paste0("3",LETTERS[mass], ") ", inputnames[mass], " (", round(inputmasses[mass], digits = 2), " Da)"), + main= paste0("3", LETTERS[mass], ") ", inputnames[mass], " (", round(inputmasses[mass], digits = 2)," ± ", $plusminusinDalton, " Da)"), contrast.enhance = "histogram", ylim=c(maxy+1, 0)) } } else {print("3) The inputpeptide masses were outside the mass range")} @@ -559,7 +566,7 @@ ]]> - + diff -r 1ccbda92b76b -r f6aa0cff777c test-data/LM8_file16output.pdf Binary file test-data/LM8_file16output.pdf has changed diff -r 1ccbda92b76b -r f6aa0cff777c test-data/Testfile_qualitycontrol_analyze75.pdf Binary file test-data/Testfile_qualitycontrol_analyze75.pdf has changed diff -r 1ccbda92b76b -r f6aa0cff777c test-data/Testfile_qualitycontrol_imzml.pdf Binary file test-data/Testfile_qualitycontrol_imzml.pdf has changed diff -r 1ccbda92b76b -r f6aa0cff777c test-data/Testfile_qualitycontrol_rdata.pdf Binary file test-data/Testfile_qualitycontrol_rdata.pdf has changed