# HG changeset patch # User galaxyp # Date 1530900675 14400 # Node ID 188de53d93f76c4d4027a46d6ae44be711774f1c # Parent 1a7cc5e144302ec5a845e2238f9221db3b57efb5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_ion_images commit 8087490eb4dcaf4ead0f03eae4126780d21e5503 diff -r 1a7cc5e14430 -r 188de53d93f7 msi_ion_images.xml --- a/msi_ion_images.xml Tue Jun 19 18:05:12 2018 -0400 +++ b/msi_ion_images.xml Fri Jul 06 14:11:15 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 1a7cc5e14430 -r 188de53d93f7 test-data/Heatmaps_LM8_file16.pdf Binary file test-data/Heatmaps_LM8_file16.pdf has changed diff -r 1a7cc5e14430 -r 188de53d93f7 test-data/Heatmaps_analyze75.pdf Binary file test-data/Heatmaps_analyze75.pdf has changed diff -r 1a7cc5e14430 -r 188de53d93f7 test-data/Heatmaps_imzml.pdf Binary file test-data/Heatmaps_imzml.pdf has changed diff -r 1a7cc5e14430 -r 188de53d93f7 test-data/Heatmaps_rdata.pdf Binary file test-data/Heatmaps_rdata.pdf has changed