changeset 2:8338640d8676 draft

"planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/msmetaenhancer commit fc4fc95ed79d03b2f8d075d0df27d75eb93c58ea"
author recetox
date Mon, 25 Apr 2022 06:29:43 +0000
parents b50c2e941cae
children f387ebd6b734
files msmetaenhancer.xml msmetaenhancer_wrapper.py
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/msmetaenhancer.xml	Fri Apr 08 06:34:37 2022 +0000
+++ b/msmetaenhancer.xml	Mon Apr 25 06:29:43 2022 +0000
@@ -1,4 +1,4 @@
-<tool id="msmetaenhancer" name="MSMetaEnhancer" version="@TOOL_VERSION@+galaxy0">
+<tool id="msmetaenhancer" name="MSMetaEnhancer" version="@TOOL_VERSION@+galaxy1">
     <description>annotate MS data</description>
 
     <macros>
--- a/msmetaenhancer_wrapper.py	Fri Apr 08 06:34:37 2022 +0000
+++ b/msmetaenhancer_wrapper.py	Mon Apr 25 06:29:43 2022 +0000
@@ -2,7 +2,7 @@
 import asyncio
 import sys
 
-
+from matchms import set_matchms_logger_level
 from MSMetaEnhancer import Application
 
 
@@ -16,9 +16,14 @@
 
     app = Application(log_file=args.log_file)
 
+    # set matchms logging level to avoid extensive messages in stdout while reading file
+    set_matchms_logger_level("ERROR")
     # import .msp file
     app.load_spectra(args.input_file, file_format='msp')
 
+    # set matchms logging level back to warning
+    set_matchms_logger_level("WARNING")
+
     # curate given metadata
     app.curate_spectra()