diff msmetaenhancer.xml @ 8:2ada1099f42e draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/msmetaenhancer commit 538d6c063bb049fe7a08d7d4bd88af91c0d696e8
author recetox
date Thu, 18 May 2023 12:57:50 +0000
parents 37afe368348b
children 90745ecc5e9f
line wrap: on
line diff
--- a/msmetaenhancer.xml	Tue May 09 09:18:10 2023 +0000
+++ b/msmetaenhancer.xml	Thu May 18 12:57:50 2023 +0000
@@ -1,4 +1,4 @@
-<tool id="msmetaenhancer" name="MSMetaEnhancer" version="@TOOL_VERSION@+galaxy2">
+<tool id="msmetaenhancer" name="MSMetaEnhancer" version="@TOOL_VERSION@+galaxy0">
     <description>annotate MS data</description>
 
     <macros>
@@ -23,6 +23,7 @@
         <configfile name="msmetaenhancer_python_cli">
             python3 ${__tool_directory__}/msmetaenhancer_wrapper.py \
             --input_file "$input_file" \
+            --file_format "$input_file.ext" \
             --output_file "$output_file" \
             #if $options.logging.output_log:
             --log_file "$log_file" \
@@ -44,7 +45,7 @@
     </configfiles>
 
     <inputs>
-        <param label="Input spectra dataset" name="input_file" type="data" format="msp" />
+        <param label="Input spectra dataset" name="input_file" type="data" format="msp,mgf,json,csv,tsv,xlsx" />
 
         <repeat name="ordered_jobs" title="Ordered conversions">
             <param name="ordered_jobs_select" type="select" label="Available conversions" multiple="false" optional="true">
@@ -73,7 +74,15 @@
     </inputs>
 
     <outputs>
-        <data label="MSMetaEnhancer on ${on_string}" name="output_file" format="msp" />
+        <data label="MSMetaEnhancer on ${on_string}" name="output_file" format="msp">
+            <change_format>
+                <when input="input_file.ext" value="mgf" format="mgf" />
+                <when input="input_file.ext" value="json" format="json" />
+                <when input="input_file.ext" value="csv" format="csv" />
+                <when input="input_file.ext" value="tsv" format="tsv" />
+                <when input="input_file.ext" value="xlsx" format="xlsx" />
+            </change_format>
+        </data>    
         <data label="Log of MSMetaEnhancer on ${on_string}" name="log_file" format="txt">
            <filter>options['logging']['output_log']</filter>
        </data>