diff save_to_db.py @ 1:3daf04425ea1 draft

planemo upload for repository https://github.com/brsynth/galaxytools/tree/main/tools commit 3401816c949b538bd9c67e61cbe92badff6a4007-dirty
author tduigou
date Thu, 12 Jun 2025 09:04:14 +0000
parents 9f845ccb1a9f
children dad2c4c3450a
line wrap: on
line diff
--- a/save_to_db.py	Wed Jun 11 13:36:44 2025 +0000
+++ b/save_to_db.py	Thu Jun 12 09:04:14 2025 +0000
@@ -201,8 +201,15 @@
     parser.add_argument("--output", required=True, help="Text report")
     parser.add_argument("--file_name_mapping", required=True, help="real fragments names")
     parser.add_argument("--json_conf", required=False, help="JSON config file with DB parameters")
+    parser.add_argument("--execution_enable", required=True, help="enabbe or desable execution directly from the tool option")
     args = parser.parse_args()
 
+    # enabbe or desable execution based on galaxy param (execution_enable)
+
+    if args.execution_enable == 'false':
+        print("Execution disabled. 'Send Requenst to DB' is set to 'false'")
+        return
+
     # Load JSON config if provided
     json_config = {}
     if args.json_conf != 'None' or '':