changeset 10:3e2cb0bc6959 draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/msmetaenhancer commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
author recetox
date Thu, 12 Oct 2023 13:30:31 +0000
parents 90745ecc5e9f
children 791bf4d9b06c
files macros.xml msmetaenhancer.xml
diffstat 2 files changed, 23 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/macros.xml	Thu Jun 22 14:10:43 2023 +0000
+++ b/macros.xml	Thu Oct 12 13:30:31 2023 +0000
@@ -28,6 +28,13 @@
         The execution speed and results themselves can be affected by specifying the conversions, or their order.
 
         For detailed documentation of the tool please visit https://msmetaenhancer.readthedocs.io/.
+
+        ## Developer instructions
+
+        When updating this tool, it is necessary to make sure that `job_options` in `macros.xml` config file are up-to-date.
+        This can be done by running `galaxy/generate_options.py` script in [MSMetaEnhancer](https://github.com/RECETOX/MSMetaEnhancer) tool and 
+        copying generated options to the macro.
+
     ]]>
     </token>
 
--- a/msmetaenhancer.xml	Thu Jun 22 14:10:43 2023 +0000
+++ b/msmetaenhancer.xml	Thu Oct 12 13:30:31 2023 +0000
@@ -1,4 +1,4 @@
-<tool id="msmetaenhancer" name="MSMetaEnhancer" version="@TOOL_VERSION@+galaxy1">
+<tool id="msmetaenhancer" name="MSMetaEnhancer" version="@TOOL_VERSION@+galaxy3">
     <description>annotate MS data</description>
 
     <macros>
@@ -13,22 +13,22 @@
         <requirement type="package" version="@TOOL_VERSION@">msmetaenhancer</requirement>
     </requirements>
 
+    <command detect_errors="exit_code"><![CDATA[
+        sh ${msmetaenhancer_python_cli}
+    ]]> </command>
+
     <environment_variables>
         <environment_variable name="MPLCONFIGDIR">\$_GALAXY_JOB_TMP_DIR</environment_variable>
         <environment_variable name="XDG_CACHE_HOME">\$_GALAXY_JOB_TMP_DIR</environment_variable>
     </environment_variables>
 
-    <command detect_errors="exit_code"><![CDATA[
-        sh ${msmetaenhancer_python_cli}
-    ]]> </command>
-
     <configfiles>
         <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:
+            #if $options.logging.output_log == "TRUE":
             --log_file "$log_file" \
             --log_level "$options.logging.log_level" \
             #end if
@@ -62,8 +62,10 @@
 
         <section name="options" title="Options">
             <conditional name="logging">
-                <param label="Save the log file" name="output_log" type="boolean" truevalue="TRUE" falsevalue="FALSE"
-                       checked="false" help="Preserve a log with details about the annotation process."/>
+                <param label="Save the log file" name="output_log" type="select" help="Preserve a log with details about the annotation process.">
+                    <option value="FALSE" selected="true">FALSE</option>
+                    <option value="TRUE">TRUE</option>
+                </param>
                 <when value="TRUE">
                     <param name="log_level" type="select" label="Log level"
                            help="Severity of log messages  present in the log file.">
@@ -72,6 +74,7 @@
                         <option value="info" selected="true">INFO</option>
                     </param>
                 </when>
+                <when value="FALSE"></when>
             </conditional>
         </section>
     </inputs>
@@ -92,7 +95,7 @@
     </outputs>
 
     <tests>
-        <test>
+        <test expect_num_outputs="2">
             <param name="input_file" value="sample.msp" ftype="msp" />
             <param name="jobs" value="compound_name inchi PubChem,inchi canonical_smiles PubChem"/>
             <output name="output_file" file="sample_out.msp" ftype="msp"/>
@@ -105,4 +108,8 @@
         ]]>
     </help>
 
+    <citations>
+        <citation type="doi">https://doi.org/10.21105/joss.04494</citation>
+    </citations>
+
 </tool>