diff recetox_msfinder.xml @ 4:ae66b58846cd draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_msfinder commit ad60bf881a8fd00546909c76d65ea3c6b65a4fe9
author recetox
date Fri, 01 Dec 2023 09:23:21 +0000
parents d1f44632f206
children e7eff0c9baa3
line wrap: on
line diff
--- a/recetox_msfinder.xml	Sat Oct 21 12:31:00 2023 +0000
+++ b/recetox_msfinder.xml	Fri Dec 01 09:23:21 2023 +0000
@@ -1,4 +1,4 @@
-<tool id="recetox_msfinder" name="RECETOX MsFinder" version="@TOOL_VERSION@+galaxy2">
+<tool id="recetox_msfinder" name="RECETOX MsFinder" version="@TOOL_VERSION@+galaxy3">
     <description>Annotation of fragment peaks in mass spectral libraries.</description>
     <macros>
         <import>macros.xml</import>
@@ -9,8 +9,11 @@
     <expand macro="requirements" />
     <command>
         <![CDATA[
-        sh ${write_param} &&
-        mono /MsFinder/MsFinder/bin/Debug/MsfinderConsoleApp.exe annotate -i "$input_data" -m 'MSFINDER.INI' -o "$annotated_data"        
+        mkdir output;
+        sh ${write_param};
+        mono /MsFinder/MsFinder/bin/Debug/MsfinderConsoleApp.exe annotate -i "$input_data" -m 'MSFINDER.INI' -o 'output/result.msp';
+        [ -s output/result.msp ] || rm output/result.msp;
+
     ]]>
     </command>
 
@@ -52,9 +55,16 @@
     <tests>
         <test>
             <param name="input_data" value="test.msp" ftype="msp" />
-            <output name="annotated_data" file="out.msp" lines_diff="16	" /> 
+            <output_collection name="output" type="list">
+                <element name="result" file="out.msp" lines_diff="16"/>
+            </output_collection>
             <!-- This is set to 16 since msfinder sometimes places double bonds between certain atoms and sometimes not - there are 16 such cases in this file. -->
-
+        </test>
+        <test>
+            <param name="input_data" value="test_log.msp" ftype="msp" />
+            <output_collection name="output" type="list">
+                <element name="log_smiles" file="log_smiles.smi" />
+            </output_collection>
         </test>
     </tests>