diff spectra_plots.xml @ 4:9b6b86e771c2 draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit ecdc3a64aa245d80dbc5487b2bf10a85a43adc6d
author galaxyp
date Fri, 22 Mar 2019 08:17:34 -0400
parents 58c4aef16eb0
children 64ea4507e0bd
line wrap: on
line diff
--- a/spectra_plots.xml	Thu Feb 28 09:27:53 2019 -0500
+++ b/spectra_plots.xml	Fri Mar 22 08:17:34 2019 -0400
@@ -1,4 +1,4 @@
-<tool id="cardinal_spectra_plots" name="MSI plot spectra" version="@VERSION@.2">
+<tool id="cardinal_spectra_plots" name="MSI plot spectra" version="@VERSION@.3">
     <description>
         mass spectrometry imaging mass spectra plots
     </description>
@@ -56,11 +56,10 @@
     #if str($processed_cond.processed_file) == "processed":
         ##processed file needs to be converted into matrix to be able to replace NAs
         iData(msidata) <- iData(msidata)[]
-        spectra(msidata)[is.na(spectra(msidata))] = 0
-    #else
-        spectra(msidata)[is.na(spectra(msidata))] = 0
     #end if
 
+    spectra(msidata)[is.na(spectra(msidata))] = 0
+
 ## run only if mz and pixels are > 0
 
 if (ncol(msidata)>0 & nrow(msidata) >0){