diff aplcms_unsupervised.xml @ 3:b0ba0287b76f draft

"planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/aplcms commit 1852a90740a2e1e98f576d68164100c46daaf71a"
author recetox
date Wed, 07 Oct 2020 16:06:54 +0000
parents 52cec2e123fa
children
line wrap: on
line diff
--- a/aplcms_unsupervised.xml	Thu Sep 24 07:23:07 2020 +0000
+++ b/aplcms_unsupervised.xml	Wed Oct 07 16:06:54 2020 +0000
@@ -1,4 +1,4 @@
-<tool id="recetox_aplcms_unsupervised" name="apLCMS - Unsupervised" version="@TOOL_VERSION@+galaxy0">
+<tool id="recetox_aplcms_unsupervised" name="apLCMS - Unsupervised" version="@TOOL_VERSION@+galaxy1">
     <macros>
         <import>aplcms_macros.xml</import>
     </macros>
@@ -35,12 +35,7 @@
                     use_observed_range = $weak_signal_recovery.use_observed_range,
                     recover_min_count = $weak_signal_recovery.recover_min_count
                 )'
-            -e 'rhdf5::h5write(x\$final_peaks, "$peaks", "peaks")'
-            -e 'rhdf5::h5write(x\$aligned_peaks, "$peaks", "aligned_peaks")'
-            -e 'rhdf5::h5write(x\$corrected_features, "$peaks", "corrected_features")'
-            -e 'rhdf5::h5write(x\$extracted_features, "$peaks", "extracted_features")'
-            -e 'rhdf5::h5write(x\$aligned_mz_tolerance, "$peaks", "aligned_mz_tolerance")'
-            -e 'rhdf5::h5write(x\$aligned_rt_tolerance, "$peaks", "aligned_rt_tolerance")'
+            -e 'apLCMS::save_peaks_to_hdf("$peaks", x)'
     ]]></command>
 
     <expand macro="inputs">
@@ -54,6 +49,13 @@
         <data name="peaks" format="h5" />
     </outputs>
 
+    <tests>
+        <test>
+            <param name="files" value="mbr_test0.mzml,mbr_test1.mzml,mbr_test2.mzml" ftype="mzml"/>
+            <output name="peaks" file="peaks_unsupervised.h5" ftype="h5" compare="sim_size" delta="1000"/>
+        </test>
+    </tests>
+
     <help>
         This is the Unsupervised version of apLCMS which is not relying on any existing knowledge about metabolites or
         any historically detected features. For such functionality please use the Hybrid version of apLCMS.