diff spectra_plots.xml @ 4:889c9e3a2526 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:08:11 -0400
parents 2553ba1fe625
children f64aadd66808
line wrap: on
line diff
--- a/spectra_plots.xml	Thu Feb 28 09:20:26 2019 -0500
+++ b/spectra_plots.xml	Fri Mar 22 08:08:11 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){