diff destinations_input_type.py @ 33:f5d51091cf84 draft default tip

planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit 2cb157bd9a8701a3d6874e084032cbd050b8953e
author workflow4metabolomics
date Mon, 11 Sep 2023 09:22:36 +0000
parents b02d1992a43a
children
line wrap: on
line diff
--- a/destinations_input_type.py	Wed Apr 07 16:47:14 2021 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,28 +0,0 @@
-import logging
-
-
-'''
-This file must be placed in lib/galaxy/jobs/rules/
-'''
-
-
-def input_type(job):
-    '''
-    This function checks the input file format/extension and decide which
-    destination in the job_conf.xml using
-     - If it's a zip file, we will launch the job in multi-thread mode
-        (-pe thread 8)
-     - If it's an individual file (mzxml, mzml, mzdata or netcdf),
-        the job will use for instance (-pe thread 1)
-    '''
-    log = logging.getLogger(__name__)
-    indata = dict([(da.name, da.dataset) for da in job.input_datasets])
-    indata.update([(da.name, da.dataset) for da in job.input_library_datasets])
-    input_extension = indata["input"].extension
-    if 'input' in indata:
-        input_extension = indata["input"].extension
-        log.debug("The input extension is %s" % input_extension)
-        if input_extension in ["mzxml", "mzml", "mzdata", "netcdf"]:
-            return 'thread1-mem_free8'
-    # zip file
-    return 'thread8-mem_free16'