# HG changeset patch # User galaxyp # Date 1530900815 14400 # Node ID db0cf8eb4395fb488dc55623b9008f81aa15b12c # Parent 5a5b5a8fa8a0ad4943072fa62fb4fec02464bcc0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503 diff -r 5a5b5a8fa8a0 -r db0cf8eb4395 msi_ion_images.xml --- a/msi_ion_images.xml Tue Jun 19 18:07:40 2018 -0400 +++ b/msi_ion_images.xml Fri Jul 06 14:13:35 2018 -0400 @@ -1,4 +1,4 @@ - + mass spectrometry imaging m/z heatmaps @@ -34,10 +34,15 @@ ## Read MALDI Imaging dataset + #if $infile.ext == 'imzml' - msidata <- readImzML('infile', mass.accuracy=$accuracy, units.accuracy = "$units") + #if str($processed_cond.processed_file) == "processed": + msidata <- readImzML('infile', mass.accuracy=$processed_cond.accuracy, units.accuracy = "$processed_cond.units") + #else + msidata <- readImzML('infile', attach.only=TRUE) + #end if #elif $infile.ext == 'analyze75' - msidata = readAnalyze('infile') + msidata = readAnalyze('infile', attach.only=TRUE) #else load('infile.RData') #end if @@ -59,17 +64,17 @@ minimumy = min(coord(msidata)[,2]) maximumy = max(coord(msidata)[,2]) ## Range of intensities -minint = round(min(spectra(msidata)[]), digits=2) -maxint = round(max(spectra(msidata)[]), digits=2) -medint = round(median(spectra(msidata)[]), digits=2) +minint = round(min(spectra(msidata)[], na.rm=TRUE), digits=2) +maxint = round(max(spectra(msidata)[], na.rm=TRUE), digits=2) +medint = round(median(spectra(msidata)[], na.rm=TRUE), digits=2) ## Number of intensities > 0 -npeaks= sum(spectra(msidata)[]>0) +npeaks= sum(spectra(msidata)[]>0, na.rm=TRUE) ## Spectra multiplied with m/z (potential number of peaks) numpeaks = ncol(spectra(msidata)[])*nrow(spectra(msidata)[]) ## Percentage of intensities > 0 percpeaks = round(npeaks/numpeaks*100, digits=2) ## Number of empty TICs -TICs = colSums(spectra(msidata)[]) +TICs = colSums(spectra(msidata)[], na.rm=TRUE) NumemptyTIC = sum(TICs == 0) ## Processing informations @@ -219,11 +224,20 @@ - - - - - + + + + + + + + + + + + + + @@ -239,7 +253,7 @@ - + diff -r 5a5b5a8fa8a0 -r db0cf8eb4395 test-data/Heatmaps_LM8_file16.pdf Binary file test-data/Heatmaps_LM8_file16.pdf has changed diff -r 5a5b5a8fa8a0 -r db0cf8eb4395 test-data/Heatmaps_analyze75.pdf Binary file test-data/Heatmaps_analyze75.pdf has changed diff -r 5a5b5a8fa8a0 -r db0cf8eb4395 test-data/Heatmaps_imzml.pdf Binary file test-data/Heatmaps_imzml.pdf has changed diff -r 5a5b5a8fa8a0 -r db0cf8eb4395 test-data/Heatmaps_rdata.pdf Binary file test-data/Heatmaps_rdata.pdf has changed